From 44fe9242102a194f4afc3971dd5c7648bf21b272 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 25 Apr 2026 03:00:44 +0000 Subject: [PATCH 1/4] chore: Update generation configuration at Sat Apr 25 03:00:37 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 42fbb66285e0..0652160eae94 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 260e3f5d5dcf9692c77d14b01b47c16ef01837e9 +googleapis_commitish: df51712c792b35d7536ceec1937f93d053f0adce libraries_bom_version: 26.80.0 is_monorepo: true libraries: From 1cfdd196ff061ef5d0a956fcaaef40c53e126a0a Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 25 Apr 2026 04:33:55 +0000 Subject: [PATCH 2/4] chore: generate libraries at Sat Apr 25 03:03:28 UTC 2026 --- .../compute/v1/BackendBucketsClient.java | 523 + .../compute/v1/BackendBucketsSettings.java | 34 + .../google/cloud/compute/v1/DisksClient.java | 164 + .../cloud/compute/v1/DisksSettings.java | 22 + .../v1/InstantSnapshotGroupsClient.java | 1261 + .../v1/InstantSnapshotGroupsSettings.java | 326 + .../v1/RegionBackendBucketsClient.java | 1670 ++ .../v1/RegionBackendBucketsSettings.java | 359 + .../v1/RegionCompositeHealthChecksClient.java | 120 + .../RegionCompositeHealthChecksSettings.java | 13 + .../cloud/compute/v1/RegionDisksClient.java | 169 + .../cloud/compute/v1/RegionDisksSettings.java | 23 + .../compute/v1/RegionHealthSourcesClient.java | 115 + .../v1/RegionHealthSourcesSettings.java | 12 + ...tanceGroupManagerResizeRequestsClient.java | 1164 + ...nceGroupManagerResizeRequestsSettings.java | 348 + .../v1/RegionInstantSnapshotGroupsClient.java | 1283 + .../RegionInstantSnapshotGroupsSettings.java | 334 + .../v1/RegionSnapshotSettingsClient.java | 450 + .../v1/RegionSnapshotSettingsSettings.java | 250 + .../compute/v1/RegionSnapshotsClient.java | 1551 ++ .../compute/v1/RegionSnapshotsSettings.java | 365 + .../cloud/compute/v1/SnapshotsClient.java | 158 + .../cloud/compute/v1/SnapshotsSettings.java | 23 + .../v1/ZoneVmExtensionPoliciesClient.java | 1035 + .../v1/ZoneVmExtensionPoliciesSettings.java | 315 + .../cloud/compute/v1/gapic_metadata.json | 216 + .../google/cloud/compute/v1/package-info.java | 152 + .../compute/v1/stub/BackendBucketsStub.java | 26 + .../v1/stub/BackendBucketsStubSettings.java | 209 + .../cloud/compute/v1/stub/DisksStub.java | 10 + .../compute/v1/stub/DisksStubSettings.java | 71 +- .../v1/stub/HttpJsonBackendBucketsStub.java | 211 + .../compute/v1/stub/HttpJsonDisksStub.java | 105 + ...nInstantSnapshotGroupsCallableFactory.java | 100 + .../HttpJsonInstantSnapshotGroupsStub.java | 783 + ...onRegionBackendBucketsCallableFactory.java | 100 + .../HttpJsonRegionBackendBucketsStub.java | 974 + ...tpJsonRegionCompositeHealthChecksStub.java | 85 + .../v1/stub/HttpJsonRegionDisksStub.java | 105 + .../stub/HttpJsonRegionHealthSourcesStub.java | 75 + ...pManagerResizeRequestsCallableFactory.java | 101 + ...nstanceGroupManagerResizeRequestsStub.java | 754 + ...nInstantSnapshotGroupsCallableFactory.java | 100 + ...tpJsonRegionInstantSnapshotGroupsStub.java | 806 + ...RegionSnapshotSettingsCallableFactory.java | 100 + .../HttpJsonRegionSnapshotSettingsStub.java | 323 + ...ttpJsonRegionSnapshotsCallableFactory.java | 100 + .../v1/stub/HttpJsonRegionSnapshotsStub.java | 962 + .../v1/stub/HttpJsonSnapshotsStub.java | 101 + ...oneVmExtensionPoliciesCallableFactory.java | 100 + .../HttpJsonZoneVmExtensionPoliciesStub.java | 641 + .../v1/stub/InstantSnapshotGroupsStub.java | 92 + .../InstantSnapshotGroupsStubSettings.java | 689 + .../v1/stub/RegionBackendBucketsStub.java | 115 + .../RegionBackendBucketsStubSettings.java | 846 + .../stub/RegionCompositeHealthChecksStub.java | 7 + ...gionCompositeHealthChecksStubSettings.java | 31 + .../compute/v1/stub/RegionDisksStub.java | 10 + .../v1/stub/RegionDisksStubSettings.java | 72 +- .../v1/stub/RegionHealthSourcesStub.java | 6 + .../stub/RegionHealthSourcesStubSettings.java | 28 + ...nstanceGroupManagerResizeRequestsStub.java | 96 + ...roupManagerResizeRequestsStubSettings.java | 721 + .../stub/RegionInstantSnapshotGroupsStub.java | 96 + ...gionInstantSnapshotGroupsStubSettings.java | 704 + .../v1/stub/RegionSnapshotSettingsStub.java | 52 + .../RegionSnapshotSettingsStubSettings.java | 426 + .../compute/v1/stub/RegionSnapshotsStub.java | 112 + .../v1/stub/RegionSnapshotsStubSettings.java | 800 + .../cloud/compute/v1/stub/SnapshotsStub.java | 10 + .../v1/stub/SnapshotsStubSettings.java | 72 +- .../v1/stub/ZoneVmExtensionPoliciesStub.java | 84 + .../ZoneVmExtensionPoliciesStubSettings.java | 664 + .../reflect-config.json | 1521 ++ .../compute/v1/BackendBucketsClientTest.java | 107 + .../cloud/compute/v1/DisksClientTest.java | 80 + .../v1/FutureReservationsClientTest.java | 2 + ...eGroupManagerResizeRequestsClientTest.java | 1 + .../v1/InstantSnapshotGroupsClientTest.java | 500 + .../v1/InstantSnapshotsClientTest.java | 2 + .../v1/RegionBackendBucketsClientTest.java | 636 + .../v1/RegionCommitmentsClientTest.java | 1 + ...RegionCompositeHealthChecksClientTest.java | 52 + .../compute/v1/RegionDisksClientTest.java | 82 + .../v1/RegionHealthSourcesClientTest.java | 50 + ...eGroupManagerResizeRequestsClientTest.java | 442 + ...RegionInstantSnapshotGroupsClientTest.java | 502 + .../v1/RegionInstantSnapshotsClientTest.java | 2 + .../v1/RegionSnapshotSettingsClientTest.java | 198 + .../compute/v1/RegionSnapshotsClientTest.java | 695 + .../compute/v1/ReservationsClientTest.java | 1 + .../v1/SnapshotSettingsServiceClientTest.java | 1 + .../cloud/compute/v1/SnapshotsClientTest.java | 81 + .../v1/ZoneVmExtensionPoliciesClientTest.java | 422 + .../AggregatedListBackendBucketsRequest.java | 2545 ++ ...tedListBackendBucketsRequestOrBuilder.java | 514 + .../com/google/cloud/compute/v1/Backend.java | 1033 +- .../cloud/compute/v1/BackendBucket.java | 316 +- .../v1/BackendBucketAggregatedList.java | 2087 ++ .../BackendBucketAggregatedListOrBuilder.java | 302 + .../compute/v1/BackendBucketListUsable.java | 2156 ++ .../v1/BackendBucketListUsableOrBuilder.java | 292 + .../compute/v1/BackendBucketOrBuilder.java | 48 + .../compute/v1/BackendBucketsScopedList.java | 1228 + .../v1/BackendBucketsScopedListOrBuilder.java | 124 + .../cloud/compute/v1/BackendOrBuilder.java | 130 + .../cloud/compute/v1/BackendService.java | 68 +- .../compute/v1/BackendServiceOrBuilder.java | 18 +- .../compute/v1/BulkInsertDiskResource.java | 681 +- .../v1/BulkInsertDiskResourceOrBuilder.java | 91 + ...tanceGroupManagerResizeRequestRequest.java | 1598 ++ ...pManagerResizeRequestRequestOrBuilder.java | 223 + .../google/cloud/compute/v1/Commitment.java | 518 +- .../cloud/compute/v1/CommitmentOrBuilder.java | 40 + .../cloud/compute/v1/CommitmentParams.java | 838 + .../compute/v1/CommitmentParamsOrBuilder.java | 121 + .../v1/CompositeHealthCheckHealth.java | 1656 ++ .../CompositeHealthCheckHealthOrBuilder.java | 185 + ...ksGetHealthResponseHealthSourceHealth.java | 1063 + ...thResponseHealthSourceHealthOrBuilder.java | 109 + .../com/google/cloud/compute/v1/Compute.java | 20493 +++++++++------- .../v1/DeleteInstantSnapshotGroupRequest.java | 1353 + ...eInstantSnapshotGroupRequestOrBuilder.java | 191 + .../v1/DeleteRegionBackendBucketRequest.java | 1354 + ...teRegionBackendBucketRequestOrBuilder.java | 192 + ...tanceGroupManagerResizeRequestRequest.java | 1598 ++ ...pManagerResizeRequestRequestOrBuilder.java | 223 + ...leteRegionInstantSnapshotGroupRequest.java | 1361 + ...nInstantSnapshotGroupRequestOrBuilder.java | 191 + .../v1/DeleteRegionSnapshotRequest.java | 1340 + .../DeleteRegionSnapshotRequestOrBuilder.java | 189 + .../DeleteZoneVmExtensionPolicyRequest.java | 1352 + ...ZoneVmExtensionPolicyRequestOrBuilder.java | 189 + .../compute/v1/DiskUpdateKmsKeyRequest.java | 733 + .../v1/DiskUpdateKmsKeyRequestOrBuilder.java | 100 + .../com/google/cloud/compute/v1/Error.java | 4 +- .../cloud/compute/v1/FutureReservation.java | 1106 +- .../v1/FutureReservationOrBuilder.java | 82 + .../compute/v1/FutureReservationParams.java | 839 + .../v1/FutureReservationParamsOrBuilder.java | 121 + ...althRegionCompositeHealthCheckRequest.java | 999 + ...nCompositeHealthCheckRequestOrBuilder.java | 108 + .../GetHealthRegionHealthSourceRequest.java | 982 + ...lthRegionHealthSourceRequestOrBuilder.java | 106 + ...tIamPolicyInstantSnapshotGroupRequest.java | 1130 + ...yInstantSnapshotGroupRequestOrBuilder.java | 132 + ...etIamPolicyRegionBackendBucketRequest.java | 1130 + ...cyRegionBackendBucketRequestOrBuilder.java | 132 + ...licyRegionInstantSnapshotGroupRequest.java | 1140 + ...nInstantSnapshotGroupRequestOrBuilder.java | 132 + .../v1/GetIamPolicyRegionSnapshotRequest.java | 1122 + ...mPolicyRegionSnapshotRequestOrBuilder.java | 132 + .../v1/GetInstantSnapshotGroupRequest.java | 983 + ...tInstantSnapshotGroupRequestOrBuilder.java | 108 + .../v1/GetRegionBackendBucketRequest.java | 975 + ...etRegionBackendBucketRequestOrBuilder.java | 106 + ...tanceGroupManagerResizeRequestRequest.java | 1224 + ...pManagerResizeRequestRequestOrBuilder.java | 140 + .../GetRegionInstantSnapshotGroupRequest.java | 991 + ...nInstantSnapshotGroupRequestOrBuilder.java | 108 + .../compute/v1/GetRegionSnapshotRequest.java | 974 + .../v1/GetRegionSnapshotRequestOrBuilder.java | 106 + .../v1/GetRegionSnapshotSettingRequest.java | 786 + ...RegionSnapshotSettingRequestOrBuilder.java | 80 + .../v1/GetZoneVmExtensionPolicyRequest.java | 980 + ...ZoneVmExtensionPolicyRequestOrBuilder.java | 106 + .../cloud/compute/v1/GuestOsFeature.java | 10 + .../compute/v1/GuestOsFeatureOrBuilder.java | 3 + .../cloud/compute/v1/HealthSourceHealth.java | 1607 ++ .../v1/HealthSourceHealthOrBuilder.java | 178 + ...lthSourcesGetHealthResponseSourceInfo.java | 1548 ++ ...etHealthResponseSourceInfoBackendInfo.java | 963 + ...esponseSourceInfoBackendInfoOrBuilder.java | 126 + ...sGetHealthResponseSourceInfoOrBuilder.java | 194 + .../v1/InsertInstantSnapshotGroupRequest.java | 1711 ++ ...tInstantSnapshotGroupRequestOrBuilder.java | 246 + .../v1/InsertRegionBackendBucketRequest.java | 1476 ++ ...rtRegionBackendBucketRequestOrBuilder.java | 206 + ...tanceGroupManagerResizeRequestRequest.java | 1736 ++ ...pManagerResizeRequestRequestOrBuilder.java | 240 + ...sertRegionInstantSnapshotGroupRequest.java | 1719 ++ ...nInstantSnapshotGroupRequestOrBuilder.java | 246 + .../v1/InsertRegionSnapshotRequest.java | 1468 ++ .../InsertRegionSnapshotRequestOrBuilder.java | 206 + .../InsertZoneVmExtensionPolicyRequest.java | 1485 ++ ...ZoneVmExtensionPolicyRequestOrBuilder.java | 206 + .../compute/v1/InstanceGroupManager.java | 174 +- .../InstanceGroupManagerActionsSummary.java | 156 +- ...ceGroupManagerActionsSummaryOrBuilder.java | 52 +- .../v1/InstanceGroupManagerOrBuilder.java | 54 +- .../v1/InstanceGroupManagerResizeRequest.java | 568 +- ...nceGroupManagerResizeRequestOrBuilder.java | 101 +- ...stanceGroupManagerResizeRequestStatus.java | 300 +- ...upManagerResizeRequestStatusOrBuilder.java | 75 +- .../v1/InstanceGroupManagerStatus.java | 589 +- ...GroupManagerStatusAcceleratorTopology.java | 62 +- ...pologyAcceleratorTopologyStateDetails.java | 42 +- ...eleratorTopologyStateDetailsOrBuilder.java | 12 +- ...gerStatusAcceleratorTopologyOrBuilder.java | 18 +- ...eGroupManagerStatusAllInstancesConfig.java | 30 +- ...agerStatusAllInstancesConfigOrBuilder.java | 10 +- ...oupManagerStatusBulkInstanceOperation.java | 36 +- ...ulkInstanceOperationLastProgressCheck.java | 42 +- ...ceOperationLastProgressCheckOrBuilder.java | 12 +- ...rStatusBulkInstanceOperationOrBuilder.java | 10 +- ...oupManagerStatusInstanceStatusSummary.java | 2315 ++ ...rStatusInstanceStatusSummaryOrBuilder.java | 404 + .../InstanceGroupManagerStatusOrBuilder.java | 95 +- .../InstanceGroupManagerStatusStateful.java | 36 +- ...ceGroupManagerStatusStatefulOrBuilder.java | 10 +- ...stanceGroupManagerStatusVersionTarget.java | 12 +- ...upManagerStatusVersionTargetOrBuilder.java | 4 +- .../cloud/compute/v1/InstantSnapshot.java | 545 +- .../compute/v1/InstantSnapshotGroup.java | 3307 +++ .../v1/InstantSnapshotGroupOrBuilder.java | 496 + .../v1/InstantSnapshotGroupParameters.java | 702 + ...stantSnapshotGroupParametersOrBuilder.java | 88 + .../InstantSnapshotGroupResourceStatus.java | 966 + ...tSnapshotGroupResourceStatusOrBuilder.java | 107 + .../v1/InstantSnapshotGroupSourceInfo.java | 753 + ...stantSnapshotGroupSourceInfoOrBuilder.java | 70 + .../compute/v1/InstantSnapshotOrBuilder.java | 93 + .../compute/v1/ListInstantSnapshotGroups.java | 2628 ++ .../ListInstantSnapshotGroupsOrBuilder.java | 368 + .../v1/ListInstantSnapshotGroupsRequest.java | 2418 ++ ...InstantSnapshotGroupsRequestOrBuilder.java | 474 + .../v1/ListRegionBackendBucketsRequest.java | 2413 ++ ...tRegionBackendBucketsRequestOrBuilder.java | 474 + ...anceGroupManagerResizeRequestsRequest.java | 2653 ++ ...ManagerResizeRequestsRequestOrBuilder.java | 504 + ...istRegionInstantSnapshotGroupsRequest.java | 2426 ++ ...InstantSnapshotGroupsRequestOrBuilder.java | 474 + .../v1/ListRegionSnapshotsRequest.java | 2413 ++ .../ListRegionSnapshotsRequestOrBuilder.java | 474 + .../v1/ListUsableBackendBucketsRequest.java | 2224 ++ ...tUsableBackendBucketsRequestOrBuilder.java | 448 + ...ListUsableRegionBackendBucketsRequest.java | 2431 ++ ...eRegionBackendBucketsRequestOrBuilder.java | 476 + .../ListZoneVmExtensionPoliciesRequest.java | 2420 ++ ...neVmExtensionPoliciesRequestOrBuilder.java | 474 + .../NetworkAttachmentConnectedEndpoint.java | 295 +- ...kAttachmentConnectedEndpointOrBuilder.java | 42 + .../cloud/compute/v1/NetworkInterface.java | 305 +- .../compute/v1/NetworkInterfaceOrBuilder.java | 48 + .../v1/PatchRegionBackendBucketRequest.java | 1669 ++ ...chRegionBackendBucketRequestOrBuilder.java | 235 + .../v1/PatchRegionSnapshotSettingRequest.java | 1707 ++ ...RegionSnapshotSettingRequestOrBuilder.java | 245 + .../com/google/cloud/compute/v1/RawDisk.java | 72 +- .../cloud/compute/v1/RawDiskOrBuilder.java | 24 +- .../v1/RegionDiskUpdateKmsKeyRequest.java | 734 + ...egionDiskUpdateKmsKeyRequestOrBuilder.java | 100 + ...roupManagerResizeRequestsListResponse.java | 2716 ++ ...erResizeRequestsListResponseOrBuilder.java | 377 + .../v1/RegionSnapshotUpdateKmsKeyRequest.java | 703 + ...nSnapshotUpdateKmsKeyRequestOrBuilder.java | 88 + .../google/cloud/compute/v1/Reservation.java | 984 +- .../compute/v1/ReservationOrBuilder.java | 42 + ...tIamPolicyInstantSnapshotGroupRequest.java | 1318 + ...yInstantSnapshotGroupRequestOrBuilder.java | 150 + ...etIamPolicyRegionBackendBucketRequest.java | 1319 + ...cyRegionBackendBucketRequestOrBuilder.java | 150 + ...licyRegionInstantSnapshotGroupRequest.java | 1329 + ...nInstantSnapshotGroupRequestOrBuilder.java | 150 + .../v1/SetIamPolicyRegionSnapshotRequest.java | 1311 + ...mPolicyRegionSnapshotRequestOrBuilder.java | 150 + .../v1/SetLabelsRegionSnapshotRequest.java | 1668 ++ ...tLabelsRegionSnapshotRequestOrBuilder.java | 233 + .../com/google/cloud/compute/v1/Snapshot.java | 1237 +- .../compute/v1/SnapshotGroupParameters.java | 1245 + .../v1/SnapshotGroupParametersOrBuilder.java | 191 + .../cloud/compute/v1/SnapshotOrBuilder.java | 126 + .../cloud/compute/v1/SnapshotSettings.java | 347 +- .../v1/SnapshotSettingsAccessLocation.java | 1376 ++ ...ccessLocationAccessLocationPreference.java | 679 + ...tionAccessLocationPreferenceOrBuilder.java | 67 + ...apshotSettingsAccessLocationOrBuilder.java | 157 + .../compute/v1/SnapshotSettingsOrBuilder.java | 46 + .../v1/SnapshotUpdateKmsKeyRequest.java | 698 + .../SnapshotUpdateKmsKeyRequestOrBuilder.java | 88 + ...ermissionsInstantSnapshotGroupRequest.java | 1329 + ...sInstantSnapshotGroupRequestOrBuilder.java | 150 + ...PermissionsRegionBackendBucketRequest.java | 1327 + ...nsRegionBackendBucketRequestOrBuilder.java | 150 + ...ionsRegionInstantSnapshotGroupRequest.java | 1342 + ...nInstantSnapshotGroupRequestOrBuilder.java | 150 + ...stIamPermissionsRegionSnapshotRequest.java | 1319 + ...issionsRegionSnapshotRequestOrBuilder.java | 150 + .../compute/v1/UpdateKmsKeyDiskRequest.java | 1668 ++ .../v1/UpdateKmsKeyDiskRequestOrBuilder.java | 233 + .../v1/UpdateKmsKeyRegionDiskRequest.java | 1673 ++ ...pdateKmsKeyRegionDiskRequestOrBuilder.java | 234 + .../v1/UpdateKmsKeyRegionSnapshotRequest.java | 1679 ++ ...eKmsKeyRegionSnapshotRequestOrBuilder.java | 234 + .../v1/UpdateKmsKeySnapshotRequest.java | 1469 ++ .../UpdateKmsKeySnapshotRequestOrBuilder.java | 203 + .../UpdateZoneVmExtensionPolicyRequest.java | 1679 ++ ...ZoneVmExtensionPolicyRequestOrBuilder.java | 232 + .../cloud/compute/v1/VmExtensionPolicy.java | 4312 ++++ .../v1/VmExtensionPolicyExtensionPolicy.java | 877 + ...tensionPolicyExtensionPolicyOrBuilder.java | 109 + .../v1/VmExtensionPolicyInstanceSelector.java | 738 + ...ensionPolicyInstanceSelectorOrBuilder.java | 71 + .../v1/VmExtensionPolicyLabelSelector.java | 867 + ...ExtensionPolicyLabelSelectorOrBuilder.java | 136 + .../compute/v1/VmExtensionPolicyList.java | 2718 ++ .../v1/VmExtensionPolicyListOrBuilder.java | 400 + .../v1/VmExtensionPolicyOrBuilder.java | 658 + .../google/cloud/compute/v1/compute.proto | 5354 +++- .../aggregatedlist/AsyncAggregatedList.java | 59 + .../AsyncAggregatedListPaged.java | 67 + .../aggregatedlist/SyncAggregatedList.java | 56 + .../SyncAggregatedListString.java | 45 + .../listusable/AsyncListUsable.java | 56 + .../listusable/AsyncListUsablePaged.java | 63 + .../listusable/SyncListUsable.java | 52 + .../listusable/SyncListUsableString.java | 43 + .../disks/updatekmskey/AsyncUpdateKmsKey.java | 53 + .../updatekmskey/AsyncUpdateKmsKeyLRO.java | 54 + .../disks/updatekmskey/SyncUpdateKmsKey.java | 50 + ...ngStringStringDiskupdatekmskeyrequest.java | 47 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../delete/AsyncDelete.java | 53 + .../delete/AsyncDeleteLRO.java | 53 + .../delete/SyncDelete.java | 49 + .../delete/SyncDeleteStringStringString.java | 45 + .../instantsnapshotgroups/get/AsyncGet.java | 52 + .../v1/instantsnapshotgroups/get/SyncGet.java | 48 + .../get/SyncGetStringStringString.java | 45 + .../getiampolicy/AsyncGetIamPolicy.java | 53 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../SyncGetIamPolicyStringStringString.java | 44 + .../insert/AsyncInsert.java | 55 + .../insert/AsyncInsertLRO.java | 55 + .../insert/SyncInsert.java | 51 + ...nsertStringStringInstantsnapshotgroup.java | 48 + .../instantsnapshotgroups/list/AsyncList.java | 58 + .../list/AsyncListPaged.java | 66 + .../instantsnapshotgroups/list/SyncList.java | 54 + .../list/SyncListStringString.java | 46 + .../setiampolicy/AsyncSetIamPolicy.java | 54 + .../setiampolicy/SyncSetIamPolicy.java | 50 + ...tringStringStringZonesetpolicyrequest.java | 48 + .../AsyncTestIamPermissions.java | 54 + .../SyncTestIamPermissions.java | 50 + ...ingStringStringTestpermissionsrequest.java | 50 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../delete/AsyncDelete.java | 52 + .../delete/AsyncDeleteLRO.java | 53 + .../delete/SyncDelete.java | 49 + .../delete/SyncDeleteStringStringString.java | 45 + .../v1/regionbackendbuckets/get/AsyncGet.java | 52 + .../v1/regionbackendbuckets/get/SyncGet.java | 48 + .../get/SyncGetStringStringString.java | 44 + .../getiampolicy/AsyncGetIamPolicy.java | 53 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../SyncGetIamPolicyStringStringString.java | 44 + .../insert/AsyncInsert.java | 53 + .../insert/AsyncInsertLRO.java | 54 + .../insert/SyncInsert.java | 50 + .../SyncInsertStringStringBackendbucket.java | 46 + .../regionbackendbuckets/list/AsyncList.java | 58 + .../list/AsyncListPaged.java | 65 + .../regionbackendbuckets/list/SyncList.java | 54 + .../list/SyncListStringString.java | 45 + .../listusable/AsyncListUsable.java | 58 + .../listusable/AsyncListUsablePaged.java | 66 + .../listusable/SyncListUsable.java | 54 + .../SyncListUsableStringString.java | 46 + .../patch/AsyncPatch.java | 54 + .../patch/AsyncPatchLRO.java | 55 + .../regionbackendbuckets/patch/SyncPatch.java | 51 + ...cPatchStringStringStringBackendbucket.java | 49 + .../setiampolicy/AsyncSetIamPolicy.java | 54 + .../setiampolicy/SyncSetIamPolicy.java | 50 + ...ingStringStringRegionsetpolicyrequest.java | 49 + .../AsyncTestIamPermissions.java | 54 + .../SyncTestIamPermissions.java | 50 + ...ingStringStringTestpermissionsrequest.java | 50 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../gethealth/AsyncGetHealth.java | 52 + .../gethealth/SyncGetHealth.java | 48 + .../SyncGetHealthStringStringString.java | 45 + .../updatekmskey/AsyncUpdateKmsKey.java | 54 + .../updatekmskey/AsyncUpdateKmsKeyLRO.java | 55 + .../updatekmskey/SyncUpdateKmsKey.java | 51 + ...ngStringRegiondiskupdatekmskeyrequest.java | 50 + .../gethealth/AsyncGetHealth.java | 51 + .../gethealth/SyncGetHealth.java | 47 + .../SyncGetHealthStringStringString.java | 44 + .../cancel/AsyncCancel.java | 55 + .../cancel/AsyncCancelLRO.java | 57 + .../cancel/SyncCancel.java | 52 + .../SyncCancelStringStringStringString.java | 49 + .../SyncCreateSetCredentialsProvider.java | 47 + .../create/SyncCreateSetEndpoint.java | 46 + .../delete/AsyncDelete.java | 55 + .../delete/AsyncDeleteLRO.java | 57 + .../delete/SyncDelete.java | 52 + .../SyncDeleteStringStringStringString.java | 49 + .../get/AsyncGet.java | 54 + .../get/SyncGet.java | 51 + .../get/SyncGetStringStringStringString.java | 48 + .../insert/AsyncInsert.java | 57 + .../insert/AsyncInsertLRO.java | 59 + .../insert/SyncInsert.java | 54 + ...ringInstancegroupmanagerresizerequest.java | 53 + .../list/AsyncList.java | 60 + .../list/AsyncListPaged.java | 68 + .../list/SyncList.java | 57 + .../list/SyncListStringStringString.java | 50 + .../cancel/SyncCancel.java | 55 + .../get/SyncGet.java | 59 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../delete/AsyncDelete.java | 53 + .../delete/AsyncDeleteLRO.java | 53 + .../delete/SyncDelete.java | 49 + .../delete/SyncDeleteStringStringString.java | 47 + .../get/AsyncGet.java | 52 + .../get/SyncGet.java | 48 + .../get/SyncGetStringStringString.java | 45 + .../getiampolicy/AsyncGetIamPolicy.java | 53 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../SyncGetIamPolicyStringStringString.java | 44 + .../insert/AsyncInsert.java | 55 + .../insert/AsyncInsertLRO.java | 55 + .../insert/SyncInsert.java | 51 + ...nsertStringStringInstantsnapshotgroup.java | 48 + .../list/AsyncList.java | 58 + .../list/AsyncListPaged.java | 66 + .../list/SyncList.java | 55 + .../list/SyncListStringString.java | 46 + .../setiampolicy/AsyncSetIamPolicy.java | 54 + .../setiampolicy/SyncSetIamPolicy.java | 50 + ...ingStringStringRegionsetpolicyrequest.java | 49 + .../AsyncTestIamPermissions.java | 54 + .../SyncTestIamPermissions.java | 51 + ...ingStringStringTestpermissionsrequest.java | 50 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../regionsnapshots/delete/AsyncDelete.java | 51 + .../delete/AsyncDeleteLRO.java | 52 + .../v1/regionsnapshots/delete/SyncDelete.java | 48 + .../delete/SyncDeleteStringStringString.java | 43 + .../v1/regionsnapshots/get/AsyncGet.java | 50 + .../v1/regionsnapshots/get/SyncGet.java | 47 + .../get/SyncGetStringStringString.java | 43 + .../getiampolicy/AsyncGetIamPolicy.java | 51 + .../getiampolicy/SyncGetIamPolicy.java | 48 + .../SyncGetIamPolicyStringStringString.java | 43 + .../regionsnapshots/insert/AsyncInsert.java | 52 + .../insert/AsyncInsertLRO.java | 53 + .../v1/regionsnapshots/insert/SyncInsert.java | 49 + .../SyncInsertStringStringSnapshot.java | 45 + .../v1/regionsnapshots/list/AsyncList.java | 56 + .../regionsnapshots/list/AsyncListPaged.java | 64 + .../v1/regionsnapshots/list/SyncList.java | 53 + .../list/SyncListStringString.java | 44 + .../setiampolicy/AsyncSetIamPolicy.java | 52 + .../setiampolicy/SyncSetIamPolicy.java | 49 + ...ingStringStringRegionsetpolicyrequest.java | 48 + .../setlabels/AsyncSetLabels.java | 53 + .../setlabels/AsyncSetLabelsLRO.java | 54 + .../setlabels/SyncSetLabels.java | 50 + ...ingStringStringRegionsetlabelsrequest.java | 49 + .../AsyncTestIamPermissions.java | 53 + .../SyncTestIamPermissions.java | 49 + ...ingStringStringTestpermissionsrequest.java | 49 + .../updatekmskey/AsyncUpdateKmsKey.java | 55 + .../updatekmskey/AsyncUpdateKmsKeyLRO.java | 55 + .../updatekmskey/SyncUpdateKmsKey.java | 51 + ...ringRegionsnapshotupdatekmskeyrequest.java | 51 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../regionsnapshotsettings/get/AsyncGet.java | 51 + .../regionsnapshotsettings/get/SyncGet.java | 47 + .../get/SyncGetStringString.java | 43 + .../patch/AsyncPatch.java | 55 + .../patch/AsyncPatchLRO.java | 55 + .../patch/SyncPatch.java | 51 + ...SyncPatchStringStringSnapshotsettings.java | 46 + .../get/SyncGet.java | 57 + .../patch/SyncPatch.java | 54 + .../delete/SyncDelete.java | 54 + .../regionsnapshotssettings/get/SyncGet.java | 56 + .../updatekmskey/AsyncUpdateKmsKey.java | 53 + .../updatekmskey/AsyncUpdateKmsKeyLRO.java | 54 + .../updatekmskey/SyncUpdateKmsKey.java | 50 + ...ringStringSnapshotupdatekmskeyrequest.java | 48 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../cancel/SyncCancel.java | 55 + .../get/SyncGet.java | 59 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../get/SyncGet.java | 57 + .../patch/SyncPatch.java | 54 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 56 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../delete/AsyncDelete.java | 53 + .../delete/AsyncDeleteLRO.java | 53 + .../delete/SyncDelete.java | 49 + .../delete/SyncDeleteStringStringString.java | 45 + .../zonevmextensionpolicies/get/AsyncGet.java | 52 + .../zonevmextensionpolicies/get/SyncGet.java | 48 + .../get/SyncGetStringStringString.java | 45 + .../insert/AsyncInsert.java | 54 + .../insert/AsyncInsertLRO.java | 54 + .../insert/SyncInsert.java | 50 + ...ncInsertStringStringVmextensionpolicy.java | 46 + .../list/AsyncList.java | 58 + .../list/AsyncListPaged.java | 65 + .../list/SyncList.java | 54 + .../list/SyncListStringString.java | 46 + .../update/AsyncUpdate.java | 55 + .../update/AsyncUpdateLRO.java | 55 + .../update/SyncUpdate.java | 51 + ...teStringStringStringVmextensionpolicy.java | 49 + .../delete/SyncDelete.java | 54 + .../get/SyncGet.java | 57 + .../cluster/v1/CloudRedisClusterProto.java | 210 +- .../cloud/redis/cluster/v1/NodeType.java | 69 + .../cluster/v1/cloud_redis_cluster.proto | 9 + .../v1beta1/CloudRedisClusterProto.java | 220 +- .../cloud/redis/cluster/v1beta1/NodeType.java | 69 + .../cluster/v1beta1/cloud_redis_cluster.proto | 9 + .../google/cloud/memorystore/v1/Instance.java | 158 +- .../memorystore/v1/InstanceOrBuilder.java | 6 +- .../cloud/memorystore/v1/V1mainProto.java | 414 +- .../cloud/memorystore/v1/memorystore.proto | 18 + .../cloud/memorystore/v1beta/Instance.java | 138 + .../cloud/memorystore/v1beta/V1mainProto.java | 186 +- .../memorystore/v1beta/memorystore.proto | 18 + versions.txt | 3 + 549 files changed, 206939 insertions(+), 12613 deletions(-) create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesCallableFactory.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStub.java create mode 100644 java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClientTest.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendBucketsClientTest.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClientTest.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClientTest.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClientTest.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotsClientTest.java create mode 100644 java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClientTest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedList.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedListOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsable.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsableOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedList.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedListOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParams.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParamsOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealth.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealthOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParams.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParamsOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealth.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealthOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfo.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummary.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroup.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParameters.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParametersOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatus.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatusOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfo.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfoOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroups.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponse.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParameters.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParametersOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocation.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreference.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequest.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequestOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicy.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicy.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicyOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelector.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelectorOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelector.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelectorOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyList.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyListOrBuilder.java create mode 100644 java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyOrBuilder.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedListString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsable.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsablePaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsable.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsableString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKeyLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDeleteLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDeleteStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGetStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsertLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncListStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringZonesetpolicyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDeleteLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDeleteStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGetStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicyStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsertLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsertStringStringBackendbucket.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncListStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsable.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsablePaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsable.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsableStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatch.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatchLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatch.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatchStringStringStringBackendbucket.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/AsyncGetHealth.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealth.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealthStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKeyLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/AsyncGetHealth.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealth.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealthStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancel.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancelLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancel.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancelStringStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDeleteLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDeleteStringStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGetStringStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsertLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsertStringStringStringInstancegroupmanagerresizerequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncListStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/cancel/SyncCancel.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDeleteLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDeleteStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGetStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsertLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncListStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDeleteLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDeleteStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGetStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicyStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsertLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsertStringStringSnapshot.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncListStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabels.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabelsLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabels.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGetStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatch.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatchLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatch.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatchStringStringSnapshotsettings.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/patch/SyncPatch.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKey.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/cancel/SyncCancel.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/patch/SyncPatch.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetEndpoint.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDeleteLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDeleteStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/AsyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGet.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGetStringStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsertLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsert.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsertStringStringVmextensionpolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncListPaged.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncList.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncListStringString.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdate.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdateLRO.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdate.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdateStringStringStringVmextensionpolicy.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/delete/SyncDelete.java create mode 100644 java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/get/SyncGet.java diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java index 3abe75a74abd..729d5eba9538 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java @@ -31,6 +31,7 @@ import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -84,6 +85,26 @@ * * * + *

AggregatedList + *

Retrieves the list of all BackendBucket resources, regional and global, available to the specified project. + *

To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * *

Delete *

Deletes the specified BackendBucket resource. * @@ -196,6 +217,25 @@ * * * + *

ListUsable + *

Retrieves a list of all usable backend buckets in the specified project. + * + *

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

+ * + *

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

+ * + *

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

+ * + * + * + * *

Patch *

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. * @@ -515,6 +555,174 @@ public final OperationFuture addSignedUrlKeyAsync( return stub.addSignedUrlKeyCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of all BackendBucket resources, regional and global, available to the + * specified project. + * + *

To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   for (Map.Entry element :
+   *       backendBucketsClient.aggregatedList(project).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Name of the project scoping this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AggregatedListPagedResponse aggregatedList(String project) { + AggregatedListBackendBucketsRequest request = + AggregatedListBackendBucketsRequest.newBuilder().setProject(project).build(); + return aggregatedList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of all BackendBucket resources, regional and global, available to the + * specified project. + * + *

To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   AggregatedListBackendBucketsRequest request =
+   *       AggregatedListBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setIncludeAllScopes(true)
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setServiceProjectNumber(-1293855239)
+   *           .build();
+   *   for (Map.Entry element :
+   *       backendBucketsClient.aggregatedList(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 AggregatedListPagedResponse aggregatedList( + AggregatedListBackendBucketsRequest request) { + return aggregatedListPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of all BackendBucket resources, regional and global, available to the + * specified project. + * + *

To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   AggregatedListBackendBucketsRequest request =
+   *       AggregatedListBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setIncludeAllScopes(true)
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setServiceProjectNumber(-1293855239)
+   *           .build();
+   *   ApiFuture> future =
+   *       backendBucketsClient.aggregatedListPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Map.Entry element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + aggregatedListPagedCallable() { + return stub.aggregatedListPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of all BackendBucket resources, regional and global, available to the + * specified project. + * + *

To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   AggregatedListBackendBucketsRequest request =
+   *       AggregatedListBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setIncludeAllScopes(true)
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setServiceProjectNumber(-1293855239)
+   *           .build();
+   *   while (true) {
+   *     BackendBucketAggregatedList response =
+   *         backendBucketsClient.aggregatedListCallable().call(request);
+   *     for (Map.Entry element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + aggregatedListCallable() { + return stub.aggregatedListCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the specified BackendBucket resource. @@ -1224,6 +1432,148 @@ public final UnaryCallable listCal return stub.listCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   for (BackendBucket element : backendBucketsClient.listUsable(project).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsablePagedResponse listUsable(String project) { + ListUsableBackendBucketsRequest request = + ListUsableBackendBucketsRequest.newBuilder().setProject(project).build(); + return listUsable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   ListUsableBackendBucketsRequest request =
+   *       ListUsableBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   for (BackendBucket element : backendBucketsClient.listUsable(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 ListUsablePagedResponse listUsable(ListUsableBackendBucketsRequest request) { + return listUsablePagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   ListUsableBackendBucketsRequest request =
+   *       ListUsableBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   ApiFuture future =
+   *       backendBucketsClient.listUsablePagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BackendBucket element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsablePagedCallable() { + return stub.listUsablePagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project. + * + *

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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
+   *   ListUsableBackendBucketsRequest request =
+   *       ListUsableBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   while (true) {
+   *     BackendBucketListUsable response = backendBucketsClient.listUsableCallable().call(request);
+   *     for (BackendBucket element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsableCallable() { + return stub.listUsableCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates the specified BackendBucket resource with the data included in the request. This method @@ -1856,6 +2206,101 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class AggregatedListPagedResponse + extends AbstractPagedListResponse< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry, + AggregatedListPage, + AggregatedListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new AggregatedListPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private AggregatedListPagedResponse(AggregatedListPage page) { + super(page, AggregatedListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class AggregatedListPage + extends AbstractPage< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry, + AggregatedListPage> { + + private AggregatedListPage( + PageContext< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry> + context, + BackendBucketAggregatedList response) { + super(context, response); + } + + private static AggregatedListPage createEmptyPage() { + return new AggregatedListPage(null, null); + } + + @Override + protected AggregatedListPage createPage( + PageContext< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry> + context, + BackendBucketAggregatedList response) { + return new AggregatedListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class AggregatedListFixedSizeCollection + extends AbstractFixedSizeCollection< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry, + AggregatedListPage, + AggregatedListFixedSizeCollection> { + + private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static AggregatedListFixedSizeCollection createEmptyCollection() { + return new AggregatedListFixedSizeCollection(null, 0); + } + + @Override + protected AggregatedListFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new AggregatedListFixedSizeCollection(pages, collectionSize); + } + } + public static class ListPagedResponse extends AbstractPagedListResponse< ListBackendBucketsRequest, @@ -1927,4 +2372,82 @@ protected ListFixedSizeCollection createCollection(List pages, int col return new ListFixedSizeCollection(pages, collectionSize); } } + + public static class ListUsablePagedResponse + extends AbstractPagedListResponse< + ListUsableBackendBucketsRequest, + BackendBucketListUsable, + BackendBucket, + ListUsablePage, + ListUsableFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsablePage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListUsablePagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListUsablePagedResponse(ListUsablePage page) { + super(page, ListUsableFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsablePage + extends AbstractPage< + ListUsableBackendBucketsRequest, BackendBucketListUsable, BackendBucket, ListUsablePage> { + + private ListUsablePage( + PageContext + context, + BackendBucketListUsable response) { + super(context, response); + } + + private static ListUsablePage createEmptyPage() { + return new ListUsablePage(null, null); + } + + @Override + protected ListUsablePage createPage( + PageContext + context, + BackendBucketListUsable response) { + return new ListUsablePage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableBackendBucketsRequest, + BackendBucketListUsable, + BackendBucket, + ListUsablePage, + ListUsableFixedSizeCollection> { + + private ListUsableFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableFixedSizeCollection createEmptyCollection() { + return new ListUsableFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java index 7de27f9f12f2..54b59a071c6e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java @@ -16,7 +16,9 @@ package com.google.cloud.compute.v1; +import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse; import com.google.api.core.ApiFunction; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -125,6 +127,15 @@ public class BackendBucketsSettings extends ClientSettings + aggregatedListSettings() { + return ((BackendBucketsStubSettings) getStubSettings()).aggregatedListSettings(); + } + /** Returns the object with the settings used for calls to delete. */ public UnaryCallSettings deleteSettings() { return ((BackendBucketsStubSettings) getStubSettings()).deleteSettings(); @@ -175,6 +186,13 @@ public UnaryCallSettings insertSettings() return ((BackendBucketsStubSettings) getStubSettings()).listSettings(); } + /** Returns the object with the settings used for calls to listUsable. */ + public PagedCallSettings< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return ((BackendBucketsStubSettings) getStubSettings()).listUsableSettings(); + } + /** Returns the object with the settings used for calls to patch. */ public UnaryCallSettings patchSettings() { return ((BackendBucketsStubSettings) getStubSettings()).patchSettings(); @@ -330,6 +348,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().addSignedUrlKeyOperationSettings(); } + /** Returns the builder for the settings used for calls to aggregatedList. */ + public PagedCallSettings.Builder< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return getStubSettingsBuilder().aggregatedListSettings(); + } + /** Returns the builder for the settings used for calls to delete. */ public UnaryCallSettings.Builder deleteSettings() { return getStubSettingsBuilder().deleteSettings(); @@ -383,6 +410,13 @@ public UnaryCallSettings.Builder insertSe return getStubSettingsBuilder().listSettings(); } + /** Returns the builder for the settings used for calls to listUsable. */ + public PagedCallSettings.Builder< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return getStubSettingsBuilder().listUsableSettings(); + } + /** Returns the builder for the settings used for calls to patch. */ public UnaryCallSettings.Builder patchSettings() { return getStubSettingsBuilder().patchSettings(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java index 376e70934a9b..75250c8efdd6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java @@ -424,6 +424,25 @@ * * * + * + *

UpdateKmsKey + *

Rotates the customer-managed encryption key to the latest version for the specified persistent disk. + * + *

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

+ *
    + *
  • updateKmsKeyAsync(UpdateKmsKeyDiskRequest request) + *

+ *

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

+ *
    + *
  • updateKmsKeyAsync(String project, String zone, String disk, DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource) + *

+ *

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

+ *
    + *
  • updateKmsKeyOperationCallable() + *

  • updateKmsKeyCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -3067,6 +3086,151 @@ public final UnaryCallable updateCallable() { return stub.updateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (DisksClient disksClient = DisksClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String disk = "disk3083677";
+   *   DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource =
+   *       DiskUpdateKmsKeyRequest.newBuilder().build();
+   *   Operation response =
+   *       disksClient.updateKmsKeyAsync(project, zone, disk, diskUpdateKmsKeyRequestResource).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk Name of the Disk resource, should conform to RFC1035. + * @param diskUpdateKmsKeyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateKmsKeyAsync( + String project, + String zone, + String disk, + DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource) { + UpdateKmsKeyDiskRequest request = + UpdateKmsKeyDiskRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setDisk(disk) + .setDiskUpdateKmsKeyRequestResource(diskUpdateKmsKeyRequestResource) + .build(); + return updateKmsKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (DisksClient disksClient = DisksClient.create()) {
+   *   UpdateKmsKeyDiskRequest request =
+   *       UpdateKmsKeyDiskRequest.newBuilder()
+   *           .setDisk("disk3083677")
+   *           .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = disksClient.updateKmsKeyAsync(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 updateKmsKeyAsync( + UpdateKmsKeyDiskRequest request) { + return updateKmsKeyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (DisksClient disksClient = DisksClient.create()) {
+   *   UpdateKmsKeyDiskRequest request =
+   *       UpdateKmsKeyDiskRequest.newBuilder()
+   *           .setDisk("disk3083677")
+   *           .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       disksClient.updateKmsKeyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateKmsKeyOperationCallable() { + return stub.updateKmsKeyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (DisksClient disksClient = DisksClient.create()) {
+   *   UpdateKmsKeyDiskRequest request =
+   *       UpdateKmsKeyDiskRequest.newBuilder()
+   *           .setDisk("disk3083677")
+   *           .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future = disksClient.updateKmsKeyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateKmsKeyCallable() { + return stub.updateKmsKeyCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java index ce8676ce58d4..96fc8d951ded 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java @@ -289,6 +289,17 @@ public OperationCallSettings updateOper return ((DisksStubSettings) getStubSettings()).updateOperationSettings(); } + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return ((DisksStubSettings) getStubSettings()).updateKmsKeySettings(); + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return ((DisksStubSettings) getStubSettings()).updateKmsKeyOperationSettings(); + } + public static final DisksSettings create(DisksStubSettings stub) throws IOException { return new DisksSettings.Builder(stub.toBuilder()).build(); } @@ -567,6 +578,17 @@ public UnaryCallSettings.Builder updateSettings() return getStubSettingsBuilder().updateOperationSettings(); } + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder updateKmsKeySettings() { + return getStubSettingsBuilder().updateKmsKeySettings(); + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return getStubSettingsBuilder().updateKmsKeyOperationSettings(); + } + @Override public DisksSettings build() throws IOException { return new DisksSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java new file mode 100644 index 000000000000..11b314488e3b --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java @@ -0,0 +1,1261 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.InstantSnapshotGroupsStub; +import com.google.cloud.compute.v1.stub.InstantSnapshotGroupsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The InstantSnapshotGroups API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+ *     InstantSnapshotGroupsClient.create()) {
+ *   String project = "project-309310695";
+ *   String zone = "zone3744684";
+ *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+ *   InstantSnapshotGroup response =
+ *       instantSnapshotGroupsClient.get(project, zone, instantSnapshotGroup);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the InstantSnapshotGroupsClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Delete

deletes a Zonal InstantSnapshotGroup resource

+ *

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

+ *
    + *
  • deleteAsync(DeleteInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • deleteAsync(String project, String zone, String instantSnapshotGroup) + *

+ *

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

+ *
    + *
  • deleteOperationCallable() + *

  • deleteCallable() + *

+ *

Get

returns the specified InstantSnapshotGroup resource in the specified zone.

+ *

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

+ *
    + *
  • get(GetInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String zone, String instantSnapshotGroup) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicy(String project, String zone, String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

Insert

inserts a Zonal InstantSnapshotGroup resource

+ *

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

+ *
    + *
  • insertAsync(InsertInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • insertAsync(String project, String zone, InstantSnapshotGroup instantSnapshotGroupResource) + *

+ *

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

+ *
    + *
  • insertOperationCallable() + *

  • insertCallable() + *

+ *

List

retrieves the list of InstantSnapshotGroup resources contained within the specified zone.

+ *

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

+ *
    + *
  • list(ListInstantSnapshotGroupsRequest request) + *

+ *

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

+ *
    + *
  • list(String project, String zone) + *

+ *

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

+ *
    + *
  • listPagedCallable() + *

  • listCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicy(String project, String zone, String resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissions(String project, String zone, String resource, TestPermissionsRequest testPermissionsRequestResource) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of InstantSnapshotGroupsSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * InstantSnapshotGroupsSettings instantSnapshotGroupsSettings =
+ *     InstantSnapshotGroupsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+ *     InstantSnapshotGroupsClient.create(instantSnapshotGroupsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * InstantSnapshotGroupsSettings instantSnapshotGroupsSettings =
+ *     InstantSnapshotGroupsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+ *     InstantSnapshotGroupsClient.create(instantSnapshotGroupsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class InstantSnapshotGroupsClient implements BackgroundResource { + private final InstantSnapshotGroupsSettings settings; + private final InstantSnapshotGroupsStub stub; + + /** Constructs an instance of InstantSnapshotGroupsClient with default settings. */ + public static final InstantSnapshotGroupsClient create() throws IOException { + return create(InstantSnapshotGroupsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of InstantSnapshotGroupsClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final InstantSnapshotGroupsClient create(InstantSnapshotGroupsSettings settings) + throws IOException { + return new InstantSnapshotGroupsClient(settings); + } + + /** + * Constructs an instance of InstantSnapshotGroupsClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(InstantSnapshotGroupsSettings). + */ + public static final InstantSnapshotGroupsClient create(InstantSnapshotGroupsStub stub) { + return new InstantSnapshotGroupsClient(stub); + } + + /** + * Constructs an instance of InstantSnapshotGroupsClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected InstantSnapshotGroupsClient(InstantSnapshotGroupsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((InstantSnapshotGroupsStubSettings) settings.getStubSettings()).createStub(); + } + + protected InstantSnapshotGroupsClient(InstantSnapshotGroupsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final InstantSnapshotGroupsSettings getSettings() { + return settings; + } + + public InstantSnapshotGroupsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+   *   Operation response =
+   *       instantSnapshotGroupsClient.deleteAsync(project, zone, instantSnapshotGroup).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAsync( + String project, String zone, String instantSnapshotGroup) { + DeleteInstantSnapshotGroupRequest request = + DeleteInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstantSnapshotGroup(instantSnapshotGroup) + .build(); + return deleteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   DeleteInstantSnapshotGroupRequest request =
+   *       DeleteInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = instantSnapshotGroupsClient.deleteAsync(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 deleteAsync( + DeleteInstantSnapshotGroupRequest request) { + return deleteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   DeleteInstantSnapshotGroupRequest request =
+   *       DeleteInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       instantSnapshotGroupsClient.deleteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOperationCallable() { + return stub.deleteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   DeleteInstantSnapshotGroupRequest request =
+   *       DeleteInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.deleteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCallable() { + return stub.deleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * returns the specified InstantSnapshotGroup resource in the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+   *   InstantSnapshotGroup response =
+   *       instantSnapshotGroupsClient.get(project, zone, instantSnapshotGroup);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstantSnapshotGroup get(String project, String zone, String instantSnapshotGroup) { + GetInstantSnapshotGroupRequest request = + GetInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstantSnapshotGroup(instantSnapshotGroup) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * returns the specified InstantSnapshotGroup resource in the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   GetInstantSnapshotGroupRequest request =
+   *       GetInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   InstantSnapshotGroup response = instantSnapshotGroupsClient.get(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 InstantSnapshotGroup get(GetInstantSnapshotGroupRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * returns the specified InstantSnapshotGroup resource in the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   GetInstantSnapshotGroupRequest request =
+   *       GetInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   InstantSnapshotGroup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String resource = "resource-341064690";
+   *   Policy response = instantSnapshotGroupsClient.getIamPolicy(project, zone, resource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String project, String zone, String resource) { + GetIamPolicyInstantSnapshotGroupRequest request = + GetIamPolicyInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setResource(resource) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   GetIamPolicyInstantSnapshotGroupRequest request =
+   *       GetIamPolicyInstantSnapshotGroupRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setResource("resource-341064690")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Policy response = instantSnapshotGroupsClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyInstantSnapshotGroupRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   GetIamPolicyInstantSnapshotGroupRequest request =
+   *       GetIamPolicyInstantSnapshotGroupRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setResource("resource-341064690")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * inserts a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build();
+   *   Operation response =
+   *       instantSnapshotGroupsClient
+   *           .insertAsync(project, zone, instantSnapshotGroupResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param instantSnapshotGroupResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture insertAsync( + String project, String zone, InstantSnapshotGroup instantSnapshotGroupResource) { + InsertInstantSnapshotGroupRequest request = + InsertInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setInstantSnapshotGroupResource(instantSnapshotGroupResource) + .build(); + return insertAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * inserts a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   InsertInstantSnapshotGroupRequest request =
+   *       InsertInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = instantSnapshotGroupsClient.insertAsync(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 insertAsync( + InsertInstantSnapshotGroupRequest request) { + return insertOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * inserts a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   InsertInstantSnapshotGroupRequest request =
+   *       InsertInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       instantSnapshotGroupsClient.insertOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + insertOperationCallable() { + return stub.insertOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * inserts a Zonal InstantSnapshotGroup resource + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   InsertInstantSnapshotGroupRequest request =
+   *       InsertInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.insertCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable insertCallable() { + return stub.insertCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   for (InstantSnapshotGroup element :
+   *       instantSnapshotGroupsClient.list(project, zone).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String zone) { + ListInstantSnapshotGroupsRequest request = + ListInstantSnapshotGroupsRequest.newBuilder().setProject(project).setZone(zone).build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   ListInstantSnapshotGroupsRequest request =
+   *       ListInstantSnapshotGroupsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setZone("zone3744684")
+   *           .build();
+   *   for (InstantSnapshotGroup element : instantSnapshotGroupsClient.list(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 ListPagedResponse list(ListInstantSnapshotGroupsRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   ListInstantSnapshotGroupsRequest request =
+   *       ListInstantSnapshotGroupsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.listPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (InstantSnapshotGroup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   ListInstantSnapshotGroupsRequest request =
+   *       ListInstantSnapshotGroupsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setZone("zone3744684")
+   *           .build();
+   *   while (true) {
+   *     ListInstantSnapshotGroups response =
+   *         instantSnapshotGroupsClient.listCallable().call(request);
+   *     for (InstantSnapshotGroup element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCallable() { + return stub.listCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String resource = "resource-341064690";
+   *   ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
+   *   Policy response =
+   *       instantSnapshotGroupsClient.setIamPolicy(
+   *           project, zone, resource, zoneSetPolicyRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param zoneSetPolicyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy( + String project, + String zone, + String resource, + ZoneSetPolicyRequest zoneSetPolicyRequestResource) { + SetIamPolicyInstantSnapshotGroupRequest request = + SetIamPolicyInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setResource(resource) + .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource) + .build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   SetIamPolicyInstantSnapshotGroupRequest request =
+   *       SetIamPolicyInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setResource("resource-341064690")
+   *           .setZone("zone3744684")
+   *           .setZoneSetPolicyRequestResource(ZoneSetPolicyRequest.newBuilder().build())
+   *           .build();
+   *   Policy response = instantSnapshotGroupsClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyInstantSnapshotGroupRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   SetIamPolicyInstantSnapshotGroupRequest request =
+   *       SetIamPolicyInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setResource("resource-341064690")
+   *           .setZone("zone3744684")
+   *           .setZoneSetPolicyRequestResource(ZoneSetPolicyRequest.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String resource = "resource-341064690";
+   *   TestPermissionsRequest testPermissionsRequestResource =
+   *       TestPermissionsRequest.newBuilder().build();
+   *   TestPermissionsResponse response =
+   *       instantSnapshotGroupsClient.testIamPermissions(
+   *           project, zone, resource, testPermissionsRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param testPermissionsRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestPermissionsResponse testIamPermissions( + String project, + String zone, + String resource, + TestPermissionsRequest testPermissionsRequestResource) { + TestIamPermissionsInstantSnapshotGroupRequest request = + TestIamPermissionsInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setResource(resource) + .setTestPermissionsRequestResource(testPermissionsRequestResource) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   TestIamPermissionsInstantSnapshotGroupRequest request =
+   *       TestIamPermissionsInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   TestPermissionsResponse response = instantSnapshotGroupsClient.testIamPermissions(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 TestPermissionsResponse testIamPermissions( + TestIamPermissionsInstantSnapshotGroupRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+   *     InstantSnapshotGroupsClient.create()) {
+   *   TestIamPermissionsInstantSnapshotGroupRequest request =
+   *       TestIamPermissionsInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       instantSnapshotGroupsClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup, + ListPage, + ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage< + ListInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup, + ListPage> { + + private ListPage( + PageContext< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> + context, + ListInstantSnapshotGroups response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> + context, + ListInstantSnapshotGroups response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup, + ListPage, + ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java new file mode 100644 index 000000000000..dce1a92376ad --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java @@ -0,0 +1,326 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.InstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.InstantSnapshotGroupsStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link InstantSnapshotGroupsClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * InstantSnapshotGroupsSettings.Builder instantSnapshotGroupsSettingsBuilder =
+ *     InstantSnapshotGroupsSettings.newBuilder();
+ * instantSnapshotGroupsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         instantSnapshotGroupsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * InstantSnapshotGroupsSettings instantSnapshotGroupsSettings =
+ *     instantSnapshotGroupsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * InstantSnapshotGroupsSettings.Builder instantSnapshotGroupsSettingsBuilder =
+ *     InstantSnapshotGroupsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * instantSnapshotGroupsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class InstantSnapshotGroupsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).deleteSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).deleteOperationSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).insertSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).insertOperationSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).listSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((InstantSnapshotGroupsStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final InstantSnapshotGroupsSettings create(InstantSnapshotGroupsStubSettings stub) + throws IOException { + return new InstantSnapshotGroupsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantSnapshotGroupsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return InstantSnapshotGroupsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return InstantSnapshotGroupsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return InstantSnapshotGroupsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantSnapshotGroupsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return InstantSnapshotGroupsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return InstantSnapshotGroupsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected InstantSnapshotGroupsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for InstantSnapshotGroupsSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(InstantSnapshotGroupsStubSettings.newBuilder(clientContext)); + } + + protected Builder(InstantSnapshotGroupsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(InstantSnapshotGroupsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(InstantSnapshotGroupsStubSettings.newBuilder()); + } + + public InstantSnapshotGroupsStubSettings.Builder getStubSettingsBuilder() { + return ((InstantSnapshotGroupsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder + deleteSettings() { + return getStubSettingsBuilder().deleteSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return getStubSettingsBuilder().deleteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder + insertSettings() { + return getStubSettingsBuilder().insertSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return getStubSettingsBuilder().insertOperationSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public InstantSnapshotGroupsSettings build() throws IOException { + return new InstantSnapshotGroupsSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java new file mode 100644 index 000000000000..960f091393fb --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java @@ -0,0 +1,1670 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.RegionBackendBucketsStub; +import com.google.cloud.compute.v1.stub.RegionBackendBucketsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The RegionBackendBuckets API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (RegionBackendBucketsClient regionBackendBucketsClient =
+ *     RegionBackendBucketsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String backendBucket = "backendBucket713751966";
+ *   BackendBucket response = regionBackendBucketsClient.get(project, region, backendBucket);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the RegionBackendBucketsClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Delete

Deletes the specified regional BackendBucket resource.

+ *

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

+ *
    + *
  • deleteAsync(DeleteRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • deleteAsync(String project, String region, String backendBucket) + *

+ *

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

+ *
    + *
  • deleteOperationCallable() + *

  • deleteCallable() + *

+ *

Get

Returns the specified regional BackendBucket resource.

+ *

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

+ *
    + *
  • get(GetRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String region, String backendBucket) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicy(String project, String region, String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

Insert

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

+ *

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

+ *
    + *
  • insertAsync(InsertRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • insertAsync(String project, String region, BackendBucket backendBucketResource) + *

+ *

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

+ *
    + *
  • insertOperationCallable() + *

  • insertCallable() + *

+ *

List

Retrieves the list of BackendBucket resources available to the specified project in the given region.

+ *

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

+ *
    + *
  • list(ListRegionBackendBucketsRequest request) + *

+ *

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

+ *
    + *
  • list(String project, String region) + *

+ *

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

+ *
    + *
  • listPagedCallable() + *

  • listCallable() + *

+ *

ListUsable

Retrieves a list of all usable backend buckets in the specified project in the given region.

+ *

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

+ *
    + *
  • listUsable(ListUsableRegionBackendBucketsRequest request) + *

+ *

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

+ *
    + *
  • listUsable(String project, String region) + *

+ *

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

+ *
    + *
  • listUsablePagedCallable() + *

  • listUsableCallable() + *

+ *

Patch

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

+ *

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

+ *
    + *
  • patchAsync(PatchRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • patchAsync(String project, String region, String backendBucket, BackendBucket backendBucketResource) + *

+ *

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

+ *
    + *
  • patchOperationCallable() + *

  • patchCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicy(String project, String region, String resource, RegionSetPolicyRequest regionSetPolicyRequestResource) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRegionBackendBucketRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of RegionBackendBucketsSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * RegionBackendBucketsSettings regionBackendBucketsSettings =
+ *     RegionBackendBucketsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * RegionBackendBucketsClient regionBackendBucketsClient =
+ *     RegionBackendBucketsClient.create(regionBackendBucketsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * RegionBackendBucketsSettings regionBackendBucketsSettings =
+ *     RegionBackendBucketsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RegionBackendBucketsClient regionBackendBucketsClient =
+ *     RegionBackendBucketsClient.create(regionBackendBucketsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class RegionBackendBucketsClient implements BackgroundResource { + private final RegionBackendBucketsSettings settings; + private final RegionBackendBucketsStub stub; + + /** Constructs an instance of RegionBackendBucketsClient with default settings. */ + public static final RegionBackendBucketsClient create() throws IOException { + return create(RegionBackendBucketsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RegionBackendBucketsClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final RegionBackendBucketsClient create(RegionBackendBucketsSettings settings) + throws IOException { + return new RegionBackendBucketsClient(settings); + } + + /** + * Constructs an instance of RegionBackendBucketsClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(RegionBackendBucketsSettings). + */ + public static final RegionBackendBucketsClient create(RegionBackendBucketsStub stub) { + return new RegionBackendBucketsClient(stub); + } + + /** + * Constructs an instance of RegionBackendBucketsClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected RegionBackendBucketsClient(RegionBackendBucketsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((RegionBackendBucketsStubSettings) settings.getStubSettings()).createStub(); + } + + protected RegionBackendBucketsClient(RegionBackendBucketsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RegionBackendBucketsSettings getSettings() { + return settings; + } + + public RegionBackendBucketsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String backendBucket = "backendBucket713751966";
+   *   Operation response =
+   *       regionBackendBucketsClient.deleteAsync(project, region, backendBucket).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAsync( + String project, String region, String backendBucket) { + DeleteRegionBackendBucketRequest request = + DeleteRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setBackendBucket(backendBucket) + .build(); + return deleteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   DeleteRegionBackendBucketRequest request =
+   *       DeleteRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Operation response = regionBackendBucketsClient.deleteAsync(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 deleteAsync( + DeleteRegionBackendBucketRequest request) { + return deleteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   DeleteRegionBackendBucketRequest request =
+   *       DeleteRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       regionBackendBucketsClient.deleteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOperationCallable() { + return stub.deleteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   DeleteRegionBackendBucketRequest request =
+   *       DeleteRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = regionBackendBucketsClient.deleteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCallable() { + return stub.deleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String backendBucket = "backendBucket713751966";
+   *   BackendBucket response = regionBackendBucketsClient.get(project, region, backendBucket);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackendBucket get(String project, String region, String backendBucket) { + GetRegionBackendBucketRequest request = + GetRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setBackendBucket(backendBucket) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   GetRegionBackendBucketRequest request =
+   *       GetRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   BackendBucket response = regionBackendBucketsClient.get(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 BackendBucket get(GetRegionBackendBucketRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified regional BackendBucket resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   GetRegionBackendBucketRequest request =
+   *       GetRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   ApiFuture future =
+   *       regionBackendBucketsClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   BackendBucket response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   Policy response = regionBackendBucketsClient.getIamPolicy(project, region, resource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String project, String region, String resource) { + GetIamPolicyRegionBackendBucketRequest request = + GetIamPolicyRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   GetIamPolicyRegionBackendBucketRequest request =
+   *       GetIamPolicyRegionBackendBucketRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Policy response = regionBackendBucketsClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRegionBackendBucketRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   GetIamPolicyRegionBackendBucketRequest request =
+   *       GetIamPolicyRegionBackendBucketRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future =
+   *       regionBackendBucketsClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RegionBackendBucket in the specified project in the given scope using the parameters + * that are included in the request. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
+   *   Operation response =
+   *       regionBackendBucketsClient.insertAsync(project, region, backendBucketResource).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param backendBucketResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture insertAsync( + String project, String region, BackendBucket backendBucketResource) { + InsertRegionBackendBucketRequest request = + InsertRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setBackendBucketResource(backendBucketResource) + .build(); + return insertAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RegionBackendBucket in the specified project in the given scope using the parameters + * that are included in the request. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   InsertRegionBackendBucketRequest request =
+   *       InsertRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucketResource(BackendBucket.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Operation response = regionBackendBucketsClient.insertAsync(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 insertAsync( + InsertRegionBackendBucketRequest request) { + return insertOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RegionBackendBucket in the specified project in the given scope using the parameters + * that are included in the request. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   InsertRegionBackendBucketRequest request =
+   *       InsertRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucketResource(BackendBucket.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       regionBackendBucketsClient.insertOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + insertOperationCallable() { + return stub.insertOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a RegionBackendBucket in the specified project in the given scope using the parameters + * that are included in the request. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   InsertRegionBackendBucketRequest request =
+   *       InsertRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucketResource(BackendBucket.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = regionBackendBucketsClient.insertCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable insertCallable() { + return stub.insertCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   for (BackendBucket element : regionBackendBucketsClient.list(project, region).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String region) { + ListRegionBackendBucketsRequest request = + ListRegionBackendBucketsRequest.newBuilder().setProject(project).setRegion(region).build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   ListRegionBackendBucketsRequest request =
+   *       ListRegionBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   for (BackendBucket element : regionBackendBucketsClient.list(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 ListPagedResponse list(ListRegionBackendBucketsRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   ListRegionBackendBucketsRequest request =
+   *       ListRegionBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   ApiFuture future =
+   *       regionBackendBucketsClient.listPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BackendBucket element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   ListRegionBackendBucketsRequest request =
+   *       ListRegionBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   while (true) {
+   *     BackendBucketList response = regionBackendBucketsClient.listCallable().call(request);
+   *     for (BackendBucket element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listCallable() { + return stub.listCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project in the given 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   for (BackendBucket element :
+   *       regionBackendBucketsClient.listUsable(project, region).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. It must be a string that meets the + * requirements in RFC1035. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsablePagedResponse listUsable(String project, String region) { + ListUsableRegionBackendBucketsRequest request = + ListUsableRegionBackendBucketsRequest.newBuilder() + .setProject(project) + .setRegion(region) + .build(); + return listUsable(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project in the given 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   ListUsableRegionBackendBucketsRequest request =
+   *       ListUsableRegionBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   for (BackendBucket element : regionBackendBucketsClient.listUsable(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 ListUsablePagedResponse listUsable(ListUsableRegionBackendBucketsRequest request) { + return listUsablePagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project in the given 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   ListUsableRegionBackendBucketsRequest request =
+   *       ListUsableRegionBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   ApiFuture future =
+   *       regionBackendBucketsClient.listUsablePagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BackendBucket element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsablePagedCallable() { + return stub.listUsablePagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of all usable backend buckets in the specified project in the given 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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   ListUsableRegionBackendBucketsRequest request =
+   *       ListUsableRegionBackendBucketsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   while (true) {
+   *     BackendBucketListUsable response =
+   *         regionBackendBucketsClient.listUsableCallable().call(request);
+   *     for (BackendBucket element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsableCallable() { + return stub.listUsableCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String backendBucket = "backendBucket713751966";
+   *   BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
+   *   Operation response =
+   *       regionBackendBucketsClient
+   *           .patchAsync(project, region, backendBucket, backendBucketResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param backendBucketResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture patchAsync( + String project, String region, String backendBucket, BackendBucket backendBucketResource) { + PatchRegionBackendBucketRequest request = + PatchRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setBackendBucket(backendBucket) + .setBackendBucketResource(backendBucketResource) + .build(); + return patchAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   PatchRegionBackendBucketRequest request =
+   *       PatchRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setBackendBucketResource(BackendBucket.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Operation response = regionBackendBucketsClient.patchAsync(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 patchAsync( + PatchRegionBackendBucketRequest request) { + return patchOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   PatchRegionBackendBucketRequest request =
+   *       PatchRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setBackendBucketResource(BackendBucket.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       regionBackendBucketsClient.patchOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + patchOperationCallable() { + return stub.patchOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   PatchRegionBackendBucketRequest request =
+   *       PatchRegionBackendBucketRequest.newBuilder()
+   *           .setBackendBucket("backendBucket713751966")
+   *           .setBackendBucketResource(BackendBucket.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = regionBackendBucketsClient.patchCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable patchCallable() { + return stub.patchCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   RegionSetPolicyRequest regionSetPolicyRequestResource =
+   *       RegionSetPolicyRequest.newBuilder().build();
+   *   Policy response =
+   *       regionBackendBucketsClient.setIamPolicy(
+   *           project, region, resource, regionSetPolicyRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param regionSetPolicyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy( + String project, + String region, + String resource, + RegionSetPolicyRequest regionSetPolicyRequestResource) { + SetIamPolicyRegionBackendBucketRequest request = + SetIamPolicyRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setRegionSetPolicyRequestResource(regionSetPolicyRequestResource) + .build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   SetIamPolicyRegionBackendBucketRequest request =
+   *       SetIamPolicyRegionBackendBucketRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build())
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Policy response = regionBackendBucketsClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRegionBackendBucketRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   SetIamPolicyRegionBackendBucketRequest request =
+   *       SetIamPolicyRegionBackendBucketRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build())
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future =
+   *       regionBackendBucketsClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   TestPermissionsRequest testPermissionsRequestResource =
+   *       TestPermissionsRequest.newBuilder().build();
+   *   TestPermissionsResponse response =
+   *       regionBackendBucketsClient.testIamPermissions(
+   *           project, region, resource, testPermissionsRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param testPermissionsRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestPermissionsResponse testIamPermissions( + String project, + String region, + String resource, + TestPermissionsRequest testPermissionsRequestResource) { + TestIamPermissionsRegionBackendBucketRequest request = + TestIamPermissionsRegionBackendBucketRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setTestPermissionsRequestResource(testPermissionsRequestResource) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   TestIamPermissionsRegionBackendBucketRequest request =
+   *       TestIamPermissionsRegionBackendBucketRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .build();
+   *   TestPermissionsResponse response = regionBackendBucketsClient.testIamPermissions(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 TestPermissionsResponse testIamPermissions( + TestIamPermissionsRegionBackendBucketRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionBackendBucketsClient regionBackendBucketsClient =
+   *     RegionBackendBucketsClient.create()) {
+   *   TestIamPermissionsRegionBackendBucketRequest request =
+   *       TestIamPermissionsRegionBackendBucketRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       regionBackendBucketsClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListRegionBackendBucketsRequest, + BackendBucketList, + BackendBucket, + ListPage, + ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage< + ListRegionBackendBucketsRequest, BackendBucketList, BackendBucket, ListPage> { + + private ListPage( + PageContext context, + BackendBucketList response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext context, + BackendBucketList response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRegionBackendBucketsRequest, + BackendBucketList, + BackendBucket, + ListPage, + ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListUsablePagedResponse + extends AbstractPagedListResponse< + ListUsableRegionBackendBucketsRequest, + BackendBucketListUsable, + BackendBucket, + ListUsablePage, + ListUsableFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsablePage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListUsablePagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListUsablePagedResponse(ListUsablePage page) { + super(page, ListUsableFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsablePage + extends AbstractPage< + ListUsableRegionBackendBucketsRequest, + BackendBucketListUsable, + BackendBucket, + ListUsablePage> { + + private ListUsablePage( + PageContext + context, + BackendBucketListUsable response) { + super(context, response); + } + + private static ListUsablePage createEmptyPage() { + return new ListUsablePage(null, null); + } + + @Override + protected ListUsablePage createPage( + PageContext + context, + BackendBucketListUsable response) { + return new ListUsablePage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableRegionBackendBucketsRequest, + BackendBucketListUsable, + BackendBucket, + ListUsablePage, + ListUsableFixedSizeCollection> { + + private ListUsableFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableFixedSizeCollection createEmptyCollection() { + return new ListUsableFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java new file mode 100644 index 000000000000..55c84d40a7c7 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java @@ -0,0 +1,359 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListUsablePagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.RegionBackendBucketsStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionBackendBucketsClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionBackendBucketsSettings.Builder regionBackendBucketsSettingsBuilder =
+ *     RegionBackendBucketsSettings.newBuilder();
+ * regionBackendBucketsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionBackendBucketsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionBackendBucketsSettings regionBackendBucketsSettings =
+ *     regionBackendBucketsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * RegionBackendBucketsSettings.Builder regionBackendBucketsSettingsBuilder =
+ *     RegionBackendBucketsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionBackendBucketsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class RegionBackendBucketsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).deleteSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).deleteOperationSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).insertSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).insertOperationSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings + listSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).listSettings(); + } + + /** Returns the object with the settings used for calls to listUsable. */ + public PagedCallSettings< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).listUsableSettings(); + } + + /** Returns the object with the settings used for calls to patch. */ + public UnaryCallSettings patchSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).patchSettings(); + } + + /** Returns the object with the settings used for calls to patch. */ + public OperationCallSettings + patchOperationSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).patchOperationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((RegionBackendBucketsStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final RegionBackendBucketsSettings create(RegionBackendBucketsStubSettings stub) + throws IOException { + return new RegionBackendBucketsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RegionBackendBucketsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RegionBackendBucketsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RegionBackendBucketsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RegionBackendBucketsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RegionBackendBucketsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RegionBackendBucketsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RegionBackendBucketsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionBackendBucketsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for RegionBackendBucketsSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(RegionBackendBucketsStubSettings.newBuilder(clientContext)); + } + + protected Builder(RegionBackendBucketsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RegionBackendBucketsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(RegionBackendBucketsStubSettings.newBuilder()); + } + + public RegionBackendBucketsStubSettings.Builder getStubSettingsBuilder() { + return ((RegionBackendBucketsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder deleteSettings() { + return getStubSettingsBuilder().deleteSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return getStubSettingsBuilder().deleteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder insertSettings() { + return getStubSettingsBuilder().insertSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return getStubSettingsBuilder().insertOperationSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListRegionBackendBucketsRequest, BackendBucketList, ListPagedResponse> + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + /** Returns the builder for the settings used for calls to listUsable. */ + public PagedCallSettings.Builder< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return getStubSettingsBuilder().listUsableSettings(); + } + + /** Returns the builder for the settings used for calls to patch. */ + public UnaryCallSettings.Builder patchSettings() { + return getStubSettingsBuilder().patchSettings(); + } + + /** Returns the builder for the settings used for calls to patch. */ + public OperationCallSettings.Builder + patchOperationSettings() { + return getStubSettingsBuilder().patchOperationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsRegionBackendBucketRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public RegionBackendBucketsSettings build() throws IOException { + return new RegionBackendBucketsSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java index 0e6d0f76bb61..173b0f0a9e38 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java @@ -127,6 +127,24 @@ * * * + *

GetHealth + *

Gets the most recent health check results for this regional CompositeHealthCheck. + * + *

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

+ *
    + *
  • getHealth(GetHealthRegionCompositeHealthCheckRequest request) + *

+ *

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

+ *
    + *
  • getHealth(String project, String region, String compositeHealthCheck) + *

+ *

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

+ *
    + *
  • getHealthCallable() + *

+ * + * + * *

Insert *

Create a CompositeHealthCheck in the specified project in the given region using the parameters that are included in the request. * @@ -710,6 +728,108 @@ public final CompositeHealthCheck get(GetRegionCompositeHealthCheckRequest reque return stub.getCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the most recent health check results for this regional CompositeHealthCheck. + * + *

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 (RegionCompositeHealthChecksClient regionCompositeHealthChecksClient =
+   *     RegionCompositeHealthChecksClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String compositeHealthCheck = "compositeHealthCheck-1727645947";
+   *   CompositeHealthCheckHealth response =
+   *       regionCompositeHealthChecksClient.getHealth(project, region, compositeHealthCheck);
+   * }
+   * }
+ * + * @param project Name of the project scoping this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to get health for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CompositeHealthCheckHealth getHealth( + String project, String region, String compositeHealthCheck) { + GetHealthRegionCompositeHealthCheckRequest request = + GetHealthRegionCompositeHealthCheckRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setCompositeHealthCheck(compositeHealthCheck) + .build(); + return getHealth(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the most recent health check results for this regional CompositeHealthCheck. + * + *

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 (RegionCompositeHealthChecksClient regionCompositeHealthChecksClient =
+   *     RegionCompositeHealthChecksClient.create()) {
+   *   GetHealthRegionCompositeHealthCheckRequest request =
+   *       GetHealthRegionCompositeHealthCheckRequest.newBuilder()
+   *           .setCompositeHealthCheck("compositeHealthCheck-1727645947")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   CompositeHealthCheckHealth response = regionCompositeHealthChecksClient.getHealth(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 CompositeHealthCheckHealth getHealth( + GetHealthRegionCompositeHealthCheckRequest request) { + return getHealthCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the most recent health check results for this regional CompositeHealthCheck. + * + *

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 (RegionCompositeHealthChecksClient regionCompositeHealthChecksClient =
+   *     RegionCompositeHealthChecksClient.create()) {
+   *   GetHealthRegionCompositeHealthCheckRequest request =
+   *       GetHealthRegionCompositeHealthCheckRequest.newBuilder()
+   *           .setCompositeHealthCheck("compositeHealthCheck-1727645947")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   ApiFuture future =
+   *       regionCompositeHealthChecksClient.getHealthCallable().futureCall(request);
+   *   // Do something.
+   *   CompositeHealthCheckHealth response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getHealthCallable() { + return stub.getHealthCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create a CompositeHealthCheck in the specified project in the given region using the parameters diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java index bfc069e3c90c..8ab4b5417072 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java @@ -142,6 +142,12 @@ public UnaryCallSettings del return ((RegionCompositeHealthChecksStubSettings) getStubSettings()).getSettings(); } + /** Returns the object with the settings used for calls to getHealth. */ + public UnaryCallSettings + getHealthSettings() { + return ((RegionCompositeHealthChecksStubSettings) getStubSettings()).getHealthSettings(); + } + /** Returns the object with the settings used for calls to insert. */ public UnaryCallSettings insertSettings() { return ((RegionCompositeHealthChecksStubSettings) getStubSettings()).insertSettings(); @@ -305,6 +311,13 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().getSettings(); } + /** Returns the builder for the settings used for calls to getHealth. */ + public UnaryCallSettings.Builder< + GetHealthRegionCompositeHealthCheckRequest, CompositeHealthCheckHealth> + getHealthSettings() { + return getStubSettingsBuilder().getHealthSettings(); + } + /** Returns the builder for the settings used for calls to insert. */ public UnaryCallSettings.Builder insertSettings() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java index 97f999a82541..ce409c246b04 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java @@ -384,6 +384,25 @@ * * * + * + *

UpdateKmsKey + *

Rotates the customer-managed encryption key to the latest version for the specified persistent disk. + * + *

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

+ *
    + *
  • updateKmsKeyAsync(UpdateKmsKeyRegionDiskRequest request) + *

+ *

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

+ *
    + *
  • updateKmsKeyAsync(String project, String region, String disk, RegionDiskUpdateKmsKeyRequest regionDiskUpdateKmsKeyRequestResource) + *

+ *

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

+ *
    + *
  • updateKmsKeyOperationCallable() + *

  • updateKmsKeyCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -2739,6 +2758,156 @@ public final UnaryCallable updateCallable() return stub.updateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String disk = "disk3083677";
+   *   RegionDiskUpdateKmsKeyRequest regionDiskUpdateKmsKeyRequestResource =
+   *       RegionDiskUpdateKmsKeyRequest.newBuilder().build();
+   *   Operation response =
+   *       regionDisksClient
+   *           .updateKmsKeyAsync(project, region, disk, regionDiskUpdateKmsKeyRequestResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk Name of the Disk resource, should conform to RFC1035. + * @param regionDiskUpdateKmsKeyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateKmsKeyAsync( + String project, + String region, + String disk, + RegionDiskUpdateKmsKeyRequest regionDiskUpdateKmsKeyRequestResource) { + UpdateKmsKeyRegionDiskRequest request = + UpdateKmsKeyRegionDiskRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setDisk(disk) + .setRegionDiskUpdateKmsKeyRequestResource(regionDiskUpdateKmsKeyRequestResource) + .build(); + return updateKmsKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+   *   UpdateKmsKeyRegionDiskRequest request =
+   *       UpdateKmsKeyRegionDiskRequest.newBuilder()
+   *           .setDisk("disk3083677")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionDiskUpdateKmsKeyRequestResource(
+   *               RegionDiskUpdateKmsKeyRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Operation response = regionDisksClient.updateKmsKeyAsync(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 updateKmsKeyAsync( + UpdateKmsKeyRegionDiskRequest request) { + return updateKmsKeyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+   *   UpdateKmsKeyRegionDiskRequest request =
+   *       UpdateKmsKeyRegionDiskRequest.newBuilder()
+   *           .setDisk("disk3083677")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionDiskUpdateKmsKeyRequestResource(
+   *               RegionDiskUpdateKmsKeyRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       regionDisksClient.updateKmsKeyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateKmsKeyOperationCallable() { + return stub.updateKmsKeyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + *

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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+   *   UpdateKmsKeyRegionDiskRequest request =
+   *       UpdateKmsKeyRegionDiskRequest.newBuilder()
+   *           .setDisk("disk3083677")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionDiskUpdateKmsKeyRequestResource(
+   *               RegionDiskUpdateKmsKeyRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = regionDisksClient.updateKmsKeyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateKmsKeyCallable() { + return stub.updateKmsKeyCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java index c7d0a86649db..0e08b3404542 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java @@ -275,6 +275,17 @@ public UnaryCallSettings updateSettings() { return ((RegionDisksStubSettings) getStubSettings()).updateOperationSettings(); } + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return ((RegionDisksStubSettings) getStubSettings()).updateKmsKeySettings(); + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return ((RegionDisksStubSettings) getStubSettings()).updateKmsKeyOperationSettings(); + } + public static final RegionDisksSettings create(RegionDisksStubSettings stub) throws IOException { return new RegionDisksSettings.Builder(stub.toBuilder()).build(); } @@ -540,6 +551,18 @@ public UnaryCallSettings.Builder updateSetti return getStubSettingsBuilder().updateOperationSettings(); } + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder + updateKmsKeySettings() { + return getStubSettingsBuilder().updateKmsKeySettings(); + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return getStubSettingsBuilder().updateKmsKeyOperationSettings(); + } + @Override public RegionDisksSettings build() throws IOException { return new RegionDisksSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java index 1f0edfd9dabc..ceb70e53400d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java @@ -125,6 +125,24 @@ * * * + *

GetHealth + *

Gets the most recent health check results for this regional HealthSource. + * + *

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

+ *
    + *
  • getHealth(GetHealthRegionHealthSourceRequest request) + *

+ *

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

+ *
    + *
  • getHealth(String project, String region, String healthSource) + *

+ *

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

+ *
    + *
  • getHealthCallable() + *

+ * + * + * *

Insert *

Create a HealthSource in the specified project in the given region using the parameters that are included in the request. * @@ -685,6 +703,103 @@ public final UnaryCallable getCallab return stub.getCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the most recent health check results for this regional HealthSource. + * + *

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 (RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String healthSource = "healthSource513679767";
+   *   HealthSourceHealth response =
+   *       regionHealthSourcesClient.getHealth(project, region, healthSource);
+   * }
+   * }
+ * + * @param project Name of the project scoping this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to get health for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HealthSourceHealth getHealth(String project, String region, String healthSource) { + GetHealthRegionHealthSourceRequest request = + GetHealthRegionHealthSourceRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setHealthSource(healthSource) + .build(); + return getHealth(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the most recent health check results for this regional HealthSource. + * + *

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 (RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.create()) {
+   *   GetHealthRegionHealthSourceRequest request =
+   *       GetHealthRegionHealthSourceRequest.newBuilder()
+   *           .setHealthSource("healthSource513679767")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   HealthSourceHealth response = regionHealthSourcesClient.getHealth(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 HealthSourceHealth getHealth(GetHealthRegionHealthSourceRequest request) { + return getHealthCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the most recent health check results for this regional HealthSource. + * + *

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 (RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.create()) {
+   *   GetHealthRegionHealthSourceRequest request =
+   *       GetHealthRegionHealthSourceRequest.newBuilder()
+   *           .setHealthSource("healthSource513679767")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   ApiFuture future =
+   *       regionHealthSourcesClient.getHealthCallable().futureCall(request);
+   *   // Do something.
+   *   HealthSourceHealth response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getHealthCallable() { + return stub.getHealthCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Create a HealthSource in the specified project in the given region using the parameters that diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java index e96dbd1cf83d..e87950d34f38 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java @@ -140,6 +140,12 @@ public UnaryCallSettings getSettings return ((RegionHealthSourcesStubSettings) getStubSettings()).getSettings(); } + /** Returns the object with the settings used for calls to getHealth. */ + public UnaryCallSettings + getHealthSettings() { + return ((RegionHealthSourcesStubSettings) getStubSettings()).getHealthSettings(); + } + /** Returns the object with the settings used for calls to insert. */ public UnaryCallSettings insertSettings() { return ((RegionHealthSourcesStubSettings) getStubSettings()).insertSettings(); @@ -296,6 +302,12 @@ public UnaryCallSettings.Builder get return getStubSettingsBuilder().getSettings(); } + /** Returns the builder for the settings used for calls to getHealth. */ + public UnaryCallSettings.Builder + getHealthSettings() { + return getStubSettingsBuilder().getHealthSettings(); + } + /** Returns the builder for the settings used for calls to insert. */ public UnaryCallSettings.Builder insertSettings() { return getStubSettingsBuilder().insertSettings(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java new file mode 100644 index 000000000000..ed03d471eb3b --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java @@ -0,0 +1,1164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerResizeRequestsStub; +import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerResizeRequestsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The RegionInstanceGroupManagerResizeRequests API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (RegionInstanceGroupManagerResizeRequestsClient
+ *     regionInstanceGroupManagerResizeRequestsClient =
+ *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String instanceGroupManager = "instanceGroupManager-388242077";
+ *   String resizeRequest = "resizeRequest-1656358085";
+ *   InstanceGroupManagerResizeRequest response =
+ *       regionInstanceGroupManagerResizeRequestsClient.get(
+ *           project, region, instanceGroupManager, resizeRequest);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the RegionInstanceGroupManagerResizeRequestsClient object + * to clean up resources such as threads. In the example above, try-with-resources is used, which + * automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Cancel

Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state.

+ *

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

+ *
    + *
  • cancelAsync(CancelRegionInstanceGroupManagerResizeRequestRequest request) + *

+ *

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

+ *
    + *
  • cancelAsync(String project, String region, String instanceGroupManager, String resizeRequest) + *

+ *

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

+ *
    + *
  • cancelOperationCallable() + *

  • cancelCallable() + *

+ *

Delete

Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.

+ *

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

+ *
    + *
  • deleteAsync(DeleteRegionInstanceGroupManagerResizeRequestRequest request) + *

+ *

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

+ *
    + *
  • deleteAsync(String project, String region, String instanceGroupManager, String resizeRequest) + *

+ *

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

+ *
    + *
  • deleteOperationCallable() + *

  • deleteCallable() + *

+ *

Get

Returns all of the details about the specified resize request.

+ *

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

+ *
    + *
  • get(GetRegionInstanceGroupManagerResizeRequestRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String region, String instanceGroupManager, String resizeRequest) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

Insert

Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation.

+ *

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

+ *
    + *
  • insertAsync(InsertRegionInstanceGroupManagerResizeRequestRequest request) + *

+ *

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

+ *
    + *
  • insertAsync(String project, String region, String instanceGroupManager, InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource) + *

+ *

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

+ *
    + *
  • insertOperationCallable() + *

  • insertCallable() + *

+ *

List

Retrieves a list of Resize Requests that are contained in the managed instance group.

+ *

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

+ *
    + *
  • list(ListRegionInstanceGroupManagerResizeRequestsRequest request) + *

+ *

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

+ *
    + *
  • list(String project, String region, String instanceGroupManager) + *

+ *

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

+ *
    + *
  • listPagedCallable() + *

  • listCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * RegionInstanceGroupManagerResizeRequestsSettings to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * RegionInstanceGroupManagerResizeRequestsSettings
+ *     regionInstanceGroupManagerResizeRequestsSettings =
+ *         RegionInstanceGroupManagerResizeRequestsSettings.newBuilder()
+ *             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *             .build();
+ * RegionInstanceGroupManagerResizeRequestsClient regionInstanceGroupManagerResizeRequestsClient =
+ *     RegionInstanceGroupManagerResizeRequestsClient.create(
+ *         regionInstanceGroupManagerResizeRequestsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * RegionInstanceGroupManagerResizeRequestsSettings
+ *     regionInstanceGroupManagerResizeRequestsSettings =
+ *         RegionInstanceGroupManagerResizeRequestsSettings.newBuilder()
+ *             .setEndpoint(myEndpoint)
+ *             .build();
+ * RegionInstanceGroupManagerResizeRequestsClient regionInstanceGroupManagerResizeRequestsClient =
+ *     RegionInstanceGroupManagerResizeRequestsClient.create(
+ *         regionInstanceGroupManagerResizeRequestsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class RegionInstanceGroupManagerResizeRequestsClient implements BackgroundResource { + private final RegionInstanceGroupManagerResizeRequestsSettings settings; + private final RegionInstanceGroupManagerResizeRequestsStub stub; + + /** + * Constructs an instance of RegionInstanceGroupManagerResizeRequestsClient with default settings. + */ + public static final RegionInstanceGroupManagerResizeRequestsClient create() throws IOException { + return create(RegionInstanceGroupManagerResizeRequestsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RegionInstanceGroupManagerResizeRequestsClient, using the given + * settings. The channels are created based on the settings passed in, or defaults for any + * settings that are not set. + */ + public static final RegionInstanceGroupManagerResizeRequestsClient create( + RegionInstanceGroupManagerResizeRequestsSettings settings) throws IOException { + return new RegionInstanceGroupManagerResizeRequestsClient(settings); + } + + /** + * Constructs an instance of RegionInstanceGroupManagerResizeRequestsClient, using the given stub + * for making calls. This is for advanced usage - prefer using + * create(RegionInstanceGroupManagerResizeRequestsSettings). + */ + public static final RegionInstanceGroupManagerResizeRequestsClient create( + RegionInstanceGroupManagerResizeRequestsStub stub) { + return new RegionInstanceGroupManagerResizeRequestsClient(stub); + } + + /** + * Constructs an instance of RegionInstanceGroupManagerResizeRequestsClient, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected RegionInstanceGroupManagerResizeRequestsClient( + RegionInstanceGroupManagerResizeRequestsSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((RegionInstanceGroupManagerResizeRequestsStubSettings) settings.getStubSettings()) + .createStub(); + } + + protected RegionInstanceGroupManagerResizeRequestsClient( + RegionInstanceGroupManagerResizeRequestsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RegionInstanceGroupManagerResizeRequestsSettings getSettings() { + return settings; + } + + public RegionInstanceGroupManagerResizeRequestsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified resize request. Cancelled resize request no longer waits for the + * resources to be provisioned. Cancel is only possible for requests that are in accepted state. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instanceGroupManager = "instanceGroupManager-388242077";
+   *   String resizeRequest = "resizeRequest-1656358085";
+   *   Operation response =
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .cancelAsync(project, region, instanceGroupManager, resizeRequest)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. Name should conform to + * RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. Name should conform to RFC1035 + * or be a resource ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cancelAsync( + String project, String region, String instanceGroupManager, String resizeRequest) { + CancelRegionInstanceGroupManagerResizeRequestRequest request = + CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setResizeRequest(resizeRequest) + .build(); + return cancelAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified resize request. Cancelled resize request no longer waits for the + * resources to be provisioned. Cancel is only possible for requests that are in accepted state. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   CancelRegionInstanceGroupManagerResizeRequestRequest request =
+   *       CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   Operation response =
+   *       regionInstanceGroupManagerResizeRequestsClient.cancelAsync(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 cancelAsync( + CancelRegionInstanceGroupManagerResizeRequestRequest request) { + return cancelOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified resize request. Cancelled resize request no longer waits for the + * resources to be provisioned. Cancel is only possible for requests that are in accepted state. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   CancelRegionInstanceGroupManagerResizeRequestRequest request =
+   *       CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   OperationFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .cancelOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationCallable() { + return stub.cancelOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified resize request. Cancelled resize request no longer waits for the + * resources to be provisioned. Cancel is only possible for requests that are in accepted state. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   CancelRegionInstanceGroupManagerResizeRequestRequest request =
+   *       CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient.cancelCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + cancelCallable() { + return stub.cancelCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instanceGroupManager = "instanceGroupManager-388242077";
+   *   String resizeRequest = "resizeRequest-1656358085";
+   *   Operation response =
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .deleteAsync(project, region, instanceGroupManager, resizeRequest)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. Name should conform to + * RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. Name should conform to RFC1035 + * or be a resource ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAsync( + String project, String region, String instanceGroupManager, String resizeRequest) { + DeleteRegionInstanceGroupManagerResizeRequestRequest request = + DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setResizeRequest(resizeRequest) + .build(); + return deleteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   DeleteRegionInstanceGroupManagerResizeRequestRequest request =
+   *       DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   Operation response =
+   *       regionInstanceGroupManagerResizeRequestsClient.deleteAsync(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 deleteAsync( + DeleteRegionInstanceGroupManagerResizeRequestRequest request) { + return deleteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   DeleteRegionInstanceGroupManagerResizeRequestRequest request =
+   *       DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   OperationFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .deleteOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationCallable() { + return stub.deleteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   DeleteRegionInstanceGroupManagerResizeRequestRequest request =
+   *       DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient.deleteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCallable() { + return stub.deleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all of the details about the specified resize request. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instanceGroupManager = "instanceGroupManager-388242077";
+   *   String resizeRequest = "resizeRequest-1656358085";
+   *   InstanceGroupManagerResizeRequest response =
+   *       regionInstanceGroupManagerResizeRequestsClient.get(
+   *           project, region, instanceGroupManager, resizeRequest);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. Name should conform to + * RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. Name should conform to RFC1035 or be a + * resource ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstanceGroupManagerResizeRequest get( + String project, String region, String instanceGroupManager, String resizeRequest) { + GetRegionInstanceGroupManagerResizeRequestRequest request = + GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setResizeRequest(resizeRequest) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all of the details about the specified resize request. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   GetRegionInstanceGroupManagerResizeRequestRequest request =
+   *       GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   InstanceGroupManagerResizeRequest response =
+   *       regionInstanceGroupManagerResizeRequestsClient.get(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 InstanceGroupManagerResizeRequest get( + GetRegionInstanceGroupManagerResizeRequestRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all of the details about the specified resize request. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   GetRegionInstanceGroupManagerResizeRequestRequest request =
+   *       GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResizeRequest("resizeRequest-1656358085")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   InstanceGroupManagerResizeRequest response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instanceGroupManager = "instanceGroupManager-388242077";
+   *   InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource =
+   *       InstanceGroupManagerResizeRequest.newBuilder().build();
+   *   Operation response =
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .insertAsync(
+   *               project, region, instanceGroupManager, instanceGroupManagerResizeRequestResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group to which the resize request is + * scoped. Name should conform to RFC1035 or be a resource ID. + * @param instanceGroupManagerResizeRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture insertAsync( + String project, + String region, + String instanceGroupManager, + InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource) { + InsertRegionInstanceGroupManagerResizeRequestRequest request = + InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .setInstanceGroupManagerResizeRequestResource(instanceGroupManagerResizeRequestResource) + .build(); + return insertAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   InsertRegionInstanceGroupManagerResizeRequestRequest request =
+   *       InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setInstanceGroupManagerResizeRequestResource(
+   *               InstanceGroupManagerResizeRequest.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Operation response =
+   *       regionInstanceGroupManagerResizeRequestsClient.insertAsync(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 insertAsync( + InsertRegionInstanceGroupManagerResizeRequestRequest request) { + return insertOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   InsertRegionInstanceGroupManagerResizeRequestRequest request =
+   *       InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setInstanceGroupManagerResizeRequestResource(
+   *               InstanceGroupManagerResizeRequest.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .insertOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationCallable() { + return stub.insertOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   InsertRegionInstanceGroupManagerResizeRequestRequest request =
+   *       InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder()
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setInstanceGroupManagerResizeRequestResource(
+   *               InstanceGroupManagerResizeRequest.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient.insertCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + insertCallable() { + return stub.insertCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instanceGroupManager = "instanceGroupManager-388242077";
+   *   for (InstanceGroupManagerResizeRequest element :
+   *       regionInstanceGroupManagerResizeRequestsClient
+   *           .list(project, region, instanceGroupManager)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to + * RFC1035. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String region, String instanceGroupManager) { + ListRegionInstanceGroupManagerResizeRequestsRequest request = + ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstanceGroupManager(instanceGroupManager) + .build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   ListRegionInstanceGroupManagerResizeRequestsRequest request =
+   *       ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   for (InstanceGroupManagerResizeRequest element :
+   *       regionInstanceGroupManagerResizeRequestsClient.list(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 ListPagedResponse list(ListRegionInstanceGroupManagerResizeRequestsRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   ListRegionInstanceGroupManagerResizeRequestsRequest request =
+   *       ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstanceGroupManagerResizeRequestsClient.listPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (InstanceGroupManagerResizeRequest element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + *

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 (RegionInstanceGroupManagerResizeRequestsClient
+   *     regionInstanceGroupManagerResizeRequestsClient =
+   *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+   *   ListRegionInstanceGroupManagerResizeRequestsRequest request =
+   *       ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setInstanceGroupManager("instanceGroupManager-388242077")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   while (true) {
+   *     RegionInstanceGroupManagerResizeRequestsListResponse response =
+   *         regionInstanceGroupManagerResizeRequestsClient.listCallable().call(request);
+   *     for (InstanceGroupManagerResizeRequest element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + listCallable() { + return stub.listCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest, + ListPage, + ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest, + ListPage> { + + private ListPage( + PageContext< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest> + context, + RegionInstanceGroupManagerResizeRequestsListResponse response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest> + context, + RegionInstanceGroupManagerResizeRequestsListResponse response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest, + ListPage, + ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java new file mode 100644 index 000000000000..e34ac3c0a4dc --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java @@ -0,0 +1,348 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerResizeRequestsStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link + * RegionInstanceGroupManagerResizeRequestsClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionInstanceGroupManagerResizeRequestsSettings.Builder
+ *     regionInstanceGroupManagerResizeRequestsSettingsBuilder =
+ *         RegionInstanceGroupManagerResizeRequestsSettings.newBuilder();
+ * regionInstanceGroupManagerResizeRequestsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionInstanceGroupManagerResizeRequestsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionInstanceGroupManagerResizeRequestsSettings
+ *     regionInstanceGroupManagerResizeRequestsSettings =
+ *         regionInstanceGroupManagerResizeRequestsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for cancel: + * + *

{@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
+ * RegionInstanceGroupManagerResizeRequestsSettings.Builder
+ *     regionInstanceGroupManagerResizeRequestsSettingsBuilder =
+ *         RegionInstanceGroupManagerResizeRequestsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionInstanceGroupManagerResizeRequestsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class RegionInstanceGroupManagerResizeRequestsSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to cancel. */ + public UnaryCallSettings + cancelSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .cancelSettings(); + } + + /** Returns the object with the settings used for calls to cancel. */ + public OperationCallSettings< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .cancelOperationSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings + deleteSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .deleteSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .deleteOperationSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings + insertSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .insertSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .insertOperationSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + listSettings() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings) getStubSettings()) + .listSettings(); + } + + public static final RegionInstanceGroupManagerResizeRequestsSettings create( + RegionInstanceGroupManagerResizeRequestsStubSettings stub) throws IOException { + return new RegionInstanceGroupManagerResizeRequestsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RegionInstanceGroupManagerResizeRequestsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RegionInstanceGroupManagerResizeRequestsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RegionInstanceGroupManagerResizeRequestsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RegionInstanceGroupManagerResizeRequestsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RegionInstanceGroupManagerResizeRequestsStubSettings + .defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RegionInstanceGroupManagerResizeRequestsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RegionInstanceGroupManagerResizeRequestsStubSettings + .defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionInstanceGroupManagerResizeRequestsSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + } + + /** Builder for RegionInstanceGroupManagerResizeRequestsSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder(clientContext)); + } + + protected Builder(RegionInstanceGroupManagerResizeRequestsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RegionInstanceGroupManagerResizeRequestsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder()); + } + + public RegionInstanceGroupManagerResizeRequestsStubSettings.Builder getStubSettingsBuilder() { + return ((RegionInstanceGroupManagerResizeRequestsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to cancel. */ + public UnaryCallSettings.Builder< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation> + cancelSettings() { + return getStubSettingsBuilder().cancelSettings(); + } + + /** Returns the builder for the settings used for calls to cancel. */ + public OperationCallSettings.Builder< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationSettings() { + return getStubSettingsBuilder().cancelOperationSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation> + deleteSettings() { + return getStubSettingsBuilder().deleteSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationSettings() { + return getStubSettingsBuilder().deleteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation> + insertSettings() { + return getStubSettingsBuilder().insertSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationSettings() { + return getStubSettingsBuilder().insertOperationSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + @Override + public RegionInstanceGroupManagerResizeRequestsSettings build() throws IOException { + return new RegionInstanceGroupManagerResizeRequestsSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java new file mode 100644 index 000000000000..4484b8575c79 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java @@ -0,0 +1,1283 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.RegionInstantSnapshotGroupsStub; +import com.google.cloud.compute.v1.stub.RegionInstantSnapshotGroupsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The RegionInstantSnapshotGroups API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+ *     RegionInstantSnapshotGroupsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+ *   InstantSnapshotGroup response =
+ *       regionInstantSnapshotGroupsClient.get(project, region, instantSnapshotGroup);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the RegionInstantSnapshotGroupsClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Delete

deletes a Regional InstantSnapshotGroup resource

+ *

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

+ *
    + *
  • deleteAsync(DeleteRegionInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • deleteAsync(String project, String region, String instantSnapshotGroup) + *

+ *

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

+ *
    + *
  • deleteOperationCallable() + *

  • deleteCallable() + *

+ *

Get

returns the specified InstantSnapshotGroup resource in the specified region.

+ *

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

+ *
    + *
  • get(GetRegionInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String region, String instantSnapshotGroup) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicy(String project, String region, String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

Insert

creates a Regional InstantSnapshotGroup resource

+ *

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

+ *
    + *
  • insertAsync(InsertRegionInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • insertAsync(String project, String region, InstantSnapshotGroup instantSnapshotGroupResource) + *

+ *

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

+ *
    + *
  • insertOperationCallable() + *

  • insertCallable() + *

+ *

List

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

+ *

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

+ *
    + *
  • list(ListRegionInstantSnapshotGroupsRequest request) + *

+ *

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

+ *
    + *
  • list(String project, String region) + *

+ *

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

+ *
    + *
  • listPagedCallable() + *

  • listCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicy(String project, String region, String resource, RegionSetPolicyRequest regionSetPolicyRequestResource) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * RegionInstantSnapshotGroupsSettings to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * RegionInstantSnapshotGroupsSettings regionInstantSnapshotGroupsSettings =
+ *     RegionInstantSnapshotGroupsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+ *     RegionInstantSnapshotGroupsClient.create(regionInstantSnapshotGroupsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * RegionInstantSnapshotGroupsSettings regionInstantSnapshotGroupsSettings =
+ *     RegionInstantSnapshotGroupsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+ *     RegionInstantSnapshotGroupsClient.create(regionInstantSnapshotGroupsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class RegionInstantSnapshotGroupsClient implements BackgroundResource { + private final RegionInstantSnapshotGroupsSettings settings; + private final RegionInstantSnapshotGroupsStub stub; + + /** Constructs an instance of RegionInstantSnapshotGroupsClient with default settings. */ + public static final RegionInstantSnapshotGroupsClient create() throws IOException { + return create(RegionInstantSnapshotGroupsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RegionInstantSnapshotGroupsClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final RegionInstantSnapshotGroupsClient create( + RegionInstantSnapshotGroupsSettings settings) throws IOException { + return new RegionInstantSnapshotGroupsClient(settings); + } + + /** + * Constructs an instance of RegionInstantSnapshotGroupsClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(RegionInstantSnapshotGroupsSettings). + */ + public static final RegionInstantSnapshotGroupsClient create( + RegionInstantSnapshotGroupsStub stub) { + return new RegionInstantSnapshotGroupsClient(stub); + } + + /** + * Constructs an instance of RegionInstantSnapshotGroupsClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected RegionInstantSnapshotGroupsClient(RegionInstantSnapshotGroupsSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((RegionInstantSnapshotGroupsStubSettings) settings.getStubSettings()).createStub(); + } + + protected RegionInstantSnapshotGroupsClient(RegionInstantSnapshotGroupsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RegionInstantSnapshotGroupsSettings getSettings() { + return settings; + } + + public RegionInstantSnapshotGroupsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+   *   Operation response =
+   *       regionInstantSnapshotGroupsClient
+   *           .deleteAsync(project, region, instantSnapshotGroup)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAsync( + String project, String region, String instantSnapshotGroup) { + DeleteRegionInstantSnapshotGroupRequest request = + DeleteRegionInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstantSnapshotGroup(instantSnapshotGroup) + .build(); + return deleteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   DeleteRegionInstantSnapshotGroupRequest request =
+   *       DeleteRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Operation response = regionInstantSnapshotGroupsClient.deleteAsync(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 deleteAsync( + DeleteRegionInstantSnapshotGroupRequest request) { + return deleteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   DeleteRegionInstantSnapshotGroupRequest request =
+   *       DeleteRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       regionInstantSnapshotGroupsClient.deleteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOperationCallable() { + return stub.deleteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * deletes a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   DeleteRegionInstantSnapshotGroupRequest request =
+   *       DeleteRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.deleteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCallable() { + return stub.deleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * returns the specified InstantSnapshotGroup resource 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+   *   InstantSnapshotGroup response =
+   *       regionInstantSnapshotGroupsClient.get(project, region, instantSnapshotGroup);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstantSnapshotGroup get( + String project, String region, String instantSnapshotGroup) { + GetRegionInstantSnapshotGroupRequest request = + GetRegionInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstantSnapshotGroup(instantSnapshotGroup) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * returns the specified InstantSnapshotGroup resource 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   GetRegionInstantSnapshotGroupRequest request =
+   *       GetRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   InstantSnapshotGroup response = regionInstantSnapshotGroupsClient.get(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 InstantSnapshotGroup get(GetRegionInstantSnapshotGroupRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * returns the specified InstantSnapshotGroup resource 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   GetRegionInstantSnapshotGroupRequest request =
+   *       GetRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroup("instantSnapshotGroup500796090")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   InstantSnapshotGroup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   Policy response = regionInstantSnapshotGroupsClient.getIamPolicy(project, region, resource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String project, String region, String resource) { + GetIamPolicyRegionInstantSnapshotGroupRequest request = + GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   GetIamPolicyRegionInstantSnapshotGroupRequest request =
+   *       GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Policy response = regionInstantSnapshotGroupsClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   GetIamPolicyRegionInstantSnapshotGroupRequest request =
+   *       GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * creates a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build();
+   *   Operation response =
+   *       regionInstantSnapshotGroupsClient
+   *           .insertAsync(project, region, instantSnapshotGroupResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param instantSnapshotGroupResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture insertAsync( + String project, String region, InstantSnapshotGroup instantSnapshotGroupResource) { + InsertRegionInstantSnapshotGroupRequest request = + InsertRegionInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setInstantSnapshotGroupResource(instantSnapshotGroupResource) + .build(); + return insertAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * creates a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   InsertRegionInstantSnapshotGroupRequest request =
+   *       InsertRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054")
+   *           .build();
+   *   Operation response = regionInstantSnapshotGroupsClient.insertAsync(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 insertAsync( + InsertRegionInstantSnapshotGroupRequest request) { + return insertOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * creates a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   InsertRegionInstantSnapshotGroupRequest request =
+   *       InsertRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054")
+   *           .build();
+   *   OperationFuture future =
+   *       regionInstantSnapshotGroupsClient.insertOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + insertOperationCallable() { + return stub.insertOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * creates a Regional InstantSnapshotGroup resource + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   InsertRegionInstantSnapshotGroupRequest request =
+   *       InsertRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build())
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.insertCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable insertCallable() { + return stub.insertCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   for (InstantSnapshotGroup element :
+   *       regionInstantSnapshotGroupsClient.list(project, region).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String region) { + ListRegionInstantSnapshotGroupsRequest request = + ListRegionInstantSnapshotGroupsRequest.newBuilder() + .setProject(project) + .setRegion(region) + .build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   ListRegionInstantSnapshotGroupsRequest request =
+   *       ListRegionInstantSnapshotGroupsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   for (InstantSnapshotGroup element :
+   *       regionInstantSnapshotGroupsClient.list(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 ListPagedResponse list(ListRegionInstantSnapshotGroupsRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   ListRegionInstantSnapshotGroupsRequest request =
+   *       ListRegionInstantSnapshotGroupsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.listPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (InstantSnapshotGroup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * retrieves the list of InstantSnapshotGroup resources contained within 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   ListRegionInstantSnapshotGroupsRequest request =
+   *       ListRegionInstantSnapshotGroupsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   while (true) {
+   *     ListInstantSnapshotGroups response =
+   *         regionInstantSnapshotGroupsClient.listCallable().call(request);
+   *     for (InstantSnapshotGroup element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCallable() { + return stub.listCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   RegionSetPolicyRequest regionSetPolicyRequestResource =
+   *       RegionSetPolicyRequest.newBuilder().build();
+   *   Policy response =
+   *       regionInstantSnapshotGroupsClient.setIamPolicy(
+   *           project, region, resource, regionSetPolicyRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param regionSetPolicyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy( + String project, + String region, + String resource, + RegionSetPolicyRequest regionSetPolicyRequestResource) { + SetIamPolicyRegionInstantSnapshotGroupRequest request = + SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setRegionSetPolicyRequestResource(regionSetPolicyRequestResource) + .build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   SetIamPolicyRegionInstantSnapshotGroupRequest request =
+   *       SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build())
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Policy response = regionInstantSnapshotGroupsClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   SetIamPolicyRegionInstantSnapshotGroupRequest request =
+   *       SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build())
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   TestPermissionsRequest testPermissionsRequestResource =
+   *       TestPermissionsRequest.newBuilder().build();
+   *   TestPermissionsResponse response =
+   *       regionInstantSnapshotGroupsClient.testIamPermissions(
+   *           project, region, resource, testPermissionsRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param testPermissionsRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestPermissionsResponse testIamPermissions( + String project, + String region, + String resource, + TestPermissionsRequest testPermissionsRequestResource) { + TestIamPermissionsRegionInstantSnapshotGroupRequest request = + TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setTestPermissionsRequestResource(testPermissionsRequestResource) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   TestIamPermissionsRegionInstantSnapshotGroupRequest request =
+   *       TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .build();
+   *   TestPermissionsResponse response =
+   *       regionInstantSnapshotGroupsClient.testIamPermissions(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 TestPermissionsResponse testIamPermissions( + TestIamPermissionsRegionInstantSnapshotGroupRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+   *     RegionInstantSnapshotGroupsClient.create()) {
+   *   TestIamPermissionsRegionInstantSnapshotGroupRequest request =
+   *       TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       regionInstantSnapshotGroupsClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup, + ListPage, + ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup, + ListPage> { + + private ListPage( + PageContext< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup> + context, + ListInstantSnapshotGroups response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup> + context, + ListInstantSnapshotGroups response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup, + ListPage, + ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java new file mode 100644 index 000000000000..58c13af292cd --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java @@ -0,0 +1,334 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.RegionInstantSnapshotGroupsStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionInstantSnapshotGroupsClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionInstantSnapshotGroupsSettings.Builder regionInstantSnapshotGroupsSettingsBuilder =
+ *     RegionInstantSnapshotGroupsSettings.newBuilder();
+ * regionInstantSnapshotGroupsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionInstantSnapshotGroupsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionInstantSnapshotGroupsSettings regionInstantSnapshotGroupsSettings =
+ *     regionInstantSnapshotGroupsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * RegionInstantSnapshotGroupsSettings.Builder regionInstantSnapshotGroupsSettingsBuilder =
+ *     RegionInstantSnapshotGroupsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionInstantSnapshotGroupsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class RegionInstantSnapshotGroupsSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).deleteSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).deleteOperationSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings + getSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings + getIamPolicySettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).insertSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).insertOperationSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).listSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings + setIamPolicySettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return ((RegionInstantSnapshotGroupsStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final RegionInstantSnapshotGroupsSettings create( + RegionInstantSnapshotGroupsStubSettings stub) throws IOException { + return new RegionInstantSnapshotGroupsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RegionInstantSnapshotGroupsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RegionInstantSnapshotGroupsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RegionInstantSnapshotGroupsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RegionInstantSnapshotGroupsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RegionInstantSnapshotGroupsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RegionInstantSnapshotGroupsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RegionInstantSnapshotGroupsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionInstantSnapshotGroupsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for RegionInstantSnapshotGroupsSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(RegionInstantSnapshotGroupsStubSettings.newBuilder(clientContext)); + } + + protected Builder(RegionInstantSnapshotGroupsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RegionInstantSnapshotGroupsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(RegionInstantSnapshotGroupsStubSettings.newBuilder()); + } + + public RegionInstantSnapshotGroupsStubSettings.Builder getStubSettingsBuilder() { + return ((RegionInstantSnapshotGroupsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder + deleteSettings() { + return getStubSettingsBuilder().deleteSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder< + DeleteRegionInstantSnapshotGroupRequest, Operation, Operation> + deleteOperationSettings() { + return getStubSettingsBuilder().deleteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder + insertSettings() { + return getStubSettingsBuilder().insertSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder< + InsertRegionInstantSnapshotGroupRequest, Operation, Operation> + insertOperationSettings() { + return getStubSettingsBuilder().insertOperationSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public RegionInstantSnapshotGroupsSettings build() throws IOException { + return new RegionInstantSnapshotGroupsSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java new file mode 100644 index 000000000000..950ab9b81289 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java @@ -0,0 +1,450 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.RegionSnapshotSettingsStub; +import com.google.cloud.compute.v1.stub.RegionSnapshotSettingsStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The RegionSnapshotSettings API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+ *     RegionSnapshotSettingsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   SnapshotSettings response = regionSnapshotSettingsClient.get(project, region);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the RegionSnapshotSettingsClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Get

Get region snapshot settings.

+ *

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

+ *
    + *
  • get(GetRegionSnapshotSettingRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String region) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

Patch

Patch region snapshot settings.

+ *

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

+ *
    + *
  • patchAsync(PatchRegionSnapshotSettingRequest request) + *

+ *

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

+ *
    + *
  • patchAsync(String project, String region, SnapshotSettings snapshotSettingsResource) + *

+ *

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

+ *
    + *
  • patchOperationCallable() + *

  • patchCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of RegionSnapshotSettingsSettings + * to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * RegionSnapshotSettingsSettings regionSnapshotSettingsSettings =
+ *     RegionSnapshotSettingsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+ *     RegionSnapshotSettingsClient.create(regionSnapshotSettingsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * RegionSnapshotSettingsSettings regionSnapshotSettingsSettings =
+ *     RegionSnapshotSettingsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+ *     RegionSnapshotSettingsClient.create(regionSnapshotSettingsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class RegionSnapshotSettingsClient implements BackgroundResource { + private final RegionSnapshotSettingsSettings settings; + private final RegionSnapshotSettingsStub stub; + + /** Constructs an instance of RegionSnapshotSettingsClient with default settings. */ + public static final RegionSnapshotSettingsClient create() throws IOException { + return create(RegionSnapshotSettingsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RegionSnapshotSettingsClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final RegionSnapshotSettingsClient create(RegionSnapshotSettingsSettings settings) + throws IOException { + return new RegionSnapshotSettingsClient(settings); + } + + /** + * Constructs an instance of RegionSnapshotSettingsClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(RegionSnapshotSettingsSettings). + */ + public static final RegionSnapshotSettingsClient create(RegionSnapshotSettingsStub stub) { + return new RegionSnapshotSettingsClient(stub); + } + + /** + * Constructs an instance of RegionSnapshotSettingsClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected RegionSnapshotSettingsClient(RegionSnapshotSettingsSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((RegionSnapshotSettingsStubSettings) settings.getStubSettings()).createStub(); + } + + protected RegionSnapshotSettingsClient(RegionSnapshotSettingsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RegionSnapshotSettingsSettings getSettings() { + return settings; + } + + public RegionSnapshotSettingsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   SnapshotSettings response = regionSnapshotSettingsClient.get(project, region);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SnapshotSettings get(String project, String region) { + GetRegionSnapshotSettingRequest request = + GetRegionSnapshotSettingRequest.newBuilder().setProject(project).setRegion(region).build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   GetRegionSnapshotSettingRequest request =
+   *       GetRegionSnapshotSettingRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   SnapshotSettings response = regionSnapshotSettingsClient.get(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 SnapshotSettings get(GetRegionSnapshotSettingRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   GetRegionSnapshotSettingRequest request =
+   *       GetRegionSnapshotSettingRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .build();
+   *   ApiFuture future =
+   *       regionSnapshotSettingsClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   SnapshotSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Patch region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   SnapshotSettings snapshotSettingsResource = SnapshotSettings.newBuilder().build();
+   *   Operation response =
+   *       regionSnapshotSettingsClient.patchAsync(project, region, snapshotSettingsResource).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param snapshotSettingsResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture patchAsync( + String project, String region, SnapshotSettings snapshotSettingsResource) { + PatchRegionSnapshotSettingRequest request = + PatchRegionSnapshotSettingRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setSnapshotSettingsResource(snapshotSettingsResource) + .build(); + return patchAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Patch region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   PatchRegionSnapshotSettingRequest request =
+   *       PatchRegionSnapshotSettingRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshotSettingsResource(SnapshotSettings.newBuilder().build())
+   *           .setUpdateMask("updateMask-296147115")
+   *           .build();
+   *   Operation response = regionSnapshotSettingsClient.patchAsync(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 patchAsync( + PatchRegionSnapshotSettingRequest request) { + return patchOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Patch region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   PatchRegionSnapshotSettingRequest request =
+   *       PatchRegionSnapshotSettingRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshotSettingsResource(SnapshotSettings.newBuilder().build())
+   *           .setUpdateMask("updateMask-296147115")
+   *           .build();
+   *   OperationFuture future =
+   *       regionSnapshotSettingsClient.patchOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + patchOperationCallable() { + return stub.patchOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Patch region snapshot settings. + * + *

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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+   *     RegionSnapshotSettingsClient.create()) {
+   *   PatchRegionSnapshotSettingRequest request =
+   *       PatchRegionSnapshotSettingRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshotSettingsResource(SnapshotSettings.newBuilder().build())
+   *           .setUpdateMask("updateMask-296147115")
+   *           .build();
+   *   ApiFuture future =
+   *       regionSnapshotSettingsClient.patchCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable patchCallable() { + return stub.patchCallable(); + } + + @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); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java new file mode 100644 index 000000000000..762cba86e191 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java @@ -0,0 +1,250 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.RegionSnapshotSettingsStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionSnapshotSettingsClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionSnapshotSettingsSettings.Builder regionSnapshotSettingsSettingsBuilder =
+ *     RegionSnapshotSettingsSettings.newBuilder();
+ * regionSnapshotSettingsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionSnapshotSettingsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionSnapshotSettingsSettings regionSnapshotSettingsSettings =
+ *     regionSnapshotSettingsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for patch: + * + *

{@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
+ * RegionSnapshotSettingsSettings.Builder regionSnapshotSettingsSettingsBuilder =
+ *     RegionSnapshotSettingsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionSnapshotSettingsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class RegionSnapshotSettingsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return ((RegionSnapshotSettingsStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to patch. */ + public UnaryCallSettings patchSettings() { + return ((RegionSnapshotSettingsStubSettings) getStubSettings()).patchSettings(); + } + + /** Returns the object with the settings used for calls to patch. */ + public OperationCallSettings + patchOperationSettings() { + return ((RegionSnapshotSettingsStubSettings) getStubSettings()).patchOperationSettings(); + } + + public static final RegionSnapshotSettingsSettings create(RegionSnapshotSettingsStubSettings stub) + throws IOException { + return new RegionSnapshotSettingsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RegionSnapshotSettingsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RegionSnapshotSettingsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RegionSnapshotSettingsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RegionSnapshotSettingsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RegionSnapshotSettingsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RegionSnapshotSettingsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RegionSnapshotSettingsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionSnapshotSettingsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for RegionSnapshotSettingsSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(RegionSnapshotSettingsStubSettings.newBuilder(clientContext)); + } + + protected Builder(RegionSnapshotSettingsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RegionSnapshotSettingsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(RegionSnapshotSettingsStubSettings.newBuilder()); + } + + public RegionSnapshotSettingsStubSettings.Builder getStubSettingsBuilder() { + return ((RegionSnapshotSettingsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to patch. */ + public UnaryCallSettings.Builder patchSettings() { + return getStubSettingsBuilder().patchSettings(); + } + + /** Returns the builder for the settings used for calls to patch. */ + public OperationCallSettings.Builder + patchOperationSettings() { + return getStubSettingsBuilder().patchOperationSettings(); + } + + @Override + public RegionSnapshotSettingsSettings build() throws IOException { + return new RegionSnapshotSettingsSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java new file mode 100644 index 000000000000..a7fd1b2a7f75 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java @@ -0,0 +1,1551 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.RegionSnapshotsStub; +import com.google.cloud.compute.v1.stub.RegionSnapshotsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The RegionSnapshots API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String snapshot = "snapshot284874180";
+ *   Snapshot response = regionSnapshotsClient.get(project, region, snapshot);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the RegionSnapshotsClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Delete

Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. + *

For more information, seeDeleting snapshots.

+ *

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

+ *
    + *
  • deleteAsync(DeleteRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • deleteAsync(String project, String region, String snapshot) + *

+ *

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

+ *
    + *
  • deleteOperationCallable() + *

  • deleteCallable() + *

+ *

Get

Returns the specified Snapshot resource.

+ *

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

+ *
    + *
  • get(GetRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String region, String snapshot) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

+ *

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

+ *
    + *
  • getIamPolicy(GetIamPolicyRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • getIamPolicy(String project, String region, String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

Insert

Creates a snapshot in the specified region using the data included in the request.

+ *

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

+ *
    + *
  • insertAsync(InsertRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • insertAsync(String project, String region, Snapshot snapshotResource) + *

+ *

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

+ *
    + *
  • insertOperationCallable() + *

  • insertCallable() + *

+ *

List

Retrieves the list of Snapshot resources contained within the specified region.

+ *

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

+ *
    + *
  • list(ListRegionSnapshotsRequest request) + *

+ *

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

+ *
    + *
  • list(String project, String region) + *

+ *

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

+ *
    + *
  • listPagedCallable() + *

  • listCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

+ *

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

+ *
    + *
  • setIamPolicy(SetIamPolicyRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • setIamPolicy(String project, String region, String resource, RegionSetPolicyRequest regionSetPolicyRequestResource) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *

SetLabels

Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.

+ *

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

+ *
    + *
  • setLabelsAsync(SetLabelsRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • setLabelsAsync(String project, String region, String resource, RegionSetLabelsRequest regionSetLabelsRequestResource) + *

+ *

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

+ *
    + *
  • setLabelsOperationCallable() + *

  • setLabelsCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource.

+ *

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

+ *
    + *
  • testIamPermissions(TestIamPermissionsRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource) + *

+ *

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

+ *
    + *
  • testIamPermissionsCallable() + *

+ *

UpdateKmsKey

Rotates the customer-managed encryption key to the latest version for the specified snapshot.

+ *

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

+ *
    + *
  • updateKmsKeyAsync(UpdateKmsKeyRegionSnapshotRequest request) + *

+ *

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

+ *
    + *
  • updateKmsKeyAsync(String project, String region, String snapshot, RegionSnapshotUpdateKmsKeyRequest regionSnapshotUpdateKmsKeyRequestResource) + *

+ *

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

+ *
    + *
  • updateKmsKeyOperationCallable() + *

  • updateKmsKeyCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of RegionSnapshotsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * RegionSnapshotsSettings regionSnapshotsSettings =
+ *     RegionSnapshotsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * RegionSnapshotsClient regionSnapshotsClient =
+ *     RegionSnapshotsClient.create(regionSnapshotsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * RegionSnapshotsSettings regionSnapshotsSettings =
+ *     RegionSnapshotsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RegionSnapshotsClient regionSnapshotsClient =
+ *     RegionSnapshotsClient.create(regionSnapshotsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class RegionSnapshotsClient implements BackgroundResource { + private final RegionSnapshotsSettings settings; + private final RegionSnapshotsStub stub; + + /** Constructs an instance of RegionSnapshotsClient with default settings. */ + public static final RegionSnapshotsClient create() throws IOException { + return create(RegionSnapshotsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RegionSnapshotsClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final RegionSnapshotsClient create(RegionSnapshotsSettings settings) + throws IOException { + return new RegionSnapshotsClient(settings); + } + + /** + * Constructs an instance of RegionSnapshotsClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(RegionSnapshotsSettings). + */ + public static final RegionSnapshotsClient create(RegionSnapshotsStub stub) { + return new RegionSnapshotsClient(stub); + } + + /** + * Constructs an instance of RegionSnapshotsClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected RegionSnapshotsClient(RegionSnapshotsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((RegionSnapshotsStubSettings) settings.getStubSettings()).createStub(); + } + + protected RegionSnapshotsClient(RegionSnapshotsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RegionSnapshotsSettings getSettings() { + return settings; + } + + public RegionSnapshotsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + *

For more information, seeDeleting snapshots. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String snapshot = "snapshot284874180";
+   *   Operation response = regionSnapshotsClient.deleteAsync(project, region, snapshot).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param snapshot Name of the snapshot resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAsync( + String project, String region, String snapshot) { + DeleteRegionSnapshotRequest request = + DeleteRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setSnapshot(snapshot) + .build(); + return deleteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + *

For more information, seeDeleting snapshots. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   DeleteRegionSnapshotRequest request =
+   *       DeleteRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   Operation response = regionSnapshotsClient.deleteAsync(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 deleteAsync( + DeleteRegionSnapshotRequest request) { + return deleteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + *

For more information, seeDeleting snapshots. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   DeleteRegionSnapshotRequest request =
+   *       DeleteRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   OperationFuture future =
+   *       regionSnapshotsClient.deleteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOperationCallable() { + return stub.deleteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + *

For more information, seeDeleting snapshots. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   DeleteRegionSnapshotRequest request =
+   *       DeleteRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.deleteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCallable() { + return stub.deleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified Snapshot resource. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String snapshot = "snapshot284874180";
+   *   Snapshot response = regionSnapshotsClient.get(project, region, snapshot);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param snapshot Name of the Snapshot resource to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot get(String project, String region, String snapshot) { + GetRegionSnapshotRequest request = + GetRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setSnapshot(snapshot) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified Snapshot resource. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   GetRegionSnapshotRequest request =
+   *       GetRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   Snapshot response = regionSnapshotsClient.get(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 Snapshot get(GetRegionSnapshotRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified Snapshot resource. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   GetRegionSnapshotRequest request =
+   *       GetRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   Snapshot response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   Policy response = regionSnapshotsClient.getIamPolicy(project, region, resource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String project, String region, String resource) { + GetIamPolicyRegionSnapshotRequest request = + GetIamPolicyRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   GetIamPolicyRegionSnapshotRequest request =
+   *       GetIamPolicyRegionSnapshotRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Policy response = regionSnapshotsClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRegionSnapshotRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   GetIamPolicyRegionSnapshotRequest request =
+   *       GetIamPolicyRegionSnapshotRequest.newBuilder()
+   *           .setOptionsRequestedPolicyVersion(-574521795)
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot in the specified region using the data included in the request. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   Snapshot snapshotResource = Snapshot.newBuilder().build();
+   *   Operation response =
+   *       regionSnapshotsClient.insertAsync(project, region, snapshotResource).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param snapshotResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture insertAsync( + String project, String region, Snapshot snapshotResource) { + InsertRegionSnapshotRequest request = + InsertRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setSnapshotResource(snapshotResource) + .build(); + return insertAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot in the specified region using the data included in the request. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   InsertRegionSnapshotRequest request =
+   *       InsertRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshotResource(Snapshot.newBuilder().build())
+   *           .build();
+   *   Operation response = regionSnapshotsClient.insertAsync(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 insertAsync( + InsertRegionSnapshotRequest request) { + return insertOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot in the specified region using the data included in the request. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   InsertRegionSnapshotRequest request =
+   *       InsertRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshotResource(Snapshot.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       regionSnapshotsClient.insertOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + insertOperationCallable() { + return stub.insertOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot in the specified region using the data included in the request. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   InsertRegionSnapshotRequest request =
+   *       InsertRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshotResource(Snapshot.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.insertCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable insertCallable() { + return stub.insertCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of Snapshot resources contained within 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   for (Snapshot element : regionSnapshotsClient.list(project, region).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String region) { + ListRegionSnapshotsRequest request = + ListRegionSnapshotsRequest.newBuilder().setProject(project).setRegion(region).build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of Snapshot resources contained within 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   ListRegionSnapshotsRequest request =
+   *       ListRegionSnapshotsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   for (Snapshot element : regionSnapshotsClient.list(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 ListPagedResponse list(ListRegionSnapshotsRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of Snapshot resources contained within 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   ListRegionSnapshotsRequest request =
+   *       ListRegionSnapshotsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.listPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Snapshot element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of Snapshot resources contained within 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   ListRegionSnapshotsRequest request =
+   *       ListRegionSnapshotsRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setReturnPartialSuccess(true)
+   *           .build();
+   *   while (true) {
+   *     SnapshotList response = regionSnapshotsClient.listCallable().call(request);
+   *     for (Snapshot element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listCallable() { + return stub.listCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   RegionSetPolicyRequest regionSetPolicyRequestResource =
+   *       RegionSetPolicyRequest.newBuilder().build();
+   *   Policy response =
+   *       regionSnapshotsClient.setIamPolicy(
+   *           project, region, resource, regionSetPolicyRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param regionSetPolicyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy( + String project, + String region, + String resource, + RegionSetPolicyRequest regionSetPolicyRequestResource) { + SetIamPolicyRegionSnapshotRequest request = + SetIamPolicyRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setRegionSetPolicyRequestResource(regionSetPolicyRequestResource) + .build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   SetIamPolicyRegionSnapshotRequest request =
+   *       SetIamPolicyRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build())
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Policy response = regionSnapshotsClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRegionSnapshotRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   SetIamPolicyRegionSnapshotRequest request =
+   *       SetIamPolicyRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build())
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources + * documentation. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   RegionSetLabelsRequest regionSetLabelsRequestResource =
+   *       RegionSetLabelsRequest.newBuilder().build();
+   *   Operation response =
+   *       regionSnapshotsClient
+   *           .setLabelsAsync(project, region, resource, regionSetLabelsRequestResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param regionSetLabelsRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture setLabelsAsync( + String project, + String region, + String resource, + RegionSetLabelsRequest regionSetLabelsRequestResource) { + SetLabelsRegionSnapshotRequest request = + SetLabelsRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource) + .build(); + return setLabelsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources + * documentation. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   SetLabelsRegionSnapshotRequest request =
+   *       SetLabelsRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   Operation response = regionSnapshotsClient.setLabelsAsync(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 setLabelsAsync( + SetLabelsRegionSnapshotRequest request) { + return setLabelsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources + * documentation. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   SetLabelsRegionSnapshotRequest request =
+   *       SetLabelsRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   OperationFuture future =
+   *       regionSnapshotsClient.setLabelsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + setLabelsOperationCallable() { + return stub.setLabelsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources + * documentation. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   SetLabelsRegionSnapshotRequest request =
+   *       SetLabelsRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setResource("resource-341064690")
+   *           .build();
+   *   ApiFuture future = regionSnapshotsClient.setLabelsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setLabelsCallable() { + return stub.setLabelsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String resource = "resource-341064690";
+   *   TestPermissionsRequest testPermissionsRequestResource =
+   *       TestPermissionsRequest.newBuilder().build();
+   *   TestPermissionsResponse response =
+   *       regionSnapshotsClient.testIamPermissions(
+   *           project, region, resource, testPermissionsRequestResource);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param testPermissionsRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestPermissionsResponse testIamPermissions( + String project, + String region, + String resource, + TestPermissionsRequest testPermissionsRequestResource) { + TestIamPermissionsRegionSnapshotRequest request = + TestIamPermissionsRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setResource(resource) + .setTestPermissionsRequestResource(testPermissionsRequestResource) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   TestIamPermissionsRegionSnapshotRequest request =
+   *       TestIamPermissionsRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .build();
+   *   TestPermissionsResponse response = regionSnapshotsClient.testIamPermissions(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 TestPermissionsResponse testIamPermissions( + TestIamPermissionsRegionSnapshotRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   TestIamPermissionsRegionSnapshotRequest request =
+   *       TestIamPermissionsRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setResource("resource-341064690")
+   *           .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       regionSnapshotsClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String region = "region-934795532";
+   *   String snapshot = "snapshot284874180";
+   *   RegionSnapshotUpdateKmsKeyRequest regionSnapshotUpdateKmsKeyRequestResource =
+   *       RegionSnapshotUpdateKmsKeyRequest.newBuilder().build();
+   *   Operation response =
+   *       regionSnapshotsClient
+   *           .updateKmsKeyAsync(
+   *               project, region, snapshot, regionSnapshotUpdateKmsKeyRequestResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param snapshot Name of the snapshot resource to update. Should conform to RFC1035. + * @param regionSnapshotUpdateKmsKeyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateKmsKeyAsync( + String project, + String region, + String snapshot, + RegionSnapshotUpdateKmsKeyRequest regionSnapshotUpdateKmsKeyRequestResource) { + UpdateKmsKeyRegionSnapshotRequest request = + UpdateKmsKeyRegionSnapshotRequest.newBuilder() + .setProject(project) + .setRegion(region) + .setSnapshot(snapshot) + .setRegionSnapshotUpdateKmsKeyRequestResource(regionSnapshotUpdateKmsKeyRequestResource) + .build(); + return updateKmsKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   UpdateKmsKeyRegionSnapshotRequest request =
+   *       UpdateKmsKeyRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSnapshotUpdateKmsKeyRequestResource(
+   *               RegionSnapshotUpdateKmsKeyRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   Operation response = regionSnapshotsClient.updateKmsKeyAsync(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 updateKmsKeyAsync( + UpdateKmsKeyRegionSnapshotRequest request) { + return updateKmsKeyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   UpdateKmsKeyRegionSnapshotRequest request =
+   *       UpdateKmsKeyRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSnapshotUpdateKmsKeyRequestResource(
+   *               RegionSnapshotUpdateKmsKeyRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   OperationFuture future =
+   *       regionSnapshotsClient.updateKmsKeyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateKmsKeyOperationCallable() { + return stub.updateKmsKeyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+   *   UpdateKmsKeyRegionSnapshotRequest request =
+   *       UpdateKmsKeyRegionSnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRegion("region-934795532")
+   *           .setRegionSnapshotUpdateKmsKeyRequestResource(
+   *               RegionSnapshotUpdateKmsKeyRequest.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .build();
+   *   ApiFuture future =
+   *       regionSnapshotsClient.updateKmsKeyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateKmsKeyCallable() { + return stub.updateKmsKeyCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListRegionSnapshotsRequest, SnapshotList, Snapshot, ListPage, ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage { + + private ListPage( + PageContext context, + SnapshotList response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext context, + SnapshotList response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRegionSnapshotsRequest, SnapshotList, Snapshot, ListPage, ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java new file mode 100644 index 000000000000..d9c19d2c8006 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java @@ -0,0 +1,365 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionSnapshotsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.RegionSnapshotsStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionSnapshotsClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionSnapshotsSettings.Builder regionSnapshotsSettingsBuilder =
+ *     RegionSnapshotsSettings.newBuilder();
+ * regionSnapshotsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionSnapshotsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionSnapshotsSettings regionSnapshotsSettings = regionSnapshotsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * RegionSnapshotsSettings.Builder regionSnapshotsSettingsBuilder =
+ *     RegionSnapshotsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionSnapshotsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class RegionSnapshotsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).deleteSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).deleteOperationSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).insertSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).insertOperationSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings + listSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).listSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setLabels. */ + public UnaryCallSettings setLabelsSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).setLabelsSettings(); + } + + /** Returns the object with the settings used for calls to setLabels. */ + public OperationCallSettings + setLabelsOperationSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).setLabelsOperationSettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).updateKmsKeySettings(); + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return ((RegionSnapshotsStubSettings) getStubSettings()).updateKmsKeyOperationSettings(); + } + + public static final RegionSnapshotsSettings create(RegionSnapshotsStubSettings stub) + throws IOException { + return new RegionSnapshotsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RegionSnapshotsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RegionSnapshotsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RegionSnapshotsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RegionSnapshotsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RegionSnapshotsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RegionSnapshotsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RegionSnapshotsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionSnapshotsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for RegionSnapshotsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(RegionSnapshotsStubSettings.newBuilder(clientContext)); + } + + protected Builder(RegionSnapshotsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RegionSnapshotsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(RegionSnapshotsStubSettings.newBuilder()); + } + + public RegionSnapshotsStubSettings.Builder getStubSettingsBuilder() { + return ((RegionSnapshotsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder deleteSettings() { + return getStubSettingsBuilder().deleteSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return getStubSettingsBuilder().deleteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder insertSettings() { + return getStubSettingsBuilder().insertSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return getStubSettingsBuilder().insertOperationSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public UnaryCallSettings.Builder + setLabelsSettings() { + return getStubSettingsBuilder().setLabelsSettings(); + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public OperationCallSettings.Builder + setLabelsOperationSettings() { + return getStubSettingsBuilder().setLabelsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsRegionSnapshotRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder + updateKmsKeySettings() { + return getStubSettingsBuilder().updateKmsKeySettings(); + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return getStubSettingsBuilder().updateKmsKeyOperationSettings(); + } + + @Override + public RegionSnapshotsSettings build() throws IOException { + return new RegionSnapshotsSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java index f00b85593d58..cbcd8d27a66b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java @@ -213,6 +213,25 @@ * * * + * + *

UpdateKmsKey + *

Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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

+ *
    + *
  • updateKmsKeyAsync(UpdateKmsKeySnapshotRequest request) + *

+ *

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

+ *
    + *
  • updateKmsKeyAsync(String project, String snapshot, SnapshotUpdateKmsKeyRequest snapshotUpdateKmsKeyRequestResource) + *

+ *

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

+ *
    + *
  • updateKmsKeyOperationCallable() + *

  • updateKmsKeyCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -1221,6 +1240,145 @@ public final TestPermissionsResponse testIamPermissions( return stub.testIamPermissionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) {
+   *   String project = "project-309310695";
+   *   String snapshot = "snapshot284874180";
+   *   SnapshotUpdateKmsKeyRequest snapshotUpdateKmsKeyRequestResource =
+   *       SnapshotUpdateKmsKeyRequest.newBuilder().build();
+   *   Operation response =
+   *       snapshotsClient
+   *           .updateKmsKeyAsync(project, snapshot, snapshotUpdateKmsKeyRequestResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param snapshot Name of the snapshot resource to update. Should conform to RFC1035. + * @param snapshotUpdateKmsKeyRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateKmsKeyAsync( + String project, + String snapshot, + SnapshotUpdateKmsKeyRequest snapshotUpdateKmsKeyRequestResource) { + UpdateKmsKeySnapshotRequest request = + UpdateKmsKeySnapshotRequest.newBuilder() + .setProject(project) + .setSnapshot(snapshot) + .setSnapshotUpdateKmsKeyRequestResource(snapshotUpdateKmsKeyRequestResource) + .build(); + return updateKmsKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) {
+   *   UpdateKmsKeySnapshotRequest request =
+   *       UpdateKmsKeySnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .setSnapshotUpdateKmsKeyRequestResource(
+   *               SnapshotUpdateKmsKeyRequest.newBuilder().build())
+   *           .build();
+   *   Operation response = snapshotsClient.updateKmsKeyAsync(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 updateKmsKeyAsync( + UpdateKmsKeySnapshotRequest request) { + return updateKmsKeyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) {
+   *   UpdateKmsKeySnapshotRequest request =
+   *       UpdateKmsKeySnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .setSnapshotUpdateKmsKeyRequestResource(
+   *               SnapshotUpdateKmsKeyRequest.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       snapshotsClient.updateKmsKeyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateKmsKeyOperationCallable() { + return stub.updateKmsKeyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rotates the customer-managed encryption key to the latest version for the specified snapshot. + * + *

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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) {
+   *   UpdateKmsKeySnapshotRequest request =
+   *       UpdateKmsKeySnapshotRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setSnapshot("snapshot284874180")
+   *           .setSnapshotUpdateKmsKeyRequestResource(
+   *               SnapshotUpdateKmsKeyRequest.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = snapshotsClient.updateKmsKeyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateKmsKeyCallable() { + return stub.updateKmsKeyCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java index 3d4ae41d08dd..2e5012618718 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java @@ -170,6 +170,17 @@ public UnaryCallSettings setLabelsSettings( return ((SnapshotsStubSettings) getStubSettings()).testIamPermissionsSettings(); } + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return ((SnapshotsStubSettings) getStubSettings()).updateKmsKeySettings(); + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return ((SnapshotsStubSettings) getStubSettings()).updateKmsKeyOperationSettings(); + } + public static final SnapshotsSettings create(SnapshotsStubSettings stub) throws IOException { return new SnapshotsSettings.Builder(stub.toBuilder()).build(); } @@ -326,6 +337,18 @@ public UnaryCallSettings.Builder setLabelsS return getStubSettingsBuilder().testIamPermissionsSettings(); } + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder + updateKmsKeySettings() { + return getStubSettingsBuilder().updateKmsKeySettings(); + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return getStubSettingsBuilder().updateKmsKeyOperationSettings(); + } + @Override public SnapshotsSettings build() throws IOException { return new SnapshotsSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java new file mode 100644 index 000000000000..901c270064f7 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java @@ -0,0 +1,1035 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.stub.ZoneVmExtensionPoliciesStub; +import com.google.cloud.compute.v1.stub.ZoneVmExtensionPoliciesStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The ZoneVmExtensionPolicies API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+ *     ZoneVmExtensionPoliciesClient.create()) {
+ *   String project = "project-309310695";
+ *   String zone = "zone3744684";
+ *   String vmExtensionPolicy = "vmExtensionPolicy1236125338";
+ *   VmExtensionPolicy response =
+ *       zoneVmExtensionPoliciesClient.get(project, zone, vmExtensionPolicy);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ZoneVmExtensionPoliciesClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

Delete

Deletes a specified zone VM extension policy.

+ *

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

+ *
    + *
  • deleteAsync(DeleteZoneVmExtensionPolicyRequest request) + *

+ *

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

+ *
    + *
  • deleteAsync(String project, String zone, String vmExtensionPolicy) + *

+ *

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

+ *
    + *
  • deleteOperationCallable() + *

  • deleteCallable() + *

+ *

Get

Retrieves details of a specific zone VM extension policy.

+ *

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

+ *
    + *
  • get(GetZoneVmExtensionPolicyRequest request) + *

+ *

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

+ *
    + *
  • get(String project, String zone, String vmExtensionPolicy) + *

+ *

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

+ *
    + *
  • getCallable() + *

+ *

Insert

Creates a new zone-level VM extension policy within a project.

+ *

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

+ *
    + *
  • insertAsync(InsertZoneVmExtensionPolicyRequest request) + *

+ *

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

+ *
    + *
  • insertAsync(String project, String zone, VmExtensionPolicy vmExtensionPolicyResource) + *

+ *

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

+ *
    + *
  • insertOperationCallable() + *

  • insertCallable() + *

+ *

List

Lists all VM extension policies within a specific zone for a project.

+ *

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

+ *
    + *
  • list(ListZoneVmExtensionPoliciesRequest request) + *

+ *

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

+ *
    + *
  • list(String project, String zone) + *

+ *

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

+ *
    + *
  • listPagedCallable() + *

  • listCallable() + *

+ *

Update

Modifies an existing zone VM extension policy.

+ *

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

+ *
    + *
  • updateAsync(UpdateZoneVmExtensionPolicyRequest request) + *

+ *

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

+ *
    + *
  • updateAsync(String project, String zone, String vmExtensionPolicy, VmExtensionPolicy vmExtensionPolicyResource) + *

+ *

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

+ *
    + *
  • updateOperationCallable() + *

  • updateCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * ZoneVmExtensionPoliciesSettings to create(). For example: + * + *

To customize credentials: + * + *

{@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
+ * ZoneVmExtensionPoliciesSettings zoneVmExtensionPoliciesSettings =
+ *     ZoneVmExtensionPoliciesSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+ *     ZoneVmExtensionPoliciesClient.create(zoneVmExtensionPoliciesSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@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
+ * ZoneVmExtensionPoliciesSettings zoneVmExtensionPoliciesSettings =
+ *     ZoneVmExtensionPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+ *     ZoneVmExtensionPoliciesClient.create(zoneVmExtensionPoliciesSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ZoneVmExtensionPoliciesClient implements BackgroundResource { + private final ZoneVmExtensionPoliciesSettings settings; + private final ZoneVmExtensionPoliciesStub stub; + + /** Constructs an instance of ZoneVmExtensionPoliciesClient with default settings. */ + public static final ZoneVmExtensionPoliciesClient create() throws IOException { + return create(ZoneVmExtensionPoliciesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ZoneVmExtensionPoliciesClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ZoneVmExtensionPoliciesClient create(ZoneVmExtensionPoliciesSettings settings) + throws IOException { + return new ZoneVmExtensionPoliciesClient(settings); + } + + /** + * Constructs an instance of ZoneVmExtensionPoliciesClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(ZoneVmExtensionPoliciesSettings). + */ + public static final ZoneVmExtensionPoliciesClient create(ZoneVmExtensionPoliciesStub stub) { + return new ZoneVmExtensionPoliciesClient(stub); + } + + /** + * Constructs an instance of ZoneVmExtensionPoliciesClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected ZoneVmExtensionPoliciesClient(ZoneVmExtensionPoliciesSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ZoneVmExtensionPoliciesStubSettings) settings.getStubSettings()).createStub(); + } + + protected ZoneVmExtensionPoliciesClient(ZoneVmExtensionPoliciesStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ZoneVmExtensionPoliciesSettings getSettings() { + return settings; + } + + public ZoneVmExtensionPoliciesStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specified zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String vmExtensionPolicy = "vmExtensionPolicy1236125338";
+   *   Operation response =
+   *       zoneVmExtensionPoliciesClient.deleteAsync(project, zone, vmExtensionPolicy).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAsync( + String project, String zone, String vmExtensionPolicy) { + DeleteZoneVmExtensionPolicyRequest request = + DeleteZoneVmExtensionPolicyRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setVmExtensionPolicy(vmExtensionPolicy) + .build(); + return deleteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specified zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   DeleteZoneVmExtensionPolicyRequest request =
+   *       DeleteZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = zoneVmExtensionPoliciesClient.deleteAsync(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 deleteAsync( + DeleteZoneVmExtensionPolicyRequest request) { + return deleteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specified zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   DeleteZoneVmExtensionPolicyRequest request =
+   *       DeleteZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       zoneVmExtensionPoliciesClient.deleteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteOperationCallable() { + return stub.deleteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specified zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   DeleteZoneVmExtensionPolicyRequest request =
+   *       DeleteZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       zoneVmExtensionPoliciesClient.deleteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCallable() { + return stub.deleteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves details of a specific zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String vmExtensionPolicy = "vmExtensionPolicy1236125338";
+   *   VmExtensionPolicy response =
+   *       zoneVmExtensionPoliciesClient.get(project, zone, vmExtensionPolicy);
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VmExtensionPolicy get(String project, String zone, String vmExtensionPolicy) { + GetZoneVmExtensionPolicyRequest request = + GetZoneVmExtensionPolicyRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setVmExtensionPolicy(vmExtensionPolicy) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves details of a specific zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   GetZoneVmExtensionPolicyRequest request =
+   *       GetZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   VmExtensionPolicy response = zoneVmExtensionPoliciesClient.get(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 VmExtensionPolicy get(GetZoneVmExtensionPolicyRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves details of a specific zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   GetZoneVmExtensionPolicyRequest request =
+   *       GetZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       zoneVmExtensionPoliciesClient.getCallable().futureCall(request);
+   *   // Do something.
+   *   VmExtensionPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCallable() { + return stub.getCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone-level VM extension policy within a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build();
+   *   Operation response =
+   *       zoneVmExtensionPoliciesClient.insertAsync(project, zone, vmExtensionPolicyResource).get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicyResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture insertAsync( + String project, String zone, VmExtensionPolicy vmExtensionPolicyResource) { + InsertZoneVmExtensionPolicyRequest request = + InsertZoneVmExtensionPolicyRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setVmExtensionPolicyResource(vmExtensionPolicyResource) + .build(); + return insertAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone-level VM extension policy within a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   InsertZoneVmExtensionPolicyRequest request =
+   *       InsertZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = zoneVmExtensionPoliciesClient.insertAsync(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 insertAsync( + InsertZoneVmExtensionPolicyRequest request) { + return insertOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone-level VM extension policy within a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   InsertZoneVmExtensionPolicyRequest request =
+   *       InsertZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       zoneVmExtensionPoliciesClient.insertOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + insertOperationCallable() { + return stub.insertOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone-level VM extension policy within a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   InsertZoneVmExtensionPolicyRequest request =
+   *       InsertZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       zoneVmExtensionPoliciesClient.insertCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable insertCallable() { + return stub.insertCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VM extension policies within a specific zone for a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   for (VmExtensionPolicy element :
+   *       zoneVmExtensionPoliciesClient.list(project, zone).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String zone) { + ListZoneVmExtensionPoliciesRequest request = + ListZoneVmExtensionPoliciesRequest.newBuilder().setProject(project).setZone(zone).build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VM extension policies within a specific zone for a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   ListZoneVmExtensionPoliciesRequest request =
+   *       ListZoneVmExtensionPoliciesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setZone("zone3744684")
+   *           .build();
+   *   for (VmExtensionPolicy element : zoneVmExtensionPoliciesClient.list(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 ListPagedResponse list(ListZoneVmExtensionPoliciesRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VM extension policies within a specific zone for a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   ListZoneVmExtensionPoliciesRequest request =
+   *       ListZoneVmExtensionPoliciesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       zoneVmExtensionPoliciesClient.listPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (VmExtensionPolicy element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPagedCallable() { + return stub.listPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VM extension policies within a specific zone for a project. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   ListZoneVmExtensionPoliciesRequest request =
+   *       ListZoneVmExtensionPoliciesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setZone("zone3744684")
+   *           .build();
+   *   while (true) {
+   *     VmExtensionPolicyList response = zoneVmExtensionPoliciesClient.listCallable().call(request);
+   *     for (VmExtensionPolicy element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCallable() { + return stub.listCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies an existing zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   String project = "project-309310695";
+   *   String zone = "zone3744684";
+   *   String vmExtensionPolicy = "vmExtensionPolicy1236125338";
+   *   VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build();
+   *   Operation response =
+   *       zoneVmExtensionPoliciesClient
+   *           .updateAsync(project, zone, vmExtensionPolicy, vmExtensionPolicyResource)
+   *           .get();
+   * }
+   * }
+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param vmExtensionPolicyResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAsync( + String project, + String zone, + String vmExtensionPolicy, + VmExtensionPolicy vmExtensionPolicyResource) { + UpdateZoneVmExtensionPolicyRequest request = + UpdateZoneVmExtensionPolicyRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setVmExtensionPolicy(vmExtensionPolicy) + .setVmExtensionPolicyResource(vmExtensionPolicyResource) + .build(); + return updateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies an existing zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   UpdateZoneVmExtensionPolicyRequest request =
+   *       UpdateZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   Operation response = zoneVmExtensionPoliciesClient.updateAsync(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 updateAsync( + UpdateZoneVmExtensionPolicyRequest request) { + return updateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies an existing zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   UpdateZoneVmExtensionPolicyRequest request =
+   *       UpdateZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   OperationFuture future =
+   *       zoneVmExtensionPoliciesClient.updateOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateOperationCallable() { + return stub.updateOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies an existing zone VM extension policy. + * + *

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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+   *     ZoneVmExtensionPoliciesClient.create()) {
+   *   UpdateZoneVmExtensionPolicyRequest request =
+   *       UpdateZoneVmExtensionPolicyRequest.newBuilder()
+   *           .setProject("project-309310695")
+   *           .setRequestId("requestId693933066")
+   *           .setVmExtensionPolicy("vmExtensionPolicy1236125338")
+   *           .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build())
+   *           .setZone("zone3744684")
+   *           .build();
+   *   ApiFuture future =
+   *       zoneVmExtensionPoliciesClient.updateCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateCallable() { + return stub.updateCallable(); + } + + @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 ListPagedResponse + extends AbstractPagedListResponse< + ListZoneVmExtensionPoliciesRequest, + VmExtensionPolicyList, + VmExtensionPolicy, + ListPage, + ListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListPagedResponse(ListPage page) { + super(page, ListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPage + extends AbstractPage< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy, ListPage> { + + private ListPage( + PageContext + context, + VmExtensionPolicyList response) { + super(context, response); + } + + private static ListPage createEmptyPage() { + return new ListPage(null, null); + } + + @Override + protected ListPage createPage( + PageContext + context, + VmExtensionPolicyList response) { + return new ListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFixedSizeCollection + extends AbstractFixedSizeCollection< + ListZoneVmExtensionPoliciesRequest, + VmExtensionPolicyList, + VmExtensionPolicy, + ListPage, + ListFixedSizeCollection> { + + private ListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFixedSizeCollection createEmptyCollection() { + return new ListFixedSizeCollection(null, 0); + } + + @Override + protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + return new ListFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java new file mode 100644 index 000000000000..fcf5bea428d1 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java @@ -0,0 +1,315 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.stub.ZoneVmExtensionPoliciesStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ZoneVmExtensionPoliciesClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * ZoneVmExtensionPoliciesSettings.Builder zoneVmExtensionPoliciesSettingsBuilder =
+ *     ZoneVmExtensionPoliciesSettings.newBuilder();
+ * zoneVmExtensionPoliciesSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         zoneVmExtensionPoliciesSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ZoneVmExtensionPoliciesSettings zoneVmExtensionPoliciesSettings =
+ *     zoneVmExtensionPoliciesSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * ZoneVmExtensionPoliciesSettings.Builder zoneVmExtensionPoliciesSettingsBuilder =
+ *     ZoneVmExtensionPoliciesSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * zoneVmExtensionPoliciesSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ZoneVmExtensionPoliciesSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).deleteSettings(); + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).deleteOperationSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).getSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).insertSettings(); + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).insertOperationSettings(); + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + listSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).listSettings(); + } + + /** Returns the object with the settings used for calls to update. */ + public UnaryCallSettings updateSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).updateSettings(); + } + + /** Returns the object with the settings used for calls to update. */ + public OperationCallSettings + updateOperationSettings() { + return ((ZoneVmExtensionPoliciesStubSettings) getStubSettings()).updateOperationSettings(); + } + + public static final ZoneVmExtensionPoliciesSettings create( + ZoneVmExtensionPoliciesStubSettings stub) throws IOException { + return new ZoneVmExtensionPoliciesSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ZoneVmExtensionPoliciesStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ZoneVmExtensionPoliciesStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ZoneVmExtensionPoliciesStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ZoneVmExtensionPoliciesStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ZoneVmExtensionPoliciesStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ZoneVmExtensionPoliciesStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ZoneVmExtensionPoliciesStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ZoneVmExtensionPoliciesSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ZoneVmExtensionPoliciesSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ZoneVmExtensionPoliciesStubSettings.newBuilder(clientContext)); + } + + protected Builder(ZoneVmExtensionPoliciesSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ZoneVmExtensionPoliciesStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ZoneVmExtensionPoliciesStubSettings.newBuilder()); + } + + public ZoneVmExtensionPoliciesStubSettings.Builder getStubSettingsBuilder() { + return ((ZoneVmExtensionPoliciesStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder + deleteSettings() { + return getStubSettingsBuilder().deleteSettings(); + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return getStubSettingsBuilder().deleteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getStubSettingsBuilder().getSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder + insertSettings() { + return getStubSettingsBuilder().insertSettings(); + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return getStubSettingsBuilder().insertOperationSettings(); + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + listSettings() { + return getStubSettingsBuilder().listSettings(); + } + + /** Returns the builder for the settings used for calls to update. */ + public UnaryCallSettings.Builder + updateSettings() { + return getStubSettingsBuilder().updateSettings(); + } + + /** Returns the builder for the settings used for calls to update. */ + public OperationCallSettings.Builder + updateOperationSettings() { + return getStubSettingsBuilder().updateOperationSettings(); + } + + @Override + public ZoneVmExtensionPoliciesSettings build() throws IOException { + return new ZoneVmExtensionPoliciesSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json index ae3f9010013b..efe5bcbc21b9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json @@ -109,6 +109,9 @@ "AddSignedUrlKey": { "methods": ["addSignedUrlKeyAsync", "addSignedUrlKeyAsync", "addSignedUrlKeyOperationCallable", "addSignedUrlKeyCallable"] }, + "AggregatedList": { + "methods": ["aggregatedList", "aggregatedList", "aggregatedListPagedCallable", "aggregatedListCallable"] + }, "Delete": { "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] }, @@ -127,6 +130,9 @@ "List": { "methods": ["list", "list", "listPagedCallable", "listCallable"] }, + "ListUsable": { + "methods": ["listUsable", "listUsable", "listUsablePagedCallable", "listUsableCallable"] + }, "Patch": { "methods": ["patchAsync", "patchAsync", "patchOperationCallable", "patchCallable"] }, @@ -309,6 +315,9 @@ }, "Update": { "methods": ["updateAsync", "updateAsync", "updateOperationCallable", "updateCallable"] + }, + "UpdateKmsKey": { + "methods": ["updateKmsKeyAsync", "updateKmsKeyAsync", "updateKmsKeyOperationCallable", "updateKmsKeyCallable"] } } } @@ -1094,6 +1103,36 @@ } } }, + "InstantSnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "InstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] + }, + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "Insert": { + "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "InstantSnapshots": { "clients": { "grpc": { @@ -1979,6 +2018,42 @@ } } }, + "RegionBackendBuckets": { + "clients": { + "grpc": { + "libraryClient": "RegionBackendBucketsClient", + "rpcs": { + "Delete": { + "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] + }, + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "Insert": { + "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + }, + "ListUsable": { + "methods": ["listUsable", "listUsable", "listUsablePagedCallable", "listUsableCallable"] + }, + "Patch": { + "methods": ["patchAsync", "patchAsync", "patchOperationCallable", "patchCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "RegionBackendServices": { "clients": { "grpc": { @@ -2062,6 +2137,9 @@ "Get": { "methods": ["get", "get", "getCallable"] }, + "GetHealth": { + "methods": ["getHealth", "getHealth", "getHealthCallable"] + }, "Insert": { "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] }, @@ -2148,6 +2226,9 @@ }, "Update": { "methods": ["updateAsync", "updateAsync", "updateOperationCallable", "updateCallable"] + }, + "UpdateKmsKey": { + "methods": ["updateKmsKeyAsync", "updateKmsKeyAsync", "updateKmsKeyOperationCallable", "updateKmsKeyCallable"] } } } @@ -2257,6 +2338,9 @@ "Get": { "methods": ["get", "get", "getCallable"] }, + "GetHealth": { + "methods": ["getHealth", "getHealth", "getHealthCallable"] + }, "Insert": { "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] }, @@ -2273,6 +2357,30 @@ } } }, + "RegionInstanceGroupManagerResizeRequests": { + "clients": { + "grpc": { + "libraryClient": "RegionInstanceGroupManagerResizeRequestsClient", + "rpcs": { + "Cancel": { + "methods": ["cancelAsync", "cancelAsync", "cancelOperationCallable", "cancelCallable"] + }, + "Delete": { + "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] + }, + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "Insert": { + "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + } + } + } + } + }, "RegionInstanceGroupManagers": { "clients": { "grpc": { @@ -2408,6 +2516,36 @@ } } }, + "RegionInstantSnapshotGroups": { + "clients": { + "grpc": { + "libraryClient": "RegionInstantSnapshotGroupsClient", + "rpcs": { + "Delete": { + "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] + }, + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "Insert": { + "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "RegionInstantSnapshots": { "clients": { "grpc": { @@ -2618,6 +2756,57 @@ } } }, + "RegionSnapshotSettings": { + "clients": { + "grpc": { + "libraryClient": "RegionSnapshotSettingsClient", + "rpcs": { + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "Patch": { + "methods": ["patchAsync", "patchAsync", "patchOperationCallable", "patchCallable"] + } + } + } + } + }, + "RegionSnapshots": { + "clients": { + "grpc": { + "libraryClient": "RegionSnapshotsClient", + "rpcs": { + "Delete": { + "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] + }, + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "Insert": { + "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "SetLabels": { + "methods": ["setLabelsAsync", "setLabelsAsync", "setLabelsOperationCallable", "setLabelsCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateKmsKey": { + "methods": ["updateKmsKeyAsync", "updateKmsKeyAsync", "updateKmsKeyOperationCallable", "updateKmsKeyCallable"] + } + } + } + } + }, "RegionSslCertificates": { "clients": { "grpc": { @@ -3165,6 +3354,9 @@ }, "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateKmsKey": { + "methods": ["updateKmsKeyAsync", "updateKmsKeyAsync", "updateKmsKeyOperationCallable", "updateKmsKeyCallable"] } } } @@ -3743,6 +3935,30 @@ } } }, + "ZoneVmExtensionPolicies": { + "clients": { + "grpc": { + "libraryClient": "ZoneVmExtensionPoliciesClient", + "rpcs": { + "Delete": { + "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"] + }, + "Get": { + "methods": ["get", "get", "getCallable"] + }, + "Insert": { + "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"] + }, + "List": { + "methods": ["list", "list", "listPagedCallable", "listCallable"] + }, + "Update": { + "methods": ["updateAsync", "updateAsync", "updateOperationCallable", "updateCallable"] + } + } + } + } + }, "Zones": { "clients": { "grpc": { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java index 65eabd316cbd..240f3ab681d2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java @@ -599,6 +599,28 @@ * } * } * + *

======================= InstantSnapshotGroupsClient ======================= + * + *

Service Description: The InstantSnapshotGroups API. + * + *

Sample for InstantSnapshotGroupsClient: + * + *

{@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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient =
+ *     InstantSnapshotGroupsClient.create()) {
+ *   String project = "project-309310695";
+ *   String zone = "zone3744684";
+ *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+ *   InstantSnapshotGroup response =
+ *       instantSnapshotGroupsClient.get(project, zone, instantSnapshotGroup);
+ * }
+ * }
+ * *

======================= InstantSnapshotsClient ======================= * *

Service Description: The InstantSnapshots API. @@ -1140,6 +1162,27 @@ * } * } * + *

======================= RegionBackendBucketsClient ======================= + * + *

Service Description: The RegionBackendBuckets API. + * + *

Sample for RegionBackendBucketsClient: + * + *

{@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 (RegionBackendBucketsClient regionBackendBucketsClient =
+ *     RegionBackendBucketsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String backendBucket = "backendBucket713751966";
+ *   BackendBucket response = regionBackendBucketsClient.get(project, region, backendBucket);
+ * }
+ * }
+ * *

======================= RegionBackendServicesClient ======================= * *

Service Description: The RegionBackendServices API. @@ -1327,6 +1370,31 @@ * } * } * + *

======================= RegionInstanceGroupManagerResizeRequestsClient ======================= + * + *

Service Description: The RegionInstanceGroupManagerResizeRequests API. + * + *

Sample for RegionInstanceGroupManagerResizeRequestsClient: + * + *

{@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 (RegionInstanceGroupManagerResizeRequestsClient
+ *     regionInstanceGroupManagerResizeRequestsClient =
+ *         RegionInstanceGroupManagerResizeRequestsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String instanceGroupManager = "instanceGroupManager-388242077";
+ *   String resizeRequest = "resizeRequest-1656358085";
+ *   InstanceGroupManagerResizeRequest response =
+ *       regionInstanceGroupManagerResizeRequestsClient.get(
+ *           project, region, instanceGroupManager, resizeRequest);
+ * }
+ * }
+ * *

======================= RegionInstanceGroupManagersClient ======================= * *

Service Description: The RegionInstanceGroupManagers API. @@ -1416,6 +1484,28 @@ * } * } * + *

======================= RegionInstantSnapshotGroupsClient ======================= + * + *

Service Description: The RegionInstantSnapshotGroups API. + * + *

Sample for RegionInstantSnapshotGroupsClient: + * + *

{@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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient =
+ *     RegionInstantSnapshotGroupsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String instantSnapshotGroup = "instantSnapshotGroup500796090";
+ *   InstantSnapshotGroup response =
+ *       regionInstantSnapshotGroupsClient.get(project, region, instantSnapshotGroup);
+ * }
+ * }
+ * *

======================= RegionInstantSnapshotsClient ======================= * *

Service Description: The RegionInstantSnapshots API. @@ -1545,6 +1635,46 @@ * } * } * + *

======================= RegionSnapshotSettingsClient ======================= + * + *

Service Description: The RegionSnapshotSettings API. + * + *

Sample for RegionSnapshotSettingsClient: + * + *

{@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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient =
+ *     RegionSnapshotSettingsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   SnapshotSettings response = regionSnapshotSettingsClient.get(project, region);
+ * }
+ * }
+ * + *

======================= RegionSnapshotsClient ======================= + * + *

Service Description: The RegionSnapshots API. + * + *

Sample for RegionSnapshotsClient: + * + *

{@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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) {
+ *   String project = "project-309310695";
+ *   String region = "region-934795532";
+ *   String snapshot = "snapshot284874180";
+ *   Snapshot response = regionSnapshotsClient.get(project, region, snapshot);
+ * }
+ * }
+ * *

======================= RegionSslCertificatesClient ======================= * *

Service Description: The RegionSslCertificates API. @@ -2286,6 +2416,28 @@ * } * } * + *

======================= ZoneVmExtensionPoliciesClient ======================= + * + *

Service Description: The ZoneVmExtensionPolicies API. + * + *

Sample for ZoneVmExtensionPoliciesClient: + * + *

{@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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient =
+ *     ZoneVmExtensionPoliciesClient.create()) {
+ *   String project = "project-309310695";
+ *   String zone = "zone3744684";
+ *   String vmExtensionPolicy = "vmExtensionPolicy1236125338";
+ *   VmExtensionPolicy response =
+ *       zoneVmExtensionPoliciesClient.get(project, zone, vmExtensionPolicy);
+ * }
+ * }
+ * *

======================= ZonesClient ======================= * *

Service Description: The Zones API. diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStub.java index d4b5cc24adbd..e81516483789 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStub.java @@ -16,20 +16,26 @@ package com.google.cloud.compute.v1.stub; +import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest; +import com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest; import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketAggregatedList; import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.BackendBucketListUsable; import com.google.cloud.compute.v1.DeleteBackendBucketRequest; import com.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest; import com.google.cloud.compute.v1.GetBackendBucketRequest; import com.google.cloud.compute.v1.GetIamPolicyBackendBucketRequest; import com.google.cloud.compute.v1.InsertBackendBucketRequest; import com.google.cloud.compute.v1.ListBackendBucketsRequest; +import com.google.cloud.compute.v1.ListUsableBackendBucketsRequest; import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.PatchBackendBucketRequest; import com.google.cloud.compute.v1.Policy; @@ -58,6 +64,16 @@ public UnaryCallable addSignedUr throw new UnsupportedOperationException("Not implemented: addSignedUrlKeyCallable()"); } + public UnaryCallable + aggregatedListPagedCallable() { + throw new UnsupportedOperationException("Not implemented: aggregatedListPagedCallable()"); + } + + public UnaryCallable + aggregatedListCallable() { + throw new UnsupportedOperationException("Not implemented: aggregatedListCallable()"); + } + public OperationCallable deleteOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); @@ -103,6 +119,16 @@ public UnaryCallable listCallable( throw new UnsupportedOperationException("Not implemented: listCallable()"); } + public UnaryCallable + listUsablePagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUsablePagedCallable()"); + } + + public UnaryCallable + listUsableCallable() { + throw new UnsupportedOperationException("Not implemented: listUsableCallable()"); + } + public OperationCallable patchOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchOperationCallable()"); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java index a7c4c28a73c0..83505af230f4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java @@ -16,7 +16,9 @@ package com.google.cloud.compute.v1.stub; +import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -46,14 +48,19 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest; +import com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest; import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketAggregatedList; import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.BackendBucketListUsable; +import com.google.cloud.compute.v1.BackendBucketsScopedList; import com.google.cloud.compute.v1.DeleteBackendBucketRequest; import com.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest; import com.google.cloud.compute.v1.GetBackendBucketRequest; import com.google.cloud.compute.v1.GetIamPolicyBackendBucketRequest; import com.google.cloud.compute.v1.InsertBackendBucketRequest; import com.google.cloud.compute.v1.ListBackendBucketsRequest; +import com.google.cloud.compute.v1.ListUsableBackendBucketsRequest; import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.PatchBackendBucketRequest; import com.google.cloud.compute.v1.Policy; @@ -69,6 +76,7 @@ import java.io.IOException; import java.time.Duration; import java.util.List; +import java.util.Map; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -161,6 +169,11 @@ public class BackendBucketsStubSettings extends StubSettings addSignedUrlKeyOperationSettings; + private final PagedCallSettings< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings; private final UnaryCallSettings deleteSettings; private final OperationCallSettings deleteOperationSettings; @@ -175,6 +188,9 @@ public class BackendBucketsStubSettings extends StubSettings listSettings; + private final PagedCallSettings< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings; private final UnaryCallSettings patchSettings; private final OperationCallSettings patchOperationSettings; @@ -190,6 +206,53 @@ public class BackendBucketsStubSettings extends StubSettings updateOperationSettings; + private static final PagedListDescriptor< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry> + AGGREGATED_LIST_PAGE_STR_DESC = + new PagedListDescriptor< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public AggregatedListBackendBucketsRequest injectToken( + AggregatedListBackendBucketsRequest payload, String token) { + return AggregatedListBackendBucketsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public AggregatedListBackendBucketsRequest injectPageSize( + AggregatedListBackendBucketsRequest payload, int pageSize) { + return AggregatedListBackendBucketsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(AggregatedListBackendBucketsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(BackendBucketAggregatedList payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable> extractResources( + BackendBucketAggregatedList payload) { + return payload.getItemsMap().entrySet(); + } + }; + private static final PagedListDescriptor< ListBackendBucketsRequest, BackendBucketList, BackendBucket> LIST_PAGE_STR_DESC = @@ -227,6 +290,74 @@ public Iterable extractResources(BackendBucketList payload) { } }; + private static final PagedListDescriptor< + ListUsableBackendBucketsRequest, BackendBucketListUsable, BackendBucket> + LIST_USABLE_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableBackendBucketsRequest, BackendBucketListUsable, BackendBucket>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableBackendBucketsRequest injectToken( + ListUsableBackendBucketsRequest payload, String token) { + return ListUsableBackendBucketsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListUsableBackendBucketsRequest injectPageSize( + ListUsableBackendBucketsRequest payload, int pageSize) { + return ListUsableBackendBucketsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListUsableBackendBucketsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(BackendBucketListUsable payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(BackendBucketListUsable payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse> + AGGREGATED_LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + AggregatedListBackendBucketsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + Map.Entry> + pageContext = + PageContext.create(callable, AGGREGATED_LIST_PAGE_STR_DESC, request, context); + return AggregatedListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListBackendBucketsRequest, BackendBucketList, ListPagedResponse> LIST_PAGE_STR_FACT = @@ -244,6 +375,24 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + LIST_USABLE_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUsableBackendBucketsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, LIST_USABLE_PAGE_STR_DESC, request, context); + return ListUsablePagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to addSignedUrlKey. */ public UnaryCallSettings addSignedUrlKeySettings() { @@ -256,6 +405,15 @@ public ApiFuture getFuturePagedResponse( return addSignedUrlKeyOperationSettings; } + /** Returns the object with the settings used for calls to aggregatedList. */ + public PagedCallSettings< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return aggregatedListSettings; + } + /** Returns the object with the settings used for calls to delete. */ public UnaryCallSettings deleteSettings() { return deleteSettings; @@ -306,6 +464,13 @@ public UnaryCallSettings insertSettings() return listSettings; } + /** Returns the object with the settings used for calls to listUsable. */ + public PagedCallSettings< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return listUsableSettings; + } + /** Returns the object with the settings used for calls to patch. */ public UnaryCallSettings patchSettings() { return patchSettings; @@ -435,6 +600,7 @@ protected BackendBucketsStubSettings(Builder settingsBuilder) throws IOException addSignedUrlKeySettings = settingsBuilder.addSignedUrlKeySettings().build(); addSignedUrlKeyOperationSettings = settingsBuilder.addSignedUrlKeyOperationSettings().build(); + aggregatedListSettings = settingsBuilder.aggregatedListSettings().build(); deleteSettings = settingsBuilder.deleteSettings().build(); deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); deleteSignedUrlKeySettings = settingsBuilder.deleteSignedUrlKeySettings().build(); @@ -445,6 +611,7 @@ protected BackendBucketsStubSettings(Builder settingsBuilder) throws IOException insertSettings = settingsBuilder.insertSettings().build(); insertOperationSettings = settingsBuilder.insertOperationSettings().build(); listSettings = settingsBuilder.listSettings().build(); + listUsableSettings = settingsBuilder.listUsableSettings().build(); patchSettings = settingsBuilder.patchSettings().build(); patchOperationSettings = settingsBuilder.patchOperationSettings().build(); setEdgeSecurityPolicySettings = settingsBuilder.setEdgeSecurityPolicySettings().build(); @@ -473,6 +640,11 @@ public static class Builder extends StubSettings.Builder addSignedUrlKeyOperationSettings; + private final PagedCallSettings.Builder< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings; private final UnaryCallSettings.Builder deleteSettings; private final OperationCallSettings.Builder deleteOperationSettings; @@ -490,6 +662,9 @@ public static class Builder extends StubSettings.Builder listSettings; + private final PagedCallSettings.Builder< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings; private final UnaryCallSettings.Builder patchSettings; private final OperationCallSettings.Builder patchOperationSettings; @@ -558,6 +733,7 @@ protected Builder(ClientContext clientContext) { addSignedUrlKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); addSignedUrlKeyOperationSettings = OperationCallSettings.newBuilder(); + aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteOperationSettings = OperationCallSettings.newBuilder(); deleteSignedUrlKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -567,6 +743,7 @@ protected Builder(ClientContext clientContext) { insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); insertOperationSettings = OperationCallSettings.newBuilder(); listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + listUsableSettings = PagedCallSettings.newBuilder(LIST_USABLE_PAGE_STR_FACT); patchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); patchOperationSettings = OperationCallSettings.newBuilder(); setEdgeSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -579,12 +756,14 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( addSignedUrlKeySettings, + aggregatedListSettings, deleteSettings, deleteSignedUrlKeySettings, getSettings, getIamPolicySettings, insertSettings, listSettings, + listUsableSettings, patchSettings, setEdgeSecurityPolicySettings, setIamPolicySettings, @@ -598,6 +777,7 @@ protected Builder(BackendBucketsStubSettings settings) { addSignedUrlKeySettings = settings.addSignedUrlKeySettings.toBuilder(); addSignedUrlKeyOperationSettings = settings.addSignedUrlKeyOperationSettings.toBuilder(); + aggregatedListSettings = settings.aggregatedListSettings.toBuilder(); deleteSettings = settings.deleteSettings.toBuilder(); deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); deleteSignedUrlKeySettings = settings.deleteSignedUrlKeySettings.toBuilder(); @@ -608,6 +788,7 @@ protected Builder(BackendBucketsStubSettings settings) { insertSettings = settings.insertSettings.toBuilder(); insertOperationSettings = settings.insertOperationSettings.toBuilder(); listSettings = settings.listSettings.toBuilder(); + listUsableSettings = settings.listUsableSettings.toBuilder(); patchSettings = settings.patchSettings.toBuilder(); patchOperationSettings = settings.patchOperationSettings.toBuilder(); setEdgeSecurityPolicySettings = settings.setEdgeSecurityPolicySettings.toBuilder(); @@ -621,12 +802,14 @@ protected Builder(BackendBucketsStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( addSignedUrlKeySettings, + aggregatedListSettings, deleteSettings, deleteSignedUrlKeySettings, getSettings, getIamPolicySettings, insertSettings, listSettings, + listUsableSettings, patchSettings, setEdgeSecurityPolicySettings, setIamPolicySettings, @@ -652,6 +835,11 @@ 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 + .aggregatedListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .deleteSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -682,6 +870,11 @@ 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 + .listUsableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .patchSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -908,6 +1101,15 @@ public Builder applyToAllUnaryMethods( return addSignedUrlKeyOperationSettings; } + /** Returns the builder for the settings used for calls to aggregatedList. */ + public PagedCallSettings.Builder< + AggregatedListBackendBucketsRequest, + BackendBucketAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return aggregatedListSettings; + } + /** Returns the builder for the settings used for calls to delete. */ public UnaryCallSettings.Builder deleteSettings() { return deleteSettings; @@ -961,6 +1163,13 @@ public UnaryCallSettings.Builder insertSe return listSettings; } + /** Returns the builder for the settings used for calls to listUsable. */ + public PagedCallSettings.Builder< + ListUsableBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return listUsableSettings; + } + /** Returns the builder for the settings used for calls to patch. */ public UnaryCallSettings.Builder patchSettings() { return patchSettings; diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStub.java index 26677a01f0c1..315de836b823 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStub.java @@ -47,6 +47,7 @@ import com.google.cloud.compute.v1.TestIamPermissionsDiskRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; import com.google.cloud.compute.v1.UpdateDiskRequest; +import com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -213,6 +214,15 @@ public UnaryCallable updateCallable() { throw new UnsupportedOperationException("Not implemented: updateCallable()"); } + public OperationCallable + updateKmsKeyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyOperationCallable()"); + } + + public UnaryCallable updateKmsKeyCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyCallable()"); + } + @Override public abstract void close(); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java index 86639bdceae7..158a5d8c21bf 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java @@ -72,6 +72,7 @@ import com.google.cloud.compute.v1.TestIamPermissionsDiskRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; import com.google.cloud.compute.v1.UpdateDiskRequest; +import com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -219,6 +220,9 @@ public class DisksStubSettings extends StubSettings { private final UnaryCallSettings updateSettings; private final OperationCallSettings updateOperationSettings; + private final UnaryCallSettings updateKmsKeySettings; + private final OperationCallSettings + updateKmsKeyOperationSettings; private static final PagedListDescriptor< AggregatedListDisksRequest, DiskAggregatedList, Map.Entry> @@ -507,6 +511,17 @@ public OperationCallSettings updateOper return updateOperationSettings; } + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + public DisksStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -625,6 +640,8 @@ protected DisksStubSettings(Builder settingsBuilder) throws IOException { testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); updateSettings = settingsBuilder.updateSettings().build(); updateOperationSettings = settingsBuilder.updateOperationSettings().build(); + updateKmsKeySettings = settingsBuilder.updateKmsKeySettings().build(); + updateKmsKeyOperationSettings = settingsBuilder.updateKmsKeyOperationSettings().build(); } @Override @@ -700,6 +717,10 @@ public static class Builder extends StubSettings.Builder updateSettings; private final OperationCallSettings.Builder updateOperationSettings; + private final UnaryCallSettings.Builder + updateKmsKeySettings; + private final OperationCallSettings.Builder + updateKmsKeyOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -782,6 +803,8 @@ protected Builder(ClientContext clientContext) { testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateOperationSettings = OperationCallSettings.newBuilder(); + updateKmsKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKmsKeyOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -803,7 +826,8 @@ protected Builder(ClientContext clientContext) { stopAsyncReplicationSettings, stopGroupAsyncReplicationSettings, testIamPermissionsSettings, - updateSettings); + updateSettings, + updateKmsKeySettings); initDefaults(this); } @@ -847,6 +871,8 @@ protected Builder(DisksStubSettings settings) { testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); updateSettings = settings.updateSettings.toBuilder(); updateOperationSettings = settings.updateOperationSettings.toBuilder(); + updateKmsKeySettings = settings.updateKmsKeySettings.toBuilder(); + updateKmsKeyOperationSettings = settings.updateKmsKeyOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -868,7 +894,8 @@ protected Builder(DisksStubSettings settings) { stopAsyncReplicationSettings, stopGroupAsyncReplicationSettings, testIamPermissionsSettings, - updateSettings); + updateSettings, + updateKmsKeySettings); } private static Builder createDefault() { @@ -979,6 +1006,11 @@ 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 + .updateKmsKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .addResourcePoliciesOperationSettings() .setInitialCallSettings( @@ -1290,6 +1322,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .updateKmsKeyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + return builder; } @@ -1490,6 +1546,17 @@ public UnaryCallSettings.Builder updateSettings() return updateOperationSettings; } + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + @Override public DisksStubSettings build() throws IOException { return new DisksStubSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketsStub.java index 640561edd5d9..9f5a3784c09c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketsStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketsStub.java @@ -16,7 +16,9 @@ package com.google.cloud.compute.v1.stub; +import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -34,14 +36,18 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest; +import com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest; import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketAggregatedList; import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.BackendBucketListUsable; import com.google.cloud.compute.v1.DeleteBackendBucketRequest; import com.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest; import com.google.cloud.compute.v1.GetBackendBucketRequest; import com.google.cloud.compute.v1.GetIamPolicyBackendBucketRequest; import com.google.cloud.compute.v1.InsertBackendBucketRequest; import com.google.cloud.compute.v1.ListBackendBucketsRequest; +import com.google.cloud.compute.v1.ListUsableBackendBucketsRequest; import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.Operation.Status; import com.google.cloud.compute.v1.PatchBackendBucketRequest; @@ -127,6 +133,70 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub { }) .build(); + private static final ApiMethodDescriptor< + AggregatedListBackendBucketsRequest, BackendBucketAggregatedList> + aggregatedListMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.BackendBuckets/AggregatedList") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/aggregated/backendBuckets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasIncludeAllScopes()) { + serializer.putQueryParam( + fields, "includeAllScopes", request.getIncludeAllScopes()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + if (request.hasServiceProjectNumber()) { + serializer.putQueryParam( + fields, + "serviceProjectNumber", + request.getServiceProjectNumber()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BackendBucketAggregatedList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -409,6 +479,58 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub { .build()) .build(); + private static final ApiMethodDescriptor + listUsableMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.BackendBuckets/ListUsable") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/global/backendBuckets/listUsable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BackendBucketListUsable.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor patchMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -664,6 +786,10 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub { addSignedUrlKeyCallable; private final OperationCallable addSignedUrlKeyOperationCallable; + private final UnaryCallable + aggregatedListCallable; + private final UnaryCallable + aggregatedListPagedCallable; private final UnaryCallable deleteCallable; private final OperationCallable deleteOperationCallable; @@ -678,6 +804,10 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub { insertOperationCallable; private final UnaryCallable listCallable; private final UnaryCallable listPagedCallable; + private final UnaryCallable + listUsableCallable; + private final UnaryCallable + listUsablePagedCallable; private final UnaryCallable patchCallable; private final OperationCallable patchOperationCallable; @@ -698,6 +828,8 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub { private static final PathTemplate ADD_SIGNED_URL_KEY_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/global/backendBuckets/{backend_bucket}"); + private static final PathTemplate AGGREGATED_LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}"); private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/global/backendBuckets/{backend_bucket}"); private static final PathTemplate DELETE_SIGNED_URL_KEY_RESOURCE_NAME_TEMPLATE = @@ -710,6 +842,8 @@ public class HttpJsonBackendBucketsStub extends BackendBucketsStub { PathTemplate.create("projects/{project}"); private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}"); + private static final PathTemplate LIST_USABLE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}"); private static final PathTemplate PATCH_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/global/backendBuckets/{backend_bucket}"); private static final PathTemplate SET_EDGE_SECURITY_POLICY_RESOURCE_NAME_TEMPLATE = @@ -784,6 +918,26 @@ protected HttpJsonBackendBucketsStub( resourceNameSegments); }) .build(); + HttpJsonCallSettings + aggregatedListTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(aggregatedListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + return AGGREGATED_LIST_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); HttpJsonCallSettings deleteTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteMethodDescriptor) @@ -899,6 +1053,25 @@ protected HttpJsonBackendBucketsStub( return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); }) .build(); + HttpJsonCallSettings + listUsableTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listUsableMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + return LIST_USABLE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); HttpJsonCallSettings patchTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(patchMethodDescriptor) @@ -1012,6 +1185,12 @@ protected HttpJsonBackendBucketsStub( settings.addSignedUrlKeyOperationSettings(), clientContext, httpJsonOperationsStub); + this.aggregatedListCallable = + callableFactory.createUnaryCallable( + aggregatedListTransportSettings, settings.aggregatedListSettings(), clientContext); + this.aggregatedListPagedCallable = + callableFactory.createPagedCallable( + aggregatedListTransportSettings, settings.aggregatedListSettings(), clientContext); this.deleteCallable = callableFactory.createUnaryCallable( deleteTransportSettings, settings.deleteSettings(), clientContext); @@ -1053,6 +1232,12 @@ protected HttpJsonBackendBucketsStub( this.listPagedCallable = callableFactory.createPagedCallable( listTransportSettings, settings.listSettings(), clientContext); + this.listUsableCallable = + callableFactory.createUnaryCallable( + listUsableTransportSettings, settings.listUsableSettings(), clientContext); + this.listUsablePagedCallable = + callableFactory.createPagedCallable( + listUsableTransportSettings, settings.listUsableSettings(), clientContext); this.patchCallable = callableFactory.createUnaryCallable( patchTransportSettings, settings.patchSettings(), clientContext); @@ -1099,12 +1284,14 @@ protected HttpJsonBackendBucketsStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(addSignedUrlKeyMethodDescriptor); + methodDescriptors.add(aggregatedListMethodDescriptor); methodDescriptors.add(deleteMethodDescriptor); methodDescriptors.add(deleteSignedUrlKeyMethodDescriptor); methodDescriptors.add(getMethodDescriptor); methodDescriptors.add(getIamPolicyMethodDescriptor); methodDescriptors.add(insertMethodDescriptor); methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(listUsableMethodDescriptor); methodDescriptors.add(patchMethodDescriptor); methodDescriptors.add(setEdgeSecurityPolicyMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -1124,6 +1311,18 @@ public UnaryCallable addSignedUr return addSignedUrlKeyOperationCallable; } + @Override + public UnaryCallable + aggregatedListCallable() { + return aggregatedListCallable; + } + + @Override + public UnaryCallable + aggregatedListPagedCallable() { + return aggregatedListPagedCallable; + } + @Override public UnaryCallable deleteCallable() { return deleteCallable; @@ -1178,6 +1377,18 @@ public UnaryCallable listPagedCall return listPagedCallable; } + @Override + public UnaryCallable + listUsableCallable() { + return listUsableCallable; + } + + @Override + public UnaryCallable + listUsablePagedCallable() { + return listUsablePagedCallable; + } + @Override public UnaryCallable patchCallable() { return patchCallable; diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDisksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDisksStub.java index b4d8eacf9f58..53d6d4178855 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDisksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDisksStub.java @@ -60,6 +60,7 @@ import com.google.cloud.compute.v1.TestIamPermissionsDiskRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; import com.google.cloud.compute.v1.UpdateDiskRequest; +import com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -1076,6 +1077,63 @@ public class HttpJsonDisksStub extends DisksStub { }) .build(); + private static final ApiMethodDescriptor + updateKmsKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.Disks/UpdateKmsKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "disk", request.getDisk()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "diskUpdateKmsKeyRequestResource", + request.getDiskUpdateKmsKeyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateKmsKeyDiskRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private final UnaryCallable addResourcePoliciesCallable; private final OperationCallable @@ -1127,6 +1185,9 @@ public class HttpJsonDisksStub extends DisksStub { testIamPermissionsCallable; private final UnaryCallable updateCallable; private final OperationCallable updateOperationCallable; + private final UnaryCallable updateKmsKeyCallable; + private final OperationCallable + updateKmsKeyOperationCallable; private final BackgroundResource backgroundResources; private final HttpJsonZoneOperationsStub httpJsonOperationsStub; @@ -1170,6 +1231,8 @@ public class HttpJsonDisksStub extends DisksStub { PathTemplate.create("projects/{project}/zones/{zone}/disks/{resource}"); private static final PathTemplate UPDATE_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/zones/{zone}/disks/{disk}"); + private static final PathTemplate UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}/disks/{disk}"); public static final HttpJsonDisksStub create(DisksStubSettings settings) throws IOException { return new HttpJsonDisksStub(settings, ClientContext.create(settings)); @@ -1608,6 +1671,27 @@ protected HttpJsonDisksStub( return UPDATE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); }) .build(); + HttpJsonCallSettings updateKmsKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateKmsKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("disk", String.valueOf(request.getDisk())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("disk", String.valueOf(request.getDisk())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); this.addResourcePoliciesCallable = callableFactory.createUnaryCallable( @@ -1762,6 +1846,15 @@ protected HttpJsonDisksStub( settings.updateOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateKmsKeyCallable = + callableFactory.createUnaryCallable( + updateKmsKeyTransportSettings, settings.updateKmsKeySettings(), clientContext); + this.updateKmsKeyOperationCallable = + callableFactory.createOperationCallable( + updateKmsKeyTransportSettings, + settings.updateKmsKeyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1789,6 +1882,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(stopGroupAsyncReplicationMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); methodDescriptors.add(updateMethodDescriptor); + methodDescriptors.add(updateKmsKeyMethodDescriptor); return methodDescriptors; } @@ -1976,6 +2070,17 @@ public OperationCallable updateOperatio return updateOperationCallable; } + @Override + public UnaryCallable updateKmsKeyCallable() { + return updateKmsKeyCallable; + } + + @Override + public OperationCallable + updateKmsKeyOperationCallable() { + return updateKmsKeyOperationCallable; + } + @Override public final void close() { try { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsCallableFactory.java new file mode 100644 index 000000000000..ba9e41930155 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsCallableFactory.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the InstantSnapshotGroups service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonInstantSnapshotGroupsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + ZoneOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsStub.java new file mode 100644 index 000000000000..e43534d80ac9 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstantSnapshotGroupsStub.java @@ -0,0 +1,783 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.InstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the InstantSnapshotGroups service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonInstantSnapshotGroupsStub extends InstantSnapshotGroupsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor + deleteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/Delete") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instantSnapshotGroup", request.getInstantSnapshotGroup()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteInstantSnapshotGroupRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + getMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instantSnapshotGroup", request.getInstantSnapshotGroup()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(InstantSnapshotGroup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasOptionsRequestedPolicyVersion()) { + serializer.putQueryParam( + fields, + "optionsRequestedPolicyVersion", + request.getOptionsRequestedPolicyVersion()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + insertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/Insert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + if (request.hasSourceConsistencyGroup()) { + serializer.putQueryParam( + fields, + "sourceConsistencyGroup", + request.getSourceConsistencyGroup()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instantSnapshotGroupResource", + request.getInstantSnapshotGroupResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InsertInstantSnapshotGroupRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups> + listMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListInstantSnapshotGroups.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "zoneSetPolicyRequestResource", + request.getZoneSetPolicyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + TestIamPermissionsInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.InstantSnapshotGroups/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "testPermissionsRequestResource", + request.getTestPermissionsRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable deleteCallable; + private final OperationCallable + deleteOperationCallable; + private final UnaryCallable getCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable insertCallable; + private final OperationCallable + insertOperationCallable; + private final UnaryCallable + listCallable; + private final UnaryCallable + listPagedCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable< + TestIamPermissionsInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonZoneOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}"); + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}"); + private static final PathTemplate GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}"); + private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}"); + private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}"); + private static final PathTemplate SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}"); + private static final PathTemplate TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}"); + + public static final HttpJsonInstantSnapshotGroupsStub create( + InstantSnapshotGroupsStubSettings settings) throws IOException { + return new HttpJsonInstantSnapshotGroupsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonInstantSnapshotGroupsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonInstantSnapshotGroupsStub( + InstantSnapshotGroupsStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonInstantSnapshotGroupsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonInstantSnapshotGroupsStub( + InstantSnapshotGroupsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonInstantSnapshotGroupsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonInstantSnapshotGroupsStub( + InstantSnapshotGroupsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonInstantSnapshotGroupsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonInstantSnapshotGroupsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonInstantSnapshotGroupsStub( + InstantSnapshotGroupsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = HttpJsonZoneOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings deleteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instant_snapshot_group", String.valueOf(request.getInstantSnapshotGroup())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instant_snapshot_group", String.valueOf(request.getInstantSnapshotGroup())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return DELETE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + getTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instant_snapshot_group", + String.valueOf(request.getInstantSnapshotGroup())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instant_snapshot_group", + String.valueOf(request.getInstantSnapshotGroup())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("resource", String.valueOf(request.getResource())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings insertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(insertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return INSERT_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + listTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("resource", String.valueOf(request.getResource())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("resource", String.valueOf(request.getResource())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + + this.deleteCallable = + callableFactory.createUnaryCallable( + deleteTransportSettings, settings.deleteSettings(), clientContext); + this.deleteOperationCallable = + callableFactory.createOperationCallable( + deleteTransportSettings, + settings.deleteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.insertCallable = + callableFactory.createUnaryCallable( + insertTransportSettings, settings.insertSettings(), clientContext); + this.insertOperationCallable = + callableFactory.createOperationCallable( + insertTransportSettings, + settings.insertOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(deleteMethodDescriptor); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(insertMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable deleteCallable() { + return deleteCallable; + } + + @Override + public OperationCallable + deleteOperationCallable() { + return deleteOperationCallable; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable insertCallable() { + return insertCallable; + } + + @Override + public OperationCallable + insertOperationCallable() { + return insertOperationCallable; + } + + @Override + public UnaryCallable listCallable() { + return listCallable; + } + + @Override + public UnaryCallable listPagedCallable() { + return listPagedCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsCallableFactory.java new file mode 100644 index 000000000000..d4421ede44a4 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsCallableFactory.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the RegionBackendBuckets service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionBackendBucketsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + RegionOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsStub.java new file mode 100644 index 000000000000..dc3217c916db --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendBucketsStub.java @@ -0,0 +1,974 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListUsablePagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.BackendBucketListUsable; +import com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.GetRegionBackendBucketRequest; +import com.google.cloud.compute.v1.InsertRegionBackendBucketRequest; +import com.google.cloud.compute.v1.ListRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.PatchRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the RegionBackendBuckets service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionBackendBucketsStub extends RegionBackendBucketsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor + deleteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/Delete") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{backendBucket}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "backendBucket", request.getBackendBucket()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteRegionBackendBucketRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + getMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{backendBucket}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "backendBucket", request.getBackendBucket()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BackendBucket.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasOptionsRequestedPolicyVersion()) { + serializer.putQueryParam( + fields, + "optionsRequestedPolicyVersion", + request.getOptionsRequestedPolicyVersion()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + insertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/Insert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "backendBucketResource", + request.getBackendBucketResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InsertRegionBackendBucketRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + listMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BackendBucketList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable> + listUsableMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/ListUsable") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/listUsable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BackendBucketListUsable.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + patchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/Patch") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{backendBucket}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "backendBucket", request.getBackendBucket()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "backendBucketResource", + request.getBackendBucketResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PatchRegionBackendBucketRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionSetPolicyRequestResource", + request.getRegionSetPolicyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + TestIamPermissionsRegionBackendBucketRequest, TestPermissionsResponse> + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionBackendBuckets/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "testPermissionsRequestResource", + request.getTestPermissionsRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable deleteCallable; + private final OperationCallable + deleteOperationCallable; + private final UnaryCallable getCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable insertCallable; + private final OperationCallable + insertOperationCallable; + private final UnaryCallable listCallable; + private final UnaryCallable listPagedCallable; + private final UnaryCallable + listUsableCallable; + private final UnaryCallable + listUsablePagedCallable; + private final UnaryCallable patchCallable; + private final OperationCallable + patchOperationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonRegionOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/backendBuckets/{backend_bucket}"); + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/backendBuckets/{backend_bucket}"); + private static final PathTemplate GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/backendBuckets/{resource}"); + private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate LIST_USABLE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate PATCH_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/backendBuckets/{backend_bucket}"); + private static final PathTemplate SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/backendBuckets/{resource}"); + private static final PathTemplate TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/backendBuckets/{resource}"); + + public static final HttpJsonRegionBackendBucketsStub create( + RegionBackendBucketsStubSettings settings) throws IOException { + return new HttpJsonRegionBackendBucketsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRegionBackendBucketsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonRegionBackendBucketsStub( + RegionBackendBucketsStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonRegionBackendBucketsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRegionBackendBucketsStub( + RegionBackendBucketsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonRegionBackendBucketsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRegionBackendBucketsStub( + RegionBackendBucketsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonRegionBackendBucketsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRegionBackendBucketsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRegionBackendBucketsStub( + RegionBackendBucketsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonRegionOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings deleteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backend_bucket", String.valueOf(request.getBackendBucket())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "backend_bucket", String.valueOf(request.getBackendBucket())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return DELETE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings getTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backend_bucket", String.valueOf(request.getBackendBucket())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "backend_bucket", String.valueOf(request.getBackendBucket())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings insertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(insertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return INSERT_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings listTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + listUsableTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listUsableMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return LIST_USABLE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings patchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(patchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backend_bucket", String.valueOf(request.getBackendBucket())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "backend_bucket", String.valueOf(request.getBackendBucket())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return PATCH_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + + this.deleteCallable = + callableFactory.createUnaryCallable( + deleteTransportSettings, settings.deleteSettings(), clientContext); + this.deleteOperationCallable = + callableFactory.createOperationCallable( + deleteTransportSettings, + settings.deleteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.insertCallable = + callableFactory.createUnaryCallable( + insertTransportSettings, settings.insertSettings(), clientContext); + this.insertOperationCallable = + callableFactory.createOperationCallable( + insertTransportSettings, + settings.insertOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listUsableCallable = + callableFactory.createUnaryCallable( + listUsableTransportSettings, settings.listUsableSettings(), clientContext); + this.listUsablePagedCallable = + callableFactory.createPagedCallable( + listUsableTransportSettings, settings.listUsableSettings(), clientContext); + this.patchCallable = + callableFactory.createUnaryCallable( + patchTransportSettings, settings.patchSettings(), clientContext); + this.patchOperationCallable = + callableFactory.createOperationCallable( + patchTransportSettings, + settings.patchOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(deleteMethodDescriptor); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(insertMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(listUsableMethodDescriptor); + methodDescriptors.add(patchMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable deleteCallable() { + return deleteCallable; + } + + @Override + public OperationCallable + deleteOperationCallable() { + return deleteOperationCallable; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable insertCallable() { + return insertCallable; + } + + @Override + public OperationCallable + insertOperationCallable() { + return insertOperationCallable; + } + + @Override + public UnaryCallable listCallable() { + return listCallable; + } + + @Override + public UnaryCallable listPagedCallable() { + return listPagedCallable; + } + + @Override + public UnaryCallable + listUsableCallable() { + return listUsableCallable; + } + + @Override + public UnaryCallable + listUsablePagedCallable() { + return listUsablePagedCallable; + } + + @Override + public UnaryCallable patchCallable() { + return patchCallable; + } + + @Override + public OperationCallable + patchOperationCallable() { + return patchOperationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCompositeHealthChecksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCompositeHealthChecksStub.java index e94a10279ae9..67ac2a3aced4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCompositeHealthChecksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCompositeHealthChecksStub.java @@ -37,8 +37,10 @@ import com.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest; import com.google.cloud.compute.v1.CompositeHealthCheck; import com.google.cloud.compute.v1.CompositeHealthCheckAggregatedList; +import com.google.cloud.compute.v1.CompositeHealthCheckHealth; import com.google.cloud.compute.v1.CompositeHealthCheckList; import com.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest; +import com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest; @@ -225,6 +227,45 @@ public class HttpJsonRegionCompositeHealthChecksStub extends RegionCompositeHeal .build()) .build(); + private static final ApiMethodDescriptor< + GetHealthRegionCompositeHealthCheckRequest, CompositeHealthCheckHealth> + getHealthMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionCompositeHealthChecks/GetHealth") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}/getHealth", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "compositeHealthCheck", request.getCompositeHealthCheck()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompositeHealthCheckHealth.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor insertMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -451,6 +492,9 @@ public class HttpJsonRegionCompositeHealthChecksStub extends RegionCompositeHeal deleteOperationCallable; private final UnaryCallable getCallable; + private final UnaryCallable< + GetHealthRegionCompositeHealthCheckRequest, CompositeHealthCheckHealth> + getHealthCallable; private final UnaryCallable insertCallable; private final OperationCallable insertOperationCallable; @@ -477,6 +521,9 @@ public class HttpJsonRegionCompositeHealthChecksStub extends RegionCompositeHeal private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = PathTemplate.create( "projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}"); + private static final PathTemplate GET_HEALTH_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}"); private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/regions/{region}"); private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = @@ -607,6 +654,34 @@ protected HttpJsonRegionCompositeHealthChecksStub( return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); }) .build(); + HttpJsonCallSettings + getHealthTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(getHealthMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "composite_health_check", + String.valueOf(request.getCompositeHealthCheck())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "composite_health_check", + String.valueOf(request.getCompositeHealthCheck())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return GET_HEALTH_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); HttpJsonCallSettings insertTransportSettings = HttpJsonCallSettings.newBuilder() @@ -716,6 +791,9 @@ protected HttpJsonRegionCompositeHealthChecksStub( this.getCallable = callableFactory.createUnaryCallable( getTransportSettings, settings.getSettings(), clientContext); + this.getHealthCallable = + callableFactory.createUnaryCallable( + getHealthTransportSettings, settings.getHealthSettings(), clientContext); this.insertCallable = callableFactory.createUnaryCallable( insertTransportSettings, settings.insertSettings(), clientContext); @@ -756,6 +834,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(aggregatedListMethodDescriptor); methodDescriptors.add(deleteMethodDescriptor); methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(getHealthMethodDescriptor); methodDescriptors.add(insertMethodDescriptor); methodDescriptors.add(listMethodDescriptor); methodDescriptors.add(patchMethodDescriptor); @@ -793,6 +872,12 @@ public UnaryCallable return getCallable; } + @Override + public UnaryCallable + getHealthCallable() { + return getHealthCallable; + } + @Override public UnaryCallable insertCallable() { return insertCallable; diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDisksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDisksStub.java index 6a580e060ec3..fd4cd8d8d4a1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDisksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDisksStub.java @@ -55,6 +55,7 @@ import com.google.cloud.compute.v1.StopGroupAsyncReplicationRegionDiskRequest; import com.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; import com.google.cloud.compute.v1.UpdateRegionDiskRequest; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -956,6 +957,63 @@ public class HttpJsonRegionDisksStub extends RegionDisksStub { }) .build(); + private static final ApiMethodDescriptor + updateKmsKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionDisks/UpdateKmsKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "disk", request.getDisk()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionDiskUpdateKmsKeyRequestResource", + request.getRegionDiskUpdateKmsKeyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateKmsKeyRegionDiskRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private final UnaryCallable addResourcePoliciesCallable; private final OperationCallable @@ -1004,6 +1062,9 @@ public class HttpJsonRegionDisksStub extends RegionDisksStub { private final UnaryCallable updateCallable; private final OperationCallable updateOperationCallable; + private final UnaryCallable updateKmsKeyCallable; + private final OperationCallable + updateKmsKeyOperationCallable; private final BackgroundResource backgroundResources; private final HttpJsonRegionOperationsStub httpJsonOperationsStub; @@ -1043,6 +1104,8 @@ public class HttpJsonRegionDisksStub extends RegionDisksStub { PathTemplate.create("projects/{project}/regions/{region}/disks/{resource}"); private static final PathTemplate UPDATE_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/regions/{region}/disks/{disk}"); + private static final PathTemplate UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/disks/{disk}"); public static final HttpJsonRegionDisksStub create(RegionDisksStubSettings settings) throws IOException { @@ -1448,6 +1511,27 @@ protected HttpJsonRegionDisksStub( return UPDATE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); }) .build(); + HttpJsonCallSettings updateKmsKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateKmsKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("disk", String.valueOf(request.getDisk())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("disk", String.valueOf(request.getDisk())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); this.addResourcePoliciesCallable = callableFactory.createUnaryCallable( @@ -1587,6 +1671,15 @@ protected HttpJsonRegionDisksStub( settings.updateOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateKmsKeyCallable = + callableFactory.createUnaryCallable( + updateKmsKeyTransportSettings, settings.updateKmsKeySettings(), clientContext); + this.updateKmsKeyOperationCallable = + callableFactory.createOperationCallable( + updateKmsKeyTransportSettings, + settings.updateKmsKeyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1612,6 +1705,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(stopGroupAsyncReplicationMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); methodDescriptors.add(updateMethodDescriptor); + methodDescriptors.add(updateKmsKeyMethodDescriptor); return methodDescriptors; } @@ -1783,6 +1877,17 @@ public UnaryCallable updateCallable() { return updateOperationCallable; } + @Override + public UnaryCallable updateKmsKeyCallable() { + return updateKmsKeyCallable; + } + + @Override + public OperationCallable + updateKmsKeyOperationCallable() { + return updateKmsKeyOperationCallable; + } + @Override public final void close() { try { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionHealthSourcesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionHealthSourcesStub.java index dfe12252c072..4b24acb74e03 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionHealthSourcesStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionHealthSourcesStub.java @@ -36,9 +36,11 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest; import com.google.cloud.compute.v1.DeleteRegionHealthSourceRequest; +import com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; import com.google.cloud.compute.v1.GetRegionHealthSourceRequest; import com.google.cloud.compute.v1.HealthSource; import com.google.cloud.compute.v1.HealthSourceAggregatedList; +import com.google.cloud.compute.v1.HealthSourceHealth; import com.google.cloud.compute.v1.HealthSourceList; import com.google.cloud.compute.v1.InsertRegionHealthSourceRequest; import com.google.cloud.compute.v1.ListRegionHealthSourcesRequest; @@ -220,6 +222,42 @@ public class HttpJsonRegionHealthSourcesStub extends RegionHealthSourcesStub { .build()) .build(); + private static final ApiMethodDescriptor + getHealthMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionHealthSources/GetHealth") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/healthSources/{healthSource}/getHealth", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "healthSource", request.getHealthSource()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HealthSourceHealth.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor insertMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -439,6 +477,8 @@ public class HttpJsonRegionHealthSourcesStub extends RegionHealthSourcesStub { private final OperationCallable deleteOperationCallable; private final UnaryCallable getCallable; + private final UnaryCallable + getHealthCallable; private final UnaryCallable insertCallable; private final OperationCallable insertOperationCallable; @@ -460,6 +500,8 @@ public class HttpJsonRegionHealthSourcesStub extends RegionHealthSourcesStub { PathTemplate.create("projects/{project}/regions/{region}/healthSources/{health_source}"); private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/regions/{region}/healthSources/{health_source}"); + private static final PathTemplate GET_HEALTH_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/healthSources/{health_source}"); private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/regions/{region}"); private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = @@ -574,6 +616,30 @@ protected HttpJsonRegionHealthSourcesStub( return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); }) .build(); + HttpJsonCallSettings + getHealthTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getHealthMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("health_source", String.valueOf(request.getHealthSource())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "health_source", String.valueOf(request.getHealthSource())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return GET_HEALTH_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); HttpJsonCallSettings insertTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(insertMethodDescriptor) @@ -677,6 +743,9 @@ protected HttpJsonRegionHealthSourcesStub( this.getCallable = callableFactory.createUnaryCallable( getTransportSettings, settings.getSettings(), clientContext); + this.getHealthCallable = + callableFactory.createUnaryCallable( + getHealthTransportSettings, settings.getHealthSettings(), clientContext); this.insertCallable = callableFactory.createUnaryCallable( insertTransportSettings, settings.insertSettings(), clientContext); @@ -717,6 +786,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(aggregatedListMethodDescriptor); methodDescriptors.add(deleteMethodDescriptor); methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(getHealthMethodDescriptor); methodDescriptors.add(insertMethodDescriptor); methodDescriptors.add(listMethodDescriptor); methodDescriptors.add(patchMethodDescriptor); @@ -752,6 +822,11 @@ public UnaryCallable getCallable() { return getCallable; } + @Override + public UnaryCallable getHealthCallable() { + return getHealthCallable; + } + @Override public UnaryCallable insertCallable() { return insertCallable; diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsCallableFactory.java new file mode 100644 index 000000000000..1f2207f0311c --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the RegionInstanceGroupManagerResizeRequests service + * API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionInstanceGroupManagerResizeRequestsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + RegionOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsStub.java new file mode 100644 index 000000000000..803addc378a7 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerResizeRequestsStub.java @@ -0,0 +1,754 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient.ListPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the RegionInstanceGroupManagerResizeRequests service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionInstanceGroupManagerResizeRequestsStub + extends RegionInstanceGroupManagerResizeRequestsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation> + cancelMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests/Cancel") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer< + CancelRegionInstanceGroupManagerResizeRequestRequest> + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam( + fields, "resizeRequest", request.getResizeRequest()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer< + CancelRegionInstanceGroupManagerResizeRequestRequest> + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CancelRegionInstanceGroupManagerResizeRequestRequest request, + Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation> + deleteMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests/Delete") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer< + DeleteRegionInstanceGroupManagerResizeRequestRequest> + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam( + fields, "resizeRequest", request.getResizeRequest()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer< + DeleteRegionInstanceGroupManagerResizeRequestRequest> + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteRegionInstanceGroupManagerResizeRequestRequest request, + Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam( + fields, "resizeRequest", request.getResizeRequest()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(InstanceGroupManagerResizeRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation> + insertMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests/Insert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer< + InsertRegionInstanceGroupManagerResizeRequestRequest> + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer< + InsertRegionInstanceGroupManagerResizeRequestRequest> + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instanceGroupManagerResizeRequestResource", + request.getInstanceGroupManagerResizeRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InsertRegionInstanceGroupManagerResizeRequestRequest request, + Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + listMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instanceGroupManager", request.getInstanceGroupManager()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + RegionInstanceGroupManagerResizeRequestsListResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + cancelCallable; + private final OperationCallable< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationCallable; + private final UnaryCallable + deleteCallable; + private final OperationCallable< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationCallable; + private final UnaryCallable< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getCallable; + private final UnaryCallable + insertCallable; + private final OperationCallable< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationCallable; + private final UnaryCallable< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + listCallable; + private final UnaryCallable< + ListRegionInstanceGroupManagerResizeRequestsRequest, ListPagedResponse> + listPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonRegionOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate CANCEL_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}"); + private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}"); + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}"); + private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}"); + private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}"); + + public static final HttpJsonRegionInstanceGroupManagerResizeRequestsStub create( + RegionInstanceGroupManagerResizeRequestsStubSettings settings) throws IOException { + return new HttpJsonRegionInstanceGroupManagerResizeRequestsStub( + settings, ClientContext.create(settings)); + } + + public static final HttpJsonRegionInstanceGroupManagerResizeRequestsStub create( + ClientContext clientContext) throws IOException { + return new HttpJsonRegionInstanceGroupManagerResizeRequestsStub( + RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonRegionInstanceGroupManagerResizeRequestsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRegionInstanceGroupManagerResizeRequestsStub( + RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonRegionInstanceGroupManagerResizeRequestsStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected HttpJsonRegionInstanceGroupManagerResizeRequestsStub( + RegionInstanceGroupManagerResizeRequestsStubSettings settings, ClientContext clientContext) + throws IOException { + this( + settings, + clientContext, + new HttpJsonRegionInstanceGroupManagerResizeRequestsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRegionInstanceGroupManagerResizeRequestsStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected HttpJsonRegionInstanceGroupManagerResizeRequestsStub( + RegionInstanceGroupManagerResizeRequestsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonRegionOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings + cancelTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(cancelMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resize_request", String.valueOf(request.getResizeRequest())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put( + "resize_request", String.valueOf(request.getResizeRequest())); + return CANCEL_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + deleteTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(deleteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resize_request", String.valueOf(request.getResizeRequest())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put( + "resize_request", String.valueOf(request.getResizeRequest())); + return DELETE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resize_request", String.valueOf(request.getResizeRequest())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put( + "resize_request", String.valueOf(request.getResizeRequest())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + insertTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(insertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return INSERT_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + listTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instance_group_manager", + String.valueOf(request.getInstanceGroupManager())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + + this.cancelCallable = + callableFactory.createUnaryCallable( + cancelTransportSettings, settings.cancelSettings(), clientContext); + this.cancelOperationCallable = + callableFactory.createOperationCallable( + cancelTransportSettings, + settings.cancelOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCallable = + callableFactory.createUnaryCallable( + deleteTransportSettings, settings.deleteSettings(), clientContext); + this.deleteOperationCallable = + callableFactory.createOperationCallable( + deleteTransportSettings, + settings.deleteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.insertCallable = + callableFactory.createUnaryCallable( + insertTransportSettings, settings.insertSettings(), clientContext); + this.insertOperationCallable = + callableFactory.createOperationCallable( + insertTransportSettings, + settings.insertOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(cancelMethodDescriptor); + methodDescriptors.add(deleteMethodDescriptor); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(insertMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + cancelCallable() { + return cancelCallable; + } + + @Override + public OperationCallable< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationCallable() { + return cancelOperationCallable; + } + + @Override + public UnaryCallable + deleteCallable() { + return deleteCallable; + } + + @Override + public OperationCallable< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationCallable() { + return deleteOperationCallable; + } + + @Override + public UnaryCallable< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getCallable() { + return getCallable; + } + + @Override + public UnaryCallable + insertCallable() { + return insertCallable; + } + + @Override + public OperationCallable< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationCallable() { + return insertOperationCallable; + } + + @Override + public UnaryCallable< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + listCallable() { + return listCallable; + } + + @Override + public UnaryCallable + listPagedCallable() { + return listPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsCallableFactory.java new file mode 100644 index 000000000000..8daecf3453dc --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsCallableFactory.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the RegionInstantSnapshotGroups service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionInstantSnapshotGroupsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + RegionOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsStub.java new file mode 100644 index 000000000000..3e666c1431be --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstantSnapshotGroupsStub.java @@ -0,0 +1,806 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the RegionInstantSnapshotGroups service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionInstantSnapshotGroupsStub extends RegionInstantSnapshotGroupsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor + deleteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionInstantSnapshotGroups/Delete") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instantSnapshotGroup", request.getInstantSnapshotGroup()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteRegionInstantSnapshotGroupRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + GetRegionInstantSnapshotGroupRequest, InstantSnapshotGroup> + getMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionInstantSnapshotGroups/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "instantSnapshotGroup", request.getInstantSnapshotGroup()); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(InstantSnapshotGroup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionInstantSnapshotGroups/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasOptionsRequestedPolicyVersion()) { + serializer.putQueryParam( + fields, + "optionsRequestedPolicyVersion", + request.getOptionsRequestedPolicyVersion()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + insertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionInstantSnapshotGroups/Insert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + if (request.hasSourceConsistencyGroup()) { + serializer.putQueryParam( + fields, + "sourceConsistencyGroup", + request.getSourceConsistencyGroup()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "instantSnapshotGroupResource", + request.getInstantSnapshotGroupResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InsertRegionInstantSnapshotGroupRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups> + listMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionInstantSnapshotGroups/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListInstantSnapshotGroups.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionInstantSnapshotGroups/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionSetPolicyRequestResource", + request.getRegionSetPolicyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.compute.v1.RegionInstantSnapshotGroups/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "testPermissionsRequestResource", + request.getTestPermissionsRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable deleteCallable; + private final OperationCallable + deleteOperationCallable; + private final UnaryCallable + getCallable; + private final UnaryCallable + getIamPolicyCallable; + private final UnaryCallable insertCallable; + private final OperationCallable + insertOperationCallable; + private final UnaryCallable + listCallable; + private final UnaryCallable + listPagedCallable; + private final UnaryCallable + setIamPolicyCallable; + private final UnaryCallable< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonRegionOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}"); + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}"); + private static final PathTemplate GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/instantSnapshotGroups/{resource}"); + private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/instantSnapshotGroups/{resource}"); + private static final PathTemplate TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/instantSnapshotGroups/{resource}"); + + public static final HttpJsonRegionInstantSnapshotGroupsStub create( + RegionInstantSnapshotGroupsStubSettings settings) throws IOException { + return new HttpJsonRegionInstantSnapshotGroupsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRegionInstantSnapshotGroupsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonRegionInstantSnapshotGroupsStub( + RegionInstantSnapshotGroupsStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonRegionInstantSnapshotGroupsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRegionInstantSnapshotGroupsStub( + RegionInstantSnapshotGroupsStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonRegionInstantSnapshotGroupsStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonRegionInstantSnapshotGroupsStub( + RegionInstantSnapshotGroupsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonRegionInstantSnapshotGroupsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRegionInstantSnapshotGroupsStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonRegionInstantSnapshotGroupsStub( + RegionInstantSnapshotGroupsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonRegionOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings + deleteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instant_snapshot_group", + String.valueOf(request.getInstantSnapshotGroup())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instant_snapshot_group", + String.valueOf(request.getInstantSnapshotGroup())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return DELETE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + getTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "instant_snapshot_group", + String.valueOf(request.getInstantSnapshotGroup())); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put( + "instant_snapshot_group", + String.valueOf(request.getInstantSnapshotGroup())); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + insertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(insertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return INSERT_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + listTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + + this.deleteCallable = + callableFactory.createUnaryCallable( + deleteTransportSettings, settings.deleteSettings(), clientContext); + this.deleteOperationCallable = + callableFactory.createOperationCallable( + deleteTransportSettings, + settings.deleteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.insertCallable = + callableFactory.createUnaryCallable( + insertTransportSettings, settings.insertSettings(), clientContext); + this.insertOperationCallable = + callableFactory.createOperationCallable( + insertTransportSettings, + settings.insertOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(deleteMethodDescriptor); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(insertMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable deleteCallable() { + return deleteCallable; + } + + @Override + public OperationCallable + deleteOperationCallable() { + return deleteOperationCallable; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable + getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable insertCallable() { + return insertCallable; + } + + @Override + public OperationCallable + insertOperationCallable() { + return insertOperationCallable; + } + + @Override + public UnaryCallable + listCallable() { + return listCallable; + } + + @Override + public UnaryCallable + listPagedCallable() { + return listPagedCallable; + } + + @Override + public UnaryCallable + setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsCallableFactory.java new file mode 100644 index 000000000000..432e56e05470 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsCallableFactory.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the RegionSnapshotSettings service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionSnapshotSettingsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + RegionOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsStub.java new file mode 100644 index 000000000000..144a3580fec5 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotSettingsStub.java @@ -0,0 +1,323 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.SnapshotSettings; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the RegionSnapshotSettings service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionSnapshotSettingsStub extends RegionSnapshotSettingsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor + getMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshotSettings/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshotSettings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SnapshotSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + patchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshotSettings/Patch") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshotSettings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + if (request.hasUpdateMask()) { + serializer.putQueryParam( + fields, "updateMask", request.getUpdateMask()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "snapshotSettingsResource", + request.getSnapshotSettingsResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PatchRegionSnapshotSettingRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private final UnaryCallable getCallable; + private final UnaryCallable patchCallable; + private final OperationCallable + patchOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonRegionOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate PATCH_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + + public static final HttpJsonRegionSnapshotSettingsStub create( + RegionSnapshotSettingsStubSettings settings) throws IOException { + return new HttpJsonRegionSnapshotSettingsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRegionSnapshotSettingsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonRegionSnapshotSettingsStub( + RegionSnapshotSettingsStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonRegionSnapshotSettingsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRegionSnapshotSettingsStub( + RegionSnapshotSettingsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonRegionSnapshotSettingsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRegionSnapshotSettingsStub( + RegionSnapshotSettingsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonRegionSnapshotSettingsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRegionSnapshotSettingsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRegionSnapshotSettingsStub( + RegionSnapshotSettingsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonRegionOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings getTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings patchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(patchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return PATCH_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.patchCallable = + callableFactory.createUnaryCallable( + patchTransportSettings, settings.patchSettings(), clientContext); + this.patchOperationCallable = + callableFactory.createOperationCallable( + patchTransportSettings, + settings.patchOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(patchMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable patchCallable() { + return patchCallable; + } + + @Override + public OperationCallable + patchOperationCallable() { + return patchOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsCallableFactory.java new file mode 100644 index 000000000000..34765d8526f3 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsCallableFactory.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the RegionSnapshots service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionSnapshotsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + RegionOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsStub.java new file mode 100644 index 000000000000..9739b85d1d46 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionSnapshotsStub.java @@ -0,0 +1,962 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionSnapshotsClient.ListPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.DeleteRegionSnapshotRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.GetRegionSnapshotRequest; +import com.google.cloud.compute.v1.InsertRegionSnapshotRequest; +import com.google.cloud.compute.v1.ListRegionSnapshotsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; +import com.google.cloud.compute.v1.Snapshot; +import com.google.cloud.compute.v1.SnapshotList; +import com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the RegionSnapshots service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRegionSnapshotsStub extends RegionSnapshotsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor + deleteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/Delete") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "snapshot", request.getSnapshot()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteRegionSnapshotRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor getMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "snapshot", request.getSnapshot()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Snapshot.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasOptionsRequestedPolicyVersion()) { + serializer.putQueryParam( + fields, + "optionsRequestedPolicyVersion", + request.getOptionsRequestedPolicyVersion()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + insertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/Insert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("snapshotResource", request.getSnapshotResource(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InsertRegionSnapshotRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + listMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SnapshotList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionSetPolicyRequestResource", + request.getRegionSetPolicyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setLabelsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/SetLabels") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setLabels", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionSetLabelsRequestResource", + request.getRegionSetLabelsRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SetLabelsRegionSnapshotRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + TestIamPermissionsRegionSnapshotRequest, TestPermissionsResponse> + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "testPermissionsRequestResource", + request.getTestPermissionsRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateKmsKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.RegionSnapshots/UpdateKmsKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "region", request.getRegion()); + serializer.putPathParam(fields, "snapshot", request.getSnapshot()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "regionSnapshotUpdateKmsKeyRequestResource", + request.getRegionSnapshotUpdateKmsKeyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateKmsKeyRegionSnapshotRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getRegion()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private final UnaryCallable deleteCallable; + private final OperationCallable + deleteOperationCallable; + private final UnaryCallable getCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable insertCallable; + private final OperationCallable + insertOperationCallable; + private final UnaryCallable listCallable; + private final UnaryCallable listPagedCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable setLabelsCallable; + private final OperationCallable + setLabelsOperationCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable updateKmsKeyCallable; + private final OperationCallable + updateKmsKeyOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonRegionOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{snapshot}"); + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{snapshot}"); + private static final PathTemplate GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{resource}"); + private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}"); + private static final PathTemplate SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{resource}"); + private static final PathTemplate SET_LABELS_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{resource}"); + private static final PathTemplate TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{resource}"); + private static final PathTemplate UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/regions/{region}/snapshots/{snapshot}"); + + public static final HttpJsonRegionSnapshotsStub create(RegionSnapshotsStubSettings settings) + throws IOException { + return new HttpJsonRegionSnapshotsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRegionSnapshotsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonRegionSnapshotsStub( + RegionSnapshotsStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonRegionSnapshotsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRegionSnapshotsStub( + RegionSnapshotsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonRegionSnapshotsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRegionSnapshotsStub( + RegionSnapshotsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonRegionSnapshotsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRegionSnapshotsStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRegionSnapshotsStub( + RegionSnapshotsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonRegionOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings deleteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("snapshot", String.valueOf(request.getSnapshot())); + return DELETE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings getTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("snapshot", String.valueOf(request.getSnapshot())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return GET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings insertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(insertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return INSERT_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings listTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return SET_IAM_POLICY_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings setLabelsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return SET_LABELS_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("resource", String.valueOf(request.getResource())); + return TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + updateKmsKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateKmsKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("region", String.valueOf(request.getRegion())); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("region", String.valueOf(request.getRegion())); + resourceNameSegments.put("snapshot", String.valueOf(request.getSnapshot())); + return UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE.instantiate( + resourceNameSegments); + }) + .build(); + + this.deleteCallable = + callableFactory.createUnaryCallable( + deleteTransportSettings, settings.deleteSettings(), clientContext); + this.deleteOperationCallable = + callableFactory.createOperationCallable( + deleteTransportSettings, + settings.deleteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.insertCallable = + callableFactory.createUnaryCallable( + insertTransportSettings, settings.insertSettings(), clientContext); + this.insertOperationCallable = + callableFactory.createOperationCallable( + insertTransportSettings, + settings.insertOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.setLabelsCallable = + callableFactory.createUnaryCallable( + setLabelsTransportSettings, settings.setLabelsSettings(), clientContext); + this.setLabelsOperationCallable = + callableFactory.createOperationCallable( + setLabelsTransportSettings, + settings.setLabelsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.updateKmsKeyCallable = + callableFactory.createUnaryCallable( + updateKmsKeyTransportSettings, settings.updateKmsKeySettings(), clientContext); + this.updateKmsKeyOperationCallable = + callableFactory.createOperationCallable( + updateKmsKeyTransportSettings, + settings.updateKmsKeyOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(deleteMethodDescriptor); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(insertMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(setLabelsMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(updateKmsKeyMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable deleteCallable() { + return deleteCallable; + } + + @Override + public OperationCallable + deleteOperationCallable() { + return deleteOperationCallable; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable insertCallable() { + return insertCallable; + } + + @Override + public OperationCallable + insertOperationCallable() { + return insertOperationCallable; + } + + @Override + public UnaryCallable listCallable() { + return listCallable; + } + + @Override + public UnaryCallable listPagedCallable() { + return listPagedCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable setLabelsCallable() { + return setLabelsCallable; + } + + @Override + public OperationCallable + setLabelsOperationCallable() { + return setLabelsOperationCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable updateKmsKeyCallable() { + return updateKmsKeyCallable; + } + + @Override + public OperationCallable + updateKmsKeyOperationCallable() { + return updateKmsKeyOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotsStub.java index c9e71b58c78b..a9380d0c5c56 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotsStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotsStub.java @@ -47,6 +47,7 @@ import com.google.cloud.compute.v1.SnapshotList; import com.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -426,6 +427,61 @@ public class HttpJsonSnapshotsStub extends SnapshotsStub { .build()) .build(); + private static final ApiMethodDescriptor + updateKmsKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.Snapshots/UpdateKmsKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/global/snapshots/{snapshot}/updateKmsKey", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "snapshot", request.getSnapshot()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "snapshotUpdateKmsKeyRequestResource", + request.getSnapshotUpdateKmsKeyRequestResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateKmsKeySnapshotRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + private final UnaryCallable deleteCallable; private final OperationCallable deleteOperationCallable; @@ -442,6 +498,9 @@ public class HttpJsonSnapshotsStub extends SnapshotsStub { setLabelsOperationCallable; private final UnaryCallable testIamPermissionsCallable; + private final UnaryCallable updateKmsKeyCallable; + private final OperationCallable + updateKmsKeyOperationCallable; private final BackgroundResource backgroundResources; private final HttpJsonGlobalOperationsStub httpJsonOperationsStub; @@ -463,6 +522,8 @@ public class HttpJsonSnapshotsStub extends SnapshotsStub { PathTemplate.create("projects/{project}/global/snapshots/{resource}"); private static final PathTemplate TEST_IAM_PERMISSIONS_RESOURCE_NAME_TEMPLATE = PathTemplate.create("projects/{project}/global/snapshots/{resource}"); + private static final PathTemplate UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/global/snapshots/{snapshot}"); public static final HttpJsonSnapshotsStub create(SnapshotsStubSettings settings) throws IOException { @@ -654,6 +715,25 @@ protected HttpJsonSnapshotsStub( resourceNameSegments); }) .build(); + HttpJsonCallSettings updateKmsKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateKmsKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("snapshot", String.valueOf(request.getSnapshot())); + return UPDATE_KMS_KEY_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); this.deleteCallable = callableFactory.createUnaryCallable( @@ -702,6 +782,15 @@ protected HttpJsonSnapshotsStub( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.updateKmsKeyCallable = + callableFactory.createUnaryCallable( + updateKmsKeyTransportSettings, settings.updateKmsKeySettings(), clientContext); + this.updateKmsKeyOperationCallable = + callableFactory.createOperationCallable( + updateKmsKeyTransportSettings, + settings.updateKmsKeyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -718,6 +807,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(setLabelsMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(updateKmsKeyMethodDescriptor); return methodDescriptors; } @@ -783,6 +873,17 @@ public UnaryCallable setLabelsCallable() { return testIamPermissionsCallable; } + @Override + public UnaryCallable updateKmsKeyCallable() { + return updateKmsKeyCallable; + } + + @Override + public OperationCallable + updateKmsKeyOperationCallable() { + return updateKmsKeyOperationCallable; + } + @Override public final void close() { try { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesCallableFactory.java new file mode 100644 index 000000000000..508751ad59fd --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesCallableFactory.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ZoneVmExtensionPolicies service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonZoneVmExtensionPoliciesCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + ZoneOperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesStub.java new file mode 100644 index 000000000000..564e6643b283 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneVmExtensionPoliciesStub.java @@ -0,0 +1,641 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient.ListPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.VmExtensionPolicyList; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ZoneVmExtensionPolicies service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonZoneVmExtensionPoliciesStub extends ZoneVmExtensionPoliciesStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); + + private static final ApiMethodDescriptor + deleteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.ZoneVmExtensionPolicies/Delete") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam( + fields, "vmExtensionPolicy", request.getVmExtensionPolicy()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteZoneVmExtensionPolicyRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor + getMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.ZoneVmExtensionPolicies/Get") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam( + fields, "vmExtensionPolicy", request.getVmExtensionPolicy()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VmExtensionPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + insertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.ZoneVmExtensionPolicies/Insert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vmExtensionPolicyResource", + request.getVmExtensionPolicyResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InsertZoneVmExtensionPolicyRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private static final ApiMethodDescriptor< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList> + listMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.compute.v1.ZoneVmExtensionPolicies/List") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasFilter()) { + serializer.putQueryParam(fields, "filter", request.getFilter()); + } + if (request.hasMaxResults()) { + serializer.putQueryParam( + fields, "maxResults", request.getMaxResults()); + } + if (request.hasOrderBy()) { + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + } + if (request.hasPageToken()) { + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + } + if (request.hasReturnPartialSuccess()) { + serializer.putQueryParam( + fields, + "returnPartialSuccess", + request.getReturnPartialSuccess()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VmExtensionPolicyList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.compute.v1.ZoneVmExtensionPolicies/Update") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + serializer.putPathParam( + fields, "vmExtensionPolicy", request.getVmExtensionPolicy()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + if (request.hasRequestId()) { + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + } + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vmExtensionPolicyResource", + request.getVmExtensionPolicyResource(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateZoneVmExtensionPolicyRequest request, Operation response) -> { + StringBuilder opName = new StringBuilder(response.getName()); + opName.append(":").append(request.getProject()); + opName.append(":").append(request.getZone()); + return HttpJsonOperationSnapshot.newBuilder() + .setName(opName.toString()) + .setMetadata(response) + .setDone(Status.DONE.equals(response.getStatus())) + .setResponse(response) + .setError(response.getHttpErrorStatusCode(), response.getHttpErrorMessage()) + .build(); + }) + .build(); + + private final UnaryCallable deleteCallable; + private final OperationCallable + deleteOperationCallable; + private final UnaryCallable getCallable; + private final UnaryCallable insertCallable; + private final OperationCallable + insertOperationCallable; + private final UnaryCallable + listCallable; + private final UnaryCallable + listPagedCallable; + private final UnaryCallable updateCallable; + private final OperationCallable + updateOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonZoneOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + private static final PathTemplate DELETE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}"); + private static final PathTemplate GET_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}"); + private static final PathTemplate INSERT_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}"); + private static final PathTemplate LIST_RESOURCE_NAME_TEMPLATE = + PathTemplate.create("projects/{project}/zones/{zone}"); + private static final PathTemplate UPDATE_RESOURCE_NAME_TEMPLATE = + PathTemplate.create( + "projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}"); + + public static final HttpJsonZoneVmExtensionPoliciesStub create( + ZoneVmExtensionPoliciesStubSettings settings) throws IOException { + return new HttpJsonZoneVmExtensionPoliciesStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonZoneVmExtensionPoliciesStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonZoneVmExtensionPoliciesStub( + ZoneVmExtensionPoliciesStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonZoneVmExtensionPoliciesStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonZoneVmExtensionPoliciesStub( + ZoneVmExtensionPoliciesStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonZoneVmExtensionPoliciesStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonZoneVmExtensionPoliciesStub( + ZoneVmExtensionPoliciesStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonZoneVmExtensionPoliciesCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonZoneVmExtensionPoliciesStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonZoneVmExtensionPoliciesStub( + ZoneVmExtensionPoliciesStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = HttpJsonZoneOperationsStub.create(clientContext, callableFactory); + + HttpJsonCallSettings deleteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add( + "vm_extension_policy", String.valueOf(request.getVmExtensionPolicy())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put( + "vm_extension_policy", String.valueOf(request.getVmExtensionPolicy())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return DELETE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings getTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add( + "vm_extension_policy", String.valueOf(request.getVmExtensionPolicy())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put( + "vm_extension_policy", String.valueOf(request.getVmExtensionPolicy())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return GET_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings insertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(insertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return INSERT_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings + listTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return LIST_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + HttpJsonCallSettings updateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + builder.add( + "vm_extension_policy", String.valueOf(request.getVmExtensionPolicy())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .setResourceNameExtractor( + request -> { + Map resourceNameSegments = new HashMap(); + resourceNameSegments.put("project", String.valueOf(request.getProject())); + resourceNameSegments.put( + "vm_extension_policy", String.valueOf(request.getVmExtensionPolicy())); + resourceNameSegments.put("zone", String.valueOf(request.getZone())); + return UPDATE_RESOURCE_NAME_TEMPLATE.instantiate(resourceNameSegments); + }) + .build(); + + this.deleteCallable = + callableFactory.createUnaryCallable( + deleteTransportSettings, settings.deleteSettings(), clientContext); + this.deleteOperationCallable = + callableFactory.createOperationCallable( + deleteTransportSettings, + settings.deleteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCallable = + callableFactory.createUnaryCallable( + getTransportSettings, settings.getSettings(), clientContext); + this.insertCallable = + callableFactory.createUnaryCallable( + insertTransportSettings, settings.insertSettings(), clientContext); + this.insertOperationCallable = + callableFactory.createOperationCallable( + insertTransportSettings, + settings.insertOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCallable = + callableFactory.createUnaryCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.listPagedCallable = + callableFactory.createPagedCallable( + listTransportSettings, settings.listSettings(), clientContext); + this.updateCallable = + callableFactory.createUnaryCallable( + updateTransportSettings, settings.updateSettings(), clientContext); + this.updateOperationCallable = + callableFactory.createOperationCallable( + updateTransportSettings, + settings.updateOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(deleteMethodDescriptor); + methodDescriptors.add(getMethodDescriptor); + methodDescriptors.add(insertMethodDescriptor); + methodDescriptors.add(listMethodDescriptor); + methodDescriptors.add(updateMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable deleteCallable() { + return deleteCallable; + } + + @Override + public OperationCallable + deleteOperationCallable() { + return deleteOperationCallable; + } + + @Override + public UnaryCallable getCallable() { + return getCallable; + } + + @Override + public UnaryCallable insertCallable() { + return insertCallable; + } + + @Override + public OperationCallable + insertOperationCallable() { + return insertOperationCallable; + } + + @Override + public UnaryCallable listCallable() { + return listCallable; + } + + @Override + public UnaryCallable listPagedCallable() { + return listPagedCallable; + } + + @Override + public UnaryCallable updateCallable() { + return updateCallable; + } + + @Override + public OperationCallable + updateOperationCallable() { + return updateOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStub.java new file mode 100644 index 000000000000..e5cd8ddd257e --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStub.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.InstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the InstantSnapshotGroups service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class InstantSnapshotGroupsStub implements BackgroundResource { + + public OperationCallable + deleteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); + } + + public UnaryCallable deleteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCallable()"); + } + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public OperationCallable + insertOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); + } + + public UnaryCallable insertCallable() { + throw new UnsupportedOperationException("Not implemented: insertCallable()"); + } + + public UnaryCallable listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java new file mode 100644 index 000000000000..af9d3b4bb246 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java @@ -0,0 +1,689 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.InstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link InstantSnapshotGroupsStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * InstantSnapshotGroupsStubSettings.Builder instantSnapshotGroupsSettingsBuilder =
+ *     InstantSnapshotGroupsStubSettings.newBuilder();
+ * instantSnapshotGroupsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         instantSnapshotGroupsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * InstantSnapshotGroupsStubSettings instantSnapshotGroupsSettings =
+ *     instantSnapshotGroupsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * InstantSnapshotGroupsStubSettings.Builder instantSnapshotGroupsSettingsBuilder =
+ *     InstantSnapshotGroupsStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * instantSnapshotGroupsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class InstantSnapshotGroupsStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings deleteSettings; + private final OperationCallSettings + deleteOperationSettings; + private final UnaryCallSettings getSettings; + private final UnaryCallSettings + getIamPolicySettings; + private final UnaryCallSettings insertSettings; + private final OperationCallSettings + insertOperationSettings; + private final PagedCallSettings< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings; + private final UnaryCallSettings + setIamPolicySettings; + private final UnaryCallSettings< + TestIamPermissionsInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> + LIST_PAGE_STR_DESC = + new PagedListDescriptor< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInstantSnapshotGroupsRequest injectToken( + ListInstantSnapshotGroupsRequest payload, String token) { + return ListInstantSnapshotGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListInstantSnapshotGroupsRequest injectPageSize( + ListInstantSnapshotGroupsRequest payload, int pageSize) { + return ListInstantSnapshotGroupsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListInstantSnapshotGroupsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(ListInstantSnapshotGroups payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListInstantSnapshotGroups payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListInstantSnapshotGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup> + pageContext = PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return deleteSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return insertSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public InstantSnapshotGroupsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonInstantSnapshotGroupsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(InstantSnapshotGroupsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected InstantSnapshotGroupsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteSettings = settingsBuilder.deleteSettings().build(); + deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); + getSettings = settingsBuilder.getSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + insertSettings = settingsBuilder.insertSettings().build(); + insertOperationSettings = settingsBuilder.insertOperationSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for InstantSnapshotGroupsStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + deleteSettings; + private final OperationCallSettings.Builder< + DeleteInstantSnapshotGroupRequest, Operation, Operation> + deleteOperationSettings; + private final UnaryCallSettings.Builder + getSettings; + private final UnaryCallSettings.Builder + getIamPolicySettings; + private final UnaryCallSettings.Builder + insertSettings; + private final OperationCallSettings.Builder< + InsertInstantSnapshotGroupRequest, Operation, Operation> + insertOperationSettings; + private final PagedCallSettings.Builder< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings; + private final UnaryCallSettings.Builder + setIamPolicySettings; + private final UnaryCallSettings.Builder< + TestIamPermissionsInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOperationSettings = OperationCallSettings.newBuilder(); + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertOperationSettings = OperationCallSettings.newBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + setIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(InstantSnapshotGroupsStubSettings settings) { + super(settings); + + deleteSettings = settings.deleteSettings.toBuilder(); + deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); + getSettings = settings.getSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + insertSettings = settings.insertSettings.toBuilder(); + insertOperationSettings = settings.insertOperationSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + setIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .insertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .insertOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder + deleteSettings() { + return deleteSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder + insertSettings() { + return insertSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public InstantSnapshotGroupsStubSettings build() throws IOException { + return new InstantSnapshotGroupsStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStub.java new file mode 100644 index 000000000000..dc55da970c98 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStub.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListUsablePagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.BackendBucketListUsable; +import com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.GetRegionBackendBucketRequest; +import com.google.cloud.compute.v1.InsertRegionBackendBucketRequest; +import com.google.cloud.compute.v1.ListRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RegionBackendBuckets service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class RegionBackendBucketsStub implements BackgroundResource { + + public OperationCallable + deleteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); + } + + public UnaryCallable deleteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCallable()"); + } + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public OperationCallable + insertOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); + } + + public UnaryCallable insertCallable() { + throw new UnsupportedOperationException("Not implemented: insertCallable()"); + } + + public UnaryCallable listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + public UnaryCallable + listUsablePagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUsablePagedCallable()"); + } + + public UnaryCallable + listUsableCallable() { + throw new UnsupportedOperationException("Not implemented: listUsableCallable()"); + } + + public OperationCallable + patchOperationCallable() { + throw new UnsupportedOperationException("Not implemented: patchOperationCallable()"); + } + + public UnaryCallable patchCallable() { + throw new UnsupportedOperationException("Not implemented: patchCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java new file mode 100644 index 000000000000..09e79174ae84 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java @@ -0,0 +1,846 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListUsablePagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.BackendBucketListUsable; +import com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.GetRegionBackendBucketRequest; +import com.google.cloud.compute.v1.InsertRegionBackendBucketRequest; +import com.google.cloud.compute.v1.ListRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionBackendBucketsStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionBackendBucketsStubSettings.Builder regionBackendBucketsSettingsBuilder =
+ *     RegionBackendBucketsStubSettings.newBuilder();
+ * regionBackendBucketsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionBackendBucketsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionBackendBucketsStubSettings regionBackendBucketsSettings =
+ *     regionBackendBucketsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * RegionBackendBucketsStubSettings.Builder regionBackendBucketsSettingsBuilder =
+ *     RegionBackendBucketsStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionBackendBucketsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class RegionBackendBucketsStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings deleteSettings; + private final OperationCallSettings + deleteOperationSettings; + private final UnaryCallSettings getSettings; + private final UnaryCallSettings + getIamPolicySettings; + private final UnaryCallSettings insertSettings; + private final OperationCallSettings + insertOperationSettings; + private final PagedCallSettings< + ListRegionBackendBucketsRequest, BackendBucketList, ListPagedResponse> + listSettings; + private final PagedCallSettings< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings; + private final UnaryCallSettings patchSettings; + private final OperationCallSettings + patchOperationSettings; + private final UnaryCallSettings + setIamPolicySettings; + private final UnaryCallSettings< + TestIamPermissionsRegionBackendBucketRequest, TestPermissionsResponse> + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListRegionBackendBucketsRequest, BackendBucketList, BackendBucket> + LIST_PAGE_STR_DESC = + new PagedListDescriptor< + ListRegionBackendBucketsRequest, BackendBucketList, BackendBucket>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRegionBackendBucketsRequest injectToken( + ListRegionBackendBucketsRequest payload, String token) { + return ListRegionBackendBucketsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListRegionBackendBucketsRequest injectPageSize( + ListRegionBackendBucketsRequest payload, int pageSize) { + return ListRegionBackendBucketsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListRegionBackendBucketsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(BackendBucketList payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(BackendBucketList payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListDescriptor< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, BackendBucket> + LIST_USABLE_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, BackendBucket>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableRegionBackendBucketsRequest injectToken( + ListUsableRegionBackendBucketsRequest payload, String token) { + return ListUsableRegionBackendBucketsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListUsableRegionBackendBucketsRequest injectPageSize( + ListUsableRegionBackendBucketsRequest payload, int pageSize) { + return ListUsableRegionBackendBucketsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListUsableRegionBackendBucketsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(BackendBucketListUsable payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(BackendBucketListUsable payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListRegionBackendBucketsRequest, BackendBucketList, ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRegionBackendBucketsRequest, BackendBucketList, ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRegionBackendBucketsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + LIST_USABLE_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableRegionBackendBucketsRequest, + BackendBucketListUsable, + ListUsablePagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListUsableRegionBackendBucketsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, BackendBucket> + pageContext = + PageContext.create(callable, LIST_USABLE_PAGE_STR_DESC, request, context); + return ListUsablePagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return deleteSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return insertSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings + listSettings() { + return listSettings; + } + + /** Returns the object with the settings used for calls to listUsable. */ + public PagedCallSettings< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return listUsableSettings; + } + + /** Returns the object with the settings used for calls to patch. */ + public UnaryCallSettings patchSettings() { + return patchSettings; + } + + /** Returns the object with the settings used for calls to patch. */ + public OperationCallSettings + patchOperationSettings() { + return patchOperationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public RegionBackendBucketsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRegionBackendBucketsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RegionBackendBucketsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionBackendBucketsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteSettings = settingsBuilder.deleteSettings().build(); + deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); + getSettings = settingsBuilder.getSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + insertSettings = settingsBuilder.insertSettings().build(); + insertOperationSettings = settingsBuilder.insertOperationSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + listUsableSettings = settingsBuilder.listUsableSettings().build(); + patchSettings = settingsBuilder.patchSettings().build(); + patchOperationSettings = settingsBuilder.patchOperationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for RegionBackendBucketsStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + deleteSettings; + private final OperationCallSettings.Builder< + DeleteRegionBackendBucketRequest, Operation, Operation> + deleteOperationSettings; + private final UnaryCallSettings.Builder + getSettings; + private final UnaryCallSettings.Builder + getIamPolicySettings; + private final UnaryCallSettings.Builder + insertSettings; + private final OperationCallSettings.Builder< + InsertRegionBackendBucketRequest, Operation, Operation> + insertOperationSettings; + private final PagedCallSettings.Builder< + ListRegionBackendBucketsRequest, BackendBucketList, ListPagedResponse> + listSettings; + private final PagedCallSettings.Builder< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings; + private final UnaryCallSettings.Builder + patchSettings; + private final OperationCallSettings.Builder< + PatchRegionBackendBucketRequest, Operation, Operation> + patchOperationSettings; + private final UnaryCallSettings.Builder + setIamPolicySettings; + private final UnaryCallSettings.Builder< + TestIamPermissionsRegionBackendBucketRequest, TestPermissionsResponse> + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOperationSettings = OperationCallSettings.newBuilder(); + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertOperationSettings = OperationCallSettings.newBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + listUsableSettings = PagedCallSettings.newBuilder(LIST_USABLE_PAGE_STR_FACT); + patchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + patchOperationSettings = OperationCallSettings.newBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + listUsableSettings, + patchSettings, + setIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(RegionBackendBucketsStubSettings settings) { + super(settings); + + deleteSettings = settings.deleteSettings.toBuilder(); + deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); + getSettings = settings.getSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + insertSettings = settings.insertSettings.toBuilder(); + insertOperationSettings = settings.insertOperationSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + listUsableSettings = settings.listUsableSettings.toBuilder(); + patchSettings = settings.patchSettings.toBuilder(); + patchOperationSettings = settings.patchOperationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + listUsableSettings, + patchSettings, + setIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .insertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listUsableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .patchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .insertOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .patchOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder deleteSettings() { + return deleteSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder insertSettings() { + return insertSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListRegionBackendBucketsRequest, BackendBucketList, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the builder for the settings used for calls to listUsable. */ + public PagedCallSettings.Builder< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, ListUsablePagedResponse> + listUsableSettings() { + return listUsableSettings; + } + + /** Returns the builder for the settings used for calls to patch. */ + public UnaryCallSettings.Builder patchSettings() { + return patchSettings; + } + + /** Returns the builder for the settings used for calls to patch. */ + public OperationCallSettings.Builder + patchOperationSettings() { + return patchOperationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsRegionBackendBucketRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public RegionBackendBucketsStubSettings build() throws IOException { + return new RegionBackendBucketsStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStub.java index b12fc81a17c6..48cd3de94a1f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStub.java @@ -25,8 +25,10 @@ import com.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest; import com.google.cloud.compute.v1.CompositeHealthCheck; import com.google.cloud.compute.v1.CompositeHealthCheckAggregatedList; +import com.google.cloud.compute.v1.CompositeHealthCheckHealth; import com.google.cloud.compute.v1.CompositeHealthCheckList; import com.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest; +import com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest; @@ -70,6 +72,11 @@ public UnaryCallable throw new UnsupportedOperationException("Not implemented: getCallable()"); } + public UnaryCallable + getHealthCallable() { + throw new UnsupportedOperationException("Not implemented: getHealthCallable()"); + } + public OperationCallable insertOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java index 0ea9d4ce5082..9163b73782d9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java @@ -49,9 +49,11 @@ import com.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest; import com.google.cloud.compute.v1.CompositeHealthCheck; import com.google.cloud.compute.v1.CompositeHealthCheckAggregatedList; +import com.google.cloud.compute.v1.CompositeHealthCheckHealth; import com.google.cloud.compute.v1.CompositeHealthCheckList; import com.google.cloud.compute.v1.CompositeHealthChecksScopedList; import com.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest; +import com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest; import com.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest; @@ -168,6 +170,9 @@ public class RegionCompositeHealthChecksStubSettings deleteOperationSettings; private final UnaryCallSettings getSettings; + private final UnaryCallSettings< + GetHealthRegionCompositeHealthCheckRequest, CompositeHealthCheckHealth> + getHealthSettings; private final UnaryCallSettings insertSettings; private final OperationCallSettings @@ -352,6 +357,12 @@ public UnaryCallSettings del return getSettings; } + /** Returns the object with the settings used for calls to getHealth. */ + public UnaryCallSettings + getHealthSettings() { + return getHealthSettings; + } + /** Returns the object with the settings used for calls to insert. */ public UnaryCallSettings insertSettings() { return insertSettings; @@ -474,6 +485,7 @@ protected RegionCompositeHealthChecksStubSettings(Builder settingsBuilder) throw deleteSettings = settingsBuilder.deleteSettings().build(); deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); getSettings = settingsBuilder.getSettings().build(); + getHealthSettings = settingsBuilder.getHealthSettings().build(); insertSettings = settingsBuilder.insertSettings().build(); insertOperationSettings = settingsBuilder.insertOperationSettings().build(); listSettings = settingsBuilder.listSettings().build(); @@ -508,6 +520,9 @@ public static class Builder private final UnaryCallSettings.Builder< GetRegionCompositeHealthCheckRequest, CompositeHealthCheck> getSettings; + private final UnaryCallSettings.Builder< + GetHealthRegionCompositeHealthCheckRequest, CompositeHealthCheckHealth> + getHealthSettings; private final UnaryCallSettings.Builder insertSettings; private final OperationCallSettings.Builder< @@ -578,6 +593,7 @@ protected Builder(ClientContext clientContext) { deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteOperationSettings = OperationCallSettings.newBuilder(); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getHealthSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); insertOperationSettings = OperationCallSettings.newBuilder(); listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); @@ -590,6 +606,7 @@ protected Builder(ClientContext clientContext) { aggregatedListSettings, deleteSettings, getSettings, + getHealthSettings, insertSettings, listSettings, patchSettings, @@ -604,6 +621,7 @@ protected Builder(RegionCompositeHealthChecksStubSettings settings) { deleteSettings = settings.deleteSettings.toBuilder(); deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); getSettings = settings.getSettings.toBuilder(); + getHealthSettings = settings.getHealthSettings.toBuilder(); insertSettings = settings.insertSettings.toBuilder(); insertOperationSettings = settings.insertOperationSettings.toBuilder(); listSettings = settings.listSettings.toBuilder(); @@ -616,6 +634,7 @@ protected Builder(RegionCompositeHealthChecksStubSettings settings) { aggregatedListSettings, deleteSettings, getSettings, + getHealthSettings, insertSettings, listSettings, patchSettings, @@ -650,6 +669,11 @@ 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 + .getHealthSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .insertSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -791,6 +815,13 @@ public Builder applyToAllUnaryMethods( return getSettings; } + /** Returns the builder for the settings used for calls to getHealth. */ + public UnaryCallSettings.Builder< + GetHealthRegionCompositeHealthCheckRequest, CompositeHealthCheckHealth> + getHealthSettings() { + return getHealthSettings; + } + /** Returns the builder for the settings used for calls to insert. */ public UnaryCallSettings.Builder insertSettings() { diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStub.java index e4ba05e518fd..eb46fe26e328 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStub.java @@ -42,6 +42,7 @@ import com.google.cloud.compute.v1.StopGroupAsyncReplicationRegionDiskRequest; import com.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; import com.google.cloud.compute.v1.UpdateRegionDiskRequest; import javax.annotation.Generated; @@ -197,6 +198,15 @@ public UnaryCallable updateCallable() { throw new UnsupportedOperationException("Not implemented: updateCallable()"); } + public OperationCallable + updateKmsKeyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyOperationCallable()"); + } + + public UnaryCallable updateKmsKeyCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyCallable()"); + } + @Override public abstract void close(); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java index e1f0ff8f8178..607deb380878 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java @@ -66,6 +66,7 @@ import com.google.cloud.compute.v1.StopGroupAsyncReplicationRegionDiskRequest; import com.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; import com.google.cloud.compute.v1.UpdateRegionDiskRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -211,6 +212,9 @@ public class RegionDisksStubSettings extends StubSettings updateSettings; private final OperationCallSettings updateOperationSettings; + private final UnaryCallSettings updateKmsKeySettings; + private final OperationCallSettings + updateKmsKeyOperationSettings; private static final PagedListDescriptor LIST_PAGE_STR_DESC = @@ -426,6 +430,17 @@ public UnaryCallSettings updateSettings() { return updateOperationSettings; } + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + public RegionDisksStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -542,6 +557,8 @@ protected RegionDisksStubSettings(Builder settingsBuilder) throws IOException { testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); updateSettings = settingsBuilder.updateSettings().build(); updateOperationSettings = settingsBuilder.updateOperationSettings().build(); + updateKmsKeySettings = settingsBuilder.updateKmsKeySettings().build(); + updateKmsKeyOperationSettings = settingsBuilder.updateKmsKeyOperationSettings().build(); } @Override @@ -616,6 +633,10 @@ public static class Builder extends StubSettings.Builder updateSettings; private final OperationCallSettings.Builder updateOperationSettings; + private final UnaryCallSettings.Builder + updateKmsKeySettings; + private final OperationCallSettings.Builder + updateKmsKeyOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -695,6 +716,8 @@ protected Builder(ClientContext clientContext) { testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateOperationSettings = OperationCallSettings.newBuilder(); + updateKmsKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKmsKeyOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -714,7 +737,8 @@ protected Builder(ClientContext clientContext) { stopAsyncReplicationSettings, stopGroupAsyncReplicationSettings, testIamPermissionsSettings, - updateSettings); + updateSettings, + updateKmsKeySettings); initDefaults(this); } @@ -755,6 +779,8 @@ protected Builder(RegionDisksStubSettings settings) { testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); updateSettings = settings.updateSettings.toBuilder(); updateOperationSettings = settings.updateOperationSettings.toBuilder(); + updateKmsKeySettings = settings.updateKmsKeySettings.toBuilder(); + updateKmsKeyOperationSettings = settings.updateKmsKeyOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -774,7 +800,8 @@ protected Builder(RegionDisksStubSettings settings) { stopAsyncReplicationSettings, stopGroupAsyncReplicationSettings, testIamPermissionsSettings, - updateSettings); + updateSettings, + updateKmsKeySettings); } private static Builder createDefault() { @@ -875,6 +902,11 @@ 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 + .updateKmsKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .addResourcePoliciesOperationSettings() .setInitialCallSettings( @@ -1168,6 +1200,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .updateKmsKeyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + return builder; } @@ -1355,6 +1411,18 @@ public UnaryCallSettings.Builder updateSetti return updateOperationSettings; } + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder + updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + @Override public RegionDisksStubSettings build() throws IOException { return new RegionDisksStubSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStub.java index 98e3b99a56af..d1251aadf82b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStub.java @@ -24,9 +24,11 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest; import com.google.cloud.compute.v1.DeleteRegionHealthSourceRequest; +import com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; import com.google.cloud.compute.v1.GetRegionHealthSourceRequest; import com.google.cloud.compute.v1.HealthSource; import com.google.cloud.compute.v1.HealthSourceAggregatedList; +import com.google.cloud.compute.v1.HealthSourceHealth; import com.google.cloud.compute.v1.HealthSourceList; import com.google.cloud.compute.v1.InsertRegionHealthSourceRequest; import com.google.cloud.compute.v1.ListRegionHealthSourcesRequest; @@ -68,6 +70,10 @@ public UnaryCallable getCallable() { throw new UnsupportedOperationException("Not implemented: getCallable()"); } + public UnaryCallable getHealthCallable() { + throw new UnsupportedOperationException("Not implemented: getHealthCallable()"); + } + public OperationCallable insertOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java index b292113e3f3a..5c0dc41a6dbc 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java @@ -48,9 +48,11 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest; import com.google.cloud.compute.v1.DeleteRegionHealthSourceRequest; +import com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; import com.google.cloud.compute.v1.GetRegionHealthSourceRequest; import com.google.cloud.compute.v1.HealthSource; import com.google.cloud.compute.v1.HealthSourceAggregatedList; +import com.google.cloud.compute.v1.HealthSourceHealth; import com.google.cloud.compute.v1.HealthSourceList; import com.google.cloud.compute.v1.HealthSourcesScopedList; import com.google.cloud.compute.v1.InsertRegionHealthSourceRequest; @@ -165,6 +167,8 @@ public class RegionHealthSourcesStubSettings extends StubSettings deleteOperationSettings; private final UnaryCallSettings getSettings; + private final UnaryCallSettings + getHealthSettings; private final UnaryCallSettings insertSettings; private final OperationCallSettings insertOperationSettings; @@ -333,6 +337,12 @@ public UnaryCallSettings getSettings return getSettings; } + /** Returns the object with the settings used for calls to getHealth. */ + public UnaryCallSettings + getHealthSettings() { + return getHealthSettings; + } + /** Returns the object with the settings used for calls to insert. */ public UnaryCallSettings insertSettings() { return insertSettings; @@ -453,6 +463,7 @@ protected RegionHealthSourcesStubSettings(Builder settingsBuilder) throws IOExce deleteSettings = settingsBuilder.deleteSettings().build(); deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); getSettings = settingsBuilder.getSettings().build(); + getHealthSettings = settingsBuilder.getHealthSettings().build(); insertSettings = settingsBuilder.insertSettings().build(); insertOperationSettings = settingsBuilder.insertOperationSettings().build(); listSettings = settingsBuilder.listSettings().build(); @@ -485,6 +496,8 @@ public static class Builder DeleteRegionHealthSourceRequest, Operation, Operation> deleteOperationSettings; private final UnaryCallSettings.Builder getSettings; + private final UnaryCallSettings.Builder + getHealthSettings; private final UnaryCallSettings.Builder insertSettings; private final OperationCallSettings.Builder< @@ -555,6 +568,7 @@ protected Builder(ClientContext clientContext) { deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteOperationSettings = OperationCallSettings.newBuilder(); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getHealthSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); insertOperationSettings = OperationCallSettings.newBuilder(); listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); @@ -567,6 +581,7 @@ protected Builder(ClientContext clientContext) { aggregatedListSettings, deleteSettings, getSettings, + getHealthSettings, insertSettings, listSettings, patchSettings, @@ -581,6 +596,7 @@ protected Builder(RegionHealthSourcesStubSettings settings) { deleteSettings = settings.deleteSettings.toBuilder(); deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); getSettings = settings.getSettings.toBuilder(); + getHealthSettings = settings.getHealthSettings.toBuilder(); insertSettings = settings.insertSettings.toBuilder(); insertOperationSettings = settings.insertOperationSettings.toBuilder(); listSettings = settings.listSettings.toBuilder(); @@ -593,6 +609,7 @@ protected Builder(RegionHealthSourcesStubSettings settings) { aggregatedListSettings, deleteSettings, getSettings, + getHealthSettings, insertSettings, listSettings, patchSettings, @@ -627,6 +644,11 @@ 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 + .getHealthSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .insertSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -762,6 +784,12 @@ public UnaryCallSettings.Builder get return getSettings; } + /** Returns the builder for the settings used for calls to getHealth. */ + public UnaryCallSettings.Builder + getHealthSettings() { + return getHealthSettings; + } + /** Returns the builder for the settings used for calls to insert. */ public UnaryCallSettings.Builder insertSettings() { return insertSettings; diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStub.java new file mode 100644 index 000000000000..c9d42ad75d52 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStub.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient.ListPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RegionInstanceGroupManagerResizeRequests service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class RegionInstanceGroupManagerResizeRequestsStub implements BackgroundResource { + + public OperationCallable< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationCallable() { + throw new UnsupportedOperationException("Not implemented: cancelOperationCallable()"); + } + + public UnaryCallable + cancelCallable() { + throw new UnsupportedOperationException("Not implemented: cancelCallable()"); + } + + public OperationCallable< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); + } + + public UnaryCallable + deleteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCallable()"); + } + + public UnaryCallable< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public OperationCallable< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); + } + + public UnaryCallable + insertCallable() { + throw new UnsupportedOperationException("Not implemented: insertCallable()"); + } + + public UnaryCallable + listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java new file mode 100644 index 000000000000..2c2eb4075169 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java @@ -0,0 +1,721 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionInstanceGroupManagerResizeRequestsStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionInstanceGroupManagerResizeRequestsStubSettings.Builder
+ *     regionInstanceGroupManagerResizeRequestsSettingsBuilder =
+ *         RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder();
+ * regionInstanceGroupManagerResizeRequestsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionInstanceGroupManagerResizeRequestsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionInstanceGroupManagerResizeRequestsStubSettings
+ *     regionInstanceGroupManagerResizeRequestsSettings =
+ *         regionInstanceGroupManagerResizeRequestsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for cancel: + * + *

{@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
+ * RegionInstanceGroupManagerResizeRequestsStubSettings.Builder
+ *     regionInstanceGroupManagerResizeRequestsSettingsBuilder =
+ *         RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionInstanceGroupManagerResizeRequestsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class RegionInstanceGroupManagerResizeRequestsStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + cancelSettings; + private final OperationCallSettings< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationSettings; + private final UnaryCallSettings + deleteSettings; + private final OperationCallSettings< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationSettings; + private final UnaryCallSettings< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getSettings; + private final UnaryCallSettings + insertSettings; + private final OperationCallSettings< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationSettings; + private final PagedCallSettings< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + listSettings; + + private static final PagedListDescriptor< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest> + LIST_PAGE_STR_DESC = + new PagedListDescriptor< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRegionInstanceGroupManagerResizeRequestsRequest injectToken( + ListRegionInstanceGroupManagerResizeRequestsRequest payload, String token) { + return ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListRegionInstanceGroupManagerResizeRequestsRequest injectPageSize( + ListRegionInstanceGroupManagerResizeRequestsRequest payload, int pageSize) { + return ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize( + ListRegionInstanceGroupManagerResizeRequestsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken( + RegionInstanceGroupManagerResizeRequestsListResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + RegionInstanceGroupManagerResizeRequestsListResponse payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse> + callable, + ListRegionInstanceGroupManagerResizeRequestsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + InstanceGroupManagerResizeRequest> + pageContext = PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to cancel. */ + public UnaryCallSettings + cancelSettings() { + return cancelSettings; + } + + /** Returns the object with the settings used for calls to cancel. */ + public OperationCallSettings< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationSettings() { + return cancelOperationSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings + deleteSettings() { + return deleteSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings + insertSettings() { + return insertSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + listSettings() { + return listSettings; + } + + public RegionInstanceGroupManagerResizeRequestsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRegionInstanceGroupManagerResizeRequestsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion( + RegionInstanceGroupManagerResizeRequestsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionInstanceGroupManagerResizeRequestsStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + cancelSettings = settingsBuilder.cancelSettings().build(); + cancelOperationSettings = settingsBuilder.cancelOperationSettings().build(); + deleteSettings = settingsBuilder.deleteSettings().build(); + deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); + getSettings = settingsBuilder.getSettings().build(); + insertSettings = settingsBuilder.insertSettings().build(); + insertOperationSettings = settingsBuilder.insertOperationSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for RegionInstanceGroupManagerResizeRequestsStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation> + cancelSettings; + private final OperationCallSettings.Builder< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationSettings; + private final UnaryCallSettings.Builder< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation> + deleteSettings; + private final OperationCallSettings.Builder< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationSettings; + private final UnaryCallSettings.Builder< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getSettings; + private final UnaryCallSettings.Builder< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation> + insertSettings; + private final OperationCallSettings.Builder< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationSettings; + private final PagedCallSettings.Builder< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + listSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + cancelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + cancelOperationSettings = OperationCallSettings.newBuilder(); + deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOperationSettings = OperationCallSettings.newBuilder(); + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertOperationSettings = OperationCallSettings.newBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + cancelSettings, deleteSettings, getSettings, insertSettings, listSettings); + initDefaults(this); + } + + protected Builder(RegionInstanceGroupManagerResizeRequestsStubSettings settings) { + super(settings); + + cancelSettings = settings.cancelSettings.toBuilder(); + cancelOperationSettings = settings.cancelOperationSettings.toBuilder(); + deleteSettings = settings.deleteSettings.toBuilder(); + deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); + getSettings = settings.getSettings.toBuilder(); + insertSettings = settings.insertSettings.toBuilder(); + insertOperationSettings = settings.insertOperationSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + cancelSettings, deleteSettings, getSettings, insertSettings, listSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .cancelSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .insertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .cancelOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .deleteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .insertOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to cancel. */ + public UnaryCallSettings.Builder< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation> + cancelSettings() { + return cancelSettings; + } + + /** Returns the builder for the settings used for calls to cancel. */ + public OperationCallSettings.Builder< + CancelRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + cancelOperationSettings() { + return cancelOperationSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation> + deleteSettings() { + return deleteSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder< + DeleteRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder< + GetRegionInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest> + getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation> + insertSettings() { + return insertSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder< + InsertRegionInstanceGroupManagerResizeRequestRequest, Operation, Operation> + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListRegionInstanceGroupManagerResizeRequestsRequest, + RegionInstanceGroupManagerResizeRequestsListResponse, + ListPagedResponse> + listSettings() { + return listSettings; + } + + @Override + public RegionInstanceGroupManagerResizeRequestsStubSettings build() throws IOException { + return new RegionInstanceGroupManagerResizeRequestsStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStub.java new file mode 100644 index 000000000000..ebefa9848730 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStub.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RegionInstantSnapshotGroups service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class RegionInstantSnapshotGroupsStub implements BackgroundResource { + + public OperationCallable + deleteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); + } + + public UnaryCallable deleteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCallable()"); + } + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public UnaryCallable + getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public OperationCallable + insertOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); + } + + public UnaryCallable insertCallable() { + throw new UnsupportedOperationException("Not implemented: insertCallable()"); + } + + public UnaryCallable + listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable + listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + public UnaryCallable + setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java new file mode 100644 index 000000000000..4ecdfb77e2d7 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java @@ -0,0 +1,704 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionInstantSnapshotGroupsStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionInstantSnapshotGroupsStubSettings.Builder regionInstantSnapshotGroupsSettingsBuilder =
+ *     RegionInstantSnapshotGroupsStubSettings.newBuilder();
+ * regionInstantSnapshotGroupsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionInstantSnapshotGroupsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionInstantSnapshotGroupsStubSettings regionInstantSnapshotGroupsSettings =
+ *     regionInstantSnapshotGroupsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * RegionInstantSnapshotGroupsStubSettings.Builder regionInstantSnapshotGroupsSettingsBuilder =
+ *     RegionInstantSnapshotGroupsStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionInstantSnapshotGroupsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class RegionInstantSnapshotGroupsStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + deleteSettings; + private final OperationCallSettings + deleteOperationSettings; + private final UnaryCallSettings + getSettings; + private final UnaryCallSettings + getIamPolicySettings; + private final UnaryCallSettings + insertSettings; + private final OperationCallSettings + insertOperationSettings; + private final PagedCallSettings< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings; + private final UnaryCallSettings + setIamPolicySettings; + private final UnaryCallSettings< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> + LIST_PAGE_STR_DESC = + new PagedListDescriptor< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRegionInstantSnapshotGroupsRequest injectToken( + ListRegionInstantSnapshotGroupsRequest payload, String token) { + return ListRegionInstantSnapshotGroupsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListRegionInstantSnapshotGroupsRequest injectPageSize( + ListRegionInstantSnapshotGroupsRequest payload, int pageSize) { + return ListRegionInstantSnapshotGroupsRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListRegionInstantSnapshotGroupsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(ListInstantSnapshotGroups payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListInstantSnapshotGroups payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListRegionInstantSnapshotGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListRegionInstantSnapshotGroupsRequest, + ListInstantSnapshotGroups, + InstantSnapshotGroup> + pageContext = PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return deleteSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings + getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings + getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return insertSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings + setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public RegionInstantSnapshotGroupsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRegionInstantSnapshotGroupsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RegionInstantSnapshotGroupsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionInstantSnapshotGroupsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteSettings = settingsBuilder.deleteSettings().build(); + deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); + getSettings = settingsBuilder.getSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + insertSettings = settingsBuilder.insertSettings().build(); + insertOperationSettings = settingsBuilder.insertOperationSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for RegionInstantSnapshotGroupsStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + deleteSettings; + private final OperationCallSettings.Builder< + DeleteRegionInstantSnapshotGroupRequest, Operation, Operation> + deleteOperationSettings; + private final UnaryCallSettings.Builder< + GetRegionInstantSnapshotGroupRequest, InstantSnapshotGroup> + getSettings; + private final UnaryCallSettings.Builder + getIamPolicySettings; + private final UnaryCallSettings.Builder + insertSettings; + private final OperationCallSettings.Builder< + InsertRegionInstantSnapshotGroupRequest, Operation, Operation> + insertOperationSettings; + private final PagedCallSettings.Builder< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings; + private final UnaryCallSettings.Builder + setIamPolicySettings; + private final UnaryCallSettings.Builder< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOperationSettings = OperationCallSettings.newBuilder(); + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertOperationSettings = OperationCallSettings.newBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + setIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(RegionInstantSnapshotGroupsStubSettings settings) { + super(settings); + + deleteSettings = settings.deleteSettings.toBuilder(); + deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); + getSettings = settings.getSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + insertSettings = settings.insertSettings.toBuilder(); + insertOperationSettings = settings.insertOperationSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + setIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .insertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .insertOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder + deleteSettings() { + return deleteSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder< + DeleteRegionInstantSnapshotGroupRequest, Operation, Operation> + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder + insertSettings() { + return insertSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder< + InsertRegionInstantSnapshotGroupRequest, Operation, Operation> + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsRegionInstantSnapshotGroupRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public RegionInstantSnapshotGroupsStubSettings build() throws IOException { + return new RegionInstantSnapshotGroupsStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStub.java new file mode 100644 index 000000000000..e07cbba8c556 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStub.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.SnapshotSettings; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RegionSnapshotSettings service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class RegionSnapshotSettingsStub implements BackgroundResource { + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public OperationCallable + patchOperationCallable() { + throw new UnsupportedOperationException("Not implemented: patchOperationCallable()"); + } + + public UnaryCallable patchCallable() { + throw new UnsupportedOperationException("Not implemented: patchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java new file mode 100644 index 000000000000..acf2152bbc63 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java @@ -0,0 +1,426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.SnapshotSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionSnapshotSettingsStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionSnapshotSettingsStubSettings.Builder regionSnapshotSettingsSettingsBuilder =
+ *     RegionSnapshotSettingsStubSettings.newBuilder();
+ * regionSnapshotSettingsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionSnapshotSettingsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionSnapshotSettingsStubSettings regionSnapshotSettingsSettings =
+ *     regionSnapshotSettingsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for patch: + * + *

{@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
+ * RegionSnapshotSettingsStubSettings.Builder regionSnapshotSettingsSettingsBuilder =
+ *     RegionSnapshotSettingsStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionSnapshotSettingsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class RegionSnapshotSettingsStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings getSettings; + private final UnaryCallSettings patchSettings; + private final OperationCallSettings + patchOperationSettings; + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to patch. */ + public UnaryCallSettings patchSettings() { + return patchSettings; + } + + /** Returns the object with the settings used for calls to patch. */ + public OperationCallSettings + patchOperationSettings() { + return patchOperationSettings; + } + + public RegionSnapshotSettingsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRegionSnapshotSettingsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RegionSnapshotSettingsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionSnapshotSettingsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSettings = settingsBuilder.getSettings().build(); + patchSettings = settingsBuilder.patchSettings().build(); + patchOperationSettings = settingsBuilder.patchOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for RegionSnapshotSettingsStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getSettings; + private final UnaryCallSettings.Builder + patchSettings; + private final OperationCallSettings.Builder< + PatchRegionSnapshotSettingRequest, Operation, Operation> + patchOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + patchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + patchOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getSettings, patchSettings); + initDefaults(this); + } + + protected Builder(RegionSnapshotSettingsStubSettings settings) { + super(settings); + + getSettings = settings.getSettings.toBuilder(); + patchSettings = settings.patchSettings.toBuilder(); + patchOperationSettings = settings.patchOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getSettings, patchSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .patchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .patchOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to patch. */ + public UnaryCallSettings.Builder patchSettings() { + return patchSettings; + } + + /** Returns the builder for the settings used for calls to patch. */ + public OperationCallSettings.Builder + patchOperationSettings() { + return patchOperationSettings; + } + + @Override + public RegionSnapshotSettingsStubSettings build() throws IOException { + return new RegionSnapshotSettingsStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStub.java new file mode 100644 index 000000000000..8f587b65c39f --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStub.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionSnapshotsClient.ListPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteRegionSnapshotRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.GetRegionSnapshotRequest; +import com.google.cloud.compute.v1.InsertRegionSnapshotRequest; +import com.google.cloud.compute.v1.ListRegionSnapshotsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; +import com.google.cloud.compute.v1.Snapshot; +import com.google.cloud.compute.v1.SnapshotList; +import com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RegionSnapshots service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class RegionSnapshotsStub implements BackgroundResource { + + public OperationCallable + deleteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); + } + + public UnaryCallable deleteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCallable()"); + } + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public OperationCallable + insertOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); + } + + public UnaryCallable insertCallable() { + throw new UnsupportedOperationException("Not implemented: insertCallable()"); + } + + public UnaryCallable listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public OperationCallable + setLabelsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: setLabelsOperationCallable()"); + } + + public UnaryCallable setLabelsCallable() { + throw new UnsupportedOperationException("Not implemented: setLabelsCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + public OperationCallable + updateKmsKeyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyOperationCallable()"); + } + + public UnaryCallable updateKmsKeyCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java new file mode 100644 index 000000000000..b1d33c07f628 --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java @@ -0,0 +1,800 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.RegionSnapshotsClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteRegionSnapshotRequest; +import com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.GetRegionSnapshotRequest; +import com.google.cloud.compute.v1.InsertRegionSnapshotRequest; +import com.google.cloud.compute.v1.ListRegionSnapshotsRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; +import com.google.cloud.compute.v1.Snapshot; +import com.google.cloud.compute.v1.SnapshotList; +import com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RegionSnapshotsStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * RegionSnapshotsStubSettings.Builder regionSnapshotsSettingsBuilder =
+ *     RegionSnapshotsStubSettings.newBuilder();
+ * regionSnapshotsSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         regionSnapshotsSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * RegionSnapshotsStubSettings regionSnapshotsSettings = regionSnapshotsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * RegionSnapshotsStubSettings.Builder regionSnapshotsSettingsBuilder =
+ *     RegionSnapshotsStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * regionSnapshotsSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class RegionSnapshotsStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings deleteSettings; + private final OperationCallSettings + deleteOperationSettings; + private final UnaryCallSettings getSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings insertSettings; + private final OperationCallSettings + insertOperationSettings; + private final PagedCallSettings + listSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings setLabelsSettings; + private final OperationCallSettings + setLabelsOperationSettings; + private final UnaryCallSettings + testIamPermissionsSettings; + private final UnaryCallSettings + updateKmsKeySettings; + private final OperationCallSettings + updateKmsKeyOperationSettings; + + private static final PagedListDescriptor + LIST_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRegionSnapshotsRequest injectToken( + ListRegionSnapshotsRequest payload, String token) { + return ListRegionSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRegionSnapshotsRequest injectPageSize( + ListRegionSnapshotsRequest payload, int pageSize) { + return ListRegionSnapshotsRequest.newBuilder(payload).setMaxResults(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRegionSnapshotsRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(SnapshotList payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SnapshotList payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListRegionSnapshotsRequest, SnapshotList, ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRegionSnapshotsRequest, SnapshotList, ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRegionSnapshotsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return deleteSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return insertSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings + listSettings() { + return listSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setLabels. */ + public UnaryCallSettings setLabelsSettings() { + return setLabelsSettings; + } + + /** Returns the object with the settings used for calls to setLabels. */ + public OperationCallSettings + setLabelsOperationSettings() { + return setLabelsOperationSettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + + public RegionSnapshotsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRegionSnapshotsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RegionSnapshotsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RegionSnapshotsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteSettings = settingsBuilder.deleteSettings().build(); + deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); + getSettings = settingsBuilder.getSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + insertSettings = settingsBuilder.insertSettings().build(); + insertOperationSettings = settingsBuilder.insertOperationSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + setLabelsSettings = settingsBuilder.setLabelsSettings().build(); + setLabelsOperationSettings = settingsBuilder.setLabelsOperationSettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + updateKmsKeySettings = settingsBuilder.updateKmsKeySettings().build(); + updateKmsKeyOperationSettings = settingsBuilder.updateKmsKeyOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for RegionSnapshotsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder deleteSettings; + private final OperationCallSettings.Builder + deleteOperationSettings; + private final UnaryCallSettings.Builder getSettings; + private final UnaryCallSettings.Builder + getIamPolicySettings; + private final UnaryCallSettings.Builder insertSettings; + private final OperationCallSettings.Builder + insertOperationSettings; + private final PagedCallSettings.Builder< + ListRegionSnapshotsRequest, SnapshotList, ListPagedResponse> + listSettings; + private final UnaryCallSettings.Builder + setIamPolicySettings; + private final UnaryCallSettings.Builder + setLabelsSettings; + private final OperationCallSettings.Builder< + SetLabelsRegionSnapshotRequest, Operation, Operation> + setLabelsOperationSettings; + private final UnaryCallSettings.Builder< + TestIamPermissionsRegionSnapshotRequest, TestPermissionsResponse> + testIamPermissionsSettings; + private final UnaryCallSettings.Builder + updateKmsKeySettings; + private final OperationCallSettings.Builder< + UpdateKmsKeyRegionSnapshotRequest, Operation, Operation> + updateKmsKeyOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOperationSettings = OperationCallSettings.newBuilder(); + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertOperationSettings = OperationCallSettings.newBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLabelsOperationSettings = OperationCallSettings.newBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKmsKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKmsKeyOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + setIamPolicySettings, + setLabelsSettings, + testIamPermissionsSettings, + updateKmsKeySettings); + initDefaults(this); + } + + protected Builder(RegionSnapshotsStubSettings settings) { + super(settings); + + deleteSettings = settings.deleteSettings.toBuilder(); + deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); + getSettings = settings.getSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + insertSettings = settings.insertSettings.toBuilder(); + insertOperationSettings = settings.insertOperationSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + setLabelsSettings = settings.setLabelsSettings.toBuilder(); + setLabelsOperationSettings = settings.setLabelsOperationSettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + updateKmsKeySettings = settings.updateKmsKeySettings.toBuilder(); + updateKmsKeyOperationSettings = settings.updateKmsKeyOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, + getSettings, + getIamPolicySettings, + insertSettings, + listSettings, + setIamPolicySettings, + setLabelsSettings, + testIamPermissionsSettings, + updateKmsKeySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .insertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setLabelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateKmsKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .insertOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .setLabelsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .updateKmsKeyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder deleteSettings() { + return deleteSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder + getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder insertSettings() { + return insertSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder + listSettings() { + return listSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder + setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public UnaryCallSettings.Builder + setLabelsSettings() { + return setLabelsSettings; + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public OperationCallSettings.Builder + setLabelsOperationSettings() { + return setLabelsOperationSettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder< + TestIamPermissionsRegionSnapshotRequest, TestPermissionsResponse> + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder + updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + + @Override + public RegionSnapshotsStubSettings build() throws IOException { + return new RegionSnapshotsStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStub.java index ee443159a6f6..14cb6aa8e2b8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStub.java @@ -34,6 +34,7 @@ import com.google.cloud.compute.v1.SnapshotList; import com.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -95,6 +96,15 @@ public UnaryCallable setLabelsCallable() { throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); } + public OperationCallable + updateKmsKeyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyOperationCallable()"); + } + + public UnaryCallable updateKmsKeyCallable() { + throw new UnsupportedOperationException("Not implemented: updateKmsKeyCallable()"); + } + @Override public abstract void close(); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java index 2f73969cc053..6ef7cc10abff 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java @@ -58,6 +58,7 @@ import com.google.cloud.compute.v1.SnapshotList; import com.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest; import com.google.cloud.compute.v1.TestPermissionsResponse; +import com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -167,6 +168,9 @@ public class SnapshotsStubSettings extends StubSettings { setLabelsOperationSettings; private final UnaryCallSettings testIamPermissionsSettings; + private final UnaryCallSettings updateKmsKeySettings; + private final OperationCallSettings + updateKmsKeyOperationSettings; private static final PagedListDescriptor LIST_PAGE_STR_DESC = @@ -277,6 +281,17 @@ public UnaryCallSettings setLabelsSettings( return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to updateKmsKey. */ + public UnaryCallSettings updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the object with the settings used for calls to updateKmsKey. */ + public OperationCallSettings + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + public SnapshotsStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -369,6 +384,8 @@ protected SnapshotsStubSettings(Builder settingsBuilder) throws IOException { setLabelsSettings = settingsBuilder.setLabelsSettings().build(); setLabelsOperationSettings = settingsBuilder.setLabelsOperationSettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + updateKmsKeySettings = settingsBuilder.updateKmsKeySettings().build(); + updateKmsKeyOperationSettings = settingsBuilder.updateKmsKeyOperationSettings().build(); } @Override @@ -402,6 +419,10 @@ public static class Builder extends StubSettings.Builder testIamPermissionsSettings; + private final UnaryCallSettings.Builder + updateKmsKeySettings; + private final OperationCallSettings.Builder + updateKmsKeyOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -463,6 +484,8 @@ protected Builder(ClientContext clientContext) { setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setLabelsOperationSettings = OperationCallSettings.newBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKmsKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateKmsKeyOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -473,7 +496,8 @@ protected Builder(ClientContext clientContext) { listSettings, setIamPolicySettings, setLabelsSettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + updateKmsKeySettings); initDefaults(this); } @@ -491,6 +515,8 @@ protected Builder(SnapshotsStubSettings settings) { setLabelsSettings = settings.setLabelsSettings.toBuilder(); setLabelsOperationSettings = settings.setLabelsOperationSettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + updateKmsKeySettings = settings.updateKmsKeySettings.toBuilder(); + updateKmsKeyOperationSettings = settings.updateKmsKeyOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -501,7 +527,8 @@ protected Builder(SnapshotsStubSettings settings) { listSettings, setIamPolicySettings, setLabelsSettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + updateKmsKeySettings); } private static Builder createDefault() { @@ -557,6 +584,11 @@ 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 + .updateKmsKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .deleteOperationSettings() .setInitialCallSettings( @@ -629,6 +661,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(600000L)) .build())); + builder + .updateKmsKeyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + return builder; } @@ -707,6 +763,18 @@ public UnaryCallSettings.Builder setLabelsS return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public UnaryCallSettings.Builder + updateKmsKeySettings() { + return updateKmsKeySettings; + } + + /** Returns the builder for the settings used for calls to updateKmsKey. */ + public OperationCallSettings.Builder + updateKmsKeyOperationSettings() { + return updateKmsKeyOperationSettings; + } + @Override public SnapshotsStubSettings build() throws IOException { return new SnapshotsStubSettings(this); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStub.java new file mode 100644 index 000000000000..b3aa70fe407c --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStub.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient.ListPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.VmExtensionPolicyList; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ZoneVmExtensionPolicies service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ZoneVmExtensionPoliciesStub implements BackgroundResource { + + public OperationCallable + deleteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOperationCallable()"); + } + + public UnaryCallable deleteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCallable()"); + } + + public UnaryCallable getCallable() { + throw new UnsupportedOperationException("Not implemented: getCallable()"); + } + + public OperationCallable + insertOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertOperationCallable()"); + } + + public UnaryCallable insertCallable() { + throw new UnsupportedOperationException("Not implemented: insertCallable()"); + } + + public UnaryCallable listPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPagedCallable()"); + } + + public UnaryCallable listCallable() { + throw new UnsupportedOperationException("Not implemented: listCallable()"); + } + + public OperationCallable + updateOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateOperationCallable()"); + } + + public UnaryCallable updateCallable() { + throw new UnsupportedOperationException("Not implemented: updateCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java new file mode 100644 index 000000000000..8f4c50a79f1b --- /dev/null +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java @@ -0,0 +1,664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub; + +import static com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient.ListPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.httpjson.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.VmExtensionPolicyList; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ZoneVmExtensionPoliciesStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *

{@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
+ * ZoneVmExtensionPoliciesStubSettings.Builder zoneVmExtensionPoliciesSettingsBuilder =
+ *     ZoneVmExtensionPoliciesStubSettings.newBuilder();
+ * zoneVmExtensionPoliciesSettingsBuilder
+ *     .getSettings()
+ *     .setRetrySettings(
+ *         zoneVmExtensionPoliciesSettingsBuilder
+ *             .getSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * ZoneVmExtensionPoliciesStubSettings zoneVmExtensionPoliciesSettings =
+ *     zoneVmExtensionPoliciesSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *

{@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
+ * ZoneVmExtensionPoliciesStubSettings.Builder zoneVmExtensionPoliciesSettingsBuilder =
+ *     ZoneVmExtensionPoliciesStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * zoneVmExtensionPoliciesSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class ZoneVmExtensionPoliciesStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/compute") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings deleteSettings; + private final OperationCallSettings + deleteOperationSettings; + private final UnaryCallSettings getSettings; + private final UnaryCallSettings insertSettings; + private final OperationCallSettings + insertOperationSettings; + private final PagedCallSettings< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + listSettings; + private final UnaryCallSettings updateSettings; + private final OperationCallSettings + updateOperationSettings; + + private static final PagedListDescriptor< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy> + LIST_PAGE_STR_DESC = + new PagedListDescriptor< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListZoneVmExtensionPoliciesRequest injectToken( + ListZoneVmExtensionPoliciesRequest payload, String token) { + return ListZoneVmExtensionPoliciesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListZoneVmExtensionPoliciesRequest injectPageSize( + ListZoneVmExtensionPoliciesRequest payload, int pageSize) { + return ListZoneVmExtensionPoliciesRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListZoneVmExtensionPoliciesRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(VmExtensionPolicyList payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(VmExtensionPolicyList payload) { + return payload.getItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListZoneVmExtensionPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy> + pageContext = PageContext.create(callable, LIST_PAGE_STR_DESC, request, context); + return ListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to delete. */ + public UnaryCallSettings deleteSettings() { + return deleteSettings; + } + + /** Returns the object with the settings used for calls to delete. */ + public OperationCallSettings + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getSettings() { + return getSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public UnaryCallSettings insertSettings() { + return insertSettings; + } + + /** Returns the object with the settings used for calls to insert. */ + public OperationCallSettings + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the object with the settings used for calls to list. */ + public PagedCallSettings< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the object with the settings used for calls to update. */ + public UnaryCallSettings updateSettings() { + return updateSettings; + } + + /** Returns the object with the settings used for calls to update. */ + public OperationCallSettings + updateOperationSettings() { + return updateOperationSettings; + } + + public ZoneVmExtensionPoliciesStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonZoneVmExtensionPoliciesStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "compute"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "compute.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "compute.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ZoneVmExtensionPoliciesStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ZoneVmExtensionPoliciesStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteSettings = settingsBuilder.deleteSettings().build(); + deleteOperationSettings = settingsBuilder.deleteOperationSettings().build(); + getSettings = settingsBuilder.getSettings().build(); + insertSettings = settingsBuilder.insertSettings().build(); + insertOperationSettings = settingsBuilder.insertOperationSettings().build(); + listSettings = settingsBuilder.listSettings().build(); + updateSettings = settingsBuilder.updateSettings().build(); + updateOperationSettings = settingsBuilder.updateOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-compute") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for ZoneVmExtensionPoliciesStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + deleteSettings; + private final OperationCallSettings.Builder< + DeleteZoneVmExtensionPolicyRequest, Operation, Operation> + deleteOperationSettings; + private final UnaryCallSettings.Builder + getSettings; + private final UnaryCallSettings.Builder + insertSettings; + private final OperationCallSettings.Builder< + InsertZoneVmExtensionPolicyRequest, Operation, Operation> + insertOperationSettings; + private final PagedCallSettings.Builder< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + listSettings; + private final UnaryCallSettings.Builder + updateSettings; + private final OperationCallSettings.Builder< + UpdateZoneVmExtensionPolicyRequest, Operation, Operation> + updateOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOperationSettings = OperationCallSettings.newBuilder(); + getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + insertOperationSettings = OperationCallSettings.newBuilder(); + listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); + updateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, getSettings, insertSettings, listSettings, updateSettings); + initDefaults(this); + } + + protected Builder(ZoneVmExtensionPoliciesStubSettings settings) { + super(settings); + + deleteSettings = settings.deleteSettings.toBuilder(); + deleteOperationSettings = settings.deleteOperationSettings.toBuilder(); + getSettings = settings.getSettings.toBuilder(); + insertSettings = settings.insertSettings.toBuilder(); + insertOperationSettings = settings.insertOperationSettings.toBuilder(); + listSettings = settings.listSettings.toBuilder(); + updateSettings = settings.updateSettings.toBuilder(); + updateOperationSettings = settings.updateOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteSettings, getSettings, insertSettings, listSettings, updateSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .insertSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .insertOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + builder + .updateOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Operation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Operation.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to delete. */ + public UnaryCallSettings.Builder + deleteSettings() { + return deleteSettings; + } + + /** Returns the builder for the settings used for calls to delete. */ + public OperationCallSettings.Builder + deleteOperationSettings() { + return deleteOperationSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder + getSettings() { + return getSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public UnaryCallSettings.Builder + insertSettings() { + return insertSettings; + } + + /** Returns the builder for the settings used for calls to insert. */ + public OperationCallSettings.Builder + insertOperationSettings() { + return insertOperationSettings; + } + + /** Returns the builder for the settings used for calls to list. */ + public PagedCallSettings.Builder< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, ListPagedResponse> + listSettings() { + return listSettings; + } + + /** Returns the builder for the settings used for calls to update. */ + public UnaryCallSettings.Builder + updateSettings() { + return updateSettings; + } + + /** Returns the builder for the settings used for calls to update. */ + public OperationCallSettings.Builder + updateOperationSettings() { + return updateOperationSettings; + } + + @Override + public ZoneVmExtensionPoliciesStubSettings build() throws IOException { + return new ZoneVmExtensionPoliciesStubSettings(this); + } + } +} diff --git a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json index e450b7ca9525..4767d17b447b 100644 --- a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json +++ b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json @@ -1367,6 +1367,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.AggregatedListBackendServicesRequest", "queryAllDeclaredConstructors": true, @@ -3068,6 +3086,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.Backend$TrafficDuration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.BackendBackendOrchestrationInfo", "queryAllDeclaredConstructors": true, @@ -3122,6 +3149,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.BackendBucketAggregatedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.BackendBucketAggregatedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.BackendBucketCdnPolicy", "queryAllDeclaredConstructors": true, @@ -3221,6 +3266,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.BackendBucketListUsable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.BackendBucketListUsable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.BackendBucketParams", "queryAllDeclaredConstructors": true, @@ -3257,6 +3320,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.BackendBucketsScopedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.BackendBucketsScopedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.BackendCustomMetric", "queryAllDeclaredConstructors": true, @@ -4481,6 +4562,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.CircuitBreakers", "queryAllDeclaredConstructors": true, @@ -4643,6 +4742,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.CommitmentParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.CommitmentParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.CommitmentResourceStatus", "queryAllDeclaredConstructors": true, @@ -4715,6 +4832,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.CompositeHealthCheckHealth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.CompositeHealthCheckHealth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.CompositeHealthCheckHealth$HealthState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.CompositeHealthCheckList", "queryAllDeclaredConstructors": true, @@ -4733,6 +4877,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth$HealthState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.CompositeHealthChecksScopedList", "queryAllDeclaredConstructors": true, @@ -5624,6 +5795,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.DeleteInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -6038,6 +6227,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.DeleteRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -6182,6 +6389,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.DeleteRegionInstanceTemplateRequest", "queryAllDeclaredConstructors": true, @@ -6200,6 +6425,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.DeleteRegionInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -6326,6 +6569,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DeleteRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.DeleteRegionSslCertificateRequest", "queryAllDeclaredConstructors": true, @@ -6938,6 +7199,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.Denied", "queryAllDeclaredConstructors": true, @@ -7406,6 +7685,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.DisksAddResourcePoliciesRequest", "queryAllDeclaredConstructors": true, @@ -8423,6 +8720,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.FutureReservation$ConfidentialComputeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.FutureReservation$DeploymentType", "queryAllDeclaredConstructors": true, @@ -8495,6 +8801,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.FutureReservationParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.FutureReservationParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.FutureReservationSpecificSKUProperties", "queryAllDeclaredConstructors": true, @@ -9593,6 +9917,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetHealthTargetPoolRequest", "queryAllDeclaredConstructors": true, @@ -9737,6 +10097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -9899,6 +10277,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetIamPolicyRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -9935,6 +10331,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -9971,6 +10385,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetIamPolicyReservationBlockRequest", "queryAllDeclaredConstructors": true, @@ -10259,6 +10691,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -10853,6 +11303,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -11033,6 +11501,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetRegionInstanceGroupRequest", "queryAllDeclaredConstructors": true, @@ -11069,6 +11555,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetRegionInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -11195,6 +11699,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GetRegionSslCertificateRequest", "queryAllDeclaredConstructors": true, @@ -12194,6 +12734,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.GlobalAddressesMoveRequest", "queryAllDeclaredConstructors": true, @@ -12860,6 +13418,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.HealthSourceHealth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.HealthSourceHealth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.HealthSourceHealth$HealthState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.HealthSourceList", "queryAllDeclaredConstructors": true, @@ -12878,6 +13463,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.HealthSourcesScopedList", "queryAllDeclaredConstructors": true, @@ -13769,6 +14390,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InsertInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -14111,6 +14750,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InsertRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InsertRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InsertRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -14273,6 +14930,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InsertRegionInstanceTemplateRequest", "queryAllDeclaredConstructors": true, @@ -14291,6 +14966,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InsertRegionInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -14381,6 +15074,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InsertRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InsertRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InsertRegionSslCertificateRequest", "queryAllDeclaredConstructors": true, @@ -14903,6 +15614,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.Instance", "queryAllDeclaredConstructors": true, @@ -15533,6 +16262,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful", "queryAllDeclaredConstructors": true, @@ -16865,6 +17612,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroup$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroupParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroupParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.InstantSnapshotList", "queryAllDeclaredConstructors": true, @@ -19583,6 +20411,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListInstantSnapshotGroups", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListInstantSnapshotGroups$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListInstantSnapshotsRequest", "queryAllDeclaredConstructors": true, @@ -20240,6 +21104,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListRegionBackendBucketsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListRegionBackendBucketsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListRegionBackendServicesRequest", "queryAllDeclaredConstructors": true, @@ -20402,6 +21284,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest", "queryAllDeclaredConstructors": true, @@ -20456,6 +21356,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest", "queryAllDeclaredConstructors": true, @@ -20564,6 +21482,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListRegionSnapshotsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListRegionSnapshotsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListRegionSslCertificatesRequest", "queryAllDeclaredConstructors": true, @@ -21167,6 +22103,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListUsableBackendBucketsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListUsableBackendBucketsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListUsableBackendServicesRequest", "queryAllDeclaredConstructors": true, @@ -21185,6 +22139,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListUsableRegionBackendServicesRequest", "queryAllDeclaredConstructors": true, @@ -21311,6 +22283,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ListZonesRequest", "queryAllDeclaredConstructors": true, @@ -24830,6 +25820,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.PatchRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.PatchRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.PatchRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -24992,6 +26000,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.PatchRegionSslPolicyRequest", "queryAllDeclaredConstructors": true, @@ -26495,6 +27521,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.RegionDisksAddResourcePoliciesRequest", "queryAllDeclaredConstructors": true, @@ -26639,6 +27683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.RegionInstanceGroupManagerUpdateInstanceConfigReq", "queryAllDeclaredConstructors": true, @@ -27125,6 +28187,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequest", "queryAllDeclaredConstructors": true, @@ -27575,6 +28655,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.Reservation$ConfidentialComputeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.Reservation$DeploymentType", "queryAllDeclaredConstructors": true, @@ -31400,6 +32489,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -31562,6 +32669,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SetIamPolicyRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -31598,6 +32723,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -31634,6 +32777,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SetIamPolicyReservationBlockRequest", "queryAllDeclaredConstructors": true, @@ -32084,6 +33245,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SetLabelsSecurityPolicyRequest", "queryAllDeclaredConstructors": true, @@ -33029,6 +34208,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SnapshotGroupParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SnapshotGroupParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SnapshotList", "queryAllDeclaredConstructors": true, @@ -33083,6 +34280,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SnapshotSettingsAccessLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SnapshotSettingsAccessLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SnapshotSettingsAccessLocation$Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings", "queryAllDeclaredConstructors": true, @@ -33128,6 +34370,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.SourceDiskEncryptionKey", "queryAllDeclaredConstructors": true, @@ -35693,6 +36953,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -35927,6 +37205,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest", "queryAllDeclaredConstructors": true, @@ -36071,6 +37367,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotRequest", "queryAllDeclaredConstructors": true, @@ -36125,6 +37439,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.TestIamPermissionsReservationBlockRequest", "queryAllDeclaredConstructors": true, @@ -36692,6 +38024,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.UpdateLicenseRequest", "queryAllDeclaredConstructors": true, @@ -37034,6 +38438,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.UrlMap", "queryAllDeclaredConstructors": true, @@ -37457,6 +38879,105 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicy$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.VmExtensionPolicyList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.VpnGateway", "queryAllDeclaredConstructors": true, diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketsClientTest.java index 35a7fd3294ac..046b9f0d9e4d 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketsClientTest.java @@ -16,7 +16,9 @@ package com.google.cloud.compute.v1; +import static com.google.cloud.compute.v1.BackendBucketsClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.BackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.BackendBucketsClient.ListUsablePagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -33,7 +35,9 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.List; +import java.util.Map; import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; @@ -154,6 +158,58 @@ public void addSignedUrlKeyExceptionTest() throws Exception { } } + @Test + public void aggregatedListTest() throws Exception { + BackendBucketsScopedList responsesElement = BackendBucketsScopedList.newBuilder().build(); + BackendBucketAggregatedList expectedResponse = + BackendBucketAggregatedList.newBuilder() + .setNextPageToken("") + .putAllItems(Collections.singletonMap("items", responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + + AggregatedListPagedResponse pagedListResponse = client.aggregatedList(project); + + List> resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getItemsMap().entrySet().iterator().next(), 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 aggregatedListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + client.aggregatedList(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteTest() throws Exception { Operation expectedResponse = @@ -320,6 +376,7 @@ public void getTest() throws Exception { .setLoadBalancingScheme("loadBalancingScheme-1223583272") .setName("name3373707") .setParams(BackendBucketParams.newBuilder().build()) + .setRegion("region-934795532") .setSelfLink("selfLink1191800166") .addAllUsedBy(new ArrayList()) .build(); @@ -536,6 +593,56 @@ public void listExceptionTest() throws Exception { } } + @Test + public void listUsableTest() throws Exception { + BackendBucket responsesElement = BackendBucket.newBuilder().build(); + BackendBucketListUsable expectedResponse = + BackendBucketListUsable.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + + ListUsablePagedResponse pagedListResponse = client.listUsable(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listUsableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + client.listUsable(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void patchTest() throws Exception { Operation expectedResponse = diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DisksClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DisksClientTest.java index de7b632e770f..b8290aa1d05b 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DisksClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DisksClientTest.java @@ -1471,4 +1471,84 @@ public void updateExceptionTest() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void updateKmsKeyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String disk = "disk-4029"; + DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource = + DiskUpdateKmsKeyRequest.newBuilder().build(); + + Operation actualResponse = + client.updateKmsKeyAsync(project, zone, disk, diskUpdateKmsKeyRequestResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateKmsKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String disk = "disk-4029"; + DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource = + DiskUpdateKmsKeyRequest.newBuilder().build(); + client.updateKmsKeyAsync(project, zone, disk, diskUpdateKmsKeyRequestResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FutureReservationsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FutureReservationsClientTest.java index d934036dcbf6..b8ce78556694 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FutureReservationsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FutureReservationsClientTest.java @@ -293,6 +293,7 @@ public void getTest() throws Exception { .setAutoCreatedReservationsDuration(Duration.newBuilder().build()) .setAutoDeleteAutoCreatedReservations(true) .setCommitmentInfo(FutureReservationCommitmentInfo.newBuilder().build()) + .setConfidentialComputeType("confidentialComputeType119980393") .setCreationTimestamp("creationTimestamp-370203401") .setDeploymentType("deploymentType1588450207") .setDescription("description-1724546052") @@ -301,6 +302,7 @@ public void getTest() throws Exception { .setKind("kind3292052") .setName("name3373707") .setNamePrefix("namePrefix-835992323") + .setParams(FutureReservationParams.newBuilder().build()) .setPlanningStatus("planningStatus-1676056145") .setReservationMode("reservationMode-337958001") .setReservationName("reservationName-337941385") diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClientTest.java index 3c61c8db490f..21b35d8c3afe 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClientTest.java @@ -243,6 +243,7 @@ public void getTest() throws Exception { .setId(3355) .setKind("kind3292052") .setName("name3373707") + .setRegion("region-934795532") .setRequestedRunDuration(Duration.newBuilder().build()) .setResizeBy(2144348098) .setSelfLink("selfLink1191800166") diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClientTest.java new file mode 100644 index 000000000000..35aca033cfb8 --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClientTest.java @@ -0,0 +1,500 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.InstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonInstantSnapshotGroupsStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class InstantSnapshotGroupsClientTest { + private static MockHttpService mockService; + private static InstantSnapshotGroupsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonInstantSnapshotGroupsStub.getMethodDescriptors(), + InstantSnapshotGroupsSettings.getDefaultEndpoint()); + InstantSnapshotGroupsSettings settings = + InstantSnapshotGroupsSettings.newBuilder() + .setTransportChannelProvider( + InstantSnapshotGroupsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = InstantSnapshotGroupsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void deleteTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + + Operation actualResponse = client.deleteAsync(project, zone, instantSnapshotGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + client.deleteAsync(project, zone, instantSnapshotGroup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getTest() throws Exception { + InstantSnapshotGroup expectedResponse = + InstantSnapshotGroup.newBuilder() + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setId(3355) + .setKind("kind3292052") + .setName("name3373707") + .setRegion("region-934795532") + .setResourceStatus(InstantSnapshotGroupResourceStatus.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setSelfLinkWithId("selfLinkWithId-776809081") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .setStatus("status-892481550") + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + + InstantSnapshotGroup actualResponse = client.get(project, zone, instantSnapshotGroup); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + client.get(project, zone, instantSnapshotGroup); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String resource = "resource-756"; + + Policy actualResponse = client.getIamPolicy(project, zone, resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String resource = "resource-756"; + client.getIamPolicy(project, zone, resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void insertTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build(); + + Operation actualResponse = + client.insertAsync(project, zone, instantSnapshotGroupResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void insertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build(); + client.insertAsync(project, zone, instantSnapshotGroupResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTest() throws Exception { + InstantSnapshotGroup responsesElement = InstantSnapshotGroup.newBuilder().build(); + ListInstantSnapshotGroups expectedResponse = + ListInstantSnapshotGroups.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + + ListPagedResponse pagedListResponse = client.list(project, zone); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + client.list(project, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String resource = "resource-756"; + ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build(); + + Policy actualResponse = + client.setIamPolicy(project, zone, resource, zoneSetPolicyRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String resource = "resource-756"; + ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build(); + client.setIamPolicy(project, zone, resource, zoneSetPolicyRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestPermissionsResponse expectedResponse = + TestPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + + TestPermissionsResponse actualResponse = + client.testIamPermissions(project, zone, resource, testPermissionsRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + client.testIamPermissions(project, zone, resource, testPermissionsRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotsClientTest.java index b6f0bed8fda6..865c400f2b96 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstantSnapshotsClientTest.java @@ -231,6 +231,8 @@ public void getTest() throws Exception { .setSelfLinkWithId("selfLinkWithId-776809081") .setSourceDisk("sourceDisk-1111923624") .setSourceDiskId("sourceDiskId888256403") + .setSourceInstantSnapshotGroup("sourceInstantSnapshotGroup-2079519883") + .setSourceInstantSnapshotGroupId("sourceInstantSnapshotGroupId-1258812560") .setStatus("status-892481550") .setZone("zone3744684") .build(); diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendBucketsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendBucketsClientTest.java new file mode 100644 index 000000000000..5a80e3eba7bb --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendBucketsClientTest.java @@ -0,0 +1,636 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListPagedResponse; +import static com.google.cloud.compute.v1.RegionBackendBucketsClient.ListUsablePagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonRegionBackendBucketsStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RegionBackendBucketsClientTest { + private static MockHttpService mockService; + private static RegionBackendBucketsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRegionBackendBucketsStub.getMethodDescriptors(), + RegionBackendBucketsSettings.getDefaultEndpoint()); + RegionBackendBucketsSettings settings = + RegionBackendBucketsSettings.newBuilder() + .setTransportChannelProvider( + RegionBackendBucketsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RegionBackendBucketsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void deleteTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String backendBucket = "backendBucket-4508"; + + Operation actualResponse = client.deleteAsync(project, region, backendBucket).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String backendBucket = "backendBucket-4508"; + client.deleteAsync(project, region, backendBucket).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getTest() throws Exception { + BackendBucket expectedResponse = + BackendBucket.newBuilder() + .setBucketName("bucketName1117008789") + .setCdnPolicy(BackendBucketCdnPolicy.newBuilder().build()) + .setCompressionMode("compressionMode71820329") + .setCreationTimestamp("creationTimestamp-370203401") + .addAllCustomResponseHeaders(new ArrayList()) + .setDescription("description-1724546052") + .setEdgeSecurityPolicy("edgeSecurityPolicy-630226001") + .setEnableCdn(true) + .setId(3355) + .setKind("kind3292052") + .setLoadBalancingScheme("loadBalancingScheme-1223583272") + .setName("name3373707") + .setParams(BackendBucketParams.newBuilder().build()) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .addAllUsedBy(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String backendBucket = "backendBucket-4508"; + + BackendBucket actualResponse = client.get(project, region, backendBucket); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String backendBucket = "backendBucket-4508"; + client.get(project, region, backendBucket); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + + Policy actualResponse = client.getIamPolicy(project, region, resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + client.getIamPolicy(project, region, resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void insertTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); + + Operation actualResponse = client.insertAsync(project, region, backendBucketResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void insertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); + client.insertAsync(project, region, backendBucketResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTest() throws Exception { + BackendBucket responsesElement = BackendBucket.newBuilder().build(); + BackendBucketList expectedResponse = + BackendBucketList.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + + ListPagedResponse pagedListResponse = client.list(project, region); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + client.list(project, region); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableTest() throws Exception { + BackendBucket responsesElement = BackendBucket.newBuilder().build(); + BackendBucketListUsable expectedResponse = + BackendBucketListUsable.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + + ListUsablePagedResponse pagedListResponse = client.listUsable(project, region); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listUsableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + client.listUsable(project, region); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void patchTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String backendBucket = "backendBucket-4508"; + BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); + + Operation actualResponse = + client.patchAsync(project, region, backendBucket, backendBucketResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void patchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String backendBucket = "backendBucket-4508"; + BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); + client.patchAsync(project, region, backendBucket, backendBucketResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + + Policy actualResponse = + client.setIamPolicy(project, region, resource, regionSetPolicyRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + client.setIamPolicy(project, region, resource, regionSetPolicyRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestPermissionsResponse expectedResponse = + TestPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + + TestPermissionsResponse actualResponse = + client.testIamPermissions(project, region, resource, testPermissionsRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + client.testIamPermissions(project, region, resource, testPermissionsRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentsClientTest.java index fb16197638ee..eaa86f9a0cfb 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentsClientTest.java @@ -149,6 +149,7 @@ public void getTest() throws Exception { .setLicenseResource(LicenseResourceCommitment.newBuilder().build()) .addAllMergeSourceCommitments(new ArrayList()) .setName("name3373707") + .setParams(CommitmentParams.newBuilder().build()) .setPlan("plan3443497") .setRegion("region-934795532") .addAllReservations(new ArrayList()) diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClientTest.java index c70a87305a7c..8b629ba89c12 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClientTest.java @@ -267,6 +267,58 @@ public void getExceptionTest() throws Exception { } } + @Test + public void getHealthTest() throws Exception { + CompositeHealthCheckHealth expectedResponse = + CompositeHealthCheckHealth.newBuilder() + .addAllHealthSources( + new ArrayList()) + .setHealthState("healthState-1922962539") + .setKind("kind3292052") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String compositeHealthCheck = "compositeHealthCheck-6763"; + + CompositeHealthCheckHealth actualResponse = + client.getHealth(project, region, compositeHealthCheck); + 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 getHealthExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String compositeHealthCheck = "compositeHealthCheck-6763"; + client.getHealth(project, region, compositeHealthCheck); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void insertTest() throws Exception { Operation expectedResponse = diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDisksClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDisksClientTest.java index 65750f55e552..09c93350ca0d 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDisksClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDisksClientTest.java @@ -1347,4 +1347,86 @@ public void updateExceptionTest() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void updateKmsKeyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String disk = "disk-4029"; + RegionDiskUpdateKmsKeyRequest regionDiskUpdateKmsKeyRequestResource = + RegionDiskUpdateKmsKeyRequest.newBuilder().build(); + + Operation actualResponse = + client + .updateKmsKeyAsync(project, region, disk, regionDiskUpdateKmsKeyRequestResource) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateKmsKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String disk = "disk-4029"; + RegionDiskUpdateKmsKeyRequest regionDiskUpdateKmsKeyRequestResource = + RegionDiskUpdateKmsKeyRequest.newBuilder().build(); + client.updateKmsKeyAsync(project, region, disk, regionDiskUpdateKmsKeyRequestResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionHealthSourcesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionHealthSourcesClientTest.java index e010efcb185b..f966e86c34c7 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionHealthSourcesClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionHealthSourcesClientTest.java @@ -267,6 +267,56 @@ public void getExceptionTest() throws Exception { } } + @Test + public void getHealthTest() throws Exception { + HealthSourceHealth expectedResponse = + HealthSourceHealth.newBuilder() + .setHealthState("healthState-1922962539") + .setKind("kind3292052") + .addAllSources(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String healthSource = "healthSource-6365"; + + HealthSourceHealth actualResponse = client.getHealth(project, region, healthSource); + 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 getHealthExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String healthSource = "healthSource-6365"; + client.getHealth(project, region, healthSource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void insertTest() throws Exception { Operation expectedResponse = diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClientTest.java new file mode 100644 index 000000000000..ba084878e966 --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClientTest.java @@ -0,0 +1,442 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient.ListPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonRegionInstanceGroupManagerResizeRequestsStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RegionInstanceGroupManagerResizeRequestsClientTest { + private static MockHttpService mockService; + private static RegionInstanceGroupManagerResizeRequestsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRegionInstanceGroupManagerResizeRequestsStub.getMethodDescriptors(), + RegionInstanceGroupManagerResizeRequestsSettings.getDefaultEndpoint()); + RegionInstanceGroupManagerResizeRequestsSettings settings = + RegionInstanceGroupManagerResizeRequestsSettings.newBuilder() + .setTransportChannelProvider( + RegionInstanceGroupManagerResizeRequestsSettings + .defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RegionInstanceGroupManagerResizeRequestsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void cancelTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + String resizeRequest = "resizeRequest-6959"; + + Operation actualResponse = + client.cancelAsync(project, region, instanceGroupManager, resizeRequest).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + String resizeRequest = "resizeRequest-6959"; + client.cancelAsync(project, region, instanceGroupManager, resizeRequest).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + String resizeRequest = "resizeRequest-6959"; + + Operation actualResponse = + client.deleteAsync(project, region, instanceGroupManager, resizeRequest).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + String resizeRequest = "resizeRequest-6959"; + client.deleteAsync(project, region, instanceGroupManager, resizeRequest).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getTest() throws Exception { + InstanceGroupManagerResizeRequest expectedResponse = + InstanceGroupManagerResizeRequest.newBuilder() + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setId(3355) + .setKind("kind3292052") + .setName("name3373707") + .setRegion("region-934795532") + .setRequestedRunDuration(Duration.newBuilder().build()) + .setResizeBy(2144348098) + .setSelfLink("selfLink1191800166") + .setSelfLinkWithId("selfLinkWithId-776809081") + .setState("state109757585") + .setStatus(InstanceGroupManagerResizeRequestStatus.newBuilder().build()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + String resizeRequest = "resizeRequest-6959"; + + InstanceGroupManagerResizeRequest actualResponse = + client.get(project, region, instanceGroupManager, resizeRequest); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + String resizeRequest = "resizeRequest-6959"; + client.get(project, region, instanceGroupManager, resizeRequest); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void insertTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource = + InstanceGroupManagerResizeRequest.newBuilder().build(); + + Operation actualResponse = + client + .insertAsync( + project, region, instanceGroupManager, instanceGroupManagerResizeRequestResource) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void insertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource = + InstanceGroupManagerResizeRequest.newBuilder().build(); + client + .insertAsync( + project, region, instanceGroupManager, instanceGroupManagerResizeRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTest() throws Exception { + InstanceGroupManagerResizeRequest responsesElement = + InstanceGroupManagerResizeRequest.newBuilder().build(); + RegionInstanceGroupManagerResizeRequestsListResponse expectedResponse = + RegionInstanceGroupManagerResizeRequestsListResponse.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + + ListPagedResponse pagedListResponse = client.list(project, region, instanceGroupManager); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instanceGroupManager = "instanceGroupManager-7543"; + client.list(project, region, instanceGroupManager); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClientTest.java new file mode 100644 index 000000000000..ef6e48dacd35 --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClientTest.java @@ -0,0 +1,502 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient.ListPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonRegionInstantSnapshotGroupsStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RegionInstantSnapshotGroupsClientTest { + private static MockHttpService mockService; + private static RegionInstantSnapshotGroupsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRegionInstantSnapshotGroupsStub.getMethodDescriptors(), + RegionInstantSnapshotGroupsSettings.getDefaultEndpoint()); + RegionInstantSnapshotGroupsSettings settings = + RegionInstantSnapshotGroupsSettings.newBuilder() + .setTransportChannelProvider( + RegionInstantSnapshotGroupsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RegionInstantSnapshotGroupsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void deleteTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + + Operation actualResponse = client.deleteAsync(project, region, instantSnapshotGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + client.deleteAsync(project, region, instantSnapshotGroup).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getTest() throws Exception { + InstantSnapshotGroup expectedResponse = + InstantSnapshotGroup.newBuilder() + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setId(3355) + .setKind("kind3292052") + .setName("name3373707") + .setRegion("region-934795532") + .setResourceStatus(InstantSnapshotGroupResourceStatus.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setSelfLinkWithId("selfLinkWithId-776809081") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .setStatus("status-892481550") + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + + InstantSnapshotGroup actualResponse = client.get(project, region, instantSnapshotGroup); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String instantSnapshotGroup = "instantSnapshotGroup-352"; + client.get(project, region, instantSnapshotGroup); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + + Policy actualResponse = client.getIamPolicy(project, region, resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + client.getIamPolicy(project, region, resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void insertTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build(); + + Operation actualResponse = + client.insertAsync(project, region, instantSnapshotGroupResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void insertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build(); + client.insertAsync(project, region, instantSnapshotGroupResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTest() throws Exception { + InstantSnapshotGroup responsesElement = InstantSnapshotGroup.newBuilder().build(); + ListInstantSnapshotGroups expectedResponse = + ListInstantSnapshotGroups.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + + ListPagedResponse pagedListResponse = client.list(project, region); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + client.list(project, region); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + + Policy actualResponse = + client.setIamPolicy(project, region, resource, regionSetPolicyRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + client.setIamPolicy(project, region, resource, regionSetPolicyRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestPermissionsResponse expectedResponse = + TestPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + + TestPermissionsResponse actualResponse = + client.testIamPermissions(project, region, resource, testPermissionsRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + client.testIamPermissions(project, region, resource, testPermissionsRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClientTest.java index 12832f9cda17..8b87c06ed3b3 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClientTest.java @@ -176,6 +176,8 @@ public void getTest() throws Exception { .setSelfLinkWithId("selfLinkWithId-776809081") .setSourceDisk("sourceDisk-1111923624") .setSourceDiskId("sourceDiskId888256403") + .setSourceInstantSnapshotGroup("sourceInstantSnapshotGroup-2079519883") + .setSourceInstantSnapshotGroupId("sourceInstantSnapshotGroupId-1258812560") .setStatus("status-892481550") .setZone("zone3744684") .build(); diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClientTest.java new file mode 100644 index 000000000000..9e3506b3f91e --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClientTest.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonRegionSnapshotSettingsStub; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RegionSnapshotSettingsClientTest { + private static MockHttpService mockService; + private static RegionSnapshotSettingsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRegionSnapshotSettingsStub.getMethodDescriptors(), + RegionSnapshotSettingsSettings.getDefaultEndpoint()); + RegionSnapshotSettingsSettings settings = + RegionSnapshotSettingsSettings.newBuilder() + .setTransportChannelProvider( + RegionSnapshotSettingsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RegionSnapshotSettingsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getTest() throws Exception { + SnapshotSettings expectedResponse = + SnapshotSettings.newBuilder() + .setAccessLocation(SnapshotSettingsAccessLocation.newBuilder().build()) + .setStorageLocation(SnapshotSettingsStorageLocationSettings.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + + SnapshotSettings actualResponse = client.get(project, region); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + client.get(project, region); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void patchTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + SnapshotSettings snapshotSettingsResource = SnapshotSettings.newBuilder().build(); + + Operation actualResponse = client.patchAsync(project, region, snapshotSettingsResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void patchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + SnapshotSettings snapshotSettingsResource = SnapshotSettings.newBuilder().build(); + client.patchAsync(project, region, snapshotSettingsResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotsClientTest.java new file mode 100644 index 000000000000..33de340b956c --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionSnapshotsClientTest.java @@ -0,0 +1,695 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.RegionSnapshotsClient.ListPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonRegionSnapshotsStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RegionSnapshotsClientTest { + private static MockHttpService mockService; + private static RegionSnapshotsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRegionSnapshotsStub.getMethodDescriptors(), + RegionSnapshotsSettings.getDefaultEndpoint()); + RegionSnapshotsSettings settings = + RegionSnapshotsSettings.newBuilder() + .setTransportChannelProvider( + RegionSnapshotsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RegionSnapshotsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void deleteTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String snapshot = "snapshot-5030"; + + Operation actualResponse = client.deleteAsync(project, region, snapshot).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String snapshot = "snapshot-5030"; + client.deleteAsync(project, region, snapshot).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setArchitecture("architecture839674195") + .setAutoCreated(true) + .setChainName("chainName1317895404") + .setCreationSizeBytes(1199141901) + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setDiskSizeGb(-757478089) + .setDownloadBytes(971924980) + .setEnableConfidentialCompute(true) + .setGuestFlush(true) + .addAllGuestOsFeatures(new ArrayList()) + .setId(3355) + .setKind("kind3292052") + .setLabelFingerprint("labelFingerprint379449680") + .putAllLabels(new HashMap()) + .addAllLicenseCodes(new ArrayList()) + .addAllLicenses(new ArrayList()) + .setLocationHint("locationHint-58650660") + .setName("name3373707") + .setParams(SnapshotParams.newBuilder().build()) + .setRegion("region-934795532") + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) + .setSelfLink("selfLink1191800166") + .setSnapshotEncryptionKey(CustomerEncryptionKey.newBuilder().build()) + .setSnapshotGroupId("snapshotGroupId423090582") + .setSnapshotGroupName("snapshotGroupName-1431694266") + .setSnapshotType("snapshotType-931506402") + .setSourceDisk("sourceDisk-1111923624") + .setSourceDiskEncryptionKey(CustomerEncryptionKey.newBuilder().build()) + .setSourceDiskForRecoveryCheckpoint("sourceDiskForRecoveryCheckpoint-1997957586") + .setSourceDiskId("sourceDiskId888256403") + .setSourceInstantSnapshot("sourceInstantSnapshot-1002724054") + .setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey.newBuilder().build()) + .setSourceInstantSnapshotId("sourceInstantSnapshotId-1545139227") + .setSourceSnapshotSchedulePolicy("sourceSnapshotSchedulePolicy-1664282744") + .setSourceSnapshotSchedulePolicyId("sourceSnapshotSchedulePolicyId-1647880509") + .setStatus("status-892481550") + .setStorageBytes(2035244455) + .setStorageBytesStatus("storageBytesStatus-1653482814") + .addAllStorageLocations(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String snapshot = "snapshot-5030"; + + Snapshot actualResponse = client.get(project, region, snapshot); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String snapshot = "snapshot-5030"; + client.get(project, region, snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + + Policy actualResponse = client.getIamPolicy(project, region, resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + client.getIamPolicy(project, region, resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void insertTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + Snapshot snapshotResource = Snapshot.newBuilder().build(); + + Operation actualResponse = client.insertAsync(project, region, snapshotResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void insertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + Snapshot snapshotResource = Snapshot.newBuilder().build(); + client.insertAsync(project, region, snapshotResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTest() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + SnapshotList expectedResponse = + SnapshotList.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + + ListPagedResponse pagedListResponse = client.list(project, region); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + client.list(project, region); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .addAllAuditConfigs(new ArrayList()) + .addAllBindings(new ArrayList()) + .setEtag("etag3123477") + .setIamOwned(true) + .setVersion(351608024) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + + Policy actualResponse = + client.setIamPolicy(project, region, resource, regionSetPolicyRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + client.setIamPolicy(project, region, resource, regionSetPolicyRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLabelsTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetLabelsRequest regionSetLabelsRequestResource = + RegionSetLabelsRequest.newBuilder().build(); + + Operation actualResponse = + client.setLabelsAsync(project, region, resource, regionSetLabelsRequestResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLabelsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + RegionSetLabelsRequest regionSetLabelsRequestResource = + RegionSetLabelsRequest.newBuilder().build(); + client.setLabelsAsync(project, region, resource, regionSetLabelsRequestResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestPermissionsResponse expectedResponse = + TestPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + + TestPermissionsResponse actualResponse = + client.testIamPermissions(project, region, resource, testPermissionsRequestResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String resource = "resource-756"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + client.testIamPermissions(project, region, resource, testPermissionsRequestResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateKmsKeyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String region = "region-9622"; + String snapshot = "snapshot-5030"; + RegionSnapshotUpdateKmsKeyRequest regionSnapshotUpdateKmsKeyRequestResource = + RegionSnapshotUpdateKmsKeyRequest.newBuilder().build(); + + Operation actualResponse = + client + .updateKmsKeyAsync(project, region, snapshot, regionSnapshotUpdateKmsKeyRequestResource) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateKmsKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String region = "region-9622"; + String snapshot = "snapshot-5030"; + RegionSnapshotUpdateKmsKeyRequest regionSnapshotUpdateKmsKeyRequestResource = + RegionSnapshotUpdateKmsKeyRequest.newBuilder().build(); + client + .updateKmsKeyAsync(project, region, snapshot, regionSnapshotUpdateKmsKeyRequestResource) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationsClientTest.java index c4f887c01806..ff66795937ce 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ReservationsClientTest.java @@ -216,6 +216,7 @@ public void getTest() throws Exception { .setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl.newBuilder().build()) .setAggregateReservation(AllocationAggregateReservation.newBuilder().build()) .setCommitment("commitment1019005717") + .setConfidentialComputeType("confidentialComputeType119980393") .setCreationTimestamp("creationTimestamp-370203401") .setDeleteAfterDuration(Duration.newBuilder().build()) .setDeleteAtTime("deleteAtTime-1276262613") diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClientTest.java index ed214a6417d3..044097ef3b30 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClientTest.java @@ -78,6 +78,7 @@ public void tearDown() throws Exception { public void getTest() throws Exception { SnapshotSettings expectedResponse = SnapshotSettings.newBuilder() + .setAccessLocation(SnapshotSettingsAccessLocation.newBuilder().build()) .setStorageLocation(SnapshotSettingsStorageLocationSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotsClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotsClientTest.java index 42314e74ba0e..9a10bbcedc86 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotsClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotsClientTest.java @@ -175,10 +175,13 @@ public void getTest() throws Exception { .setLocationHint("locationHint-58650660") .setName("name3373707") .setParams(SnapshotParams.newBuilder().build()) + .setRegion("region-934795532") .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setSelfLink("selfLink1191800166") .setSnapshotEncryptionKey(CustomerEncryptionKey.newBuilder().build()) + .setSnapshotGroupId("snapshotGroupId423090582") + .setSnapshotGroupName("snapshotGroupName-1431694266") .setSnapshotType("snapshotType-931506402") .setSourceDisk("sourceDisk-1111923624") .setSourceDiskEncryptionKey(CustomerEncryptionKey.newBuilder().build()) @@ -587,4 +590,82 @@ public void testIamPermissionsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void updateKmsKeyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String snapshot = "snapshot-5030"; + SnapshotUpdateKmsKeyRequest snapshotUpdateKmsKeyRequestResource = + SnapshotUpdateKmsKeyRequest.newBuilder().build(); + + Operation actualResponse = + client.updateKmsKeyAsync(project, snapshot, snapshotUpdateKmsKeyRequestResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateKmsKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String snapshot = "snapshot-5030"; + SnapshotUpdateKmsKeyRequest snapshotUpdateKmsKeyRequestResource = + SnapshotUpdateKmsKeyRequest.newBuilder().build(); + client.updateKmsKeyAsync(project, snapshot, snapshotUpdateKmsKeyRequestResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClientTest.java new file mode 100644 index 000000000000..f09cadfc81f5 --- /dev/null +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClientTest.java @@ -0,0 +1,422 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1; + +import static com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient.ListPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.Operation.Status; +import com.google.cloud.compute.v1.stub.HttpJsonZoneVmExtensionPoliciesStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ZoneVmExtensionPoliciesClientTest { + private static MockHttpService mockService; + private static ZoneVmExtensionPoliciesClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonZoneVmExtensionPoliciesStub.getMethodDescriptors(), + ZoneVmExtensionPoliciesSettings.getDefaultEndpoint()); + ZoneVmExtensionPoliciesSettings settings = + ZoneVmExtensionPoliciesSettings.newBuilder() + .setTransportChannelProvider( + ZoneVmExtensionPoliciesSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ZoneVmExtensionPoliciesClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void deleteTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String vmExtensionPolicy = "vmExtensionPolicy-144"; + + Operation actualResponse = client.deleteAsync(project, zone, vmExtensionPolicy).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String vmExtensionPolicy = "vmExtensionPolicy-144"; + client.deleteAsync(project, zone, vmExtensionPolicy).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getTest() throws Exception { + VmExtensionPolicy expectedResponse = + VmExtensionPolicy.newBuilder() + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .putAllExtensionPolicies(new HashMap()) + .setGlobalResourceLink("globalResourceLink2043161707") + .setId(3355) + .addAllInstanceSelectors(new ArrayList()) + .setKind("kind3292052") + .setManagedByGlobal(true) + .setName("name3373707") + .setPriority(-1165461084) + .setSelfLink("selfLink1191800166") + .setSelfLinkWithId("selfLinkWithId-776809081") + .setState("state109757585") + .setUpdateTimestamp("updateTimestamp1260642893") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String vmExtensionPolicy = "vmExtensionPolicy-144"; + + VmExtensionPolicy actualResponse = client.get(project, zone, vmExtensionPolicy); + 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 getExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String vmExtensionPolicy = "vmExtensionPolicy-144"; + client.get(project, zone, vmExtensionPolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void insertTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build(); + + Operation actualResponse = client.insertAsync(project, zone, vmExtensionPolicyResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void insertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build(); + client.insertAsync(project, zone, vmExtensionPolicyResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listTest() throws Exception { + VmExtensionPolicy responsesElement = VmExtensionPolicy.newBuilder().build(); + VmExtensionPolicyList expectedResponse = + VmExtensionPolicyList.newBuilder() + .setNextPageToken("") + .addAllItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + + ListPagedResponse pagedListResponse = client.list(project, zone); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().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 listExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + client.list(project, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId("clientOperationId-1230366697") + .setCreationTimestamp("creationTimestamp-370203401") + .setDescription("description-1724546052") + .setEndTime("endTime-1607243192") + .setError(Error.newBuilder().build()) + .setGetVersionOperationMetadata(GetVersionOperationMetadata.newBuilder().build()) + .setHttpErrorMessage("httpErrorMessage1577303431") + .setHttpErrorStatusCode(0) + .setId(3355) + .setInsertTime("insertTime966165798") + .setInstancesBulkInsertOperationMetadata( + InstancesBulkInsertOperationMetadata.newBuilder().build()) + .setKind("kind3292052") + .setName("name3373707") + .setOperationGroupId("operationGroupId1716161683") + .setOperationType("operationType91999553") + .setProgress(-1001078227) + .setRegion("region-934795532") + .setSelfLink("selfLink1191800166") + .setSetCommonInstanceMetadataOperationMetadata( + SetCommonInstanceMetadataOperationMetadata.newBuilder().build()) + .setStartTime("startTime-2129294769") + .setStatus(Status.DONE) + .setStatusMessage("statusMessage-958704715") + .setTargetId(-815576439) + .setTargetLink("targetLink486368555") + .setUser("user3599307") + .addAllWarnings(new ArrayList()) + .setZone("zone3744684") + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + String zone = "zone-5246"; + String vmExtensionPolicy = "vmExtensionPolicy-144"; + VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build(); + + Operation actualResponse = + client.updateAsync(project, zone, vmExtensionPolicy, vmExtensionPolicyResource).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + String zone = "zone-5246"; + String vmExtensionPolicy = "vmExtensionPolicy-144"; + VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build(); + client.updateAsync(project, zone, vmExtensionPolicy, vmExtensionPolicyResource).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequest.java new file mode 100644 index 000000000000..79355b65a2b2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequest.java @@ -0,0 +1,2545 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *

+ * A request message for BackendBuckets.AggregatedList. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.AggregatedListBackendBucketsRequest} + */ +@com.google.protobuf.Generated +public final class AggregatedListBackendBucketsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.AggregatedListBackendBucketsRequest) + AggregatedListBackendBucketsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AggregatedListBackendBucketsRequest"); + } + + // Use AggregatedListBackendBucketsRequest.newBuilder() to construct. + private AggregatedListBackendBucketsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AggregatedListBackendBucketsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.class, + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 INCLUDE_ALL_SCOPES_FIELD_NUMBER = 391327988; + private boolean includeAllScopes_ = false; + + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region,
+   * global) should be included in the response. For new resource types added
+   * after this field, the flag has no effect as new resource types will always
+   * include every visible scope for each scope type in response. For resource
+   * types which predate this field, if this flag is omitted or false, only
+   * scopes of the scope types where the resource type is expected to be found
+   * will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return Whether the includeAllScopes field is set. + */ + @java.lang.Override + public boolean hasIncludeAllScopes() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region,
+   * global) should be included in the response. For new resource types added
+   * after this field, the flag has no effect as new resource types will always
+   * include every visible scope for each scope type in response. For resource
+   * types which predate this field, if this flag is omitted or false, only
+   * scopes of the scope types where the resource type is expected to be found
+   * will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return The includeAllScopes. + */ + @java.lang.Override + public boolean getIncludeAllScopes() { + return includeAllScopes_; + } + + public static final int MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + public static final int SERVICE_PROJECT_NUMBER_FIELD_NUMBER = 316757497; + private long serviceProjectNumber_ = 0L; + + /** + * + * + *
+   * The Shared VPC service project id or service project number for which
+   * aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return Whether the serviceProjectNumber field is set. + */ + @java.lang.Override + public boolean hasServiceProjectNumber() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * The Shared VPC service project id or service project number for which
+   * aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return The serviceProjectNumber. + */ + @java.lang.Override + public long getServiceProjectNumber() { + return serviceProjectNumber_; + } + + 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_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(316757497, serviceProjectNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(391327988, includeAllScopes_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(316757497, serviceProjectNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(391327988, includeAllScopes_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.AggregatedListBackendBucketsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest other = + (com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasIncludeAllScopes() != other.hasIncludeAllScopes()) return false; + if (hasIncludeAllScopes()) { + if (getIncludeAllScopes() != other.getIncludeAllScopes()) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + } + if (hasServiceProjectNumber() != other.hasServiceProjectNumber()) return false; + if (hasServiceProjectNumber()) { + if (getServiceProjectNumber() != other.getServiceProjectNumber()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasIncludeAllScopes()) { + hash = (37 * hash) + INCLUDE_ALL_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAllScopes()); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + if (hasServiceProjectNumber()) { + hash = (37 * hash) + SERVICE_PROJECT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getServiceProjectNumber()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest 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.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.AggregatedListBackendBucketsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for BackendBuckets.AggregatedList. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.AggregatedListBackendBucketsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.AggregatedListBackendBucketsRequest) + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.class, + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + includeAllScopes_ = false; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + returnPartialSuccess_ = false; + serviceProjectNumber_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest build() { + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest buildPartial() { + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest result = + new com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.includeAllScopes_ = includeAllScopes_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceProjectNumber_ = serviceProjectNumber_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest) { + return mergeFrom((com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest other) { + if (other + == com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIncludeAllScopes()) { + setIncludeAllScopes(other.getIncludeAllScopes()); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + if (other.hasServiceProjectNumber()) { + setServiceProjectNumber(other.getServiceProjectNumber()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 437723352 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1820481738 + case -1760907320: + { + serviceProjectNumber_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case -1760907320 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -1164343392: + { + includeAllScopes_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case -1164343392 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean includeAllScopes_; + + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region,
+     * global) should be included in the response. For new resource types added
+     * after this field, the flag has no effect as new resource types will always
+     * include every visible scope for each scope type in response. For resource
+     * types which predate this field, if this flag is omitted or false, only
+     * scopes of the scope types where the resource type is expected to be found
+     * will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return Whether the includeAllScopes field is set. + */ + @java.lang.Override + public boolean hasIncludeAllScopes() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region,
+     * global) should be included in the response. For new resource types added
+     * after this field, the flag has no effect as new resource types will always
+     * include every visible scope for each scope type in response. For resource
+     * types which predate this field, if this flag is omitted or false, only
+     * scopes of the scope types where the resource type is expected to be found
+     * will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return The includeAllScopes. + */ + @java.lang.Override + public boolean getIncludeAllScopes() { + return includeAllScopes_; + } + + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region,
+     * global) should be included in the response. For new resource types added
+     * after this field, the flag has no effect as new resource types will always
+     * include every visible scope for each scope type in response. For resource
+     * types which predate this field, if this flag is omitted or false, only
+     * scopes of the scope types where the resource type is expected to be found
+     * will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @param value The includeAllScopes to set. + * @return This builder for chaining. + */ + public Builder setIncludeAllScopes(boolean value) { + + includeAllScopes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region,
+     * global) should be included in the response. For new resource types added
+     * after this field, the flag has no effect as new resource types will always
+     * include every visible scope for each scope type in response. For resource
+     * types which predate this field, if this flag is omitted or false, only
+     * scopes of the scope types where the resource type is expected to be found
+     * will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAllScopes() { + bitField0_ = (bitField0_ & ~0x00000002); + includeAllScopes_ = false; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000004); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000040); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + private long serviceProjectNumber_; + + /** + * + * + *
+     * The Shared VPC service project id or service project number for which
+     * aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return Whether the serviceProjectNumber field is set. + */ + @java.lang.Override + public boolean hasServiceProjectNumber() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * The Shared VPC service project id or service project number for which
+     * aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return The serviceProjectNumber. + */ + @java.lang.Override + public long getServiceProjectNumber() { + return serviceProjectNumber_; + } + + /** + * + * + *
+     * The Shared VPC service project id or service project number for which
+     * aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @param value The serviceProjectNumber to set. + * @return This builder for chaining. + */ + public Builder setServiceProjectNumber(long value) { + + serviceProjectNumber_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Shared VPC service project id or service project number for which
+     * aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return This builder for chaining. + */ + public Builder clearServiceProjectNumber() { + bitField0_ = (bitField0_ & ~0x00000080); + serviceProjectNumber_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.AggregatedListBackendBucketsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.AggregatedListBackendBucketsRequest) + private static final com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest(); + } + + public static com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregatedListBackendBucketsRequest 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.compute.v1.AggregatedListBackendBucketsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequestOrBuilder.java new file mode 100644 index 000000000000..0072dfbad148 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendBucketsRequestOrBuilder.java @@ -0,0 +1,514 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface AggregatedListBackendBucketsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.AggregatedListBackendBucketsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region,
+   * global) should be included in the response. For new resource types added
+   * after this field, the flag has no effect as new resource types will always
+   * include every visible scope for each scope type in response. For resource
+   * types which predate this field, if this flag is omitted or false, only
+   * scopes of the scope types where the resource type is expected to be found
+   * will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return Whether the includeAllScopes field is set. + */ + boolean hasIncludeAllScopes(); + + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region,
+   * global) should be included in the response. For new resource types added
+   * after this field, the flag has no effect as new resource types will always
+   * include every visible scope for each scope type in response. For resource
+   * types which predate this field, if this flag is omitted or false, only
+   * scopes of the scope types where the resource type is expected to be found
+   * will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return The includeAllScopes. + */ + boolean getIncludeAllScopes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); + + /** + * + * + *
+   * The Shared VPC service project id or service project number for which
+   * aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return Whether the serviceProjectNumber field is set. + */ + boolean hasServiceProjectNumber(); + + /** + * + * + *
+   * The Shared VPC service project id or service project number for which
+   * aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return The serviceProjectNumber. + */ + long getServiceProjectNumber(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Backend.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Backend.java index 662e15f14b0a..0ebf75108d76 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Backend.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Backend.java @@ -57,6 +57,7 @@ private Backend() { description_ = ""; group_ = ""; preference_ = ""; + trafficDuration_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -126,6 +127,16 @@ public enum BalancingMode implements com.google.protobuf.ProtocolMessageEnum { * CUSTOM_METRICS = 331575765; */ CUSTOM_METRICS(331575765), + /** + * + * + *
+     * Balance based on the number of in-flight requests.
+     * 
+ * + * IN_FLIGHT = 190040266; + */ + IN_FLIGHT(190040266), /** * * @@ -192,6 +203,17 @@ public enum BalancingMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_METRICS_VALUE = 331575765; + /** + * + * + *
+     * Balance based on the number of in-flight requests.
+     * 
+ * + * IN_FLIGHT = 190040266; + */ + public static final int IN_FLIGHT_VALUE = 190040266; + /** * * @@ -244,6 +266,8 @@ public static BalancingMode forNumber(int value) { return CONNECTION; case 331575765: return CUSTOM_METRICS; + case 190040266: + return IN_FLIGHT; case 2508000: return RATE; case 157008386: @@ -502,6 +526,201 @@ private Preference(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Backend.Preference) } + /** + * + * + *
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.Backend.TrafficDuration} + */ + public enum TrafficDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_TRAFFIC_DURATION = 0; + */ + UNDEFINED_TRAFFIC_DURATION(0), + /** + * + * + *
+     * Most of the requests are expected to take more than multiple seconds to
+     * finish.
+     * 
+ * + * LONG = 2342524; + */ + LONG(2342524), + /** + * + * + *
+     * Most requests are expected to finish with a sub-second latency.
+     * 
+ * + * SHORT = 78875740; + */ + SHORT(78875740), + /** + * + * + *
+     * Traffic duration is unspecified.
+     * 
+ * + * TRAFFIC_DURATION_UNSPECIFIED = 265201166; + */ + TRAFFIC_DURATION_UNSPECIFIED(265201166), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TrafficDuration"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_TRAFFIC_DURATION = 0; + */ + public static final int UNDEFINED_TRAFFIC_DURATION_VALUE = 0; + + /** + * + * + *
+     * Most of the requests are expected to take more than multiple seconds to
+     * finish.
+     * 
+ * + * LONG = 2342524; + */ + public static final int LONG_VALUE = 2342524; + + /** + * + * + *
+     * Most requests are expected to finish with a sub-second latency.
+     * 
+ * + * SHORT = 78875740; + */ + public static final int SHORT_VALUE = 78875740; + + /** + * + * + *
+     * Traffic duration is unspecified.
+     * 
+ * + * TRAFFIC_DURATION_UNSPECIFIED = 265201166; + */ + public static final int TRAFFIC_DURATION_UNSPECIFIED_VALUE = 265201166; + + 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 TrafficDuration 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 TrafficDuration forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_TRAFFIC_DURATION; + case 2342524: + return LONG; + case 78875740: + return SHORT; + case 265201166: + return TRAFFIC_DURATION_UNSPECIFIED; + 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 TrafficDuration findValueByNumber(int number) { + return TrafficDuration.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.Backend.getDescriptor().getEnumTypes().get(2); + } + + private static final TrafficDuration[] VALUES = values(); + + public static TrafficDuration 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 TrafficDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Backend.TrafficDuration) + } + private int bitField0_; public static final int BALANCING_MODE_FIELD_NUMBER = 430286217; @@ -1089,6 +1308,121 @@ public int getMaxConnectionsPerInstance() { return maxConnectionsPerInstance_; } + public static final int MAX_IN_FLIGHT_REQUESTS_FIELD_NUMBER = 273269332; + private int maxInFlightRequests_ = 0; + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for the whole NEG or
+   * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return Whether the maxInFlightRequests field is set. + */ + @java.lang.Override + public boolean hasMaxInFlightRequests() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for the whole NEG or
+   * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return The maxInFlightRequests. + */ + @java.lang.Override + public int getMaxInFlightRequests() { + return maxInFlightRequests_; + } + + public static final int MAX_IN_FLIGHT_REQUESTS_PER_ENDPOINT_FIELD_NUMBER = 307928706; + private int maxInFlightRequestsPerEndpoint_ = 0; + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single endpoint.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return Whether the maxInFlightRequestsPerEndpoint field is set. + */ + @java.lang.Override + public boolean hasMaxInFlightRequestsPerEndpoint() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single endpoint.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return The maxInFlightRequestsPerEndpoint. + */ + @java.lang.Override + public int getMaxInFlightRequestsPerEndpoint() { + return maxInFlightRequestsPerEndpoint_; + } + + public static final int MAX_IN_FLIGHT_REQUESTS_PER_INSTANCE_FIELD_NUMBER = 195696002; + private int maxInFlightRequestsPerInstance_ = 0; + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single VM.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return Whether the maxInFlightRequestsPerInstance field is set. + */ + @java.lang.Override + public boolean hasMaxInFlightRequestsPerInstance() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single VM.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return The maxInFlightRequestsPerInstance. + */ + @java.lang.Override + public int getMaxInFlightRequestsPerInstance() { + return maxInFlightRequestsPerInstance_; + } + public static final int MAX_RATE_FIELD_NUMBER = 408035035; private int maxRate_ = 0; @@ -1110,7 +1444,7 @@ public int getMaxConnectionsPerInstance() { */ @java.lang.Override public boolean hasMaxRate() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1155,7 +1489,7 @@ public int getMaxRate() { */ @java.lang.Override public boolean hasMaxRatePerEndpoint() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -1200,7 +1534,7 @@ public float getMaxRatePerEndpoint() { */ @java.lang.Override public boolean hasMaxRatePerInstance() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -1243,7 +1577,7 @@ public float getMaxRatePerInstance() { */ @java.lang.Override public boolean hasMaxUtilization() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -1283,7 +1617,7 @@ public float getMaxUtilization() { */ @java.lang.Override public boolean hasOrchestrationInfo() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -1353,7 +1687,7 @@ public com.google.cloud.compute.v1.BackendBackendOrchestrationInfo getOrchestrat */ @java.lang.Override public boolean hasPreference() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -1424,22 +1758,97 @@ public com.google.protobuf.ByteString getPreferenceBytes() { } } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int TRAFFIC_DURATION_FIELD_NUMBER = 11618710; - memoizedIsInitialized = 1; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object trafficDuration_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000400) != 0)) { - output.writeFloat(17599579, maxRatePerInstance_); + /** + * + * + *
+   *
+   * Check the TrafficDuration enum for the list of possible values.
+   * 
+ * + * optional string traffic_duration = 11618710; + * + * @return Whether the trafficDuration field is set. + */ + @java.lang.Override + public boolean hasTrafficDuration() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+   *
+   * Check the TrafficDuration enum for the list of possible values.
+   * 
+ * + * optional string traffic_duration = 11618710; + * + * @return The trafficDuration. + */ + @java.lang.Override + public java.lang.String getTrafficDuration() { + java.lang.Object ref = trafficDuration_; + 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(); + trafficDuration_ = s; + return s; + } + } + + /** + * + * + *
+   *
+   * Check the TrafficDuration enum for the list of possible values.
+   * 
+ * + * optional string traffic_duration = 11618710; + * + * @return The bytes for trafficDuration. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrafficDurationBytes() { + java.lang.Object ref = trafficDuration_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trafficDuration_ = 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 (((bitField0_ & 0x00020000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11618710, trafficDuration_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeFloat(17599579, maxRatePerInstance_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 98629247, group_); @@ -1450,25 +1859,34 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(110652154, maxConnections_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeFloat(129832283, maxRatePerEndpoint_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(138892530, failover_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeFloat(148192199, maxUtilization_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 150781147, preference_); } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeInt32(195696002, maxInFlightRequestsPerInstance_); + } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(216904604, maxConnectionsPerEndpoint_); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt32(273269332, maxInFlightRequests_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt32(307928706, maxInFlightRequestsPerEndpoint_); + } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(315958157, capacityScaler_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeInt32(408035035, maxRate_); } if (((bitField0_ & 0x00000004) != 0)) { @@ -1480,7 +1898,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 430286217, balancingMode_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(441144300, getOrchestrationInfo()); } getUnknownFields().writeTo(output); @@ -1492,7 +1910,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11618710, trafficDuration_); + } + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(17599579, maxRatePerInstance_); } if (((bitField0_ & 0x00000010) != 0)) { @@ -1506,28 +1927,42 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(110652154, maxConnections_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(129832283, maxRatePerEndpoint_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(138892530, failover_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(148192199, maxUtilization_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(150781147, preference_); } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 195696002, maxInFlightRequestsPerInstance_); + } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size( 216904604, maxConnectionsPerEndpoint_); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(273269332, maxInFlightRequests_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 307928706, maxInFlightRequestsPerEndpoint_); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(315958157, capacityScaler_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(408035035, maxRate_); } if (((bitField0_ & 0x00000004) != 0)) { @@ -1541,7 +1976,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(430286217, balancingMode_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 441144300, getOrchestrationInfo()); @@ -1595,6 +2030,22 @@ public boolean equals(final java.lang.Object obj) { if (hasMaxConnectionsPerInstance()) { if (getMaxConnectionsPerInstance() != other.getMaxConnectionsPerInstance()) return false; } + if (hasMaxInFlightRequests() != other.hasMaxInFlightRequests()) return false; + if (hasMaxInFlightRequests()) { + if (getMaxInFlightRequests() != other.getMaxInFlightRequests()) return false; + } + if (hasMaxInFlightRequestsPerEndpoint() != other.hasMaxInFlightRequestsPerEndpoint()) + return false; + if (hasMaxInFlightRequestsPerEndpoint()) { + if (getMaxInFlightRequestsPerEndpoint() != other.getMaxInFlightRequestsPerEndpoint()) + return false; + } + if (hasMaxInFlightRequestsPerInstance() != other.hasMaxInFlightRequestsPerInstance()) + return false; + if (hasMaxInFlightRequestsPerInstance()) { + if (getMaxInFlightRequestsPerInstance() != other.getMaxInFlightRequestsPerInstance()) + return false; + } if (hasMaxRate() != other.hasMaxRate()) return false; if (hasMaxRate()) { if (getMaxRate() != other.getMaxRate()) return false; @@ -1622,6 +2073,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPreference()) { if (!getPreference().equals(other.getPreference())) return false; } + if (hasTrafficDuration() != other.hasTrafficDuration()) return false; + if (hasTrafficDuration()) { + if (!getTrafficDuration().equals(other.getTrafficDuration())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1669,6 +2124,18 @@ public int hashCode() { hash = (37 * hash) + MAX_CONNECTIONS_PER_INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getMaxConnectionsPerInstance(); } + if (hasMaxInFlightRequests()) { + hash = (37 * hash) + MAX_IN_FLIGHT_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxInFlightRequests(); + } + if (hasMaxInFlightRequestsPerEndpoint()) { + hash = (37 * hash) + MAX_IN_FLIGHT_REQUESTS_PER_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getMaxInFlightRequestsPerEndpoint(); + } + if (hasMaxInFlightRequestsPerInstance()) { + hash = (37 * hash) + MAX_IN_FLIGHT_REQUESTS_PER_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getMaxInFlightRequestsPerInstance(); + } if (hasMaxRate()) { hash = (37 * hash) + MAX_RATE_FIELD_NUMBER; hash = (53 * hash) + getMaxRate(); @@ -1693,6 +2160,10 @@ public int hashCode() { hash = (37 * hash) + PREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getPreference().hashCode(); } + if (hasTrafficDuration()) { + hash = (37 * hash) + TRAFFIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTrafficDuration().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1857,6 +2328,9 @@ public Builder clear() { maxConnections_ = 0; maxConnectionsPerEndpoint_ = 0; maxConnectionsPerInstance_ = 0; + maxInFlightRequests_ = 0; + maxInFlightRequestsPerEndpoint_ = 0; + maxInFlightRequestsPerInstance_ = 0; maxRate_ = 0; maxRatePerEndpoint_ = 0F; maxRatePerInstance_ = 0F; @@ -1867,6 +2341,7 @@ public Builder clear() { orchestrationInfoBuilder_ = null; } preference_ = ""; + trafficDuration_ = ""; return this; } @@ -1949,31 +2424,47 @@ private void buildPartial0(com.google.cloud.compute.v1.Backend result) { to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.maxRate_ = maxRate_; + result.maxInFlightRequests_ = maxInFlightRequests_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.maxRatePerEndpoint_ = maxRatePerEndpoint_; + result.maxInFlightRequestsPerEndpoint_ = maxInFlightRequestsPerEndpoint_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.maxRatePerInstance_ = maxRatePerInstance_; + result.maxInFlightRequestsPerInstance_ = maxInFlightRequestsPerInstance_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.maxUtilization_ = maxUtilization_; + result.maxRate_ = maxRate_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.maxRatePerEndpoint_ = maxRatePerEndpoint_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.maxRatePerInstance_ = maxRatePerInstance_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.maxUtilization_ = maxUtilization_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.orchestrationInfo_ = orchestrationInfoBuilder_ == null ? orchestrationInfo_ : orchestrationInfoBuilder_.build(); - to_bitField0_ |= 0x00001000; + to_bitField0_ |= 0x00008000; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.preference_ = preference_; - to_bitField0_ |= 0x00002000; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.trafficDuration_ = trafficDuration_; + to_bitField0_ |= 0x00020000; } result.bitField0_ |= to_bitField0_; } @@ -2047,6 +2538,15 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Backend other) { if (other.hasMaxConnectionsPerInstance()) { setMaxConnectionsPerInstance(other.getMaxConnectionsPerInstance()); } + if (other.hasMaxInFlightRequests()) { + setMaxInFlightRequests(other.getMaxInFlightRequests()); + } + if (other.hasMaxInFlightRequestsPerEndpoint()) { + setMaxInFlightRequestsPerEndpoint(other.getMaxInFlightRequestsPerEndpoint()); + } + if (other.hasMaxInFlightRequestsPerInstance()) { + setMaxInFlightRequestsPerInstance(other.getMaxInFlightRequestsPerInstance()); + } if (other.hasMaxRate()) { setMaxRate(other.getMaxRate()); } @@ -2064,7 +2564,12 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Backend other) { } if (other.hasPreference()) { preference_ = other.preference_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasTrafficDuration()) { + trafficDuration_ = other.trafficDuration_; + bitField0_ |= 0x00040000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2093,10 +2598,16 @@ public Builder mergeFrom( case 0: done = true; break; + case 92949682: + { + trafficDuration_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 92949682 case 140796637: { maxRatePerInstance_ = input.readFloat(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; break; } // case 140796637 case 789033978: @@ -2120,7 +2631,7 @@ public Builder mergeFrom( case 1038658269: { maxRatePerEndpoint_ = input.readFloat(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; break; } // case 1038658269 case 1111140240: @@ -2132,21 +2643,39 @@ public Builder mergeFrom( case 1185537597: { maxUtilization_ = input.readFloat(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; break; } // case 1185537597 case 1206249178: { preference_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; break; } // case 1206249178 + case 1565568016: + { + maxInFlightRequestsPerInstance_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 1565568016 case 1735236832: { maxConnectionsPerEndpoint_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 1735236832 + case -2108812640: + { + maxInFlightRequests_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case -2108812640 + case -1831537648: + { + maxInFlightRequestsPerEndpoint_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case -1831537648 case -1767302035: { capacityScaler_ = input.readFloat(); @@ -2156,7 +2685,7 @@ public Builder mergeFrom( case -1030687016: { maxRate_ = input.readInt32(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; break; } // case -1030687016 case -911466526: @@ -2189,7 +2718,7 @@ public Builder mergeFrom( { input.readMessage( internalGetOrchestrationInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; break; } // case -765812894 default: @@ -3606,6 +4135,242 @@ public Builder clearMaxConnectionsPerInstance() { return this; } + private int maxInFlightRequests_; + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for the whole NEG or
+     * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return Whether the maxInFlightRequests field is set. + */ + @java.lang.Override + public boolean hasMaxInFlightRequests() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for the whole NEG or
+     * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return The maxInFlightRequests. + */ + @java.lang.Override + public int getMaxInFlightRequests() { + return maxInFlightRequests_; + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for the whole NEG or
+     * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @param value The maxInFlightRequests to set. + * @return This builder for chaining. + */ + public Builder setMaxInFlightRequests(int value) { + + maxInFlightRequests_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for the whole NEG or
+     * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return This builder for chaining. + */ + public Builder clearMaxInFlightRequests() { + bitField0_ = (bitField0_ & ~0x00000200); + maxInFlightRequests_ = 0; + onChanged(); + return this; + } + + private int maxInFlightRequestsPerEndpoint_; + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single endpoint.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return Whether the maxInFlightRequestsPerEndpoint field is set. + */ + @java.lang.Override + public boolean hasMaxInFlightRequestsPerEndpoint() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single endpoint.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return The maxInFlightRequestsPerEndpoint. + */ + @java.lang.Override + public int getMaxInFlightRequestsPerEndpoint() { + return maxInFlightRequestsPerEndpoint_; + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single endpoint.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @param value The maxInFlightRequestsPerEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMaxInFlightRequestsPerEndpoint(int value) { + + maxInFlightRequestsPerEndpoint_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single endpoint.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return This builder for chaining. + */ + public Builder clearMaxInFlightRequestsPerEndpoint() { + bitField0_ = (bitField0_ & ~0x00000400); + maxInFlightRequestsPerEndpoint_ = 0; + onChanged(); + return this; + } + + private int maxInFlightRequestsPerInstance_; + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single VM.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return Whether the maxInFlightRequestsPerInstance field is set. + */ + @java.lang.Override + public boolean hasMaxInFlightRequestsPerInstance() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single VM.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return The maxInFlightRequestsPerInstance. + */ + @java.lang.Override + public int getMaxInFlightRequestsPerInstance() { + return maxInFlightRequestsPerInstance_; + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single VM.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @param value The maxInFlightRequestsPerInstance to set. + * @return This builder for chaining. + */ + public Builder setMaxInFlightRequestsPerInstance(int value) { + + maxInFlightRequestsPerInstance_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Defines a maximum number of in-flight requests for a single VM.
+     * Not available if backend's balancingMode is RATE
+     * or CONNECTION.
+     * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return This builder for chaining. + */ + public Builder clearMaxInFlightRequestsPerInstance() { + bitField0_ = (bitField0_ & ~0x00000800); + maxInFlightRequestsPerInstance_ = 0; + onChanged(); + return this; + } + private int maxRate_; /** @@ -3626,7 +4391,7 @@ public Builder clearMaxConnectionsPerInstance() { */ @java.lang.Override public boolean hasMaxRate() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -3670,7 +4435,7 @@ public int getMaxRate() { public Builder setMaxRate(int value) { maxRate_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3692,7 +4457,7 @@ public Builder setMaxRate(int value) { * @return This builder for chaining. */ public Builder clearMaxRate() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); maxRate_ = 0; onChanged(); return this; @@ -3718,7 +4483,7 @@ public Builder clearMaxRate() { */ @java.lang.Override public boolean hasMaxRatePerEndpoint() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -3762,7 +4527,7 @@ public float getMaxRatePerEndpoint() { public Builder setMaxRatePerEndpoint(float value) { maxRatePerEndpoint_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3784,7 +4549,7 @@ public Builder setMaxRatePerEndpoint(float value) { * @return This builder for chaining. */ public Builder clearMaxRatePerEndpoint() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00002000); maxRatePerEndpoint_ = 0F; onChanged(); return this; @@ -3810,7 +4575,7 @@ public Builder clearMaxRatePerEndpoint() { */ @java.lang.Override public boolean hasMaxRatePerInstance() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -3854,7 +4619,7 @@ public float getMaxRatePerInstance() { public Builder setMaxRatePerInstance(float value) { maxRatePerInstance_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3876,7 +4641,7 @@ public Builder setMaxRatePerInstance(float value) { * @return This builder for chaining. */ public Builder clearMaxRatePerInstance() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00004000); maxRatePerInstance_ = 0F; onChanged(); return this; @@ -3900,7 +4665,7 @@ public Builder clearMaxRatePerInstance() { */ @java.lang.Override public boolean hasMaxUtilization() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -3940,7 +4705,7 @@ public float getMaxUtilization() { public Builder setMaxUtilization(float value) { maxUtilization_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3960,7 +4725,7 @@ public Builder setMaxUtilization(float value) { * @return This builder for chaining. */ public Builder clearMaxUtilization() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00008000); maxUtilization_ = 0F; onChanged(); return this; @@ -3987,7 +4752,7 @@ public Builder clearMaxUtilization() { * @return Whether the orchestrationInfo field is set. */ public boolean hasOrchestrationInfo() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4034,7 +4799,7 @@ public Builder setOrchestrationInfo( } else { orchestrationInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4057,7 +4822,7 @@ public Builder setOrchestrationInfo( } else { orchestrationInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4076,7 +4841,7 @@ public Builder setOrchestrationInfo( public Builder mergeOrchestrationInfo( com.google.cloud.compute.v1.BackendBackendOrchestrationInfo value) { if (orchestrationInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00010000) != 0) && orchestrationInfo_ != null && orchestrationInfo_ != com.google.cloud.compute.v1.BackendBackendOrchestrationInfo @@ -4089,7 +4854,7 @@ public Builder mergeOrchestrationInfo( orchestrationInfoBuilder_.mergeFrom(value); } if (orchestrationInfo_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4107,7 +4872,7 @@ public Builder mergeOrchestrationInfo( * */ public Builder clearOrchestrationInfo() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00010000); orchestrationInfo_ = null; if (orchestrationInfoBuilder_ != null) { orchestrationInfoBuilder_.dispose(); @@ -4130,7 +4895,7 @@ public Builder clearOrchestrationInfo() { */ public com.google.cloud.compute.v1.BackendBackendOrchestrationInfo.Builder getOrchestrationInfoBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00010000; onChanged(); return internalGetOrchestrationInfoFieldBuilder().getBuilder(); } @@ -4209,7 +4974,7 @@ public Builder clearOrchestrationInfo() { * @return Whether the preference field is set. */ public boolean hasPreference() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -4305,7 +5070,7 @@ public Builder setPreference(java.lang.String value) { throw new NullPointerException(); } preference_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4333,7 +5098,7 @@ public Builder setPreference(java.lang.String value) { */ public Builder clearPreference() { preference_ = getDefaultInstance().getPreference(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -4366,7 +5131,139 @@ public Builder setPreferenceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); preference_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object trafficDuration_ = ""; + + /** + * + * + *
+     *
+     * Check the TrafficDuration enum for the list of possible values.
+     * 
+ * + * optional string traffic_duration = 11618710; + * + * @return Whether the trafficDuration field is set. + */ + public boolean hasTrafficDuration() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     *
+     * Check the TrafficDuration enum for the list of possible values.
+     * 
+ * + * optional string traffic_duration = 11618710; + * + * @return The trafficDuration. + */ + public java.lang.String getTrafficDuration() { + java.lang.Object ref = trafficDuration_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trafficDuration_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     *
+     * Check the TrafficDuration enum for the list of possible values.
+     * 
+ * + * optional string traffic_duration = 11618710; + * + * @return The bytes for trafficDuration. + */ + public com.google.protobuf.ByteString getTrafficDurationBytes() { + java.lang.Object ref = trafficDuration_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trafficDuration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     *
+     * Check the TrafficDuration enum for the list of possible values.
+     * 
+ * + * optional string traffic_duration = 11618710; + * + * @param value The trafficDuration to set. + * @return This builder for chaining. + */ + public Builder setTrafficDuration(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trafficDuration_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     *
+     * Check the TrafficDuration enum for the list of possible values.
+     * 
+ * + * optional string traffic_duration = 11618710; + * + * @return This builder for chaining. + */ + public Builder clearTrafficDuration() { + trafficDuration_ = getDefaultInstance().getTrafficDuration(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
+     *
+     * Check the TrafficDuration enum for the list of possible values.
+     * 
+ * + * optional string traffic_duration = 11618710; + * + * @param value The bytes for trafficDuration to set. + * @return This builder for chaining. + */ + public Builder setTrafficDurationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trafficDuration_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucket.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucket.java index 5fd012ed7046..942a4bf3a24e 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucket.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucket.java @@ -64,6 +64,7 @@ private BackendBucket() { kind_ = ""; loadBalancingScheme_ = ""; name_ = ""; + region_ = ""; selfLink_ = ""; usedBy_ = java.util.Collections.emptyList(); } @@ -284,6 +285,17 @@ public enum LoadBalancingScheme implements com.google.protobuf.ProtocolMessageEn * UNDEFINED_LOAD_BALANCING_SCHEME = 0; */ UNDEFINED_LOAD_BALANCING_SCHEME(0), + /** + * + * + *
+     * Signifies that this will be used for regional external Application Load
+     * Balancers.
+     * 
+ * + * EXTERNAL_MANAGED = 512006923; + */ + EXTERNAL_MANAGED(512006923), /** * * @@ -318,6 +330,18 @@ public enum LoadBalancingScheme implements com.google.protobuf.ProtocolMessageEn */ public static final int UNDEFINED_LOAD_BALANCING_SCHEME_VALUE = 0; + /** + * + * + *
+     * Signifies that this will be used for regional external Application Load
+     * Balancers.
+     * 
+ * + * EXTERNAL_MANAGED = 512006923; + */ + public static final int EXTERNAL_MANAGED_VALUE = 512006923; + /** * * @@ -355,6 +379,8 @@ public static LoadBalancingScheme forNumber(int value) { switch (value) { case 0: return UNDEFINED_LOAD_BALANCING_SCHEME; + case 512006923: + return EXTERNAL_MANAGED; case 37350397: return INTERNAL_MANAGED; default: @@ -1264,6 +1290,84 @@ public com.google.cloud.compute.v1.BackendBucketParamsOrBuilder getParamsOrBuild : params_; } + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the regional backend bucket
+   * resides. This field is not applicable to global backend buckets.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the regional backend bucket
+   * resides. This field is not applicable to global backend buckets.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the regional backend bucket
+   * resides. This field is not applicable to global backend buckets.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SELF_LINK_FIELD_NUMBER = 456214797; @SuppressWarnings("serial") @@ -1282,7 +1386,7 @@ public com.google.cloud.compute.v1.BackendBucketParamsOrBuilder getParamsOrBuild */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -1444,6 +1548,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 95520988, compressionMode_); } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(213976452, getCdnPolicy()); } @@ -1466,7 +1573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); } getUnknownFields().writeTo(output); @@ -1499,6 +1606,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(95520988, compressionMode_); } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(213976452, getCdnPolicy()); } @@ -1526,7 +1636,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); } size += getUnknownFields().getSerializedSize(); @@ -1594,6 +1704,10 @@ public boolean equals(final java.lang.Object obj) { if (hasParams()) { if (!getParams().equals(other.getParams())) return false; } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion().equals(other.getRegion())) return false; + } if (hasSelfLink() != other.hasSelfLink()) return false; if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) return false; @@ -1662,6 +1776,10 @@ public int hashCode() { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } if (hasSelfLink()) { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); @@ -1845,6 +1963,7 @@ public Builder clear() { paramsBuilder_.dispose(); paramsBuilder_ = null; } + region_ = ""; selfLink_ = ""; if (usedByBuilder_ == null) { usedBy_ = java.util.Collections.emptyList(); @@ -1852,7 +1971,7 @@ public Builder clear() { usedBy_ = null; usedByBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); return this; } @@ -1890,9 +2009,9 @@ public com.google.cloud.compute.v1.BackendBucket buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.compute.v1.BackendBucket result) { if (usedByBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { usedBy_ = java.util.Collections.unmodifiableList(usedBy_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.usedBy_ = usedBy_; } else { @@ -1956,9 +2075,13 @@ private void buildPartial0(com.google.cloud.compute.v1.BackendBucket result) { to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.selfLink_ = selfLink_; + result.region_ = region_; to_bitField0_ |= 0x00001000; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00002000; + } result.bitField0_ |= to_bitField0_; } @@ -2036,16 +2159,21 @@ public Builder mergeFrom(com.google.cloud.compute.v1.BackendBucket other) { if (other.hasParams()) { mergeParams(other.getParams()); } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00002000; + onChanged(); + } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (usedByBuilder_ == null) { if (!other.usedBy_.isEmpty()) { if (usedBy_.isEmpty()) { usedBy_ = other.usedBy_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureUsedByIsMutable(); usedBy_.addAll(other.usedBy_); @@ -2058,7 +2186,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.BackendBucket other) { usedByBuilder_.dispose(); usedByBuilder_ = null; usedBy_ = other.usedBy_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); usedByBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetUsedByFieldBuilder() @@ -2136,6 +2264,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 764167906 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 1111570338 case 1711811618: { input.readMessage( @@ -2191,7 +2325,7 @@ public Builder mergeFrom( case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case -645248918 default: @@ -4051,6 +4185,150 @@ public com.google.cloud.compute.v1.BackendBucketParamsOrBuilder getParamsOrBuild return paramsBuilder_; } + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the regional backend bucket
+     * resides. This field is not applicable to global backend buckets.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the regional backend bucket
+     * resides. This field is not applicable to global backend buckets.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the regional backend bucket
+     * resides. This field is not applicable to global backend buckets.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the regional backend bucket
+     * resides. This field is not applicable to global backend buckets.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the regional backend bucket
+     * resides. This field is not applicable to global backend buckets.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the regional backend bucket
+     * resides. This field is not applicable to global backend buckets.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + private java.lang.Object selfLink_ = ""; /** @@ -4065,7 +4343,7 @@ public com.google.cloud.compute.v1.BackendBucketParamsOrBuilder getParamsOrBuild * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -4131,7 +4409,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4149,7 +4427,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4172,7 +4450,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4181,9 +4459,9 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureUsedByIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { usedBy_ = new java.util.ArrayList(usedBy_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -4409,7 +4687,7 @@ public Builder addAllUsedBy( public Builder clearUsedBy() { if (usedByBuilder_ == null) { usedBy_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { usedByBuilder_.clear(); @@ -4538,7 +4816,7 @@ public com.google.cloud.compute.v1.BackendBucketUsedBy.Builder addUsedByBuilder( com.google.cloud.compute.v1.BackendBucketUsedBy, com.google.cloud.compute.v1.BackendBucketUsedBy.Builder, com.google.cloud.compute.v1.BackendBucketUsedByOrBuilder>( - usedBy_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + usedBy_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); usedBy_ = null; } return usedByBuilder_; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedList.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedList.java new file mode 100644 index 000000000000..a901c22c87c9 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedList.java @@ -0,0 +1,2087 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendBucketAggregatedList} + */ +@com.google.protobuf.Generated +public final class BackendBucketAggregatedList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.BackendBucketAggregatedList) + BackendBucketAggregatedListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BackendBucketAggregatedList"); + } + + // Use BackendBucketAggregatedList.newBuilder() to construct. + private BackendBucketAggregatedList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackendBucketAggregatedList() { + id_ = ""; + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 100526016: + return internalGetItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendBucketAggregatedList.class, + com.google.cloud.compute.v1.BackendBucketAggregatedList.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 3355; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 100526016; + + private static final class ItemsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_ItemsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.compute.v1.BackendBucketsScopedList.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + items_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + internalGetItems() { + if (items_ == null) { + return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); + } + return items_; + } + + public int getItemsCount() { + return internalGetItems().getMap().size(); + } + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetItems().getMap().containsKey(key); + } + + /** Use {@link #getItemsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getItems() { + return getItemsMap(); + } + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public java.util.Map + getItemsMap() { + return internalGetItems().getMap(); + } + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1.BackendBucketsScopedList getItemsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.BackendBucketsScopedList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetItems().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketsScopedList getItemsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetItems().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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 SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 79797525, nextPageToken_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 100526016); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + 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.GeneratedMessage.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(79797525, nextPageToken_); + } + for (java.util.Map.Entry + entry : internalGetItems().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + items__ = + ItemsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items__); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.BackendBucketAggregatedList)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.BackendBucketAggregatedList other = + (com.google.cloud.compute.v1.BackendBucketAggregatedList) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!internalGetItems().equals(other.internalGetItems())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (!internalGetItems().getMap().isEmpty()) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetItems().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList 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.compute.v1.BackendBucketAggregatedList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.BackendBucketAggregatedList 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendBucketAggregatedList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.BackendBucketAggregatedList) + com.google.cloud.compute.v1.BackendBucketAggregatedListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 100526016: + return internalGetItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 100526016: + return internalGetMutableItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendBucketAggregatedList.class, + com.google.cloud.compute.v1.BackendBucketAggregatedList.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.BackendBucketAggregatedList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + internalGetMutableItems().clear(); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketAggregatedList getDefaultInstanceForType() { + return com.google.cloud.compute.v1.BackendBucketAggregatedList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketAggregatedList build() { + com.google.cloud.compute.v1.BackendBucketAggregatedList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketAggregatedList buildPartial() { + com.google.cloud.compute.v1.BackendBucketAggregatedList result = + new com.google.cloud.compute.v1.BackendBucketAggregatedList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.BackendBucketAggregatedList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.items_ = internalGetItems().build(ItemsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.BackendBucketAggregatedList) { + return mergeFrom((com.google.cloud.compute.v1.BackendBucketAggregatedList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.BackendBucketAggregatedList other) { + if (other == com.google.cloud.compute.v1.BackendBucketAggregatedList.getDefaultInstance()) + return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableItems().mergeFrom(other.internalGetItems()); + bitField0_ |= 0x00000002; + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 26842: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26842 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(internalGetWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 638380202 + case 804208130: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableItems() + .ensureBuilderMap() + .put(items__.getKey(), items__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 804208130 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case -645248918 + 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 id_ = ""; + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private static final class ItemsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder, + com.google.cloud.compute.v1.BackendBucketsScopedList> { + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketsScopedList build( + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder val) { + if (val instanceof com.google.cloud.compute.v1.BackendBucketsScopedList) { + return (com.google.cloud.compute.v1.BackendBucketsScopedList) val; + } + return ((com.google.cloud.compute.v1.BackendBucketsScopedList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + defaultEntry() { + return ItemsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ItemsConverter itemsConverter = new ItemsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder, + com.google.cloud.compute.v1.BackendBucketsScopedList, + com.google.cloud.compute.v1.BackendBucketsScopedList.Builder> + items_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder, + com.google.cloud.compute.v1.BackendBucketsScopedList, + com.google.cloud.compute.v1.BackendBucketsScopedList.Builder> + internalGetItems() { + if (items_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(itemsConverter); + } + return items_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder, + com.google.cloud.compute.v1.BackendBucketsScopedList, + com.google.cloud.compute.v1.BackendBucketsScopedList.Builder> + internalGetMutableItems() { + if (items_ == null) { + items_ = new com.google.protobuf.MapFieldBuilder<>(itemsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return items_; + } + + public int getItemsCount() { + return internalGetItems().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetItems().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getItemsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getItems() { + return getItemsMap(); + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public java.util.Map + getItemsMap() { + return internalGetItems().getImmutableMap(); + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1.BackendBucketsScopedList getItemsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.BackendBucketsScopedList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableItems().ensureBuilderMap(); + return map.containsKey(key) ? itemsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketsScopedList getItemsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableItems().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return itemsConverter.build(map.get(key)); + } + + public Builder clearItems() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableItems().clear(); + return this; + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + public Builder removeItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableItems().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableItems() { + bitField0_ |= 0x00000002; + return internalGetMutableItems().ensureMessageMap(); + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + public Builder putItems( + java.lang.String key, com.google.cloud.compute.v1.BackendBucketsScopedList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableItems().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + public Builder putAllItems( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.compute.v1.BackendBucketsScopedList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableItems().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
+     * A list of BackendBucketsScopedList resources.
+     * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + public com.google.cloud.compute.v1.BackendBucketsScopedList.Builder putItemsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableItems().ensureBuilderMap(); + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.compute.v1.BackendBucketsScopedList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.compute.v1.BackendBucketsScopedList) { + entry = ((com.google.cloud.compute.v1.BackendBucketsScopedList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.compute.v1.BackendBucketsScopedList.Builder) entry; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000020); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetWarningFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + internalGetWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.BackendBucketAggregatedList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.BackendBucketAggregatedList) + private static final com.google.cloud.compute.v1.BackendBucketAggregatedList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.BackendBucketAggregatedList(); + } + + public static com.google.cloud.compute.v1.BackendBucketAggregatedList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendBucketAggregatedList 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.compute.v1.BackendBucketAggregatedList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedListOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedListOrBuilder.java new file mode 100644 index 000000000000..e0535d561f5a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketAggregatedListOrBuilder.java @@ -0,0 +1,302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface BackendBucketAggregatedListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendBucketAggregatedList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + int getItemsCount(); + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + boolean containsItems(java.lang.String key); + + /** Use {@link #getItemsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getItems(); + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + java.util.Map + getItemsMap(); + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + /* nullable */ + com.google.cloud.compute.v1.BackendBucketsScopedList getItemsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.BackendBucketsScopedList defaultValue); + + /** + * + * + *
+   * A list of BackendBucketsScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.BackendBucketsScopedList> items = 100526016; + * + */ + com.google.cloud.compute.v1.BackendBucketsScopedList getItemsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsable.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsable.java new file mode 100644 index 000000000000..2efa6cdf39db --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsable.java @@ -0,0 +1,2156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendBucketListUsable} + */ +@com.google.protobuf.Generated +public final class BackendBucketListUsable extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.BackendBucketListUsable) + BackendBucketListUsableOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BackendBucketListUsable"); + } + + // Use BackendBucketListUsable.newBuilder() to construct. + private BackendBucketListUsable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackendBucketListUsable() { + id_ = ""; + items_ = java.util.Collections.emptyList(); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketListUsable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketListUsable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendBucketListUsable.class, + com.google.cloud.compute.v1.BackendBucketListUsable.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 3355; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 100526016; + + @SuppressWarnings("serial") + private java.util.List items_; + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + @java.lang.Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucket getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+   * buckets.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+   * buckets.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+   * buckets.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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 SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(100526016, items_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + 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.GeneratedMessage.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.BackendBucketListUsable)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.BackendBucketListUsable other = + (com.google.cloud.compute.v1.BackendBucketListUsable) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!getItemsList().equals(other.getItemsList())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable 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.compute.v1.BackendBucketListUsable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.BackendBucketListUsable 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendBucketListUsable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.BackendBucketListUsable) + com.google.cloud.compute.v1.BackendBucketListUsableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketListUsable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketListUsable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendBucketListUsable.class, + com.google.cloud.compute.v1.BackendBucketListUsable.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.BackendBucketListUsable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetItemsFieldBuilder(); + internalGetWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketListUsable_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketListUsable getDefaultInstanceForType() { + return com.google.cloud.compute.v1.BackendBucketListUsable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketListUsable build() { + com.google.cloud.compute.v1.BackendBucketListUsable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketListUsable buildPartial() { + com.google.cloud.compute.v1.BackendBucketListUsable result = + new com.google.cloud.compute.v1.BackendBucketListUsable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.BackendBucketListUsable result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.BackendBucketListUsable result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.BackendBucketListUsable) { + return mergeFrom((com.google.cloud.compute.v1.BackendBucketListUsable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.BackendBucketListUsable other) { + if (other == com.google.cloud.compute.v1.BackendBucketListUsable.getDefaultInstance()) + return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetItemsFieldBuilder() + : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 26842: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26842 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(internalGetWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 638380202 + case 804208130: + { + com.google.cloud.compute.v1.BackendBucket m = + input.readMessage( + com.google.cloud.compute.v1.BackendBucket.parser(), extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 804208130 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case -645248918 + 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 id_ = ""; + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + itemsBuilder_; + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public com.google.cloud.compute.v1.BackendBucket getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder setItems(int index, com.google.cloud.compute.v1.BackendBucket value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder setItems( + int index, com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.BackendBucket value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder addItems(int index, com.google.cloud.compute.v1.BackendBucket value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder addItems( + int index, com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public com.google.cloud.compute.v1.BackendBucket.Builder getItemsBuilder(int index) { + return internalGetItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public com.google.cloud.compute.v1.BackendBucketOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public com.google.cloud.compute.v1.BackendBucket.Builder addItemsBuilder() { + return internalGetItemsFieldBuilder() + .addBuilder(com.google.cloud.compute.v1.BackendBucket.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public com.google.cloud.compute.v1.BackendBucket.Builder addItemsBuilder(int index) { + return internalGetItemsFieldBuilder() + .addBuilder(index, com.google.cloud.compute.v1.BackendBucket.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of BackendBucket resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + public java.util.List getItemsBuilderList() { + return internalGetItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + internalGetItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder>( + items_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+     * buckets.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+     * buckets.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+     * buckets.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+     * buckets.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+     * buckets.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+     * buckets.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000020); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetWarningFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + internalGetWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.BackendBucketListUsable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.BackendBucketListUsable) + private static final com.google.cloud.compute.v1.BackendBucketListUsable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.BackendBucketListUsable(); + } + + public static com.google.cloud.compute.v1.BackendBucketListUsable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendBucketListUsable 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.compute.v1.BackendBucketListUsable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsableOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsableOrBuilder.java new file mode 100644 index 000000000000..515c40cfa625 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketListUsableOrBuilder.java @@ -0,0 +1,292 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface BackendBucketListUsableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendBucketListUsable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + java.util.List getItemsList(); + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + com.google.cloud.compute.v1.BackendBucket getItems(int index); + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + int getItemsCount(); + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + java.util.List + getItemsOrBuilderList(); + + /** + * + * + *
+   * A list of BackendBucket resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket items = 100526016; + */ + com.google.cloud.compute.v1.BackendBucketOrBuilder getItemsOrBuilder(int index); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+   * buckets.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+   * buckets.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
+   * buckets.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketOrBuilder.java index a3819f82081c..764320d0849c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketOrBuilder.java @@ -572,6 +572,54 @@ public interface BackendBucketOrBuilder */ com.google.cloud.compute.v1.BackendBucketParamsOrBuilder getParamsOrBuilder(); + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the regional backend bucket
+   * resides. This field is not applicable to global backend buckets.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the regional backend bucket
+   * resides. This field is not applicable to global backend buckets.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the regional backend bucket
+   * resides. This field is not applicable to global backend buckets.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedList.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedList.java new file mode 100644 index 000000000000..57b3ac767eae --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedList.java @@ -0,0 +1,1228 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendBucketsScopedList} + */ +@com.google.protobuf.Generated +public final class BackendBucketsScopedList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.BackendBucketsScopedList) + BackendBucketsScopedListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BackendBucketsScopedList"); + } + + // Use BackendBucketsScopedList.newBuilder() to construct. + private BackendBucketsScopedList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackendBucketsScopedList() { + backendBuckets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketsScopedList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketsScopedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendBucketsScopedList.class, + com.google.cloud.compute.v1.BackendBucketsScopedList.Builder.class); + } + + private int bitField0_; + public static final int BACKEND_BUCKETS_FIELD_NUMBER = 158780702; + + @SuppressWarnings("serial") + private java.util.List backendBuckets_; + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + @java.lang.Override + public java.util.List getBackendBucketsList() { + return backendBuckets_; + } + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + @java.lang.Override + public java.util.List + getBackendBucketsOrBuilderList() { + return backendBuckets_; + } + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + @java.lang.Override + public int getBackendBucketsCount() { + return backendBuckets_.size(); + } + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucket getBackendBuckets(int index) { + return backendBuckets_.get(index); + } + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketsOrBuilder(int index) { + return backendBuckets_.get(index); + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + + /** + * + * + *
+   * Informational warning which replaces the list of
+   * backend services when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Informational warning which replaces the list of
+   * backend services when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + /** + * + * + *
+   * Informational warning which replaces the list of
+   * backend services when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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(50704284, getWarning()); + } + for (int i = 0; i < backendBuckets_.size(); i++) { + output.writeMessage(158780702, backendBuckets_.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(50704284, getWarning()); + } + for (int i = 0; i < backendBuckets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 158780702, backendBuckets_.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.compute.v1.BackendBucketsScopedList)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.BackendBucketsScopedList other = + (com.google.cloud.compute.v1.BackendBucketsScopedList) obj; + + if (!getBackendBucketsList().equals(other.getBackendBucketsList())) return false; + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (getBackendBucketsCount() > 0) { + hash = (37 * hash) + BACKEND_BUCKETS_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucketsList().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList 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.compute.v1.BackendBucketsScopedList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.BackendBucketsScopedList 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.BackendBucketsScopedList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.BackendBucketsScopedList) + com.google.cloud.compute.v1.BackendBucketsScopedListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketsScopedList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketsScopedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.BackendBucketsScopedList.class, + com.google.cloud.compute.v1.BackendBucketsScopedList.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.BackendBucketsScopedList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackendBucketsFieldBuilder(); + internalGetWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backendBucketsBuilder_ == null) { + backendBuckets_ = java.util.Collections.emptyList(); + } else { + backendBuckets_ = null; + backendBucketsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_BackendBucketsScopedList_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketsScopedList getDefaultInstanceForType() { + return com.google.cloud.compute.v1.BackendBucketsScopedList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketsScopedList build() { + com.google.cloud.compute.v1.BackendBucketsScopedList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketsScopedList buildPartial() { + com.google.cloud.compute.v1.BackendBucketsScopedList result = + new com.google.cloud.compute.v1.BackendBucketsScopedList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.BackendBucketsScopedList result) { + if (backendBucketsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backendBuckets_ = java.util.Collections.unmodifiableList(backendBuckets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backendBuckets_ = backendBuckets_; + } else { + result.backendBuckets_ = backendBucketsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.BackendBucketsScopedList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.BackendBucketsScopedList) { + return mergeFrom((com.google.cloud.compute.v1.BackendBucketsScopedList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.BackendBucketsScopedList other) { + if (other == com.google.cloud.compute.v1.BackendBucketsScopedList.getDefaultInstance()) + return this; + if (backendBucketsBuilder_ == null) { + if (!other.backendBuckets_.isEmpty()) { + if (backendBuckets_.isEmpty()) { + backendBuckets_ = other.backendBuckets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackendBucketsIsMutable(); + backendBuckets_.addAll(other.backendBuckets_); + } + onChanged(); + } + } else { + if (!other.backendBuckets_.isEmpty()) { + if (backendBucketsBuilder_.isEmpty()) { + backendBucketsBuilder_.dispose(); + backendBucketsBuilder_ = null; + backendBuckets_ = other.backendBuckets_; + bitField0_ = (bitField0_ & ~0x00000001); + backendBucketsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackendBucketsFieldBuilder() + : null; + } else { + backendBucketsBuilder_.addAllMessages(other.backendBuckets_); + } + } + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 405634274: + { + input.readMessage(internalGetWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 405634274 + case 1270245618: + { + com.google.cloud.compute.v1.BackendBucket m = + input.readMessage( + com.google.cloud.compute.v1.BackendBucket.parser(), extensionRegistry); + if (backendBucketsBuilder_ == null) { + ensureBackendBucketsIsMutable(); + backendBuckets_.add(m); + } else { + backendBucketsBuilder_.addMessage(m); + } + break; + } // case 1270245618 + 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 backendBuckets_ = + java.util.Collections.emptyList(); + + private void ensureBackendBucketsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backendBuckets_ = + new java.util.ArrayList(backendBuckets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + backendBucketsBuilder_; + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public java.util.List getBackendBucketsList() { + if (backendBucketsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backendBuckets_); + } else { + return backendBucketsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public int getBackendBucketsCount() { + if (backendBucketsBuilder_ == null) { + return backendBuckets_.size(); + } else { + return backendBucketsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public com.google.cloud.compute.v1.BackendBucket getBackendBuckets(int index) { + if (backendBucketsBuilder_ == null) { + return backendBuckets_.get(index); + } else { + return backendBucketsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder setBackendBuckets(int index, com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendBucketsIsMutable(); + backendBuckets_.set(index, value); + onChanged(); + } else { + backendBucketsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder setBackendBuckets( + int index, com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (backendBucketsBuilder_ == null) { + ensureBackendBucketsIsMutable(); + backendBuckets_.set(index, builderForValue.build()); + onChanged(); + } else { + backendBucketsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder addBackendBuckets(com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendBucketsIsMutable(); + backendBuckets_.add(value); + onChanged(); + } else { + backendBucketsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder addBackendBuckets(int index, com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendBucketsIsMutable(); + backendBuckets_.add(index, value); + onChanged(); + } else { + backendBucketsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder addBackendBuckets( + com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (backendBucketsBuilder_ == null) { + ensureBackendBucketsIsMutable(); + backendBuckets_.add(builderForValue.build()); + onChanged(); + } else { + backendBucketsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder addBackendBuckets( + int index, com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (backendBucketsBuilder_ == null) { + ensureBackendBucketsIsMutable(); + backendBuckets_.add(index, builderForValue.build()); + onChanged(); + } else { + backendBucketsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder addAllBackendBuckets( + java.lang.Iterable values) { + if (backendBucketsBuilder_ == null) { + ensureBackendBucketsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backendBuckets_); + onChanged(); + } else { + backendBucketsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder clearBackendBuckets() { + if (backendBucketsBuilder_ == null) { + backendBuckets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backendBucketsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public Builder removeBackendBuckets(int index) { + if (backendBucketsBuilder_ == null) { + ensureBackendBucketsIsMutable(); + backendBuckets_.remove(index); + onChanged(); + } else { + backendBucketsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public com.google.cloud.compute.v1.BackendBucket.Builder getBackendBucketsBuilder(int index) { + return internalGetBackendBucketsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketsOrBuilder( + int index) { + if (backendBucketsBuilder_ == null) { + return backendBuckets_.get(index); + } else { + return backendBucketsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public java.util.List + getBackendBucketsOrBuilderList() { + if (backendBucketsBuilder_ != null) { + return backendBucketsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backendBuckets_); + } + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public com.google.cloud.compute.v1.BackendBucket.Builder addBackendBucketsBuilder() { + return internalGetBackendBucketsFieldBuilder() + .addBuilder(com.google.cloud.compute.v1.BackendBucket.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public com.google.cloud.compute.v1.BackendBucket.Builder addBackendBucketsBuilder(int index) { + return internalGetBackendBucketsFieldBuilder() + .addBuilder(index, com.google.cloud.compute.v1.BackendBucket.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of BackendBuckets contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + public java.util.List + getBackendBucketsBuilderList() { + return internalGetBackendBucketsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + internalGetBackendBucketsFieldBuilder() { + if (backendBucketsBuilder_ == null) { + backendBucketsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder>( + backendBuckets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + backendBuckets_ = null; + } + return backendBucketsBuilder_; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000002); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetWarningFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + + /** + * + * + *
+     * Informational warning which replaces the list of
+     * backend services when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + internalGetWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.BackendBucketsScopedList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.BackendBucketsScopedList) + private static final com.google.cloud.compute.v1.BackendBucketsScopedList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.BackendBucketsScopedList(); + } + + public static com.google.cloud.compute.v1.BackendBucketsScopedList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackendBucketsScopedList 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.compute.v1.BackendBucketsScopedList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedListOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedListOrBuilder.java new file mode 100644 index 000000000000..bf99a5a98652 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendBucketsScopedListOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface BackendBucketsScopedListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendBucketsScopedList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + java.util.List getBackendBucketsList(); + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + com.google.cloud.compute.v1.BackendBucket getBackendBuckets(int index); + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + int getBackendBucketsCount(); + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + java.util.List + getBackendBucketsOrBuilderList(); + + /** + * + * + *
+   * A list of BackendBuckets contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.BackendBucket backend_buckets = 158780702; + */ + com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketsOrBuilder(int index); + + /** + * + * + *
+   * Informational warning which replaces the list of
+   * backend services when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + + /** + * + * + *
+   * Informational warning which replaces the list of
+   * backend services when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + + /** + * + * + *
+   * Informational warning which replaces the list of
+   * backend services when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendOrBuilder.java index cc77c3872e49..92596d19be90 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendOrBuilder.java @@ -456,6 +456,94 @@ public interface BackendOrBuilder */ int getMaxConnectionsPerInstance(); + /** + * + * + *
+   * Defines a maximum number of in-flight requests for the whole NEG or
+   * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return Whether the maxInFlightRequests field is set. + */ + boolean hasMaxInFlightRequests(); + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for the whole NEG or
+   * instance group. Not available if backend's balancingMode isRATE or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests = 273269332; + * + * @return The maxInFlightRequests. + */ + int getMaxInFlightRequests(); + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single endpoint.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return Whether the maxInFlightRequestsPerEndpoint field is set. + */ + boolean hasMaxInFlightRequestsPerEndpoint(); + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single endpoint.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_endpoint = 307928706; + * + * @return The maxInFlightRequestsPerEndpoint. + */ + int getMaxInFlightRequestsPerEndpoint(); + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single VM.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return Whether the maxInFlightRequestsPerInstance field is set. + */ + boolean hasMaxInFlightRequestsPerInstance(); + + /** + * + * + *
+   * Defines a maximum number of in-flight requests for a single VM.
+   * Not available if backend's balancingMode is RATE
+   * or CONNECTION.
+   * 
+ * + * optional int32 max_in_flight_requests_per_instance = 195696002; + * + * @return The maxInFlightRequestsPerInstance. + */ + int getMaxInFlightRequestsPerInstance(); + /** * * @@ -708,4 +796,46 @@ public interface BackendOrBuilder * @return The bytes for preference. */ com.google.protobuf.ByteString getPreferenceBytes(); + + /** + * + * + *
+   *
+   * Check the TrafficDuration enum for the list of possible values.
+   * 
+ * + * optional string traffic_duration = 11618710; + * + * @return Whether the trafficDuration field is set. + */ + boolean hasTrafficDuration(); + + /** + * + * + *
+   *
+   * Check the TrafficDuration enum for the list of possible values.
+   * 
+ * + * optional string traffic_duration = 11618710; + * + * @return The trafficDuration. + */ + java.lang.String getTrafficDuration(); + + /** + * + * + *
+   *
+   * Check the TrafficDuration enum for the list of possible values.
+   * 
+ * + * optional string traffic_duration = 11618710; + * + * @return The bytes for trafficDuration. + */ + com.google.protobuf.ByteString getTrafficDurationBytes(); } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java index 44f2bc2791af..7cd7f022c616 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java @@ -1021,7 +1021,7 @@ private LoadBalancingScheme(int value) { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -2561,7 +2561,7 @@ public boolean hasConnectionTrackingPolicy() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -2592,7 +2592,7 @@ public boolean hasConsistentHash() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -2625,7 +2625,7 @@ public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings getConsist * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -4312,7 +4312,7 @@ public int getLocalityLbPoliciesCount() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -4378,7 +4378,7 @@ public boolean hasLocalityLbPolicy() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -4452,7 +4452,7 @@ public java.lang.String getLocalityLbPolicy() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -5097,7 +5097,7 @@ public com.google.cloud.compute.v1.BackendServiceOrchestrationInfo getOrchestrat * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -5152,7 +5152,7 @@ public boolean hasOutlierDetection() { * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -5209,7 +5209,7 @@ public com.google.cloud.compute.v1.OutlierDetection getOutlierDetection() { * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -10048,7 +10048,7 @@ public Builder clearConnectionTrackingPolicy() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10078,7 +10078,7 @@ public boolean hasConsistentHash() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10114,7 +10114,7 @@ public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings getConsist * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10153,7 +10153,7 @@ public Builder setConsistentHash( * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10189,7 +10189,7 @@ public Builder setConsistentHash( * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10235,7 +10235,7 @@ public Builder mergeConsistentHash( * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10270,7 +10270,7 @@ public Builder clearConsistentHash() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10301,7 +10301,7 @@ public Builder clearConsistentHash() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -10336,7 +10336,7 @@ public Builder clearConsistentHash() { * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -14714,7 +14714,7 @@ public Builder removeLocalityLbPolicies(int index) { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -14779,7 +14779,7 @@ public boolean hasLocalityLbPolicy() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -14852,7 +14852,7 @@ public java.lang.String getLocalityLbPolicy() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -14925,7 +14925,7 @@ public com.google.protobuf.ByteString getLocalityLbPolicyBytes() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -14997,7 +14997,7 @@ public Builder setLocalityLbPolicy(java.lang.String value) { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -15065,7 +15065,7 @@ public Builder clearLocalityLbPolicy() { * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -16649,7 +16649,7 @@ public Builder clearOrchestrationInfo() { * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -16704,7 +16704,7 @@ public boolean hasOutlierDetection() { * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -16765,7 +16765,7 @@ public com.google.cloud.compute.v1.OutlierDetection getOutlierDetection() { * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -16828,7 +16828,7 @@ public Builder setOutlierDetection(com.google.cloud.compute.v1.OutlierDetection * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -16889,7 +16889,7 @@ public Builder setOutlierDetection( * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -16958,7 +16958,7 @@ public Builder mergeOutlierDetection(com.google.cloud.compute.v1.OutlierDetectio * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -17018,7 +17018,7 @@ public Builder clearOutlierDetection() { * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -17073,7 +17073,7 @@ public com.google.cloud.compute.v1.OutlierDetection.Builder getOutlierDetectionB * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -17132,7 +17132,7 @@ public com.google.cloud.compute.v1.OutlierDetectionOrBuilder getOutlierDetection * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java index 5bb95bd2f18d..06d94b32f3b7 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceOrBuilder.java @@ -338,7 +338,7 @@ public interface BackendServiceOrBuilder * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -366,7 +366,7 @@ public interface BackendServiceOrBuilder * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -394,7 +394,7 @@ public interface BackendServiceOrBuilder * * This field is applicable to either: * - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -1674,7 +1674,7 @@ com.google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig getL * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -1737,7 +1737,7 @@ com.google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig getL * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -1800,7 +1800,7 @@ com.google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig getL * metrics to use for computing the weights are specified via thecustomMetrics field. * * This field is applicable to either: - * - A regional backend service with the service_protocol set to HTTP, + * - A regional backend service with the service protocol set to HTTP, * HTTPS, HTTP2 or H2C, and load_balancing_scheme set to * INTERNAL_MANAGED. * - A global backend service with the @@ -2261,7 +2261,7 @@ java.lang.String getMetadatasOrDefault( * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -2313,7 +2313,7 @@ java.lang.String getMetadatasOrDefault( * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * @@ -2365,7 +2365,7 @@ java.lang.String getMetadatasOrDefault( * - A global backend service with the loadBalancingScheme set to * INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. * - A regional backend - * service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + * service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not * supported for Serverless NEGs. * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResource.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResource.java index 5b29d66fc508..87a8387cc7ed 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResource.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResource.java @@ -73,6 +73,131 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int INSTANT_SNAPSHOT_GROUP_PARAMETERS_FIELD_NUMBER = 17051623; + private com.google.cloud.compute.v1.InstantSnapshotGroupParameters + instantSnapshotGroupParameters_; + + /** + * + * + *
+   * The parameters for the instant snapshot group.
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + * + * @return Whether the instantSnapshotGroupParameters field is set. + */ + @java.lang.Override + public boolean hasInstantSnapshotGroupParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The parameters for the instant snapshot group.
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + * + * @return The instantSnapshotGroupParameters. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupParameters + getInstantSnapshotGroupParameters() { + return instantSnapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupParameters.getDefaultInstance() + : instantSnapshotGroupParameters_; + } + + /** + * + * + *
+   * The parameters for the instant snapshot group.
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder + getInstantSnapshotGroupParametersOrBuilder() { + return instantSnapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupParameters.getDefaultInstance() + : instantSnapshotGroupParameters_; + } + + public static final int SNAPSHOT_GROUP_PARAMETERS_FIELD_NUMBER = 42252485; + private com.google.cloud.compute.v1.SnapshotGroupParameters snapshotGroupParameters_; + + /** + * + * + *
+   * The parameters for the snapshot group. The usage of snapshot group feature
+   * is restricted.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + * + * @return Whether the snapshotGroupParameters field is set. + */ + @java.lang.Override + public boolean hasSnapshotGroupParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The parameters for the snapshot group. The usage of snapshot group feature
+   * is restricted.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + * + * @return The snapshotGroupParameters. + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotGroupParameters getSnapshotGroupParameters() { + return snapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance() + : snapshotGroupParameters_; + } + + /** + * + * + *
+   * The parameters for the snapshot group. The usage of snapshot group feature
+   * is restricted.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder + getSnapshotGroupParametersOrBuilder() { + return snapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance() + : snapshotGroupParameters_; + } + public static final int SOURCE_CONSISTENCY_GROUP_POLICY_FIELD_NUMBER = 19616093; @SuppressWarnings("serial") @@ -102,7 +227,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSourceConsistencyGroupPolicy() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -190,9 +315,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(17051623, getInstantSnapshotGroupParameters()); + } + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString( output, 19616093, sourceConsistencyGroupPolicy_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(42252485, getSnapshotGroupParameters()); + } getUnknownFields().writeTo(output); } @@ -203,10 +334,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17051623, getInstantSnapshotGroupParameters()); + } + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize( 19616093, sourceConsistencyGroupPolicy_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 42252485, getSnapshotGroupParameters()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -223,6 +364,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.compute.v1.BulkInsertDiskResource other = (com.google.cloud.compute.v1.BulkInsertDiskResource) obj; + if (hasInstantSnapshotGroupParameters() != other.hasInstantSnapshotGroupParameters()) + return false; + if (hasInstantSnapshotGroupParameters()) { + if (!getInstantSnapshotGroupParameters().equals(other.getInstantSnapshotGroupParameters())) + return false; + } + if (hasSnapshotGroupParameters() != other.hasSnapshotGroupParameters()) return false; + if (hasSnapshotGroupParameters()) { + if (!getSnapshotGroupParameters().equals(other.getSnapshotGroupParameters())) return false; + } if (hasSourceConsistencyGroupPolicy() != other.hasSourceConsistencyGroupPolicy()) return false; if (hasSourceConsistencyGroupPolicy()) { if (!getSourceConsistencyGroupPolicy().equals(other.getSourceConsistencyGroupPolicy())) @@ -239,6 +390,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInstantSnapshotGroupParameters()) { + hash = (37 * hash) + INSTANT_SNAPSHOT_GROUP_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroupParameters().hashCode(); + } + if (hasSnapshotGroupParameters()) { + hash = (37 * hash) + SNAPSHOT_GROUP_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotGroupParameters().hashCode(); + } if (hasSourceConsistencyGroupPolicy()) { hash = (37 * hash) + SOURCE_CONSISTENCY_GROUP_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSourceConsistencyGroupPolicy().hashCode(); @@ -375,16 +534,36 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.compute.v1.BulkInsertDiskResource.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInstantSnapshotGroupParametersFieldBuilder(); + internalGetSnapshotGroupParametersFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + instantSnapshotGroupParameters_ = null; + if (instantSnapshotGroupParametersBuilder_ != null) { + instantSnapshotGroupParametersBuilder_.dispose(); + instantSnapshotGroupParametersBuilder_ = null; + } + snapshotGroupParameters_ = null; + if (snapshotGroupParametersBuilder_ != null) { + snapshotGroupParametersBuilder_.dispose(); + snapshotGroupParametersBuilder_ = null; + } sourceConsistencyGroupPolicy_ = ""; return this; } @@ -424,9 +603,23 @@ private void buildPartial0(com.google.cloud.compute.v1.BulkInsertDiskResource re int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.sourceConsistencyGroupPolicy_ = sourceConsistencyGroupPolicy_; + result.instantSnapshotGroupParameters_ = + instantSnapshotGroupParametersBuilder_ == null + ? instantSnapshotGroupParameters_ + : instantSnapshotGroupParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snapshotGroupParameters_ = + snapshotGroupParametersBuilder_ == null + ? snapshotGroupParameters_ + : snapshotGroupParametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceConsistencyGroupPolicy_ = sourceConsistencyGroupPolicy_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -443,9 +636,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.compute.v1.BulkInsertDiskResource other) { if (other == com.google.cloud.compute.v1.BulkInsertDiskResource.getDefaultInstance()) return this; + if (other.hasInstantSnapshotGroupParameters()) { + mergeInstantSnapshotGroupParameters(other.getInstantSnapshotGroupParameters()); + } + if (other.hasSnapshotGroupParameters()) { + mergeSnapshotGroupParameters(other.getSnapshotGroupParameters()); + } if (other.hasSourceConsistencyGroupPolicy()) { sourceConsistencyGroupPolicy_ = other.sourceConsistencyGroupPolicy_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -474,12 +673,28 @@ public Builder mergeFrom( case 0: done = true; break; + case 136412986: + { + input.readMessage( + internalGetInstantSnapshotGroupParametersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 136412986 case 156928746: { sourceConsistencyGroupPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 156928746 + case 338019882: + { + input.readMessage( + internalGetSnapshotGroupParametersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 338019882 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -499,6 +714,454 @@ public Builder mergeFrom( private int bitField0_; + private com.google.cloud.compute.v1.InstantSnapshotGroupParameters + instantSnapshotGroupParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupParameters, + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder> + instantSnapshotGroupParametersBuilder_; + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + * + * @return Whether the instantSnapshotGroupParameters field is set. + */ + public boolean hasInstantSnapshotGroupParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + * + * @return The instantSnapshotGroupParameters. + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupParameters + getInstantSnapshotGroupParameters() { + if (instantSnapshotGroupParametersBuilder_ == null) { + return instantSnapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupParameters.getDefaultInstance() + : instantSnapshotGroupParameters_; + } else { + return instantSnapshotGroupParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + public Builder setInstantSnapshotGroupParameters( + com.google.cloud.compute.v1.InstantSnapshotGroupParameters value) { + if (instantSnapshotGroupParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroupParameters_ = value; + } else { + instantSnapshotGroupParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + public Builder setInstantSnapshotGroupParameters( + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder builderForValue) { + if (instantSnapshotGroupParametersBuilder_ == null) { + instantSnapshotGroupParameters_ = builderForValue.build(); + } else { + instantSnapshotGroupParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + public Builder mergeInstantSnapshotGroupParameters( + com.google.cloud.compute.v1.InstantSnapshotGroupParameters value) { + if (instantSnapshotGroupParametersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && instantSnapshotGroupParameters_ != null + && instantSnapshotGroupParameters_ + != com.google.cloud.compute.v1.InstantSnapshotGroupParameters + .getDefaultInstance()) { + getInstantSnapshotGroupParametersBuilder().mergeFrom(value); + } else { + instantSnapshotGroupParameters_ = value; + } + } else { + instantSnapshotGroupParametersBuilder_.mergeFrom(value); + } + if (instantSnapshotGroupParameters_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + public Builder clearInstantSnapshotGroupParameters() { + bitField0_ = (bitField0_ & ~0x00000001); + instantSnapshotGroupParameters_ = null; + if (instantSnapshotGroupParametersBuilder_ != null) { + instantSnapshotGroupParametersBuilder_.dispose(); + instantSnapshotGroupParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder + getInstantSnapshotGroupParametersBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetInstantSnapshotGroupParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder + getInstantSnapshotGroupParametersOrBuilder() { + if (instantSnapshotGroupParametersBuilder_ != null) { + return instantSnapshotGroupParametersBuilder_.getMessageOrBuilder(); + } else { + return instantSnapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupParameters.getDefaultInstance() + : instantSnapshotGroupParameters_; + } + } + + /** + * + * + *
+     * The parameters for the instant snapshot group.
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupParameters, + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder> + internalGetInstantSnapshotGroupParametersFieldBuilder() { + if (instantSnapshotGroupParametersBuilder_ == null) { + instantSnapshotGroupParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupParameters, + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder>( + getInstantSnapshotGroupParameters(), getParentForChildren(), isClean()); + instantSnapshotGroupParameters_ = null; + } + return instantSnapshotGroupParametersBuilder_; + } + + private com.google.cloud.compute.v1.SnapshotGroupParameters snapshotGroupParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotGroupParameters, + com.google.cloud.compute.v1.SnapshotGroupParameters.Builder, + com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder> + snapshotGroupParametersBuilder_; + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + * + * @return Whether the snapshotGroupParameters field is set. + */ + public boolean hasSnapshotGroupParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + * + * @return The snapshotGroupParameters. + */ + public com.google.cloud.compute.v1.SnapshotGroupParameters getSnapshotGroupParameters() { + if (snapshotGroupParametersBuilder_ == null) { + return snapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance() + : snapshotGroupParameters_; + } else { + return snapshotGroupParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + public Builder setSnapshotGroupParameters( + com.google.cloud.compute.v1.SnapshotGroupParameters value) { + if (snapshotGroupParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotGroupParameters_ = value; + } else { + snapshotGroupParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + public Builder setSnapshotGroupParameters( + com.google.cloud.compute.v1.SnapshotGroupParameters.Builder builderForValue) { + if (snapshotGroupParametersBuilder_ == null) { + snapshotGroupParameters_ = builderForValue.build(); + } else { + snapshotGroupParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + public Builder mergeSnapshotGroupParameters( + com.google.cloud.compute.v1.SnapshotGroupParameters value) { + if (snapshotGroupParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && snapshotGroupParameters_ != null + && snapshotGroupParameters_ + != com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance()) { + getSnapshotGroupParametersBuilder().mergeFrom(value); + } else { + snapshotGroupParameters_ = value; + } + } else { + snapshotGroupParametersBuilder_.mergeFrom(value); + } + if (snapshotGroupParameters_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + public Builder clearSnapshotGroupParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + snapshotGroupParameters_ = null; + if (snapshotGroupParametersBuilder_ != null) { + snapshotGroupParametersBuilder_.dispose(); + snapshotGroupParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + public com.google.cloud.compute.v1.SnapshotGroupParameters.Builder + getSnapshotGroupParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSnapshotGroupParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + public com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder + getSnapshotGroupParametersOrBuilder() { + if (snapshotGroupParametersBuilder_ != null) { + return snapshotGroupParametersBuilder_.getMessageOrBuilder(); + } else { + return snapshotGroupParameters_ == null + ? com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance() + : snapshotGroupParameters_; + } + } + + /** + * + * + *
+     * The parameters for the snapshot group. The usage of snapshot group feature
+     * is restricted.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotGroupParameters, + com.google.cloud.compute.v1.SnapshotGroupParameters.Builder, + com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder> + internalGetSnapshotGroupParametersFieldBuilder() { + if (snapshotGroupParametersBuilder_ == null) { + snapshotGroupParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotGroupParameters, + com.google.cloud.compute.v1.SnapshotGroupParameters.Builder, + com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder>( + getSnapshotGroupParameters(), getParentForChildren(), isClean()); + snapshotGroupParameters_ = null; + } + return snapshotGroupParametersBuilder_; + } + private java.lang.Object sourceConsistencyGroupPolicy_ = ""; /** @@ -524,7 +1187,7 @@ public Builder mergeFrom( * @return Whether the sourceConsistencyGroupPolicy field is set. */ public boolean hasSourceConsistencyGroupPolicy() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -623,7 +1286,7 @@ public Builder setSourceConsistencyGroupPolicy(java.lang.String value) { throw new NullPointerException(); } sourceConsistencyGroupPolicy_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -652,7 +1315,7 @@ public Builder setSourceConsistencyGroupPolicy(java.lang.String value) { */ public Builder clearSourceConsistencyGroupPolicy() { sourceConsistencyGroupPolicy_ = getDefaultInstance().getSourceConsistencyGroupPolicy(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -686,7 +1349,7 @@ public Builder setSourceConsistencyGroupPolicyBytes(com.google.protobuf.ByteStri } checkByteStringIsUtf8(value); sourceConsistencyGroupPolicy_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResourceOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResourceOrBuilder.java index d51b94cbfd14..0a6bf96ee0db 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResourceOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertDiskResourceOrBuilder.java @@ -26,6 +26,97 @@ public interface BulkInsertDiskResourceOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BulkInsertDiskResource) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The parameters for the instant snapshot group.
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + * + * @return Whether the instantSnapshotGroupParameters field is set. + */ + boolean hasInstantSnapshotGroupParameters(); + + /** + * + * + *
+   * The parameters for the instant snapshot group.
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + * + * @return The instantSnapshotGroupParameters. + */ + com.google.cloud.compute.v1.InstantSnapshotGroupParameters getInstantSnapshotGroupParameters(); + + /** + * + * + *
+   * The parameters for the instant snapshot group.
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + * + */ + com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder + getInstantSnapshotGroupParametersOrBuilder(); + + /** + * + * + *
+   * The parameters for the snapshot group. The usage of snapshot group feature
+   * is restricted.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + * + * @return Whether the snapshotGroupParameters field is set. + */ + boolean hasSnapshotGroupParameters(); + + /** + * + * + *
+   * The parameters for the snapshot group. The usage of snapshot group feature
+   * is restricted.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + * + * @return The snapshotGroupParameters. + */ + com.google.cloud.compute.v1.SnapshotGroupParameters getSnapshotGroupParameters(); + + /** + * + * + *
+   * The parameters for the snapshot group. The usage of snapshot group feature
+   * is restricted.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485; + * + */ + com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder + getSnapshotGroupParametersOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequest.java new file mode 100644 index 000000000000..46b0b14fc060 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequest.java @@ -0,0 +1,1598 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstanceGroupManagerResizeRequests.Cancel. See the method description for details.
+ * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} + */ +@com.google.protobuf.Generated +public final class CancelRegionInstanceGroupManagerResizeRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CancelRegionInstanceGroupManagerResizeRequestRequest"); + } + + // Use CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder() to construct. + private CancelRegionInstanceGroupManagerResizeRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CancelRegionInstanceGroupManagerResizeRequestRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + resizeRequest_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.class, + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int RESIZE_REQUEST_FIELD_NUMBER = 216941060; + + @SuppressWarnings("serial") + private volatile java.lang.Object resizeRequest_ = ""; + + /** + * + * + *
+   * The name of the resize request to cancel.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + @java.lang.Override + public java.lang.String getResizeRequest() { + java.lang.Object ref = resizeRequest_; + 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(); + resizeRequest_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the resize request to cancel.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResizeRequestBytes() { + java.lang.Object ref = resizeRequest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resizeRequest_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resizeRequest_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 216941060, resizeRequest_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 249363395, instanceGroupManager_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resizeRequest_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(216941060, resizeRequest_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(249363395, instanceGroupManager_); + } + 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.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest other = + (com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getResizeRequest().equals(other.getResizeRequest())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + RESIZE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getResizeRequest().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + 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.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstanceGroupManagerResizeRequests.Cancel. See the method description for details.
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + .class, + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + resizeRequest_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + build() { + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + buildPartial() { + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest result = + new com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resizeRequest_ = resizeRequest_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest other) { + if (other + == com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getResizeRequest().isEmpty()) { + resizeRequest_ = other.resizeRequest_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1735528482: + { + resizeRequest_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1735528482 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + private java.lang.Object resizeRequest_ = ""; + + /** + * + * + *
+     * The name of the resize request to cancel.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + public java.lang.String getResizeRequest() { + java.lang.Object ref = resizeRequest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resizeRequest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the resize request to cancel.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + public com.google.protobuf.ByteString getResizeRequestBytes() { + java.lang.Object ref = resizeRequest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resizeRequest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the resize request to cancel.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resizeRequest to set. + * @return This builder for chaining. + */ + public Builder setResizeRequest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resizeRequest_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resize request to cancel.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResizeRequest() { + resizeRequest_ = getDefaultInstance().getResizeRequest(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resize request to cancel.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resizeRequest to set. + * @return This builder for chaining. + */ + public Builder setResizeRequestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resizeRequest_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + private static final com.google.cloud.compute.v1 + .CancelRegionInstanceGroupManagerResizeRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest(); + } + + public static com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + CancelRegionInstanceGroupManagerResizeRequestRequest> + PARSER = + new com.google.protobuf.AbstractParser< + CancelRegionInstanceGroupManagerResizeRequestRequest>() { + @java.lang.Override + public CancelRegionInstanceGroupManagerResizeRequestRequest 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.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java new file mode 100644 index 000000000000..9233f282d3e4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface CancelRegionInstanceGroupManagerResizeRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The name of the resize request to cancel.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + java.lang.String getResizeRequest(); + + /** + * + * + *
+   * The name of the resize request to cancel.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + com.google.protobuf.ByteString getResizeRequestBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java index 909912b17a7a..3346385c7dcb 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java @@ -1896,6 +1896,62 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int PARAMS_FIELD_NUMBER = 78313862; + private com.google.cloud.compute.v1.CommitmentParams params_; + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + * + * @return The params. + */ + @java.lang.Override + public com.google.cloud.compute.v1.CommitmentParams getParams() { + return params_ == null + ? com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance() + : params_; + } + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + @java.lang.Override + public com.google.cloud.compute.v1.CommitmentParamsOrBuilder getParamsOrBuilder() { + return params_ == null + ? com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance() + : params_; + } + public static final int PLAN_FIELD_NUMBER = 3443497; @SuppressWarnings("serial") @@ -1920,7 +1976,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasPlan() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -2002,7 +2058,7 @@ public com.google.protobuf.ByteString getPlanBytes() { */ @java.lang.Override public boolean hasRegion() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -2188,7 +2244,7 @@ public com.google.cloud.compute.v1.ReservationOrBuilder getReservationsOrBuilder */ @java.lang.Override public boolean hasResourceStatus() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -2332,7 +2388,7 @@ public com.google.cloud.compute.v1.ResourceCommitmentOrBuilder getResourcesOrBui */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -2403,7 +2459,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasSplitSourceCommitment() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -2477,7 +2533,7 @@ public com.google.protobuf.ByteString getSplitSourceCommitmentBytes() { */ @java.lang.Override public boolean hasStartTimestamp() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -2551,7 +2607,7 @@ public com.google.protobuf.ByteString getStartTimestampBytes() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -2626,7 +2682,7 @@ public com.google.protobuf.ByteString getStatusBytes() { */ @java.lang.Override public boolean hasStatusMessage() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -2706,7 +2762,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { */ @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -2802,10 +2858,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3443497, plan_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3575610, type_); } if (((bitField0_ & 0x00000004) != 0)) { @@ -2814,16 +2870,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 50511102, category_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(78313862, getParams()); + } + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 83645817, startTimestamp_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(164412965, resources_.get(i)); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 181260274, status_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -2833,16 +2892,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString( output, 188093761, mergeSourceCommitments_.getRaw(i)); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(249429315, getResourceStatus()); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 297428154, statusMessage_); } for (int i = 0; i < reservations_.size(); i++) { output.writeMessage(399717927, reservations_.get(i)); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 402611156, splitSourceCommitment_); } if (((bitField0_ & 0x00000010) != 0)) { @@ -2851,7 +2910,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(437955148, getLicenseResource()); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); } if (((bitField0_ & 0x00000020) != 0)) { @@ -2882,10 +2941,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3443497, plan_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3575610, type_); } if (((bitField0_ & 0x00000004) != 0)) { @@ -2894,17 +2953,20 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(50511102, category_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(78313862, getParams()); + } + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(83645817, startTimestamp_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(164412965, resources_.get(i)); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(181260274, status_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -2919,18 +2981,18 @@ public int getSerializedSize() { size += dataSize; size += 5 * getMergeSourceCommitmentsList().size(); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(249429315, getResourceStatus()); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(297428154, statusMessage_); } for (int i = 0; i < reservations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(399717927, reservations_.get(i)); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(402611156, splitSourceCommitment_); } @@ -2941,7 +3003,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(437955148, getLicenseResource()); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); } if (((bitField0_ & 0x00000020) != 0)) { @@ -3016,6 +3078,10 @@ public boolean equals(final java.lang.Object obj) { if (hasName()) { if (!getName().equals(other.getName())) return false; } + if (hasParams() != other.hasParams()) return false; + if (hasParams()) { + if (!getParams().equals(other.getParams())) return false; + } if (hasPlan() != other.hasPlan()) return false; if (hasPlan()) { if (!getPlan().equals(other.getPlan())) return false; @@ -3113,6 +3179,10 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } + if (hasParams()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParams().hashCode(); + } if (hasPlan()) { hash = (37 * hash) + PLAN_FIELD_NUMBER; hash = (53 * hash) + getPlan().hashCode(); @@ -3305,6 +3375,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetLicenseResourceFieldBuilder(); + internalGetParamsFieldBuilder(); internalGetReservationsFieldBuilder(); internalGetResourceStatusFieldBuilder(); internalGetResourcesFieldBuilder(); @@ -3331,6 +3402,11 @@ public Builder clear() { } mergeSourceCommitments_ = com.google.protobuf.LazyStringArrayList.emptyList(); name_ = ""; + params_ = null; + if (paramsBuilder_ != null) { + paramsBuilder_.dispose(); + paramsBuilder_ = null; + } plan_ = ""; region_ = ""; if (reservationsBuilder_ == null) { @@ -3339,7 +3415,7 @@ public Builder clear() { reservations_ = null; reservationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); resourceStatus_ = null; if (resourceStatusBuilder_ != null) { resourceStatusBuilder_.dispose(); @@ -3351,7 +3427,7 @@ public Builder clear() { resources_ = null; resourcesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); selfLink_ = ""; splitSourceCommitment_ = ""; startTimestamp_ = ""; @@ -3395,18 +3471,18 @@ public com.google.cloud.compute.v1.Commitment buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Commitment result) { if (reservationsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { reservations_ = java.util.Collections.unmodifiableList(reservations_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.reservations_ = reservations_; } else { result.reservations_ = reservationsBuilder_.build(); } if (resourcesBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); } result.resources_ = resources_; } else { @@ -3467,42 +3543,46 @@ private void buildPartial0(com.google.cloud.compute.v1.Commitment result) { to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.plan_ = plan_; + result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.region_ = region_; + result.plan_ = plan_; to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.resourceStatus_ = - resourceStatusBuilder_ == null ? resourceStatus_ : resourceStatusBuilder_.build(); + if (((from_bitField0_ & 0x00004000) != 0)) { + result.region_ = region_; to_bitField0_ |= 0x00001000; } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.selfLink_ = selfLink_; + if (((from_bitField0_ & 0x00010000) != 0)) { + result.resourceStatus_ = + resourceStatusBuilder_ == null ? resourceStatus_ : resourceStatusBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.splitSourceCommitment_ = splitSourceCommitment_; + result.selfLink_ = selfLink_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.startTimestamp_ = startTimestamp_; + result.splitSourceCommitment_ = splitSourceCommitment_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.status_ = status_; + result.startTimestamp_ = startTimestamp_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.statusMessage_ = statusMessage_; + result.status_ = status_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.type_ = type_; + result.statusMessage_ = statusMessage_; to_bitField0_ |= 0x00040000; } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00080000; + } result.bitField0_ |= to_bitField0_; } @@ -3582,21 +3662,24 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Commitment other) { bitField0_ |= 0x00000800; onChanged(); } + if (other.hasParams()) { + mergeParams(other.getParams()); + } if (other.hasPlan()) { plan_ = other.plan_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasRegion()) { region_ = other.region_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (reservationsBuilder_ == null) { if (!other.reservations_.isEmpty()) { if (reservations_.isEmpty()) { reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureReservationsIsMutable(); reservations_.addAll(other.reservations_); @@ -3609,7 +3692,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Commitment other) { reservationsBuilder_.dispose(); reservationsBuilder_ = null; reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); reservationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetReservationsFieldBuilder() @@ -3626,7 +3709,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Commitment other) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); @@ -3639,7 +3722,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Commitment other) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); resourcesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetResourcesFieldBuilder() @@ -3651,32 +3734,32 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Commitment other) { } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasSplitSourceCommitment()) { splitSourceCommitment_ = other.splitSourceCommitment_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasStartTimestamp()) { startTimestamp_ = other.startTimestamp_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasStatus()) { status_ = other.status_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasStatusMessage()) { statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.hasType()) { type_ = other.type_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3726,13 +3809,13 @@ public Builder mergeFrom( case 27547978: { plan_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 27547978 case 28604882: { type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 28604882 case 244202930: @@ -3747,16 +3830,22 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 404088818 + case 626510898: + { + input.readMessage(internalGetParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 626510898 case 669166538: { startTimestamp_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 669166538 case 1111570338: { region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 1111570338 case 1315303722: @@ -3775,7 +3864,7 @@ public Builder mergeFrom( case 1450082194: { status_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 1450082194 case 1454166818: @@ -3795,13 +3884,13 @@ public Builder mergeFrom( { input.readMessage( internalGetResourceStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 1995434522 case -1915542062: { statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case -1915542062 case -1097223878: @@ -3820,7 +3909,7 @@ public Builder mergeFrom( case -1074078046: { splitSourceCommitment_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case -1074078046 case -911466526: @@ -3839,7 +3928,7 @@ public Builder mergeFrom( case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case -645248918 case -550193774: @@ -5596,6 +5685,209 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.compute.v1.CommitmentParams params_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.CommitmentParams, + com.google.cloud.compute.v1.CommitmentParams.Builder, + com.google.cloud.compute.v1.CommitmentParamsOrBuilder> + paramsBuilder_; + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + * + * @return Whether the params field is set. + */ + public boolean hasParams() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + * + * @return The params. + */ + public com.google.cloud.compute.v1.CommitmentParams getParams() { + if (paramsBuilder_ == null) { + return params_ == null + ? com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance() + : params_; + } else { + return paramsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + public Builder setParams(com.google.cloud.compute.v1.CommitmentParams value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + params_ = value; + } else { + paramsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + public Builder setParams(com.google.cloud.compute.v1.CommitmentParams.Builder builderForValue) { + if (paramsBuilder_ == null) { + params_ = builderForValue.build(); + } else { + paramsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + public Builder mergeParams(com.google.cloud.compute.v1.CommitmentParams value) { + if (paramsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && params_ != null + && params_ != com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance()) { + getParamsBuilder().mergeFrom(value); + } else { + params_ = value; + } + } else { + paramsBuilder_.mergeFrom(value); + } + if (params_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + public Builder clearParams() { + bitField0_ = (bitField0_ & ~0x00001000); + params_ = null; + if (paramsBuilder_ != null) { + paramsBuilder_.dispose(); + paramsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + public com.google.cloud.compute.v1.CommitmentParams.Builder getParamsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + public com.google.cloud.compute.v1.CommitmentParamsOrBuilder getParamsOrBuilder() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilder(); + } else { + return params_ == null + ? com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance() + : params_; + } + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.CommitmentParams, + com.google.cloud.compute.v1.CommitmentParams.Builder, + com.google.cloud.compute.v1.CommitmentParamsOrBuilder> + internalGetParamsFieldBuilder() { + if (paramsBuilder_ == null) { + paramsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.CommitmentParams, + com.google.cloud.compute.v1.CommitmentParams.Builder, + com.google.cloud.compute.v1.CommitmentParamsOrBuilder>( + getParams(), getParentForChildren(), isClean()); + params_ = null; + } + return paramsBuilder_; + } + private java.lang.Object plan_ = ""; /** @@ -5616,7 +5908,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the plan field is set. */ public boolean hasPlan() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5700,7 +5992,7 @@ public Builder setPlan(java.lang.String value) { throw new NullPointerException(); } plan_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5724,7 +6016,7 @@ public Builder setPlan(java.lang.String value) { */ public Builder clearPlan() { plan_ = getDefaultInstance().getPlan(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -5753,7 +6045,7 @@ public Builder setPlanBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); plan_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5773,7 +6065,7 @@ public Builder setPlanBytes(com.google.protobuf.ByteString value) { * @return Whether the region field is set. */ public boolean hasRegion() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5842,7 +6134,7 @@ public Builder setRegion(java.lang.String value) { throw new NullPointerException(); } region_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5861,7 +6153,7 @@ public Builder setRegion(java.lang.String value) { */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -5885,7 +6177,7 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); region_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5894,10 +6186,10 @@ public Builder setRegionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureReservationsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { reservations_ = new java.util.ArrayList(reservations_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -6211,7 +6503,7 @@ public Builder addAllReservations( public Builder clearReservations() { if (reservationsBuilder_ == null) { reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { reservationsBuilder_.clear(); @@ -6396,7 +6688,7 @@ public com.google.cloud.compute.v1.Reservation.Builder addReservationsBuilder(in com.google.cloud.compute.v1.Reservation, com.google.cloud.compute.v1.Reservation.Builder, com.google.cloud.compute.v1.ReservationOrBuilder>( - reservations_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + reservations_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); reservations_ = null; } return reservationsBuilder_; @@ -6422,7 +6714,7 @@ public com.google.cloud.compute.v1.Reservation.Builder addReservationsBuilder(in * @return Whether the resourceStatus field is set. */ public boolean hasResourceStatus() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6466,7 +6758,7 @@ public Builder setResourceStatus(com.google.cloud.compute.v1.CommitmentResourceS } else { resourceStatusBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6488,7 +6780,7 @@ public Builder setResourceStatus( } else { resourceStatusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6505,7 +6797,7 @@ public Builder setResourceStatus( */ public Builder mergeResourceStatus(com.google.cloud.compute.v1.CommitmentResourceStatus value) { if (resourceStatusBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && resourceStatus_ != null && resourceStatus_ != com.google.cloud.compute.v1.CommitmentResourceStatus.getDefaultInstance()) { @@ -6517,7 +6809,7 @@ public Builder mergeResourceStatus(com.google.cloud.compute.v1.CommitmentResourc resourceStatusBuilder_.mergeFrom(value); } if (resourceStatus_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6534,7 +6826,7 @@ public Builder mergeResourceStatus(com.google.cloud.compute.v1.CommitmentResourc * */ public Builder clearResourceStatus() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); resourceStatus_ = null; if (resourceStatusBuilder_ != null) { resourceStatusBuilder_.dispose(); @@ -6555,7 +6847,7 @@ public Builder clearResourceStatus() { * */ public com.google.cloud.compute.v1.CommitmentResourceStatus.Builder getResourceStatusBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetResourceStatusFieldBuilder().getBuilder(); } @@ -6612,10 +6904,10 @@ public com.google.cloud.compute.v1.CommitmentResourceStatus.Builder getResourceS java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { + if (!((bitField0_ & 0x00020000) != 0)) { resources_ = new java.util.ArrayList(resources_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } @@ -6863,7 +7155,7 @@ public Builder addAllResources( public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { resourcesBuilder_.clear(); @@ -7007,7 +7299,7 @@ public com.google.cloud.compute.v1.ResourceCommitment.Builder addResourcesBuilde com.google.cloud.compute.v1.ResourceCommitment, com.google.cloud.compute.v1.ResourceCommitment.Builder, com.google.cloud.compute.v1.ResourceCommitmentOrBuilder>( - resources_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean()); + resources_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -7027,7 +7319,7 @@ public com.google.cloud.compute.v1.ResourceCommitment.Builder addResourcesBuilde * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -7093,7 +7385,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7111,7 +7403,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -7134,7 +7426,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7155,7 +7447,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the splitSourceCommitment field is set. */ public boolean hasSplitSourceCommitment() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -7227,7 +7519,7 @@ public Builder setSplitSourceCommitment(java.lang.String value) { throw new NullPointerException(); } splitSourceCommitment_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7247,7 +7539,7 @@ public Builder setSplitSourceCommitment(java.lang.String value) { */ public Builder clearSplitSourceCommitment() { splitSourceCommitment_ = getDefaultInstance().getSplitSourceCommitment(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -7272,7 +7564,7 @@ public Builder setSplitSourceCommitmentBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); splitSourceCommitment_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7292,7 +7584,7 @@ public Builder setSplitSourceCommitmentBytes(com.google.protobuf.ByteString valu * @return Whether the startTimestamp field is set. */ public boolean hasStartTimestamp() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -7361,7 +7653,7 @@ public Builder setStartTimestamp(java.lang.String value) { throw new NullPointerException(); } startTimestamp_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7380,7 +7672,7 @@ public Builder setStartTimestamp(java.lang.String value) { */ public Builder clearStartTimestamp() { startTimestamp_ = getDefaultInstance().getStartTimestamp(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -7404,7 +7696,7 @@ public Builder setStartTimestampBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); startTimestamp_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7426,7 +7718,7 @@ public Builder setStartTimestampBytes(com.google.protobuf.ByteString value) { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -7501,7 +7793,7 @@ public Builder setStatus(java.lang.String value) { throw new NullPointerException(); } status_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7522,7 +7814,7 @@ public Builder setStatus(java.lang.String value) { */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -7548,7 +7840,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); status_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7567,7 +7859,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the statusMessage field is set. */ public boolean hasStatusMessage() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -7633,7 +7925,7 @@ public Builder setStatusMessage(java.lang.String value) { throw new NullPointerException(); } statusMessage_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7651,7 +7943,7 @@ public Builder setStatusMessage(java.lang.String value) { */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -7674,7 +7966,7 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); statusMessage_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7704,7 +7996,7 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * @return Whether the type field is set. */ public boolean hasType() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -7803,7 +8095,7 @@ public Builder setType(java.lang.String value) { throw new NullPointerException(); } type_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7832,7 +8124,7 @@ public Builder setType(java.lang.String value) { */ public Builder clearType() { type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -7866,7 +8158,7 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); type_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentOrBuilder.java index 6733453b4e3a..712ee661475b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentOrBuilder.java @@ -554,6 +554,46 @@ public interface CommitmentOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + * + * @return Whether the params field is set. + */ + boolean hasParams(); + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + * + * @return The params. + */ + com.google.cloud.compute.v1.CommitmentParams getParams(); + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.CommitmentParams params = 78313862; + */ + com.google.cloud.compute.v1.CommitmentParamsOrBuilder getParamsOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParams.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParams.java new file mode 100644 index 000000000000..c80038aab023 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParams.java @@ -0,0 +1,838 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Additional commitment params.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.CommitmentParams} + */ +@com.google.protobuf.Generated +public final class CommitmentParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.CommitmentParams) + CommitmentParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CommitmentParams"); + } + + // Use CommitmentParams.newBuilder() to construct. + private CommitmentParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CommitmentParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CommitmentParams_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 377671164: + return internalGetResourceManagerTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CommitmentParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CommitmentParams.class, + com.google.cloud.compute.v1.CommitmentParams.Builder.class); + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 377671164; + + private static final class ResourceManagerTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CommitmentParams_ResourceManagerTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().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.GeneratedMessage.serializeStringMapTo( + output, + internalGetResourceManagerTags(), + ResourceManagerTagsDefaultEntryHolder.defaultEntry, + 377671164); + 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 : + internalGetResourceManagerTags().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceManagerTags__ = + ResourceManagerTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 377671164, resourceManagerTags__); + } + 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.compute.v1.CommitmentParams)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.CommitmentParams other = + (com.google.cloud.compute.v1.CommitmentParams) obj; + + if (!internalGetResourceManagerTags().equals(other.internalGetResourceManagerTags())) + 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 (!internalGetResourceManagerTags().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CommitmentParams 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.compute.v1.CommitmentParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CommitmentParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.CommitmentParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Additional commitment params.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.CommitmentParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.CommitmentParams) + com.google.cloud.compute.v1.CommitmentParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CommitmentParams_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 377671164: + return internalGetResourceManagerTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 377671164: + return internalGetMutableResourceManagerTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CommitmentParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CommitmentParams.class, + com.google.cloud.compute.v1.CommitmentParams.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.CommitmentParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableResourceManagerTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CommitmentParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CommitmentParams getDefaultInstanceForType() { + return com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.CommitmentParams build() { + com.google.cloud.compute.v1.CommitmentParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CommitmentParams buildPartial() { + com.google.cloud.compute.v1.CommitmentParams result = + new com.google.cloud.compute.v1.CommitmentParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.CommitmentParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceManagerTags_ = internalGetResourceManagerTags(); + result.resourceManagerTags_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.CommitmentParams) { + return mergeFrom((com.google.cloud.compute.v1.CommitmentParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.CommitmentParams other) { + if (other == com.google.cloud.compute.v1.CommitmentParams.getDefaultInstance()) return this; + internalGetMutableResourceManagerTags().mergeFrom(other.internalGetResourceManagerTags()); + 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 -1273597982: + { + com.google.protobuf.MapEntry + resourceManagerTags__ = + input.readMessage( + ResourceManagerTagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceManagerTags() + .getMutableMap() + .put(resourceManagerTags__.getKey(), resourceManagerTags__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case -1273597982 + 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 resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceManagerTags() { + if (resourceManagerTags_ == null) { + resourceManagerTags_ = + com.google.protobuf.MapField.newMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + if (!resourceManagerTags_.isMutable()) { + resourceManagerTags_ = resourceManagerTags_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableResourceManagerTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + public Builder removeResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceManagerTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceManagerTags() { + bitField0_ |= 0x00000001; + return internalGetMutableResourceManagerTags().getMutableMap(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + public Builder putResourceManagerTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourceManagerTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + public Builder putAllResourceManagerTags( + java.util.Map values) { + internalGetMutableResourceManagerTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.CommitmentParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.CommitmentParams) + private static final com.google.cloud.compute.v1.CommitmentParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.CommitmentParams(); + } + + public static com.google.cloud.compute.v1.CommitmentParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitmentParams 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.compute.v1.CommitmentParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParamsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParamsOrBuilder.java new file mode 100644 index 000000000000..0d9840ffcc5f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CommitmentParamsOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface CommitmentParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.CommitmentParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + int getResourceManagerTagsCount(); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + boolean containsResourceManagerTags(java.lang.String key); + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceManagerTags(); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + java.util.Map getResourceManagerTagsMap(); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + /* nullable */ + java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the commitment. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + java.lang.String getResourceManagerTagsOrThrow(java.lang.String key); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealth.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealth.java new file mode 100644 index 000000000000..d3affec2cfae --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealth.java @@ -0,0 +1,1656 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Response message for RegionCompositeHealthChecks.GetHealth
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.CompositeHealthCheckHealth} + */ +@com.google.protobuf.Generated +public final class CompositeHealthCheckHealth extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.CompositeHealthCheckHealth) + CompositeHealthCheckHealthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CompositeHealthCheckHealth"); + } + + // Use CompositeHealthCheckHealth.newBuilder() to construct. + private CompositeHealthCheckHealth(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CompositeHealthCheckHealth() { + healthSources_ = java.util.Collections.emptyList(); + healthState_ = ""; + kind_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CompositeHealthCheckHealth.class, + com.google.cloud.compute.v1.CompositeHealthCheckHealth.Builder.class); + } + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.CompositeHealthCheckHealth.HealthState} + */ + public enum HealthState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_HEALTH_STATE = 0; + */ + UNDEFINED_HEALTH_STATE(0), + /** HEALTHY = 439801213; */ + HEALTHY(439801213), + /** UNHEALTHY = 462118084; */ + UNHEALTHY(462118084), + /** UNKNOWN = 433141802; */ + UNKNOWN(433141802), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthState"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_HEALTH_STATE = 0; + */ + public static final int UNDEFINED_HEALTH_STATE_VALUE = 0; + + /** HEALTHY = 439801213; */ + public static final int HEALTHY_VALUE = 439801213; + + /** UNHEALTHY = 462118084; */ + public static final int UNHEALTHY_VALUE = 462118084; + + /** UNKNOWN = 433141802; */ + public static final int UNKNOWN_VALUE = 433141802; + + 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 HealthState 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 HealthState forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_HEALTH_STATE; + case 439801213: + return HEALTHY; + case 462118084: + return UNHEALTHY; + case 433141802: + return UNKNOWN; + 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 HealthState findValueByNumber(int number) { + return HealthState.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.CompositeHealthCheckHealth.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HealthState[] VALUES = values(); + + public static HealthState 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 HealthState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.CompositeHealthCheckHealth.HealthState) + } + + private int bitField0_; + public static final int HEALTH_SOURCES_FIELD_NUMBER = 397879509; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth> + healthSources_; + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth> + getHealthSourcesList() { + return healthSources_; + } + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder> + getHealthSourcesOrBuilderList() { + return healthSources_; + } + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + @java.lang.Override + public int getHealthSourcesCount() { + return healthSources_.size(); + } + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + getHealthSources(int index) { + return healthSources_.get(index); + } + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder + getHealthSourcesOrBuilder(int index) { + return healthSources_.get(index); + } + + public static final int HEALTH_STATE_FIELD_NUMBER = 324007150; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthState_ = ""; + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + @java.lang.Override + public boolean hasHealthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + @java.lang.Override + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + 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(); + healthState_ = s; + return s; + } + } + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+   * composite health checks.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+   * composite health checks.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+   * composite health checks.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 324007150, healthState_); + } + for (int i = 0; i < healthSources_.size(); i++) { + output.writeMessage(397879509, healthSources_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(324007150, healthState_); + } + for (int i = 0; i < healthSources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 397879509, healthSources_.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.compute.v1.CompositeHealthCheckHealth)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.CompositeHealthCheckHealth other = + (com.google.cloud.compute.v1.CompositeHealthCheckHealth) obj; + + if (!getHealthSourcesList().equals(other.getHealthSourcesList())) return false; + if (hasHealthState() != other.hasHealthState()) return false; + if (hasHealthState()) { + if (!getHealthState().equals(other.getHealthState())) return false; + } + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) 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 (getHealthSourcesCount() > 0) { + hash = (37 * hash) + HEALTH_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getHealthSourcesList().hashCode(); + } + if (hasHealthState()) { + hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER; + hash = (53 * hash) + getHealthState().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth 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.compute.v1.CompositeHealthCheckHealth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.CompositeHealthCheckHealth 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for RegionCompositeHealthChecks.GetHealth
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.CompositeHealthCheckHealth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.CompositeHealthCheckHealth) + com.google.cloud.compute.v1.CompositeHealthCheckHealthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CompositeHealthCheckHealth.class, + com.google.cloud.compute.v1.CompositeHealthCheckHealth.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.CompositeHealthCheckHealth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (healthSourcesBuilder_ == null) { + healthSources_ = java.util.Collections.emptyList(); + } else { + healthSources_ = null; + healthSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + healthState_ = ""; + kind_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthCheckHealth getDefaultInstanceForType() { + return com.google.cloud.compute.v1.CompositeHealthCheckHealth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthCheckHealth build() { + com.google.cloud.compute.v1.CompositeHealthCheckHealth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthCheckHealth buildPartial() { + com.google.cloud.compute.v1.CompositeHealthCheckHealth result = + new com.google.cloud.compute.v1.CompositeHealthCheckHealth(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.CompositeHealthCheckHealth result) { + if (healthSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + healthSources_ = java.util.Collections.unmodifiableList(healthSources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.healthSources_ = healthSources_; + } else { + result.healthSources_ = healthSourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.CompositeHealthCheckHealth result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.healthState_ = healthState_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.CompositeHealthCheckHealth) { + return mergeFrom((com.google.cloud.compute.v1.CompositeHealthCheckHealth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.CompositeHealthCheckHealth other) { + if (other == com.google.cloud.compute.v1.CompositeHealthCheckHealth.getDefaultInstance()) + return this; + if (healthSourcesBuilder_ == null) { + if (!other.healthSources_.isEmpty()) { + if (healthSources_.isEmpty()) { + healthSources_ = other.healthSources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHealthSourcesIsMutable(); + healthSources_.addAll(other.healthSources_); + } + onChanged(); + } + } else { + if (!other.healthSources_.isEmpty()) { + if (healthSourcesBuilder_.isEmpty()) { + healthSourcesBuilder_.dispose(); + healthSourcesBuilder_ = null; + healthSources_ = other.healthSources_; + bitField0_ = (bitField0_ & ~0x00000001); + healthSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHealthSourcesFieldBuilder() + : null; + } else { + healthSourcesBuilder_.addAllMessages(other.healthSources_); + } + } + } + if (other.hasHealthState()) { + healthState_ = other.healthState_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasKind()) { + kind_ = other.kind_; + 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 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26336418 + case -1702910094: + { + healthState_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -1702910094 + case -1111931222: + { + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + m = + input.readMessage( + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealth.parser(), + extensionRegistry); + if (healthSourcesBuilder_ == null) { + ensureHealthSourcesIsMutable(); + healthSources_.add(m); + } else { + healthSourcesBuilder_.addMessage(m); + } + break; + } // case -1111931222 + 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.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth> + healthSources_ = java.util.Collections.emptyList(); + + private void ensureHealthSourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + healthSources_ = + new java.util.ArrayList< + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealth>(healthSources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder, + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder> + healthSourcesBuilder_; + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public java.util.List< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth> + getHealthSourcesList() { + if (healthSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(healthSources_); + } else { + return healthSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public int getHealthSourcesCount() { + if (healthSourcesBuilder_ == null) { + return healthSources_.size(); + } else { + return healthSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + getHealthSources(int index) { + if (healthSourcesBuilder_ == null) { + return healthSources_.get(index); + } else { + return healthSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder setHealthSources( + int index, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + value) { + if (healthSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHealthSourcesIsMutable(); + healthSources_.set(index, value); + onChanged(); + } else { + healthSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder setHealthSources( + int index, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.Builder + builderForValue) { + if (healthSourcesBuilder_ == null) { + ensureHealthSourcesIsMutable(); + healthSources_.set(index, builderForValue.build()); + onChanged(); + } else { + healthSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder addHealthSources( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + value) { + if (healthSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHealthSourcesIsMutable(); + healthSources_.add(value); + onChanged(); + } else { + healthSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder addHealthSources( + int index, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + value) { + if (healthSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHealthSourcesIsMutable(); + healthSources_.add(index, value); + onChanged(); + } else { + healthSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder addHealthSources( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.Builder + builderForValue) { + if (healthSourcesBuilder_ == null) { + ensureHealthSourcesIsMutable(); + healthSources_.add(builderForValue.build()); + onChanged(); + } else { + healthSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder addHealthSources( + int index, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.Builder + builderForValue) { + if (healthSourcesBuilder_ == null) { + ensureHealthSourcesIsMutable(); + healthSources_.add(index, builderForValue.build()); + onChanged(); + } else { + healthSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder addAllHealthSources( + java.lang.Iterable< + ? extends + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealth> + values) { + if (healthSourcesBuilder_ == null) { + ensureHealthSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, healthSources_); + onChanged(); + } else { + healthSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder clearHealthSources() { + if (healthSourcesBuilder_ == null) { + healthSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + healthSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public Builder removeHealthSources(int index) { + if (healthSourcesBuilder_ == null) { + ensureHealthSourcesIsMutable(); + healthSources_.remove(index); + onChanged(); + } else { + healthSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder + getHealthSourcesBuilder(int index) { + return internalGetHealthSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder + getHealthSourcesOrBuilder(int index) { + if (healthSourcesBuilder_ == null) { + return healthSources_.get(index); + } else { + return healthSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public java.util.List< + ? extends + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder> + getHealthSourcesOrBuilderList() { + if (healthSourcesBuilder_ != null) { + return healthSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(healthSources_); + } + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder + addHealthSourcesBuilder() { + return internalGetHealthSourcesFieldBuilder() + .addBuilder( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .getDefaultInstance()); + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder + addHealthSourcesBuilder(int index) { + return internalGetHealthSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .getDefaultInstance()); + } + + /** + * + * + *
+     * Health sources and their corresponding health states.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + public java.util.List< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder> + getHealthSourcesBuilderList() { + return internalGetHealthSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder, + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder> + internalGetHealthSourcesFieldBuilder() { + if (healthSourcesBuilder_ == null) { + healthSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealth, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder, + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder>( + healthSources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + healthSources_ = null; + } + return healthSourcesBuilder_; + } + + private java.lang.Object healthState_ = ""; + + /** + * + * + *
+     * Health state of the CompositeHealthCheck.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + public boolean hasHealthState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Health state of the CompositeHealthCheck.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Health state of the CompositeHealthCheck.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + public com.google.protobuf.ByteString getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Health state of the CompositeHealthCheck.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @param value The healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthState(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + healthState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Health state of the CompositeHealthCheck.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return This builder for chaining. + */ + public Builder clearHealthState() { + healthState_ = getDefaultInstance().getHealthState(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Health state of the CompositeHealthCheck.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @param value The bytes for healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthStateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+     * composite health checks.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+     * composite health checks.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+     * composite health checks.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+     * composite health checks.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+     * composite health checks.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+     * composite health checks.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.CompositeHealthCheckHealth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.CompositeHealthCheckHealth) + private static final com.google.cloud.compute.v1.CompositeHealthCheckHealth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.CompositeHealthCheckHealth(); + } + + public static com.google.cloud.compute.v1.CompositeHealthCheckHealth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompositeHealthCheckHealth 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.compute.v1.CompositeHealthCheckHealth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealthOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealthOrBuilder.java new file mode 100644 index 000000000000..89b07bebaec0 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthCheckHealthOrBuilder.java @@ -0,0 +1,185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface CompositeHealthCheckHealthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.CompositeHealthCheckHealth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + java.util.List< + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth> + getHealthSourcesList(); + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + getHealthSources(int index); + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + int getHealthSourcesCount(); + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + java.util.List< + ? extends + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder> + getHealthSourcesOrBuilderList(); + + /** + * + * + *
+   * Health sources and their corresponding health states.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + * + */ + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder + getHealthSourcesOrBuilder(int index); + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + boolean hasHealthState(); + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + java.lang.String getHealthState(); + + /** + * + * + *
+   * Health state of the CompositeHealthCheck.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + com.google.protobuf.ByteString getHealthStateBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+   * composite health checks.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+   * composite health checks.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of
+   * composite health checks.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java new file mode 100644 index 000000000000..65ddf5dbb716 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java @@ -0,0 +1,1063 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} + */ +@com.google.protobuf.Generated +public final class CompositeHealthChecksGetHealthResponseHealthSourceHealth + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CompositeHealthChecksGetHealthResponseHealthSourceHealth"); + } + + // Use CompositeHealthChecksGetHealthResponseHealthSourceHealth.newBuilder() to construct. + private CompositeHealthChecksGetHealthResponseHealthSourceHealth( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CompositeHealthChecksGetHealthResponseHealthSourceHealth() { + healthState_ = ""; + source_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .class, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder.class); + } + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.HealthState} + */ + public enum HealthState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_HEALTH_STATE = 0; + */ + UNDEFINED_HEALTH_STATE(0), + /** HEALTHY = 439801213; */ + HEALTHY(439801213), + /** UNHEALTHY = 462118084; */ + UNHEALTHY(462118084), + /** UNKNOWN = 433141802; */ + UNKNOWN(433141802), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthState"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_HEALTH_STATE = 0; + */ + public static final int UNDEFINED_HEALTH_STATE_VALUE = 0; + + /** HEALTHY = 439801213; */ + public static final int HEALTHY_VALUE = 439801213; + + /** UNHEALTHY = 462118084; */ + public static final int UNHEALTHY_VALUE = 462118084; + + /** UNKNOWN = 433141802; */ + public static final int UNKNOWN_VALUE = 433141802; + + 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 HealthState 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 HealthState forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_HEALTH_STATE; + case 439801213: + return HEALTHY; + case 462118084: + return UNHEALTHY; + case 433141802: + return UNKNOWN; + 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 HealthState findValueByNumber(int number) { + return HealthState.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HealthState[] VALUES = values(); + + public static HealthState 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 HealthState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.HealthState) + } + + private int bitField0_; + public static final int HEALTH_STATE_FIELD_NUMBER = 324007150; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthState_ = ""; + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + @java.lang.Override + public boolean hasHealthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + @java.lang.Override + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + 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(); + healthState_ = s; + return s; + } + } + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 177235995; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Fully qualified URL of the associated HealthSource resource.
+   * 
+ * + * optional string source = 177235995; + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Fully qualified URL of the associated HealthSource resource.
+   * 
+ * + * optional string source = 177235995; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Fully qualified URL of the associated HealthSource resource.
+   * 
+ * + * optional string source = 177235995; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 177235995, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 324007150, healthState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(177235995, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(324007150, healthState_); + } + 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.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth other = + (com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) obj; + + if (hasHealthState() != other.hasHealthState()) return false; + if (hasHealthState()) { + if (!getHealthState().equals(other.getHealthState())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) 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 (hasHealthState()) { + hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER; + hash = (53 * hash) + getHealthState().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + 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.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .class, + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + healthState_ = ""; + source_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + build() { + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + buildPartial() { + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth result = + new com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.healthState_ = healthState_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = source_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) { + return mergeFrom( + (com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + other) { + if (other + == com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + .getDefaultInstance()) return this; + if (other.hasHealthState()) { + healthState_ = other.healthState_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSource()) { + source_ = other.source_; + 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 1417887962: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1417887962 + case -1702910094: + { + healthState_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1702910094 + 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 healthState_ = ""; + + /** + * + * + *
+     * Health state of the associated HealthSource resource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + public boolean hasHealthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Health state of the associated HealthSource resource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Health state of the associated HealthSource resource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + public com.google.protobuf.ByteString getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Health state of the associated HealthSource resource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @param value The healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthState(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + healthState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Health state of the associated HealthSource resource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return This builder for chaining. + */ + public Builder clearHealthState() { + healthState_ = getDefaultInstance().getHealthState(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Health state of the associated HealthSource resource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @param value The bytes for healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthStateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + + /** + * + * + *
+     * Fully qualified URL of the associated HealthSource resource.
+     * 
+ * + * optional string source = 177235995; + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Fully qualified URL of the associated HealthSource resource.
+     * 
+ * + * optional string source = 177235995; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of the associated HealthSource resource.
+     * 
+ * + * optional string source = 177235995; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of the associated HealthSource resource.
+     * 
+ * + * optional string source = 177235995; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of the associated HealthSource resource.
+     * 
+ * + * optional string source = 177235995; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of the associated HealthSource resource.
+     * 
+ * + * optional string source = 177235995; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + private static final com.google.cloud.compute.v1 + .CompositeHealthChecksGetHealthResponseHealthSourceHealth + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth(); + } + + public static com.google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + CompositeHealthChecksGetHealthResponseHealthSourceHealth> + PARSER = + new com.google.protobuf.AbstractParser< + CompositeHealthChecksGetHealthResponseHealthSourceHealth>() { + @java.lang.Override + public CompositeHealthChecksGetHealthResponseHealthSourceHealth 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.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder.java new file mode 100644 index 000000000000..41d3d4637979 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface CompositeHealthChecksGetHealthResponseHealthSourceHealthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + boolean hasHealthState(); + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + java.lang.String getHealthState(); + + /** + * + * + *
+   * Health state of the associated HealthSource resource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + com.google.protobuf.ByteString getHealthStateBytes(); + + /** + * + * + *
+   * Fully qualified URL of the associated HealthSource resource.
+   * 
+ * + * optional string source = 177235995; + * + * @return Whether the source field is set. + */ + boolean hasSource(); + + /** + * + * + *
+   * Fully qualified URL of the associated HealthSource resource.
+   * 
+ * + * optional string source = 177235995; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Fully qualified URL of the associated HealthSource resource.
+   * 
+ * + * optional string source = 177235995; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java index 4bf6815b5b8f..cf589f0cb0ff 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java @@ -228,6 +228,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_AggregatedListAutoscalersRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_AggregatedListAutoscalersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_AggregatedListBackendServicesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -596,6 +600,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_BackendBucket_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_BackendBucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_ItemsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_ItemsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -616,6 +628,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_BackendBucketList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_BackendBucketList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_BackendBucketListUsable_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_BackendBucketListUsable_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_BackendBucketParams_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -628,6 +644,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_BackendBucketUsedBy_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_BackendBucketUsedBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_BackendBucketsScopedList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_BackendBucketsScopedList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_BackendCustomMetric_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -888,6 +908,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -920,6 +944,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_CommitmentList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_CommitmentList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_CommitmentParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_CommitmentParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_CommitmentParams_ResourceManagerTagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_CommitmentParams_ResourceManagerTagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -940,10 +972,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_CompositeHealthCheckAggregatedList_ItemsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_CompositeHealthCheckAggregatedList_ItemsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_CompositeHealthCheckList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_CompositeHealthCheckList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_CompositeHealthChecksScopedList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1140,6 +1180,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1232,6 +1276,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1264,10 +1312,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1296,6 +1352,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1432,6 +1492,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_Denied_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1492,79 +1556,83 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskAsyncReplication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskInstantiationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskMoveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskParams_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskParams_ResourceManagerTagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskParams_ResourceManagerTagsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskResourceStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskResourceStatus_AsyncSecondaryDisksEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskResourceStatus_AsyncSecondaryDisksEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskType_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_ItemsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_ItemsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskTypeList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskTypeList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DiskTypesScopedList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DisksResizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DisksScopedList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DisksScopedList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_fieldAccessorTable; @@ -1764,6 +1832,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_FutureReservationCommitmentInfo_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_FutureReservationCommitmentInfo_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_FutureReservationParams_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_FutureReservationParams_ResourceManagerTagsEntry_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_FutureReservationParams_ResourceManagerTagsEntry_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_FutureReservationSpecificSKUProperties_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1996,6 +2072,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2028,6 +2112,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2064,6 +2152,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2072,6 +2164,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2080,6 +2176,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetIamPolicyReservationBlockRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2144,6 +2244,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2276,6 +2380,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2316,6 +2424,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2324,6 +2436,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2352,6 +2468,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2576,6 +2700,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_GetZoneRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2720,10 +2848,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_HealthSourceAggregatedList_ItemsEntry_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_HealthSourceAggregatedList_ItemsEntry_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_HealthSourceHealth_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_HealthSourceHealth_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_HealthSourceList_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_HealthSourceList_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_HealthSourcesScopedList_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2916,6 +3056,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -2992,6 +3136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -3028,10 +3176,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -3052,6 +3208,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -3168,6 +3328,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InsertWireGroupRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InsertWireGroupRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_Instance_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -3312,6 +3476,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -3616,6 +3784,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_ItemsEntry_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_ItemsEntry_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstantSnapshotGroup_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstantSnapshotGroup_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4156,6 +4340,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4300,6 +4492,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4336,6 +4532,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListRegionHealthSourcesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListRegionHealthSourcesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4348,6 +4548,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4372,6 +4576,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4504,10 +4712,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListUrlMapsRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -4536,6 +4752,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -5216,6 +5436,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -5252,6 +5476,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -5552,6 +5780,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_RegionDiskTypeList_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -5584,6 +5816,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -5688,6 +5924,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6528,6 +6768,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6564,6 +6808,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6572,6 +6820,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6580,6 +6832,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SetIamPolicyReservationBlockRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6680,6 +6936,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6888,6 +7148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_Snapshot_LabelsEntry_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_Snapshot_LabelsEntry_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SnapshotGroupParameters_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SnapshotGroupParameters_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SnapshotList_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6904,6 +7168,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SnapshotSettings_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_LocationsEntry_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_LocationsEntry_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -6916,6 +7192,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7500,6 +7780,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7552,6 +7836,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_TestIamPermissionsRegionAutoscalerRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_TestIamPermissionsRegionAutoscalerRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7584,6 +7872,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstanceGroupRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstanceGroupRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7596,6 +7888,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNotificationEndpointRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNotificationEndpointRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_TestIamPermissionsReservationBlockRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7712,6 +8008,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7788,6 +8100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_UrlMap_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -7876,6 +8192,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicy_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicy_ExtensionPoliciesEntry_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicy_ExtensionPoliciesEntry_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_InclusionLabelsEntry_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_InclusionLabelsEntry_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_VmExtensionPolicyList_descriptor; + static com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_compute_v1_VmExtensionPolicyList_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_VpnGateway_descriptor; static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -8682,6 +9026,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_successB\031\n" + + "\027_service_project_number\"\245\003\n" + + "#AggregatedListBackendBucketsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n" + + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\002\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" + + "\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n" + + "\007_filterB\025\n" + + "\023_include_all_scopesB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + + "\027_return_partial_successB\031\n" + "\027_service_project_number\"\246\003\n" + "$AggregatedListBackendServicesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n" @@ -8691,7 +9052,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" - + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" + + "\026return_partial_succes", + "s\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" + "\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n" + "\007_filterB\025\n" + "\023_include_all_scopesB\016\n" @@ -8705,12 +9067,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\002\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" - + "\026return_partial_success\030\266\244\317", - "\366\001 \001(\010H\005\210\001\001\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" + "\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n" + "\007_filterB\025\n" + "\023_include_all_scopesB\016\n" @@ -8741,8 +9101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\002\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" @@ -8886,8 +9245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\025\n" + "\023_include_all_scopesB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_successB\031\n" + "\027_service_project_number\"\256\003\n" @@ -8955,8 +9313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\025\n" + "\023_include_all_scopesB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_successB\031\n" + "\027_service_project_number\"\254\003\n" @@ -9186,7 +9543,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\002\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" @@ -9228,7 +9586,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\025\n" + "\023_include_all_scopesB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_successB\031\n" + "\027_service_project_number\"\247\003\n" @@ -9334,7 +9693,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_page_tokenB\031\n" + "\027_return_partial_successB\031\n" + "\027_service_project_number\"\213\004\n" - + " AggregatedListSubnetworksRequest\022\027\n" + + " AggregatedListSubnet", + "worksRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n" + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" @@ -9353,8 +9713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\025\n" + "\023_include_all_scopesB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r", - "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_successB\031\n" + "\027_service_project_numberB\010\n" @@ -9364,8 +9723,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\002\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\004\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" @@ -9519,11 +9877,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_ip_cidr_rangeB\030\n" + "\026_subnetwork_range_name\"\277\006\n" + "\036AllocationAggregateReservation\022i\n" - + "\020in_use_resources\030\323\367\203\303\001" - + " \003(\0132K.google.cloud.compute.v1.Allocat" - + "ionAggregateReservationReservedResourceInfo\022j\n" - + "\022reserved_resources\030\316\343\325e \003(\0132K.goo" - + "gle.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo\022\031\n" + + "\020in_use_resources\030\323\367\203\303\001 \003(\0132K.google." + + "cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo\022j\n" + + "\022reserved_resources\030\316\343\325e \003(\0132K.google.cloud.comput" + + "e.v1.AllocationAggregateReservationReservedResourceInfo\022\031\n" + "\tvm_family\030\354\273\316; \001(\tH\000\210\001\001\022\036\n\r" + "workload_type\030\202\376\260\202\001 \001(\tH\001\210\001\001\"\212\003\n" + "\010VmFamily\022\027\n" @@ -9544,8 +9901,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_vm_familyB\020\n" + "\016_workload_type\"\272\001\n" + "2AllocationAggregateReservationReservedResourceInfo\022t\n" - + "\013accelerator\030\353\304\253\312\001 \001(\0132V.google.cloud.compute.v" - + "1.AllocationAggregateReservationReservedResourceInfoAcceleratorH\000\210\001\001B\016\n" + + "\013accelerator\030\353\304\253\312\001 \001(\0132" + + "V.google.cloud.compute.v1.AllocationAggr" + + "egateReservationReservedResourceInfoAcceleratorH\000\210\001\001B\016\n" + "\014_accelerator\"\260\001\n" + "=AllocationAggregateReservationReservedResourceInfoAccelerator\022\"\n" + "\021accelerator_count\030\273\264\337\360\001 \001(\005H\000\210\001\001\022 \n" @@ -9561,13 +9919,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036SERVICE_SHARE_TYPE_UNSPECIFIED\020\374\245\210\205\001B\025\n" + "\023_service_share_type\"\313\003\n" + "\030AllocationResourceStatus\022X\n" - + "\013health_info\030\261\351\230p \001(\0132;.google" - + ".cloud.compute.v1.AllocationResourceStatusHealthInfoH\000\210\001\001\022\'\n" + + "\013health_info\030\261\351\230p \001(\0132;.google.cloud.compute.v" + + "1.AllocationResourceStatusHealthInfoH\000\210\001\001\022\'\n" + "\027reservation_block_count\030\352\325\225M \001(\005H\001\210\001\001\022W\n" - + "\027reservation_maintenance\030\240\206\265\242\001" - + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\002\210\001\001\022o\n" - + "\027specific_sku_allocation\030\357\377\310] \001(\0132F.google.cloud.c" - + "ompute.v1.AllocationResourceStatusSpecificSKUAllocationH\003\210\001\001B\016\n" + + "\027reservation_maintenance\030\240\206\265\242\001 \001(\0132" + + "-.google.cloud.compute.v1.GroupMaintenanceInfoH\002\210\001\001\022o\n" + + "\027specific_sku_allocation\030\357\377\310]" + + " \001(\0132F.google.cloud.compute.v1.Alloca" + + "tionResourceStatusSpecificSKUAllocationH\003\210\001\001B\016\n" + "\014_health_infoB\032\n" + "\030_reservation_block_countB\032\n" + "\030_reservation_maintenanceB\032\n" @@ -9587,10 +9946,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_healthy_block_count\"\245\002\n" + "-AllocationResourceStatusSpecificSKUAllocation\022+\n" + "\033source_instance_template_id\030\372\357\2025 \001(\tH\000\210\001\001\022r\n" - + "\014utilizations\030\221\255\366\277\001 \003(\0132X.google.cloud.compute.v1.All" - + "ocationResourceStatusSpecificSKUAllocation.UtilizationsEntry\0323\n" + + "\014utilizations\030\221\255\366\277\001 \003(\0132X.goo" + + "gle.cloud.compute.v1.AllocationResourceS" + + "tatusSpecificSKUAllocation.UtilizationsEntry\0323\n" + "\021UtilizationsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\003:\0028\001B\036\n" + "\034_source_instance_template_id\"\342\001\n" + "FAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk\022\035\n" @@ -9605,8 +9966,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "9AllocationSpecificSKUAllocationReservedInstanceProperties\022J\n" + "\022guest_accelerators\030\357\314\207\335\001" + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022v\n\n" - + "local_ssds\030\303\216\323m \003(\0132_.google.cloud.compute.v" - + "1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk\022\036\n\r" + + "local_ssds\030\303\216\323m \003(\0132_.google.cloud.compute.v1.AllocationSpec" + + "ificSKUAllocationAllocatedInstancePropertiesReservedDisk\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\000\210\001\001\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\001\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\002\210\001\001B\020\n" @@ -9617,8 +9978,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "assured_count\030\315\370\212\206\001 \001(\003H\000\210\001\001\022\025\n" + "\005count\030\217\242\235- \001(\003H\001\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\003H\002\210\001\001\022w\n" - + "\023instance_properties\030\235\236\330f \001(\0132R.google.cloud.compu" - + "te.v1.AllocationSpecificSKUAllocationReservedInstancePropertiesH\003\210\001\001\022)\n" + + "\023instance_properties\030\235\236\330f " + + "\001(\0132R.google.cloud.compute.v1.Allocation" + + "SpecificSKUAllocationReservedInstancePropertiesH\003\210\001\001\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(\tH\004\210\001\001B\020\n" + "\016_assured_countB\010\n" + "\006_countB\017\n\r" @@ -9645,8 +10007,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2ApplyUpdatesToInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\211\001\n" + "6instance_group_managers_apply_updates_request_resource\030\323\366\316{" - + " \001(\0132A.google.cloud.compute.v1.Instanc" - + "eGroupManagersApplyUpdatesRequestB\003\340A\002\022!\n" + + " \001(\0132A.google." + + "cloud.compute.v1.InstanceGroupManagersApplyUpdatesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -9657,8 +10019,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\226\001\n" + "=region_instance_group_managers_apply_updates_request_resource\030\376\351\255$" - + " \001(\0132G.google.clou" - + "d.compute.v1.RegionInstanceGroupManagersApplyUpdatesRequestB\003\340A\002\"\236\002\n" + + " \001(\0132G.google.cloud.compute.v1.Reg" + + "ionInstanceGroupManagersApplyUpdatesRequestB\003\340A\002\"\236\002\n" + "\031AttachDiskInstanceRequest\022M\n" + "\026attached_disk_resource\030\225\222\232+" + " \001(\0132%.google.cloud.compute.v1.AttachedDiskB\003\340A\002\022\034\n" @@ -9673,8 +10035,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\317\002\n" + "7AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest\022\234\001\n" + "@global_network_endpoint_groups_attach_endpoints_request_resource\030\353\241\321\016" - + " \001(\0132J.google.cloud.compute.v1.Gl" - + "obalNetworkEndpointGroupsAttachEndpointsRequestB\003\340A\002\022\'\n" + + " \001(\0132J.go" + + "ogle.cloud.compute.v1.GlobalNetworkEndpointGroupsAttachEndpointsRequestB\003\340A\002\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -9682,9 +10044,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\330\002\n" + "1AttachNetworkEndpointsNetworkEndpointGroupRequest\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\216\001\n" - + "9network_endpoint_groups_attach_endpoints_request_resource\030\207\265 " - + " \001(\0132D.google.cloud.compute." - + "v1.NetworkEndpointGroupsAttachEndpointsRequestB\003\340A\002\022!\n" + + "9network_endpoint_groups_attach_endpoints_request_resource\030\207\265 \001(\013" + + "2D.google.cloud.compute.v1.NetworkEndpointGroupsAttachEndpointsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -9696,10 +10057,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_network_endpoint_grou" - + "ps_attach_endpoints_request_resource\030\374\371\335\237\001" - + " \001(\0132J.google.cloud.compute.v1.RegionN" - + "etworkEndpointGroupsAttachEndpointsRequestB\003\340A\002\022\032\n\n" + + "@regi" + + "on_network_endpoint_groups_attach_endpoints_request_resource\030\374\371\335\237\001" + + " \001(\0132J.google." + + "cloud.compute.v1.RegionNetworkEndpointGroupsAttachEndpointsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\334\n\n" + "\014AttachedDisk\022\035\n" @@ -9707,23 +10068,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013auto_delete\030\273\344\316\335\001 \001(\010H\001\210\001\001\022\024\n" + "\004boot\030\362\365\270\001 \001(\010H\002\210\001\001\022\033\n" + "\013device_name\030\324\265\232 \001(\tH\003\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\004\210\001\001\022\035\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..g" + + "oogle.cloud.compute.v1.CustomerEncryptionKeyH\004\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\005\210\001\001\022\034\n" + "\014force_attach\030\231\244\211D \001(\010H\006\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\025\n" + "\005index\030\322\321\354/ \001(\005H\007\210\001\001\022X\n" - + "\021initialize_params\030\225\222\270\010" - + " \001(\01325.google.cloud.compute.v1.AttachedDiskInitializeParamsH\010\210\001\001\022\032\n" + + "\021initialize_params\030\225\222\270\010 \001(\01325.goo" + + "gle.cloud.compute.v1.AttachedDiskInitializeParamsH\010\210\001\001\022\032\n" + "\tinterface\030\271\332\325\357\001 \001(\tH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\024\n" + "\004mode\030\243\363\314\001 \001(\tH\013\210\001\001\022\034\n" + "\013saved_state\030\331\251\241\304\001 \001(\tH\014\210\001\001\022\\\n" - + "\037shielded_instance_initial_state\030\203\304\334[ \001(\0132+" - + ".google.cloud.compute.v1.InitialStateConfigH\r" + + "\037shielded_instance_initial_state\030\203\304\334[" + + " \001(\0132+.google.cloud.compute.v1.InitialStateConfigH\r" + "\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\016\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\017\210\001\001\"j\n" @@ -9747,7 +10108,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\022\n\n" + "PERSISTENT\020\227\365\325\333\001\022\017\n" - + "\007SCRATCH\020\332\375\360\354\001B\017\n\r" + + "\007SCRATCH\020\332\375\360\354\001B\017\n" + + "\r" + "_architectureB\016\n" + "\014_auto_deleteB\007\n" + "\005_bootB\016\n" @@ -9771,17 +10133,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\003\210\001\001\022\031\n" + "\tdisk_type\030\234\351\254, \001(\tH\004\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\005\210\001\001\022U\n" - + "\006labels\030\377\277\301\356\001 \003(\0132A.google.c" - + "loud.compute.v1.AttachedDiskInitializeParams.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\0132A.google.cloud.compute.v1." + + "AttachedDiskInitializeParams.LabelsEntry\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022 \n" + "\020on_update_action\030\214\330\304` \001(\tH\006\210\001\001\022 \n" + "\020provisioned_iops\030\324\275\207Y \001(\003H\007\210\001\001\022\'\n" + "\026provisioned_throughput\030\225\276\210\373\001" + " \001(\003H\010\210\001\001\022\030\n\r" + "replica_zones\030\200\270\214\027 \003(\t\022q\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132N.google.cloud.compute.v1.Attac" - + "hedDiskInitializeParams.ResourceManagerTagsEntry\022\034\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132N.googl" + + "e.cloud.compute.v1.AttachedDiskInitializeParams.ResourceManagerTagsEntry\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\t\210\001\001\022\\\n" @@ -9789,8 +10150,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\n" + "\210\001\001\022\037\n" + "\017source_snapshot\030\350\232\216< \001(\tH\013\210\001\001\022_\n" - + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132" - + "..google.cloud.compute.v1.CustomerEncryptionKeyH\014\210\001\001\022\035\n" + + "\036source_snapshot_encryption_key\030\332\216\347\220\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\014\210\001\001\022\035\n" + "\014storage_pool\030\340\306\361\253\001 \001(\tH\r" + "\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -9842,8 +10203,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030_ignore_child_exemptionsB\013\n" + "\t_log_type\"\235\007\n\n" + "Autoscaler\022N\n" - + "\022autoscaling_policy\030\331\340\352i" - + " \001(\0132*.google.cloud.compute.v1.AutoscalingPolicyH\000\210\001\001\022\"\n" + + "\022autoscaling_policy\030\331\340\352i " + + "\001(\0132*.google.cloud.compute.v1.AutoscalingPolicyH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" @@ -9851,19 +10212,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022 \n" + "\020recommended_size\030\345\366\375z \001(\005H\006\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\007\210\001\001\022c\n" - + "\027scaling_schedule_status\030\342\253\227\336\001" - + " \003(\0132>.google.cloud.compute.v1.Autoscaler.ScalingScheduleStatusEntry\022\032\n" + + "\027scaling_schedule_status\030\342\253\227\336\001 \003(\0132>.go" + + "ogle.cloud.compute.v1.Autoscaler.ScalingScheduleStatusEntry\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\t\210\001\001\022L\n" - + "\016status_details\030\365\255\241\255\001 \003(\01320.go" - + "ogle.cloud.compute.v1.AutoscalerStatusDetails\022\026\n" + + "\016status_details\030\365\255\241\255\001" + + " \003(\01320.google.cloud.compute.v1.AutoscalerStatusDetails\022\026\n" + "\006target\030\221\343\371[ \001(\tH\n" + "\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\032l\n" + "\032ScalingScheduleStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.c" - + "loud.compute.v1.ScalingScheduleStatus:\0028\001\"^\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.ScalingScheduleStatus:\0028\001\"^\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\016\n" + "\006ACTIVE\020\206\346\211\226\001\022\020\n" @@ -9884,8 +10245,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\277\003\n" + "\030AutoscalerAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.AutoscalerAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google." + + "cloud.compute.v1.AutoscalerAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -9894,8 +10255,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132.." - + "google.cloud.compute.v1.AutoscalersScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.AutoscalersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -9932,7 +10293,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014MODE_ONLY_UP\020\362\332\2220\022$\n" + "\035MORE_THAN_ONE_BACKEND_SERVICE\020\335\313\270H\022\"\n" + "\032NOT_ENOUGH_QUOTA_AVAILABLE\020\277\257\233\300\001\022 \n" - + "\030REGION_RESOURCE_STOCKOUT\020\376\311\210\374\001\022$\n" + + "\030REGION_RESOURCE_STOCKOUT\020\376\311\210\374", + "\001\022$\n" + "\035SCALING_TARGET_DOES_NOT_EXIST\020\233\223\275:\0226\n" + "/SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX\020\302\353\372\r" + "\0224\n" @@ -9946,28 +10308,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013autoscalers\030\374\270\214\336\001" + " \003(\0132#.google.cloud.compute.v1.Autoscaler\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001", - "B\n\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\351\007\n" + "\021AutoscalingPolicy\022$\n" + "\024cool_down_period_sec\030\232\207\2553 \001(\005H\000\210\001\001\022Z\n" - + "\017cpu_utilization\030\213\244\343\265\001 \001(\01328.google.cloud.com" - + "pute.v1.AutoscalingPolicyCpuUtilizationH\001\210\001\001\022h\n" - + "\032custom_metric_utilizations\030\362\375\366> " - + "\003(\0132A.google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization\022o\n" - + "\032load_balancing_utilization\030\343\321\365\314\001 \001(\0132B.google." - + "cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilizationH\002\210\001\001\022 \n" + + "\017cpu_utilization\030\213\244\343\265\001" + + " \001(\01328.google.cloud.compute.v1.AutoscalingPolicyCpuUtilizationH\001\210\001\001\022h\n" + + "\032custom_metric_utilizations\030\362\375\366> \003(\0132A.google.clo" + + "ud.compute.v1.AutoscalingPolicyCustomMetricUtilization\022o\n" + + "\032load_balancing_utilization\030\343\321\365\314\001" + + " \001(\0132B.google.cloud.compute.v1" + + ".AutoscalingPolicyLoadBalancingUtilizationH\002\210\001\001\022 \n" + "\020max_num_replicas\030\317\224\334\035 \001(\005H\003\210\001\001\022!\n" + "\020min_num_replicas\030\241\370\241\377\001 \001(\005H\004\210\001\001\022\024\n" + "\004mode\030\243\363\314\001 \001(\tH\005\210\001\001\022[\n" - + "\020scale_in_control\030\330\274\316\373\001 \001(\01328.google.cloud." - + "compute.v1.AutoscalingPolicyScaleInControlH\006\210\001\001\022_\n" - + "\021scaling_schedules\030\204\364\274\251\001 \003(\0132@" - + ".google.cloud.compute.v1.AutoscalingPolicy.ScalingSchedulesEntry\032r\n" + + "\020scale_in_control\030\330\274\316\373\001" + + " \001(\01328.google.cloud.compute.v1.AutoscalingPolicyScaleInControlH\006\210\001\001\022_\n" + + "\021scaling_schedules\030\204\364\274\251\001 \003(\0132@.google.cloud.co" + + "mpute.v1.AutoscalingPolicy.ScalingSchedulesEntry\032r\n" + "\025ScalingSchedulesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329." - + "google.cloud.compute.v1.AutoscalingPolicyScalingSchedule:\0028\001\"V\n" + + "\005value\030\002 \001(\01329.google.cloud.com" + + "pute.v1.AutoscalingPolicyScalingSchedule:\0028\001\"V\n" + "\004Mode\022\022\n" + "\016UNDEFINED_MODE\020\000\022\t\n" + "\003OFF\020\317\342\004\022\007\n" @@ -10011,8 +10373,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022utilization_target\030\316\354\371f \001(\001H\000\210\001\001B\025\n" + "\023_utilization_target\"\302\001\n" + "\037AutoscalingPolicyScaleInControl\022O\n" - + "\026max_scaled_in_replicas\030\353\325\225V" - + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\000\210\001\001\022\037\n" + + "\026max_scaled_in_replicas\030\353\325\225V \001(\0132\'.goo" + + "gle.cloud.compute.v1.FixedOrPercentH\000\210\001\001\022\037\n" + "\017time_window_sec\030\264\200\256\021 \001(\005H\001\210\001\001B\031\n" + "\027_max_scaled_in_replicasB\022\n" + "\020_time_window_sec\"\272\002\n" @@ -10028,38 +10390,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_duration_secB\030\n" + "\026_min_required_replicasB\013\n" + "\t_scheduleB\014\n\n" - + "_time_zone\"\354\010\n" + + "_time_zone\"\250\014\n" + "\007Backend\022\037\n" + "\016balancing_mode\030\211\313\226\315\001 \001(\tH\000\210\001\001\022 \n" + "\017capacity_scaler\030\215\307\324\226\001 \001(\002H\001\210\001\001\022H\n" - + "\016custom_metrics\030\365\343\343\314\001 \003(\013" - + "2,.google.cloud.compute.v1.BackendCustomMetric\022\034\n" + + "\016custom_metrics\030\365\343\343\314\001" + + " \003(\0132,.google.cloud.compute.v1.BackendCustomMetric\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\030\n" + "\010failover\030\362\251\235B \001(\010H\003\210\001\001\022\025\n" + "\005group\030\377\354\203/ \001(\tH\004\210\001\001\022\037\n" + "\017max_connections\030\372\325\3414 \001(\005H\005\210\001\001\022,\n" + "\034max_connections_per_endpoint\030\234\347\266g \001(\005H\006\210\001\001\022,\n" - + "\034max_connections_per_instance\030\234\325\3641 \001(\005H\007\210\001\001\022\031\n" - + "\010max_rate\030\333\275\310\302\001 \001(\005H\010\210\001\001\022%\n" - + "\025max_rate_per_endpoint\030\333\252\364= \001(\002H\t\210\001\001\022%\n" - + "\025max_rate_per_instance\030\333\230\262\010 \001(\002H\n" + + "\034max_connections_per_instance\030\234\325\3641 \001(\005H\007\210\001\001\022\'\n" + + "\026max_in_flight_requests\030\324\204\247\202\001 \001(\005H\010\210\001\001\0224\n" + + "#max_in_flight_requests_per_endpoint\030\202\275\352\222\001 \001(\005H" + + "\t\210\001\001\0223\n" + + "#max_in_flight_requests_per_instance\030\202\253\250] \001(\005H\n" + + "\210\001\001\022\031\n" + + "\010max_rate\030\333\275\310\302\001 \001(\005H\013\210\001\001\022%\n" + + "\025max_rate_per_endpoint\030\333\252\364= \001(\002H\014\210\001\001\022%\n" + + "\025max_rate_per_instance\030\333\230\262\010 \001(\002H\r" + "\210\001\001\022\037\n" - + "\017max_utilization\030\307\367\324F \001(\002H\013\210\001\001\022]\n" - + "\022orchestration_info\030\354\247\255\322\001 \001(\01328.google.cloud.comp" - + "ute.v1.BackendBackendOrchestrationInfoH\014\210\001\001\022\032\n\n" - + "preference\030\333\371\362G \001(\tH\r" - + "\210\001\001\"y\n\r" + + "\017max_utilization\030\307\367\324F \001(\002H\016\210\001\001\022]\n" + + "\022orchestration_info\030\354\247\255\322\001 \001(\01328.googl" + + "e.cloud.compute.v1.BackendBackendOrchestrationInfoH\017\210\001\001\022\032\n\n" + + "preference\030\333\371\362G \001(\tH\020\210\001\001\022 \n" + + "\020traffic_duration\030\226\223\305\005 \001(\tH\021\210\001\001\"\213\001\n\r" + "BalancingMode\022\034\n" + "\030UNDEFINED_BALANCING_MODE\020\000\022\021\n\n" + "CONNECTION\020\336\325\271u\022\026\n" - + "\016CUSTOM_METRICS\020\325\343\215\236\001\022\013\n" + + "\016CUSTOM_METRICS\020\325\343\215\236\001\022\020\n" + + "\tIN_FLIGHT\020\312\221\317Z\022\013\n" + "\004RATE\020\340\211\231\001\022\022\n" + "\013UTILIZATION\020\202\204\357J\"i\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\016\n" + "\007DEFAULT\020\241\304\3756\022\036\n" + "\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001\022\021\n" - + "\tPREFERRED\020\341\270\334\307\001B\021\n" + + "\tPREFERRED\020\341\270\334\307\001\"q\n" + + "\017TrafficDuration\022\036\n" + + "\032UNDEFINED_TRAFFIC_DURATION\020\000\022\013\n" + + "\004LONG\020\374\374\216\001\022\014\n" + + "\005SHORT\020\334\230\316%\022#\n" + + "\034TRAFFIC_DURATION_UNSPECIFIED\020\216\314\272~B\021\n" + "\017_balancing_modeB\022\n" + "\020_capacity_scalerB\016\n" + "\014_descriptionB\013\n" @@ -10067,16 +10440,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_groupB\022\n" + "\020_max_connectionsB\037\n" + "\035_max_connections_per_endpointB\037\n" - + "\035_max_connections_per_instanceB\013\n" + + "\035_max_connections_per_instanceB\031\n" + + "\027_max_in_flight_requestsB&\n" + + "$_max_in_flight_requests_per_endpointB&\n" + + "$_max_in_flight_requests_per_instanceB\013\n" + "\t_max_rateB\030\n" + "\026_max_rate_per_endpointB\030\n" + "\026_max_rate_per_instanceB\022\n" + "\020_max_utilizationB\025\n" + "\023_orchestration_infoB\r\n" - + "\013_preference\"P\n" + + "\013_preferenceB\023\n" + + "\021_traffic_duration\"P\n" + "\037BackendBackendOrchestrationInfo\022\034\n" + "\014resource_uri\030\273\203\360H \001(\tH\000\210\001\001B\017\n\r" - + "_resource_uri\"\314\007\n\r" + + "_resource_uri\"\211\010\n\r" + "BackendBucket\022\034\n" + "\013bucket_name\030\300\227\236\207\001 \001(\tH\000\210\001\001\022K\n\n" + "cdn_policy\030\204\213\204f" @@ -10092,17 +10469,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\t\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022D\n" - + "\006params\030\206\363\253% \001(\013" - + "2,.google.cloud.compute.v1.BackendBucketParamsH\013\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022A\n" - + "\007used_by\030\231\240\322\271\001" - + " \003(\0132,.google.cloud.compute.v1.BackendBucketUsedBy\"U\n" + + "\006params\030\206\363\253% \001(\0132,.google.cl" + + "oud.compute.v1.BackendBucketParamsH\013\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + + "\210\001\001\022A\n" + + "\007used_by\030\231\240\322\271\001 \003(\0132,.googl" + + "e.cloud.compute.v1.BackendBucketUsedBy\"U\n" + "\017CompressionMode\022\036\n" + "\032UNDEFINED_COMPRESSION_MODE\020\000\022\020\n" + "\tAUTOMATIC\020\213\204\351N\022\020\n" - + "\010DISABLED\020\374\324\260\366\001\"S\n" + + "\010DISABLED\020\374\324\260\366\001\"m\n" + "\023LoadBalancingScheme\022#\n" - + "\037UNDEFINED_LOAD_BALANCING_SCHEME\020\000\022\027\n" + + "\037UNDEFINED_LOAD_BALANCING_SCHEME\020\000\022\030\n" + + "\020EXTERNAL_MANAGED\020\213\266\222\364\001\022\027\n" + "\020INTERNAL_MANAGED\020\375\327\347\021B\016\n" + "\014_bucket_nameB\r\n" + "\013_cdn_policyB\023\n" @@ -10115,23 +10495,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\030\n" + "\026_load_balancing_schemeB\007\n" + "\005_nameB\t\n" - + "\007_paramsB\014\n\n" - + "_self_link\"\312\007\n" + + "\007_paramsB\t\n" + + "\007_regionB\014\n\n" + + "_self_link\"\257\003\n" + + "\033BackendBucketAggregatedList\022\020\n" + + "\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" + + "\005items\030\300\317\367/ \003" + + "(\0132?.google.cloud.compute.v1.BackendBucketAggregatedList.ItemsEntry\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n\n" + + "ItemsEntry\022\013\n" + + "\003key\030\001 \001(\t\022@\n" + + "\005value\030\002" + + " \001(\01321.google.cloud.compute.v1.BackendBucketsScopedList:\0028\001B\005\n" + + "\003_idB\007\n" + + "\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n" + + "\010_warning\"\312\007\n" + "\026BackendBucketCdnPolicy\022v\n" - + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 \003(\0132I." - + "google.cloud.compute.v1.BackendBucketCdnPolicyBypassCacheOnRequestHeader\022_\n" - + "\020cache_key_policy\030\357\327\370K \001(\0132=.google.cloud.com" - + "pute.v1.BackendBucketCdnPolicyCacheKeyPolicyH\000\210\001\001\022\032\n\n" + + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 \003(\013" + + "2I.google.cloud.compute.v1.BackendBucketCdnPolicyBypassCacheOnRequestHeader\022_\n" + + "\020cache_key_policy\030\357\327\370K \001(\0132=.google.cloud." + + "compute.v1.BackendBucketCdnPolicyCacheKeyPolicyH\000\210\001\001\022\032\n\n" + "cache_mode\030\300\310\342\r" - + " \001(\tH\001\210\001\001\022\032\n" - + "\n" + + " \001(\tH\001\210\001\001\022\032\n\n" + "client_ttl\030\370\216\354\r" + " \001(\005H\002\210\001\001\022\033\n" + "\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n" + "\007max_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n" + "\020negative_caching\030\265\303\242\240\001 \001(\010H\005\210\001\001\022h\n" - + "\027negative_caching_policy\030\374\265\212J \003(\0132D.google" - + ".cloud.compute.v1.BackendBucketCdnPolicyNegativeCachingPolicy\022#\n" + + "\027negative_caching_policy\030\374\265\212J \003(\0132D.goo" + + "gle.cloud.compute.v1.BackendBucketCdnPolicyNegativeCachingPolicy\022#\n" + "\022request_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022!\n" + "\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n" + "\034signed_url_cache_max_age_sec\030\306\250\271\200\001" @@ -10175,17 +10573,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + + "\010_warning\"\261\002\n" + + "\027BackendBucketListUsable\022\020\n" + + "\002id\030\233\032 \001(\tH\000\210\001\001\0228\n" + + "\005items\030\300\317\367/ \003(\0132&.google.cloud.compute.v1.BackendBucket\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + "\003_idB\007\n" + + "\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n" + "\010_warning\"\273\001\n" + "\023BackendBucketParams\022h\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132E.google.cloud.compute.v1.Bac" - + "kendBucketParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(" + + "\0132E.google.cloud.compute.v1.BackendBucketParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\">\n" + "\023BackendBucketUsedBy\022\031\n" + "\treference\030\313\376\354F \001(\tH\000\210\001\001B\014\n\n" - + "_reference\"\217\001\n" + + "_reference\"\245\001\n" + + "\030BackendBucketsScopedList\022B\n" + + "\017backend_buckets\030\236\232\333K" + + " \003(\0132&.google.cloud.compute.v1.BackendBucket\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + "\010_warning\"\217\001\n" + "\023BackendCustomMetric\022\030\n" + "\007dry_run\030\367\303\266\232\001 \001(\010H\000\210\001\001\022\037\n" + "\017max_utilization\030\307\367\324F \001(\002H\001\210\001\001\022\024\n" @@ -10204,10 +10620,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020compression_mode\030\334\221\306- \001(\tH\003\210\001\001\022Q\n" + "\023connection_draining\030\253\216\357\333\001" + " \001(\0132+.google.cloud.compute.v1.ConnectionDrainingH\004\210\001\001\022k\n" - + "\032connection_tracking_policy\030\331\340\324D \001(\0132?.google.cloud.compu" - + "te.v1.BackendServiceConnectionTrackingPolicyH\005\210\001\001\022[\n" - + "\017consistent_hash\030\233\2457 \001(\0132;.g" - + "oogle.cloud.compute.v1.ConsistentHashLoadBalancerSettingsH\006\210\001\001\022\"\n" + + "\032connection_tracking_policy\030\331\340\324D \001(\0132?.google.cloud.comput" + + "e.v1.BackendServiceConnectionTrackingPolicyH\005\210\001\001\022[\n" + + "\017consistent_hash\030\233\2457 \001(\0132;.go" + + "ogle.cloud.compute.v1.ConsistentHashLoadBalancerSettingsH\006\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022O\n" + "\016custom_metrics\030\365\343\343\314\001" + " \003(\01323.google.cloud.compute.v1.BackendServiceCustomMetric\022!\n" @@ -10225,8 +10641,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01325.google.cloud.compute.v1.BackendServiceFailoverPolicyH\r" + "\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\016\210\001\001\022K\n" - + "\tha_policy\030\270\366\362\367\001 " - + "\001(\0132/.google.cloud.compute.v1.BackendServiceHAPolicyH\017\210\001\001\022\031\n\r" + + "\tha_policy\030\270\366\362\367\001 \001" + + "(\0132/.google.cloud.compute.v1.BackendServiceHAPolicyH\017\210\001\001\022\031\n\r" + "health_checks\030\256\257\346\325\001 \003(\t\022>\n" + "\003iap\030\330\254\006" + " \001(\0132*.google.cloud.compute.v1.BackendServiceIAPH\020\210\001\001\022\020\n" @@ -10234,21 +10650,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ip_address_selection_policy\030\310\260\200% \001(\tH\022\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\023\210\001\001\022&\n" + "\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\024\210\001\001\022i\n" - + "\024locality_lb_policies\030\235\362\234C \003(\0132H.google.clou" - + "d.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig\022\"\n" + + "\024locality_lb_policies\030\235\362\234C \003(\0132H.google.cloud" + + ".compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig\022\"\n" + "\022locality_lb_policy\030\277\370\325> \001(\tH\025\210\001\001\022M\n\n" - + "log_config\030\235\321\301\247\001 \001(\013" - + "20.google.cloud.compute.v1.BackendServiceLogConfigH\026\210\001\001\022F\n" + + "log_config\030\235\321\301\247\001 \001(\0132" + + "0.google.cloud.compute.v1.BackendServiceLogConfigH\026\210\001\001\022F\n" + "\023max_stream_duration\030\230\245\245\035" + " \001(\0132!.google.cloud.compute.v1.DurationH\027\210\001\001\022L\n" - + "\tmetadatas\030\244\326\207\004 \003(\01326.google.c" - + "loud.compute.v1.BackendService.MetadatasEntry\022\024\n" + + "\tmetadatas\030\244\326\207\004 \003(\01326.google.cl" + + "oud.compute.v1.BackendService.MetadatasEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\030\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\031\210\001\001\022\200\001\n" - + "&network_pass_through_lb_traffic_policy\030\246\354\351m \001(\0132H.google.cloud." - + "compute.v1.BackendServiceNetworkPassThroughLbTrafficPolicyH\032\210\001\001\022]\n" - + "\022orchestration_info\030\354\247\255\322\001 \001(\01328.google.cloud.compute.v" - + "1.BackendServiceOrchestrationInfoH\033\210\001\001\022M\n" + + "&network_pass_through_lb_traffic_policy\030\246\354\351m \001(\0132H.google.cloud.c" + + "ompute.v1.BackendServiceNetworkPassThroughLbTrafficPolicyH\032\210\001\001\022]\n" + + "\022orchestration_info\030\354\247\255\322\001" + + " \001(\01328.google.cloud.compute.v1.BackendServiceOrchestrationInfoH\033\210\001\001\022M\n" + "\021outlier_detection\030\276\314\214\251\001" + " \001(\0132).google.cloud.compute.v1.OutlierDetectionH\034\210\001\001\022E\n" + "\006params\030\206\363\253%" @@ -10258,8 +10674,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010protocol\030\230\235\252( \001(\tH \210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH!\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tH\"\210\001\001\022M\n" - + "\021security_settings\030\302\274\236\344\001 \001(\0132).google" - + ".cloud.compute.v1.SecuritySettingsH#\210\001\001\022\032\n" + + "\021security_settings\030\302\274\236\344\001 \001(\0132).google." + + "cloud.compute.v1.SecuritySettingsH#\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH$\210\001\001\022\033\n" + "\020service_bindings\030\330\221\331? \003(\t\022!\n" + "\021service_lb_policy\030\221\216\235- \001(\tH%\210\001\001\022!\n" @@ -10269,8 +10685,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "subsetting\030\220\220\333\326\001" + " \001(\0132#.google.cloud.compute.v1.SubsettingH(\210\001\001\022\033\n" + "\013timeout_sec\030\363\300\222& \001(\005H)\210\001\001\022P\n" - + "\014tls_settings\030\347\255\200\' \001(\01322.google.cloud" - + ".compute.v1.BackendServiceTlsSettingsH*\210\001\001\022B\n" + + "\014tls_settings\030\347\255\200\' \001(\01322.google.cloud." + + "compute.v1.BackendServiceTlsSettingsH*\210\001\001\022B\n" + "\007used_by\030\231\240\322\271\001" + " \003(\0132-.google.cloud.compute.v1.BackendServiceUsedBy\0320\n" + "\016MetadatasEntry\022\013\n" @@ -10386,19 +10802,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n" + + "\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\013" - + "22.google.cloud.compute.v1.BackendServicesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132" + + "2.google.cloud.compute.v1.BackendServicesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\267\007\n" + "\027BackendServiceCdnPolicy\022w\n" - + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 \003(\0132J.google" - + ".cloud.compute.v1.BackendServiceCdnPolicyBypassCacheOnRequestHeader\022I\n" + + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 \003(\0132J.google." + + "cloud.compute.v1.BackendServiceCdnPolicyBypassCacheOnRequestHeader\022I\n" + "\020cache_key_policy\030\357\327\370K" + " \001(\0132\'.google.cloud.compute.v1.CacheKeyPolicyH\000\210\001\001\022\032\n\n" + "cache_mode\030\300\310\342\r" @@ -10408,8 +10825,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n" + "\007max_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n" + "\020negative_caching\030\265\303\242\240\001 \001(\010H\005\210\001\001\022i\n" - + "\027negative_caching_policy\030\374\265\212J" - + " \003(\0132E.google.cloud.compute.v1.BackendServiceCdnPolicyNegativeCachingPolicy\022#\n" + + "\027negative_caching_policy\030\374\265\212J " + + "\003(\0132E.google.cloud.compute.v1.BackendServiceCdnPolicyNegativeCachingPolicy\022#\n" + "\022request_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022!\n" + "\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n" + "\034signed_url_cache_max_age_sec\030\306\250\271\200\001" @@ -10467,15 +10884,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$disable_connection_drain_on_failover\030\341\314\355V" + " \001(\010H\000\210\001\001\022)\n" + "\031drop_traffic_if_unhealthy\030\224\315\3055 \001(\010H\001\210\001\001\022\036\n" - + "\016failover_ratio\030\376\224\264e \001(\002H\002\210\001\001B\'\n" + + "\016failover_ratio\030\376\224\264e \001(\002H\002\210\001\001B", + "\'\n" + "%_disable_connection_drain_on_failoverB\034\n" + "\032_drop_traffic_if_unhealthyB\021\n" + "\017_failover_ratio\"\215\002\n" + "\031BackendServiceGroupHealth\022[\n" - + "\013annotations\030\244\366\2655 \003(\0132C.google.cloud." - + "compute.v1.BackendServiceGroupHealth.AnnotationsEntry\022@\n\r" - + "health_status\030\265\326\272\265\001 \003(\013" - + "2%.google.cloud.compute.v1.HealthStatus\022\024\n" + + "\013annotations\030\244\366\2655 \003(\0132C.google.cloud.c" + + "ompute.v1.BackendServiceGroupHealth.AnnotationsEntry\022@\n\r" + + "health_status\030\265\326\272\265\001 \003(\0132" + + "%.google.cloud.compute.v1.HealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -10483,8 +10901,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kind\"\362\001\n" + "\026BackendServiceHAPolicy\022\035\n\r" + "fast_i_p_move\030\331\276\224j \001(\tH\000\210\001\001\022N\n" - + "\006leader\030\211\212\241\360\001 \001(\013" - + "25.google.cloud.compute.v1.BackendServiceHAPolicyLeaderH\001\210\001\001\"L\n\n" + + "\006leader\030\211\212\241\360\001 \001(\0132" + + "5.google.cloud.compute.v1.BackendServiceHAPolicyLeaderH\001\210\001\001\"L\n\n" + "FastIPMove\022\033\n" + "\027UNDEFINED_FAST_I_P_MOVE\020\000\022\020\n" + "\010DISABLED\020\374\324\260\366\001\022\017\n" @@ -10493,8 +10911,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_leader\"\315\001\n" + "\034BackendServiceHAPolicyLeader\022\036\n\r" + "backend_group\030\224\302\244\332\001 \001(\tH\000\210\001\001\022f\n" - + "\020network_endpoint\030\206\221\212\033 \001(\0132D.google.cloud.com" - + "pute.v1.BackendServiceHAPolicyLeaderNetworkEndpointH\001\210\001\001B\020\n" + + "\020network_endpoint\030\206\221\212\033 \001(\0132D.google.cloud.comp" + + "ute.v1.BackendServiceHAPolicyLeaderNetworkEndpointH\001\210\001\001B\020\n" + "\016_backend_groupB\023\n" + "\021_network_endpoint\"T\n" + "+BackendServiceHAPolicyLeaderNetworkEndpoint\022\030\n" @@ -10533,23 +10951,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + "\030BackendServiceListUsable\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(\0132\'" - + ".google.cloud.compute.v1.BackendService\022\024\n" + + "\005items\030\300\317\367/ \003(\0132\'." + + "google.cloud.compute.v1.BackendService\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co", - "mpute.v1.WarningH\004\210\001\001B\005\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\253\002\n" + "/BackendServiceLocalityLoadBalancingPolicyConfig\022s\n\r" - + "custom_policy\030\300\213\246\002 \001(\0132T.google.cloud.compute.v1.BackendServi" - + "ceLocalityLoadBalancingPolicyConfigCustomPolicyH\000\210\001\001\022f\n" - + "\006policy\030\262\312\266+ \001(\0132N.google" - + ".cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicyH\001\210\001\001B\020\n" + + "custom_policy\030\300\213\246\002 \001(\0132T.google.cloud.compute.v1.BackendServic" + + "eLocalityLoadBalancingPolicyConfigCustomPolicyH\000\210\001\001\022f\n" + + "\006policy\030\262\312\266+ \001(\0132N.google." + + "cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicyH\001\210\001\001B\020\n" + "\016_custom_policyB\t\n" + "\007_policy\"{\n" + ";BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy\022\024\n" @@ -10586,8 +11004,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_optional_modeB\016\n" + "\014_sample_rate\"\274\001\n" + "/BackendServiceNetworkPassThroughLbTrafficPolicy\022v\n" - + "\016zonal_affinity\030\303\212\333\377\001 \001(\0132U.google.cloud.compute.v1.Backen" - + "dServiceNetworkPassThroughLbTrafficPolicyZonalAffinityH\000\210\001\001B\021\n" + + "\016zonal_affinity\030\303\212\333\377\001 \001(\0132U.google.cloud.compute.v1.Backend" + + "ServiceNetworkPassThroughLbTrafficPolicyZonalAffinityH\000\210\001\001B\021\n" + "\017_zonal_affinity\"\264\002\n" + "\n" + + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022A\n" + + "\006params\030\206\363\253% \001(\0132).google.cloud.compute.v1.CommitmentParamsH\n" + + "\210\001\001\022\024\n" + + "\004plan\030\251\226\322\001 \001(\tH\013\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022>\n" + "\014reservations\030\247\354\314\276\001" + " \003(\0132$.google.cloud.compute.v1.Reservation\022R\n" - + "\017resource_status\030\303\372\367v \001(\01321.goog" - + "le.cloud.compute.v1.CommitmentResourceStatusH\014\210\001\001\022A\n" + + "\017resource_status\030\303\372\367v" + + " \001(\01321.google.cloud.compute.v1.CommitmentResourceStatusH\r" + + "\210\001\001\022A\n" + "\tresources\030\245\374\262N" + " \003(\0132+.google.cloud.compute.v1.ResourceCommitment\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\r" - + "\210\001\001\022(\n" - + "\027split_source_commitment\030\324\267\375\277\001 \001(\tH\016\210\001\001\022\037\n" - + "\017start_timestamp\030\371\252\361\' \001(\tH\017\210\001\001\022\026\n" - + "\006status\030\362\237\267V \001(\tH\020\210\001\001\022\037\n" - + "\016status_message\030\272\311\351\215\001 \001(\tH\021\210\001\001\022\024\n" - + "\004type\030\272\236\332\001 \001(\tH\022\210\001\001\"b\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022(\n" + + "\027split_source_commitment\030\324\267\375\277\001 \001(\tH\017\210\001\001\022\037\n" + + "\017start_timestamp\030\371\252\361\' \001(\tH\020\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\021\210\001\001\022\037\n" + + "\016status_message\030\272\311\351\215\001 \001(\tH\022\210\001\001\022\024\n" + + "\004type\030\272\236\332\001 \001(\tH\023\210\001\001\"b\n" + "\010Category\022\026\n" + "\022UNDEFINED_CATEGORY\020\000\022\034\n" + "\024CATEGORY_UNSPECIFIED\020\326\272\346\362\001\022\017\n" @@ -11064,7 +11498,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\037\n" + "\030ACCELERATOR_OPTIMIZED_A4\020\277\317\316K\022\030\n" + "\021COMPUTE_OPTIMIZED\020\337\355\300K\022\035\n" - + "\025COMPUTE_OPTIMIZED_C2D\020\365\300\337\266\001\022\034\n" + + "\025COMPUTE_OPTIMIZED_", + "C2D\020\365\300\337\266\001\022\034\n" + "\024COMPUTE_OPTIMIZED_C3\020\260\253\213\314\001\022\035\n" + "\025COMPUTE_OPTIMIZED_C3D\020\224\301\337\266\001\022\034\n" + "\024COMPUTE_OPTIMIZED_H3\020\313\254\213\314\001\022\035\n" @@ -11106,7 +11541,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\023\n" + "\021_license_resourceB\007\n" - + "\005_nameB\007\n" + + "\005_nameB\t\n" + + "\007_paramsB\007\n" + "\005_planB\t\n" + "\007_regionB\022\n" + "\020_resource_statusB\014\n\n" @@ -11118,8 +11554,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\277\003\n" + "\030CommitmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<" + + ".google.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -11128,11 +11564,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001" - + "(\0132..google.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132..google.c" + + "loud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\245\002\n" + "\016CommitmentList\022\020\n" @@ -11147,7 +11584,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"|\n" + + "\010_warning\"\265\001\n" + + "\020CommitmentParams\022e\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.compute.v" + + "1.CommitmentParams.ResourceManagerTagsEntry\032:\n" + + "\030ResourceManagerTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"|\n" + "\030CommitmentResourceStatus\0226\n" + "%custom_term_eligibility_end_timestamp\030\373\253\307\255\001 \001(" + "\tH\000\210\001\001B(\n" @@ -11161,8 +11604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CompositeHealthCheck\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\033\n" - + "\013fingerpr", - "int\030\344\321\363o \001(\tH\002\210\001\001\022#\n" + + "\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022#\n" + "\022health_destination\030\253\365\253\224\001 \001(\tH\003\210\001\001\022\032\n" + "\016health_sources\030\325\321\334\275\001 \003(\t\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" @@ -11183,8 +11625,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\335\003\n" + "\"CompositeHealthCheckAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute." - + "v1.CompositeHealthCheckAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.clo" + + "ud.compute.v1.CompositeHealthCheckAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -11193,13 +11635,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.google.cloud.compute" - + ".v1.CompositeHealthChecksScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.google.cl" + + "oud.compute.v1.CompositeHealthChecksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"\271\002\n" + + "\010_warning\"\272\002\n" + + "\032CompositeHealthCheckHealth\022m\n" + + "\016health_sources\030\325\321\334\275\001 \003(\0132Q.google.cloud.compute.v1.Co" + + "mpositeHealthChecksGetHealthResponseHealthSourceHealth\022\035\n" + + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\"^\n" + + "\013HealthState\022\032\n" + + "\026UNDEFINED_HEALTH_STATE\020\000\022\017\n" + + "\007HEALTHY\020\375\252\333\321\001\022\021\n" + + "\tUNHEALTHY\020\304\271\255\334\001\022\017\n" + + "\007UNKNOWN\020\252\360\304\316\001B\017\n\r" + + "_health_stateB\007\n" + + "\005_kind\"\271\002\n" + "\030CompositeHealthCheckList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" + "\005items\030\300\317\367/" @@ -11213,7 +11667,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"\274\001\n" + + "\010_warning\"\355\001\n" + + "8CompositeHealthChecksGetHealthResponseHealthSourceHealth\022\035\n" + + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\026\n" + + "\006source\030\233\320\301T \001(\tH\001\210\001\001\"^\n" + + "\013HealthState\022\032\n" + + "\026UNDEFINED_HEALTH_STATE\020\000\022\017\n" + + "\007HEALTHY\020\375\252\333\321\001\022\021\n" + + "\tUNHEALTHY\020\304\271\255\334\001\022\017\n" + + "\007UNKNOWN\020\252\360\304\316\001B\017\n" + + "\r" + + "_health_stateB\t\n" + + "\007_source\"\274\001\n" + "\037CompositeHealthChecksScopedList\022R\n" + "\027composite_health_checks\030\366\307\371\366\001" + " \003(\0132-.google.cloud.compute.v1.CompositeHealthCheck\0229\n" @@ -11237,8 +11702,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024draining_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001B\027\n" + "\025_draining_timeout_sec\"\210\002\n" + "\"ConsistentHashLoadBalancerSettings\022b\n" - + "\013http_cookie\030\373\253\227\003 \001(\0132E.google.cloud.compute.v" - + "1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022 \n" + + "\013http_cookie\030\373\253\227\003 \001(\0132E.google.cloud.c" + + "ompute.v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022 \n" + "\020http_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!\n" + "\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n" + "\014_http_cookieB\023\n" @@ -11273,8 +11738,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*CreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_create_instances_request_resource\030\223\372\332\013" - + " \001(\0132D.google." - + "cloud.compute.v1.InstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D" + + ".google.cloud.compute.v1.InstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -11286,16 +11751,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_instance_group_" - + "managers_create_instances_request_resource\030\210\277\230\253\001" - + " \001(\0132J.google.cloud.compute.v1.R" - + "egionInstanceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_instanc" + + "e_group_managers_create_instances_request_resource\030\210\277\230\253\001" + + " \001(\0132J.google.cloud.comp" + + "ute.v1.RegionInstanceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\367\001\n" + "%CreateMembersInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022\205\001\n" - + "3interconnect_groups_create_members_request_resource\030\355\374\213\246\001 \001(" - + "\0132?.google.cloud.compute.v1.InterconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + + "3interconnect_groups_create_members_request_resource\030\355\374\213\246\001" + + " \001(\0132?.google.cloud.compute.v1.Inte" + + "rconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\"\221\002\n" + "\031CreateSnapshotDiskRequest\022\024\n" @@ -11304,8 +11770,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022E\n" - + "\021snapshot_resource\030\251\270\301\345\001 \001" - + "(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002\022\033\n" + + "\021snapshot_resource\030\251\270\301\345\001" + + " \001(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\016\n" + "\014_guest_flushB\r\n" @@ -11335,8 +11801,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CrossSiteNetworkList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022;\n" - + "\005items\030\300\317\367/ \003(\013" - + "2).google.cloud.compute.v1.CrossSiteNetwork\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132).google.cloud.compute.v1.CrossSiteNetwork\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -11350,8 +11816,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\270\001\n" + "\031CustomErrorResponsePolicy\022j\n" - + "\024error_response_rules\030\220\255\374\006 \003(\0132I.google.cloud." - + "compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + + "\024error_response_rules\030\220\255\374\006 \003(\0132I.googl" + + "e.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + "error_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n" + "\016_error_service\"\266\001\n" + "0CustomErrorResponsePolicyCustomErrorResponseRule\022\037\n" @@ -11366,16 +11832,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027kms_key_service_account\030\325\305\220d \001(\tH\001\210\001\001\022\030\n" + "\007raw_key\030\310\343\230\326\001 \001(\tH\002\210\001\001\022\"\n" + "\021rsa_encrypted_key\030\245\303\374\237\001 \001(\tH\003\210\001\001\022\026\n" - + "\006sha256\030\247\354\216Q \001(\tH\004\210\001\001B\017\n" - + "\r" + + "\006sha256\030\247\354\216Q \001(\tH\004\210\001\001B\017\n\r" + "_kms_key_nameB\032\n" + "\030_kms_key_service_accountB\n\n" + "\010_raw_keyB\024\n" + "\022_rsa_encrypted_keyB\t\n" + "\007_sha256\"\265\001\n" + "\"CustomerEncryptionKeyProtectedDisk\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132" - + "..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\t\n" + "\007_source\"C\n" @@ -11405,8 +11870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\241\001\n" + "\027DeleteAutoscalerRequest\022\033\n\n" @@ -11510,8 +11974,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030DeleteHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"y\n" + "\022DeleteImageRequest\022\025\n" @@ -11562,8 +12025,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*DeleteInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_delete_instances_request_resource\030\204\306\255O" - + " \001(\0132D.google.cloud.compute.v1." - + "InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.com" + + "pute.v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -11576,9 +12039,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "@region_instance_group_managers_delete_instances_request_resource\030\371\212\353\356\001" - + " \001(\0132J.go" - + "ogle.cloud.compute.v1.RegionInstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132J.google.cloud.compute.v1.RegionInst" + + "anceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\266\001\n" + + "!DeleteInstantSnapshotGroupRequest\022&\n" + + "\026instant_snapshot_group\030\342\354\265j \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\254\001\n" + "\034DeleteInstantSnapshotRequest\022!\n" + "\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022!\n" @@ -11604,7 +12075,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036DeleteInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\207\001\n" + "\031DeleteInterconnectRequest\022\034\n" @@ -11669,7 +12141,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\240\001\n" + "\026DeleteNodeGroupRequest\022\033\n\n" - + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022!\n" + + "node_group\030\202\374\213\340\001 \001(\tB", + "\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -11685,14 +12158,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\227\002\n" + "\033DeleteNodesNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022p\n" - + ")node_groups_delete_nodes_request_resource\030\222\327\263W" - + " \001(\01325.google.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\003\340A\002\022!\n" + + ")node_groups_delete_nodes_request_resource\030\222\327\263W \001(\0132" + + "5.google.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"u\n" + "\'DeleteOrganizationSecurityPolicyRequest\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" @@ -11708,10 +12180,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\274\002\n" + "3DeletePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\234\001\n" - + "@instance_group_managers_delet" - + "e_per_instance_configs_req_resource\030\240\352\350\254\001" - + " \001(\0132I.google.cloud.compute.v1.Instance" - + "GroupManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + + "@instance_group_managers_delete_per_instance_configs_req_resource\030\240\352\350\254\001" + + " \001(\0132I.google.cloud.compute.v1.InstanceGroupMa" + + "nagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -11722,8 +12193,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\234\001\n" + "Aregion_instance_group_manager_delete_instance_config_req_resource\030\205\233-" - + " \001(\0132J.google.cloud.compute.v1.RegionInstanceGr" - + "oupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + + " \001(\0132J.google." + + "cloud.compute.v1.RegionInstanceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + "$DeletePublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" @@ -11743,6 +12214,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\261\001\n" + + " DeleteRegionBackendBucketRequest\022\036\n" + + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\264\001\n" + "!DeleteRegionBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n" @@ -11793,13 +12271,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\300\001\n" - + "\'DeleteRegionInstanceG", - "roupManagerRequest\022&\n" + + "\'DeleteRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\355\001\n" + + "4DeleteRegionInstanceGroupManagerResizeRequestRequest\022&\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\036\n" + + "\016resize_request\030\204\204\271g \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\270\001\n" + "#DeleteRegionInstanceTemplateRequest\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022!\n" @@ -11807,6 +12292,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\300\001\n" + + "\'DeleteRegionInstantSnapshotGroupRequest\022&\n" + + "\026instant_snapshot_group\030\342\354\265j \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\266\001\n" + "\"DeleteRegionInstantSnapshotRequest\022!\n" + "\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022!\n" @@ -11846,7 +12338,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" - + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n" + + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r" + + "\n" + + "\013_request_id\"\247\001\n" + + "\033DeleteRegionSnapshotRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n" + + "\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\263\001\n" + "!DeleteRegionSslCertificateRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -11936,8 +12436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036DeleteServiceAttachmentRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022service_attachment\030\355\251\320\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\261\001\n" @@ -11952,8 +12451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\031\n" + "\010key_name\030\353\360\356\356\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\200\001\n" + "\025DeleteSnapshotRequest\022!\n" @@ -11986,7 +12484,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\217\001\n" + "\034DeleteTargetGrpcProxyRequest\022!\n" @@ -11997,10 +12496,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\217\001\n" + "\034DeleteTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" - + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002B\r\n" + + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002B\r" + + "\n" + "\013_request_id\"\221\001\n" + "\035DeleteTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -12051,7 +12550,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027DeleteVpnGatewayRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013vpn_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\243\001\n" @@ -12073,7 +12573,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\035\n" - + "\033DeleteZoneOperationResponse\"J\n" + + "\033DeleteZoneOperationResponse\"\265\001\n" + + "\"DeleteZoneVmExtensionPolicyRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022$\n" + + "\023vm_extension_policy\030\272\223\213\236\001 \001(\tB\003\340A\002\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004zoneB\r\n" + + "\013_request_id\"J\n" + "\006Denied\022\035\n" + "\014I_p_protocol\030\275\366\336\350\001 \001(\tH\000\210\001\001\022\020\n" + "\005ports\030\222\360\3712 \003(\tB\017\n\r" @@ -12114,8 +12622,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\317\002\n" + "7DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest\022\234\001\n" + "@global_network_endpoint_groups_detach_endpoints_request_resource\030\335\215\237\004" - + " \001(\0132J.google.clo" - + "ud.compute.v1.GlobalNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + + " \001(\0132J.google.c" + + "loud.compute.v1.GlobalNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -12124,8 +12632,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1DetachNetworkEndpointsNetworkEndpointGroupRequest\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n" + "9network_endpoint_groups_detach_endpoints_request_resource\030\371\240\356\365\001" - + " \001(\0132D.goo" - + "gle.cloud.compute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + + " \001(\0132D.g" + + "oogle.cloud.compute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -12137,10 +12645,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_net" - + "work_endpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" - + " \001(\0132J.google.cloud." - + "compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + + "@region_n" + + "etwork_endpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" + + " \001(\0132J.google.clou" + + "d.compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"l\n" + "\034DisableXpnHostProjectRequest\022!\n" @@ -12151,21 +12659,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " DisableXpnResourceProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022z\n" - + ".projects_disable_xpn_resource_request_resource\030\252\324\334c \001(\0132:.google.c" - + "loud.compute.v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + + ".projects_disable_xpn_resource_request_resource\030\252\324\334c \001(\0132:.google" + + ".cloud.compute.v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\317\032\n" + "\004Disk\022\033\n" + "\013access_mode\030\236\367\317\023 \001(\tH\000\210\001\001\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n" - + "\022async_primary_disk\030\235\365\211V \001(\0132-." - + "google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132" + + "-.google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" + "\025async_secondary_disks\030\250\350\375\231\001" + " \003(\01326.google.cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132" - + "..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(" + + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" @@ -12194,8 +12702,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "replica_zones\030\200\270\214\027 \003(\t\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022L\n" - + "\017resource_status\030\303\372\367v \001(\013" - + "2+.google.cloud.compute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001" + + "(\0132+.google.cloud.compute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\025\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\026\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\027\210\001\001\022\030\n" @@ -12206,8 +12714,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013source_disk\030\301\356\264\327\001 \001(\tH\033\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\034\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\035\210\001\001\022\\\n" - + "\033source_image_encryption_key\030\253\221\365\265\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + + "\033source_image_encryption_key\030\253\221\365\265\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + "\017source_image_id\030\243\374\260\032 \001(\tH\037\210\001\001\022\'\n" + "\027source_instant_snapshot\030\206\204\303h \001(\tH \210\001\001\022+\n" + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037\n" @@ -12223,10 +12731,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tH)\210\001\001\032m\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002 \001(\01321.goog" - + "le.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + + "\005value\030\002 \001(\01321.go" + + "ogle.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"q\n\n" + "AccessMode\022\031\n" + "\025UNDEFINED_ACCESS_MODE\020\000\022\025\n" @@ -12251,7 +12760,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_async_primary_diskB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\026\n" - + "\024_disk_encryption_keyB\036\n" + + "\024_d", + "isk_encryption_keyB\036\n" + "\034_enable_confidential_computeB\005\n" + "\003_idB\007\n" + "\005_kindB\024\n" @@ -12316,8 +12826,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_diskB\n\n" + "\010_disk_id\"\214\001\n" + "\030DiskAsyncReplicationList\022U\n" - + "\026async_replication_disk\030\223\313\303n " - + "\001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + + "\026async_replication_disk\030\223\313\303n" + + " \001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + "\027_async_replication_disk\"\244\003\n" + "\027DiskInstantiationConfig\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\034\n" @@ -12356,20 +12866,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\016\n" + "\014_target_disk\"\251\001\n\n" + "DiskParams\022_\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132<" - + ".google.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\013" + + "2<.google.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" + "\022DiskResourceStatus\022e\n" - + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.cloud.compute.v1" - + ".DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" - + "\025async_secondary_disks\030\250\350\375\231\001 \003(" - + "\0132D.google.cloud.compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.cloud.compute." + + "v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" + + "\025async_secondary_disks\030\250\350\375\231\001 " + + "\003(\0132D.google.cloud.compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022P\n" - + "\005value\030\002 \001(\0132A.google.cloud.compute.v1.DiskRe" - + "sourceStatusAsyncReplicationStatus:\0028\001B\025\n" + + "\005value\030\002 \001(\0132A.google.cloud.compute.v1.Disk" + + "ResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + "\023_async_primary_disk\"\332\001\n" + "(DiskResourceStatusAsyncReplicationStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n" @@ -12385,8 +12895,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DiskType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022%\n" + "\024default_disk_size_gb\030\365\244\205\201\001 \001(\003H\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*.goo" - + "gle.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.g" + + "oogle.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" @@ -12409,8 +12919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026DiskTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google.cloud." - + "compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google.clou" + + "d.compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12432,8 +12942,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .g", - "oogle.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -12442,9 +12952,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023DiskTypesScopedList\0228\n\n" + "disk_types\030\327\276\355^ \003(\0132!.google.cloud.compute.v1.DiskType\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" - + "\010_warning\"?\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + "\010_warning\"I\n" + + "\027DiskUpdateKmsKeyRequest\022\035\n" + + "\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001B\017\n\r" + + "_kms_key_name\"?\n" + "\037DisksAddResourcePoliciesRequest\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\"B\n" @@ -12470,8 +12982,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_enable_display\"\201\002\n" + "\022DistributionPolicy\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022N\n" - + "\005zones\030\307\244\2557 \003(\0132<" - + ".google.cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + + "\005zones\030\307\244\2557 \003(\0132<.go" + + "ogle.cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -12496,8 +13008,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" + "-projects_enable_xpn_resource_request_resource\030\257\320\233\311\001" - + " \001(\01329.google.cloud.comput" - + "e.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + + " \001(\01329.google.cloud.compute.v" + + "1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"<\n" + "\005Error\0223\n" @@ -12506,21 +13018,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014ErrorDetails\022>\n\n" + "error_info\030\205\241\205\014" + " \001(\0132\".google.cloud.compute.v1.ErrorInfoH\000\210\001\001\0223\n" - + "\004help\030\301\236\303\001" - + " \001(\0132\035.google.cloud.compute.v1.HelpH\001\210\001\001\022M\n" - + "\021localized_message\030\303\376\362\300\001 \001(\0132).googl" - + "e.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" + + "\004help\030\301\236\303\001 \001" + + "(\0132\035.google.cloud.compute.v1.HelpH\001\210\001\001\022M\n" + + "\021localized_message\030\303\376\362\300\001" + + " \001(\0132).google.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n" + + "\n" + "quota_info\030\225\324\344," + " \001(\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + "\013_error_infoB\007\n" + "\005_helpB\024\n" - + "\022_localized_messageB\r" - + "\n" + + "\022_localized_messageB\r\n" + "\013_quota_info\"\315\001\n" + "\tErrorInfo\022\027\n" + "\006domain\030\304\251\317\207\001 \001(\tH\000\210\001\001\022G\n" - + "\tmetadatas\030\244\326\207\004 \003(\01321.goo" - + "gle.cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + + "\tmetadatas\030\244\326\207\004 \003(\01321.google" + + ".cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + "\006reason\030\304\244\226B \001(\tH\001\210\001\001\0320\n" + "\016MetadatasEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -12529,8 +13041,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_reason\"\267\001\n" + "\006Errors\022\024\n" + "\004code\030\355\333\272\001 \001(\tH\000\210\001\001\022@\n\r" - + "error_details\030\213\306\373\202\001 \003(" - + "\0132%.google.cloud.compute.v1.ErrorDetails\022\031\n" + + "error_details\030\213\306\373\202\001" + + " \003(\0132%.google.cloud.compute.v1.ErrorDetails\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\001\210\001\001\022\030\n" + "\007message\030\207\200\254\307\001 \001(\tH\002\210\001\001B\007\n" + "\005_codeB\013\n" @@ -12574,8 +13086,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022\200\001\n" + "1subnetworks_expand_ip_cidr_range_request_resource\030\336\320\272\343\001" - + " \001(\0132<.google.clou" - + "d.compute.v1.SubnetworksExpandIpCidrRangeRequestB\003\340A\002B\r\n" + + " \001(\0132<.google.cloud.c" + + "ompute.v1.SubnetworksExpandIpCidrRangeRequestB\003\340A\002B\r\n" + "\013_request_id\"\251\001\n" + "\004Expr\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n\n" @@ -12594,11 +13106,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01324.google.cloud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud.com" - + "pute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01327.google.cloud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022I\n" - + "\006params\030\206\363\253% \001(\0132" - + "1.google.cloud.compute.v1.ExternalVpnGatewayParamsH\006\210\001\001\022 \n" + + "\006params\030\206\363\253% \001(\01321.g" + + "oogle.cloud.compute.v1.ExternalVpnGatewayParamsH\006\210\001\001\022 \n" + "\017redundancy_type\030\234\316\267\201\001 \001(\tH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -12623,15 +13135,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\001\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\002\210\001\001B\005\n" - + "\003_idB\r" - + "\n" + + "\003_idB\r\n" + "\013_ip_addressB\017\n\r" + "_ipv6_address\"\324\002\n" + "\026ExternalVpnGatewayList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022=\n" - + "\005items\030\300\317\367/ \003(\0132+.go" - + "ogle.cloud.compute.v1.ExternalVpnGateway\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132+.google.cloud.compute.v1.ExternalVpnGateway\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\0229\n" @@ -12641,11 +13152,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\305\001\n" + "\030ExternalVpnGatewayParams\022m\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132J." - + "google.cloud.compute.v1.ExternalVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132J.goo" + + "gle.cloud.compute.v1.ExternalVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\262\001\n" @@ -12711,7 +13223,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\275\001\n" + "\021FirewallLogConfig\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022\030\n" @@ -12723,8 +13236,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\013\n" + "\t_metadata\"\261\001\n" + "\016FirewallParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compu" - + "te.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compute." + + "v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\227\001\n" @@ -12734,14 +13247,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\253\001\n" + "\032FirewallPoliciesScopedList\022F\n" - + "\021firewall_policies\030\257\213\225\273\001 \003(" - + "\0132\'.google.cloud.compute.v1.FirewallPolicy\0229\n" + + "\021firewall_policies\030\257\213\225\273\001 \003(\0132\'" + + ".google.cloud.compute.v1.FirewallPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\231\007\n" + "\016FirewallPolicy\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322" - + ".google.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + + "\014associations\030\222\350\312\362\001 \003(\01322.go" + + "ogle.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\002\210\001\001\022\033\n" @@ -12749,8 +13262,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+.goog" - + "le.cloud.compute.v1.FirewallPolicyRule\022\026\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\026\n" + "\006parent\030\252\221\254% \001(\tH\007\210\001\001\022\033\n" + "\013policy_type\030\247\244\324\010 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022!\n" @@ -12793,8 +13306,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_name\"\203\002\n" + "\022FirewallPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -12846,8 +13359,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021dest_network_type\030\250\272\267\303\001 \001(\tH\001\210\001\001\022\034\n" + "\021dest_region_codes\030\230\253\371^ \003(\t\022$\n" + "\031dest_threat_intelligences\030\254\363\2259 \003(\t\022Z\n" - + "\016layer4_configs\030\265\334\216\262\001 \003(\0132" - + ">.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + + "\016layer4_configs\030\265\334\216\262\001 \003(\0132>.g" + + "oogle.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + "\022src_address_groups\030\272\230\215\320\001 \003(\t\022\025\n" + "\tsrc_fqdns\030\343\314\355\317\001 \003(\t\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\022#\n" @@ -12916,7 +13429,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002H\n" + "\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\013\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\014\210\001\001\022\035\n\r" + + "\002id\030\233\032 \001(\004H", + "\014\210\001\001\022\035\n\r" + "ip_collection\030\266\221\250T \001(\tH\r" + "\210\001\001\022\033\n\n" + "ip_version\030\300\363\322\214\001 \001(\tH\016\210\001\001\022&\n" @@ -12939,17 +13453,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\032\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\033\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\034\210\001\001\022o\n" - + "\037service_directory_registrations\030\376\261\314j \003(\0132C.g" - + "oogle.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + + "\037service_directory_registrations\030\376\261\314j \003(\0132C.goog" + + "le.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + "service_label\030\352\231\354\306\001 \001(\tH\035\210\001\001\022\035\n" + "\014service_name\030\325\253\315\253\001 \001(\tH\036\210\001\001\022\033\n" - + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n" - + "\n" + + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\037\210\001\001\022\026\n" + "\006target\030\221\343\371[ \001(\tH \210\001\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\261\001\n" + "*ExternalManagedBackendBucketMigrationState\022=\n" + "9UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE\020\000\022\017\n" @@ -13038,8 +13550,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + + "\005value\030\002 " + + "\001(\01322.google.cloud.compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -13070,11 +13582,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_serviceB\033\n" + "\031_service_directory_region\"\251\001\n" + "\031ForwardingRulesScopedList\022E\n" - + "\020forwarding_rules\030\265\232\314\226\001" - + " \003(\0132\'.google.cloud.compute.v1.ForwardingRule\0229\n" + + "\020forwarding_rules\030\265\232\314\226\001 " + + "\003(\0132\'.google.cloud.compute.v1.ForwardingRule\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" - + "\010_warning\"\314\021\n" + + "\010_warning\"\205\024\n" + "\021FutureReservation\022_\n" + "\025aggregate_reservation\030\314\362\203\213\001" + " \001(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\000\210\001\001\0225\n" @@ -13084,36 +13596,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.DurationH\002\210\001\001\0226\n" + "%auto_delete_auto_created_reservations\030\252\343\245\352\001" + " \001(\010H\003\210\001\001\022Y\n" - + "\017commitment_info\030\230\357\257N \001(\01328.google.cloud." - + "compute.v1.FutureReservationCommitmentInfoH\004\210\001\001\022\"\n" - + "\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022 \n" - + "\017deployment_type\030\364\200\226\275\001 \001(\tH\006\210\001\001\022\034\n" - + "\013description\030\374\207\326\311\001 \001(\tH\007\210\001\001\022,\n" - + "\033enable_emergent_maintenance\030\211\342\327\250\001" - + " \001(\010H\010\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\n" + + "\017commitment_info\030\230\357\257N \001(\01328.google.cloud.com" + + "pute.v1.FutureReservationCommitmentInfoH\004\210\001\001\022*\n" + + "\031confidential_compute_type\030\231\357\242\270\001 \001(\tH\005\210\001\001\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\006\210\001\001\022 \n" + + "\017deployment_type\030\364\200\226\275\001 \001(\tH\007\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\010\210\001\001\022,\n" + + "\033enable_emergent_maintenance\030\211\342\327\250\001 \001(\010H" + + "\t\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022\024\n" - + "\004nam", - "e\030\213\365\315\001 \001(\tH\013\210\001\001\022\033\n" - + "\013name_prefix\030\306\245\335p \001(\tH\014\210\001\001\022\037\n" - + "\017planning_status\030\224\246\263\t \001(\tH\r" - + "\210\001\001\022!\n" - + "\020reservation_mode\030\266\334\234\204\001 \001(\tH\016\210\001\001\022!\n" - + "\020reservation_name\030\236\336\235\204\001 \001(\tH\017\210\001\001\022\037\n" - + "\017scheduling_type\030\205\376\244_ \001(\tH\020\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022!\n" - + "\021self_link_with_id\030\202\254\235\025 \001(\tH\022\210\001\001\022F\n" + + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022\024\n" + + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022\033\n" + + "\013name_prefix\030\306\245\335p \001(\tH\r" + + "\210\001\001\022H\n" + + "\006params\030\206\363\253% \001(\01320.google.cloud." + + "compute.v1.FutureReservationParamsH\016\210\001\001\022\037\n" + + "\017planning_status\030\224\246\263\t \001(\tH\017\210\001\001\022!\n" + + "\020reservation_mode\030\266\334\234\204\001 \001(\tH\020\210\001\001\022!\n" + + "\020reservation_name\030\236\336\235\204\001 \001(\tH\021\210\001\001\022\037\n" + + "\017scheduling_type\030\205\376\244_ \001(\tH\022\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022!\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\024\210\001\001\022F\n" + "\016share_settings\030\203\221\224\177" - + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\023\210\001\001\022-\n" - + "\035specific_reservation_required\030\237\307\203l \001(\010H\024\210\001\001\022h\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\0132?" - + ".google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\025\210\001\001\022H\n" - + "\006status\030\362\237\267V" - + " \001(\01320.google.cloud.compute.v1.FutureReservationStatusH\026\210\001\001\022R\n" - + "\013time_window\030\242\353\330\311\001" - + " \001(\01324.google.cloud.compute.v1.FutureReservationTimeWindowH\027\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tH\030\210\001\001\"a\n" + + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\025\210\001\001\022-\n" + + "\035specific_reservation_required\030\237\307\203l \001(\010H\026\210\001\001\022h\n" + + "\027specific_sku_properties\030\302\370\3653 \001(\0132?.goog" + + "le.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\027\210\001\001\022H\n" + + "\006status\030\362\237\267V \001" + + "(\01320.google.cloud.compute.v1.FutureReservationStatusH\030\210\001\001\022R\n" + + "\013time_window\030\242\353\330\311\001 \001" + + "(\01324.google.cloud.compute.v1.FutureReservationTimeWindowH\031\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\032\210\001\001\"\227\001\n" + + "\027ConfidentialComputeType\022\'\n" + + "#UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE\020\000\022%\n" + + "\035CONFIDENTIAL_COMPUTE_TYPE_TDX\020\342\254\322\217\001\022,\n" + + "%CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED\020\221\257\221\024\"a\n" + "\016DeploymentType\022\035\n" + "\031UNDEFINED_DEPLOYMENT_TYPE\020\000\022\014\n" + "\005DENSE\020\377\225\373\036\022\"\n" @@ -13137,7 +13655,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&_auto_created_reservations_delete_timeB%\n" + "#_auto_created_reservations_durationB(\n" + "&_auto_delete_auto_created_reservationsB\022\n" - + "\020_commitment_infoB\025\n" + + "\020_commitment_infoB\034\n" + + "\032_confidential_compute_typeB\025\n" + "\023_creation_timestampB\022\n" + "\020_deployment_typeB\016\n" + "\014_descriptionB\036\n" @@ -13145,7 +13664,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\007\n" + "\005_nameB\016\n" - + "\014_name_prefixB\022\n" + + "\014_name_prefixB\t\n" + + "\007_paramsB\022\n" + "\020_planning_statusB\023\n" + "\021_reservation_modeB\023\n" + "\021_reservation_nameB\022\n" @@ -13173,10 +13693,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"PREVIOUSCOMMITMENTTERM_UNSPECIFIED\020\220\362\372.B\022\n" + "\020_commitment_nameB\022\n" + "\020_commitment_planB\034\n" - + "\032_previous_commitment_terms\"\256\002\n" + + "\032_previous_commitment_terms\"\303\001\n" + + "\027FutureReservationParams\022l\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(" + + "\0132I.google.cloud.compute.v1.FutureReservationParams.ResourceManagerTagsEntry\032:\n" + + "\030ResourceManagerTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\256\002\n" + "&FutureReservationSpecificSKUProperties\022w\n" - + "\023instance_properties\030\235\236\330f \001(\0132R.google.cloud.c" - + "ompute.v1.AllocationSpecificSKUAllocationReservedInstancePropertiesH\000\210\001\001\022)\n" + + "\023instance_properties\030\235\236\330f \001(\0132R.google.cloud.compute.v1.Al" + + "locationSpecificSKUAllocationReservedInstancePropertiesH\000\210\001\001\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(" + "\tH\001\210\001\001\022\033\n" + "\013total_count\030\324\230\310= \001(\003H\002\210\001\001B\026\n" @@ -13186,16 +13712,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027FutureReservationStatus\022 \n" + "\020amendment_status\030\344\242\253w \001(\tH\000\210\001\001\022$\n" + "\031auto_created_reservations\030\256\225\356B \003(\t\022x\n" - + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.go" - + "ogle.cloud.compute.v1.FutureReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022" - + " \n" + + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.google.cloud.c" + + "ompute.v1.FutureReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022 \n" + "\017fulfilled_count\030\357\223\246\230\001 \001(\003H\002\210\001\001\022i\n" - + "\025last_known_good_state\030\224\337\370[ \001(\0132B.google.cloud.c" - + "ompute.v1.FutureReservationStatusLastKnownGoodStateH\003\210\001\001\022\031\n" + + "\025last_known_good_state\030\224\337\370[ \001(\0132B.google.cloud.compute.v1.Fu" + + "tureReservationStatusLastKnownGoodStateH\003\210\001\001\022\031\n" + "\tlock_time\030\341\222\307D \001(\tH\004\210\001\001\022\"\n" + "\022procurement_status\030\341\340\223k \001(\tH\005\210\001\001\022n\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\0132E.go" - + "ogle.cloud.compute.v1.FutureReservationStatusSpecificSKUPropertiesH\006\210\001\001\"\251\001\n" + + "\027specific_sku_properties\030\302\370\3653 \001(\0132E.google.cloud.c" + + "ompute.v1.FutureReservationStatusSpecificSKUPropertiesH\006\210\001\001\"\251\001\n" + "\017AmendmentStatus\022\036\n" + "\032UNDEFINED_AMENDMENT_STATUS\020\000\022\031\n" + "\022AMENDMENT_APPROVED\020\311\237\346G\022\031\n" @@ -13231,12 +13756,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_timestamp\"\213\007\n" + ")FutureReservationStatusLastKnownGoodState\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022x\n" - + "\034existing_matching_usage_info\030\332\212\223\363\001" - + " \001(\0132I.google.cloud.compute.v1.Futur" - + "eReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022\202\001\n" - + "\030future_reservation_specs\030\351\224\255\'" - + " \001(\0132X.google.cloud.compute.v1.FutureR" - + "eservationStatusLastKnownGoodStateFutureReservationSpecsH\002\210\001\001\022\031\n" + + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.g" + + "oogle.cloud.compute.v1.FutureReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022\202\001\n" + + "\030future_reservation_specs\030\351\224\255\' \001(\0132X.goo" + + "gle.cloud.compute.v1.FutureReservationSt" + + "atusLastKnownGoodStateFutureReservationSpecsH\002\210\001\001\022\031\n" + "\tlock_time\030\341\222\307D \001(\tH\003\210\001\001\022\033\n" + "\013name_prefix\030\306\245\335p \001(\tH\004\210\001\001\022\"\n" + "\022procurement_status\030\341\340\223k \001(\tH\005\210\001\001\"\341\002\n" @@ -13262,12 +13786,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_name_prefixB\025\n" + "\023_procurement_status\"\206\003\n" + "?FutureReservationStatusLastKnownGoodStateFutureReservationSpecs\022F\n" - + "\016share_settings\030\203\221\224\177" - + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\000\210\001\001\022h\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\0132?.google.cloud.compute." - + "v1.FutureReservationSpecificSKUPropertiesH\001\210\001\001\022R\n" - + "\013time_window\030\242\353\330\311\001 \001(\01324.google" - + ".cloud.compute.v1.FutureReservationTimeWindowH\002\210\001\001B\021\n" + + "\016share_settings\030\203\221\224\177 " + + "\001(\0132&.google.cloud.compute.v1.ShareSettingsH\000\210\001\001\022h\n" + + "\027specific_sku_properties\030\302\370\3653" + + " \001(\0132?.google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\001\210\001\001\022R\n" + + "\013time_window\030\242\353\330\311\001 \001(\01324.google.cloud.compu" + + "te.v1.FutureReservationTimeWindowH\002\210\001\001B\021\n" + "\017_share_settingsB\032\n" + "\030_specific_sku_propertiesB\016\n" + "\014_time_window\"{\n" @@ -13275,10 +13799,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033source_instance_template_id\030\372\357\2025 \001(\tH\000\210\001\001B\036\n" + "\034_source_instance_template_id\"\271\001\n" + "\033FutureReservationTimeWindow\022;\n" - + "\010duration\030\224\233\221J" - + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022\030\n" - + "\010end_time\030\261\247\3476 \001(\tH\001\210\001\001\022\032\n" - + "\n" + + "\010duration\030\224\233\221J \001(\0132" + + "!.google.cloud.compute.v1.DurationH\000\210\001\001\022\030\n" + + "\010end_time\030\261\247\3476 \001(\tH\001\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\002\210\001\001B\013\n" + "\t_durationB\013\n" + "\t_end_timeB\r\n" @@ -13286,8 +13809,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(FutureReservationsAggregatedListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.google.cloud.compute.v1.Futu" - + "reReservationsAggregatedListResponse.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L." + + "google.cloud.compute.v1.FutureReservationsAggregatedListResponse.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -13307,8 +13830,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036FutureReservationsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\0132" - + "*.google.cloud.compute.v1.FutureReservation\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.FutureReservation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -13330,15 +13853,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035FutureResourcesRecommendation\022\030\n" + "\010end_time\030\261\247\3476 \001(\tH\000\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\001\210\001\001\022f\n" - + "\017other_locations\030\357\371\300U \003(\0132J.google.cloud.compute." - + "v1.FutureResourcesRecommendation.OtherLocationsEntry\022\"\n" + + "\017other_locations\030\357\371\300U \003(\0132J.google.cloud.compute.v1.FutureRes" + + "ourcesRecommendation.OtherLocationsEntry\022\"\n" + "\021recommendation_id\030\341\326\243\342\001 \001(\tH\002\210\001\001\022#\n" + "\023recommendation_type\030\200\350\203n \001(\tH\003\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\004\210\001\001\032z\n" + "\023OtherLocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002" - + " \001(\0132C.google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation:\0028\001\"z\n" + + "\005value\030\002 \001(\0132C.googl" + + "e.cloud.compute.v1.FutureResourcesRecommendationOtherLocation:\0028\001\"z\n" + "\022RecommendationType\022!\n" + "\035UNDEFINED_RECOMMENDATION_TYPE\020\000\022\031\n" + "\022FUTURE_RESERVATION\020\260\326\310\023\022&\n" @@ -13362,12 +13885,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\366\003\n" + "\023FutureResourcesSpec\022 \n" + "\017deployment_type\030\364\200\226\275\001 \001(\tH\000\210\001\001\022\\\n" - + "\017location_policy\030\374\271\207\336\001 \001(\0132:.google.cloud.com" - + "pute.v1.FutureResourcesSpecLocationPolicyH\001\210\001\001\022^\n" - + "\020target_resources\030\367\321\360\373\001 \001(\0132;.g" - + "oogle.cloud.compute.v1.FutureResourcesSpecTargetResourcesH\002\210\001\001\022K\n" - + "\017time_range_spec\030\257\314\3077" - + " \001(\0132*.google.cloud.compute.v1.FlexibleTimeRangeH\003\210\001\001\"a\n" + + "\017location_policy\030\374\271\207\336\001" + + " \001(\0132:.google.cloud.compute.v1.FutureResourcesSpecLocationPolicyH\001\210\001\001\022^\n" + + "\020target_resources\030\367\321\360\373\001 \001(\0132;.google.cloud." + + "compute.v1.FutureResourcesSpecTargetResourcesH\002\210\001\001\022K\n" + + "\017time_range_spec\030\257\314\3077 \001(\0132*" + + ".google.cloud.compute.v1.FlexibleTimeRangeH\003\210\001\001\"a\n" + "\016DeploymentType\022\035\n" + "\031UNDEFINED_DEPLOYMENT_TYPE\020\000\022\014\n" + "\005DENSE\020\377\225\373\036\022\"\n" @@ -13408,33 +13931,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_disk_interfaceB\017\n\r" + "_disk_size_gb\"\373\001\n" + "!FutureResourcesSpecLocationPolicy\022`\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132I." - + "google.cloud.compute.v1.FutureResourcesSpecLocationPolicy.LocationsEntry\032t\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132I.google.cloud" + + ".compute.v1.FutureResourcesSpecLocationPolicy.LocationsEntry\032t\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022Q\n" - + "\005value\030\002 \001(\0132B" - + ".google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation:\0028\001\"\270\001\n" + + "\005value\030\002 \001(\0132B.google.clou" + + "d.compute.v1.FutureResourcesSpecLocationPolicyLocation:\0028\001\"\270\001\n" + ")FutureResourcesSpecLocationPolicyLocation\022\032\n\n" + "preference\030\333\371\362G \001(\tH\000\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" - + "\005ALLOW\020\251\326\336\035\022\n" - + "\n" + + "\005ALLOW\020\251\326\336\035\022\n\n" + "\004DENY\020\214\354\177\022\036\n" + "\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001B\r\n" + "\013_preference\"\354\001\n" + "\'FutureResourcesSpecSpecificSKUResources\022\036\n" + "\016instance_count\030\345\211\357$ \001(\003H\000\210\001\001\022_\n" - + "\024local_ssd_partitions\030\270\306\270\340\001" - + " \003(\0132=.google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition\022\034\n" + + "\024local_ssd_partitions\030\270\306\270\340\001 \003(\0132=.go" + + "ogle.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\001\210\001\001B\021\n" + "\017_instance_countB\017\n\r" + "_machine_type\"\246\002\n" + "\"FutureResourcesSpecTargetResources\022c\n" - + "\023aggregate_resources\030\245\247\237V" - + " \001(\0132>.google.cloud.compute.v1.FutureResourcesSpecAggregateResourcesH\000\210\001\001\022h\n" - + "\026specific_sku_resources\030\266\342\254\177 \001(\0132@.google" - + ".cloud.compute.v1.FutureResourcesSpecSpecificSKUResourcesH\001\210\001\001B\026\n" + + "\023aggregate_resources\030\245\247\237V \001(\0132>.go" + + "ogle.cloud.compute.v1.FutureResourcesSpecAggregateResourcesH\000\210\001\001\022h\n" + + "\026specific_sku_resources\030\266\342\254\177 \001(\0132@.google.cloud.compu" + + "te.v1.FutureResourcesSpecSpecificSKUResourcesH\001\210\001\001B\026\n" + "\024_aggregate_resourcesB\031\n" + "\027_specific_sku_resources\"\315\002\n" + "\017GRPCHealthCheck\022!\n" @@ -13488,7 +14010,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" - + "\006region\030\364\315\240B \001(\tB\003\340A\002B\007\n" + + "\006regio", + "n\030\364\315\240B \001(\tB\003\340A\002B\007\n" + "\005_name\"b\n" + "\024GetAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tB\003\340A\002\022\027\n" @@ -13581,8 +14104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036GetHealthBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022b\n" - + "!resource_group_reference_resource\030\323\376\3555 \001(\0132" - + "/.google.cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"O\n" + + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google.clo" + + "ud.compute.v1.ResourceGroupReferenceB\003\340A\002\"O\n" + "\025GetHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"\335\001\n" @@ -13590,11 +14113,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022b\n" - + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google.cloud." - + "compute.v1.ResourceGroupReferenceB\003\340A\002\"\304\001\n" + + "!resource_group_reference_resource\030\323\376\3555" + + " \001(\0132/.google.cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"\206\001\n" + + "*GetHealthRegionCompositeHealthCheckRequest\022\'\n" + + "\026composite_health_check\030\235\300\326\336\001 \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"u\n" + + "\"GetHealthRegionHealthSourceRequest\022\036\n\r" + + "health_source\030\336\206\305\263\001 \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"\304\001\n" + "\032GetHealthTargetPoolRequest\022X\n" - + "\033instance_reference_resource\030\354\344\326\213\001 \001(\0132*.google." - + "cloud.compute.v1.InstanceReferenceB\003\340A\002\022\027\n" + + "\033instance_reference_resource\030\354\344\326\213\001 \001(\0132*.goo" + + "gle.cloud.compute.v1.InstanceReferenceB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\"\255\001\n" @@ -13640,6 +14171,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\000\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + + "!_options_requested_policy_version\"\312\001\n" + + "\'GetIamPolicyInstantSnapshotGroupRequest\0221\n" + + " options_requested_policy_version\030\275\374\205\356\001" + + " \001(\005H\000\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n" + "!_options_requested_policy_version\"\305\001\n" + "\"GetIamPolicyInstantSnapshotRequest\0221\n" + " options_requested_policy_version\030\275\374\205\356\001" @@ -13655,8 +14193,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + "!_options_requested_policy_version\"\261\001\n" + "$GetIamPolicyInterconnectGroupRequest\0221\n" - + " options_reques", - "ted_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\027\n" + + " options_requested_policy_version\030\275\374\205\356\001" + + " \001(\005H\000\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + "!_options_requested_policy_version\"\247\001\n" @@ -13698,6 +14236,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + + "!_options_requested_policy_version\"\313\001\n" + + "&GetIamPolicyRegionBackendBucketRequest\0221\n" + + " options_requested_policy_version\030\275\374\205\356\001" + + " \001(\005H\000\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + "!_options_requested_policy_version\"\314\001\n" + "\'GetIamPolicyRegionBackendServiceRequest\0221\n" + " options_requested_policy_version\030\275\374\205\356\001" @@ -13712,6 +14257,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + + "!_options_requested_policy_version\"\322\001\n" + + "-GetIamPolicyRegionInstantSnapshotGroupRequest\0221\n" + + " options_requested_policy_version\030\275\374\205\356\001" + + " \001(\005H\000\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + "!_options_requested_policy_version\"\315\001\n" + "(GetIamPolicyRegionInstantSnapshotRequest\0221\n" + " options_requested_policy_version\030\275\374\205\356\001" @@ -13726,6 +14278,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + + "!_options_requested_policy_version\"\306\001\n" + + "!GetIamPolicyRegionSnapshotRequest\0221\n" + + " options_requested_policy_version\030\275\374\205\356\001" + + " \001(\005H\000\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n" + "!_options_requested_policy_version\"\347\001\n" + "#GetIamPolicyReservationBlockRequest\0221\n" + " options_requested_policy_version\030\275\374\205\356\001" @@ -13813,7 +14372,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"Y\n" + "\032GetInstanceTemplateRequest\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022\027\n" - + "\007project\030\231\226\301l \001(\tB\003\340A\002\"m\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\"w\n" + + "\036GetInstantSnapshotGroupRequest\022&\n" + + "\026instant_snapshot_group\030\342\354\265j \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"m\n" + "\031GetInstantSnapshotRequest\022!\n" + "\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" @@ -13944,6 +14507,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032GetRegionAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"p\n" + + "\035GetRegionBackendBucketRequest\022\036\n" + + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\"s\n" + "\036GetRegionBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" @@ -13984,7 +14551,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$GetRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" - + "\006region\030\364\315\240B \001(\tB\003\340A\002\"p\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"\254\001\n" + + "1GetRegionInstanceGroupManagerResizeRequestRequest\022&\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\036\n" + + "\016resize_request\030\204\204\271g \001(\tB\003\340A\002\"p\n" + "\035GetRegionInstanceGroupRequest\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -13992,6 +14564,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " GetRegionInstanceTemplateRequest\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003", + "\340A\002\"\177\n" + + "$GetRegionInstantSnapshotGroupRequest\022&\n" + + "\026instant_snapshot_group\030\342\354\265j \001(\tB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\"u\n" + "\037GetRegionInstantSnapshotRequest\022!\n" + "\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022\027\n" @@ -14020,7 +14597,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036GetRegionSecurityPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\037\n" - + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\"r\n" + + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\"f\n" + + "\030GetRegionSnapshotRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\031\n" + + "\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002\"R\n" + + "\037GetRegionSnapshotSettingRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\"r\n" + "\036GetRegionSslCertificateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\037\n" @@ -14223,11 +14807,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132<.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfoH\000\210\001\001B\023\n" + "\021_inline_sbom_info\"\256\003\n" + "#GetVersionOperationMetadataSbomInfo\022\202\001\n" - + "\032current_component_versions\030\243\270\252\202\001 \003(\0132Z.google.cloud.comput" - + "e.v1.GetVersionOperationMetadataSbomInfo.CurrentComponentVersionsEntry\022\200\001\n" - + "\031target_component_versions\030\213\202\376\244\001 \003(\0132Y.google." - + "cloud.compute.v1.GetVersionOperationMetadataSbomInfo.TargetComponentVersionsEntr", - "y\032?\n" + + "\032current_component_versions\030\243\270\252\202\001" + + " \003(\0132Z.google.cloud.compute.v1" + + ".GetVersionOperationMetadataSbomInfo.CurrentComponentVersionsEntry\022\200\001\n" + + "\031target_component_versions\030\213\202\376\244\001 \003(\0132Y.google.clou" + + "d.compute.v1.GetVersionOperationMetadataSbomInfo.TargetComponentVersionsEntry\032?\n" + "\035CurrentComponentVersionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032>\n" @@ -14240,8 +14824,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\020reservation_slot\030\221\275\247\204\001 \001(\tB\003\340A\002\022{\n" - + ".reservation_slots_get_version_request_resource\030\253\210\362\237\001 \001(\0132:.go" - + "ogle.cloud.compute.v1.ReservationSlotsGetVersionRequestB\003\340A\002\022\033\n" + + ".reservation_slots_get_version_request_resource\030\253\210\362\237\001" + + " \001(\0132:.google" + + ".cloud.compute.v1.ReservationSlotsGetVersionRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\334\002\n" @@ -14253,8 +14838,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025reservation_sub_block\030\233\312\354\n" + " \001(\tB\003\340A\002\022\203\001\n" + "3reservation_sub_blocks_get_version_request_resource\030\265\372\254j" - + " \001(\0132>.google.cloud.co" - + "mpute.v1.ReservationSubBlocksGetVersionRequestB\003\340A\002\022\033\n" + + " \001(\0132>.google.cloud.comput" + + "e.v1.ReservationSubBlocksGetVersionRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"e\n" @@ -14292,6 +14877,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"?\n" + "\016GetZoneRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"v\n" + + "\037GetZoneVmExtensionPolicyRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022$\n" + + "\023vm_extension_policy\030\272\223\213\236\001 \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\210\001\n" + "\032GlobalAddressesMoveRequest\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n" @@ -14314,8 +14903,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_policy\"\321\001\n" + "\026GlobalSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(\0132;.googl" - + "e.cloud.compute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;.google.cl" + + "oud.compute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -14324,8 +14913,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n" - + "\006policy\030\262\312\266+" - + " \001(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + + "\006policy\030\262\312\266+ \001" + + "(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_policy\"\340\006\n" + "\024GroupMaintenanceInfo\0222\n" @@ -14340,8 +14929,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\005\210\001\001\0229\n" + "(subblock_infra_maintenance_pending_count\030\232\331\301\221\001" + " \001(\005H\006\210\001\001\022Y\n" - + "\032upcoming_group_maintenance\030\360\311\315\273\001 \001(\0132,.google." - + "cloud.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + + "\032upcoming_group_maintenance\030\360\311\315\273\001 \001(\0132,.google.clou" + + "d.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + "\016SchedulingType\022\035\n" + "\031UNDEFINED_SCHEDULING_TYPE\020\000\022\017\n" + "\007GROUPED\020\276\326\243\342\001\022*\n" @@ -14358,8 +14947,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017GuestAttributes\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\033\n\n" + "query_path\030\274\202\341\257\001 \001(\tH\001\210\001\001\022J\n" - + "\013query_value\030\272\256\221K \001(\0132-.google.clou" - + "d.compute.v1.GuestAttributesValueH\002\210\001\001\022\032\n" + + "\013query_value\030\272\256\221K" + + " \001(\0132-.google.cloud.compute.v1.GuestAttributesValueH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\034\n" + "\014variable_key\030\234\204\260N \001(\tH\004\210\001\001\022\036\n" + "\016variable_value\030\356\363\263; \001(\tH\005\210\001\001B\007\n" @@ -14472,8 +15061,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_request_pathB\013\n" + "\t_response\"\306\001\n" + "#HealthAggregationPoliciesScopedList\022X\n" - + "\033health_aggregation_policies\030\220\210\342) \003(\01320.google.cl" - + "oud.compute.v1.HealthAggregationPolicy\0229\n" + + "\033health_aggregation_policies\030\220\210\342)" + + " \003(\01320.google.cloud.compute.v1.HealthAggregationPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\252\005\n" @@ -14511,8 +15100,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\347\003\n" + "%HealthAggregationPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022[\n" - + "\005items\030\300\317\367/ \003(\0132I.googl" - + "e.cloud.compute.v1.HealthAggregationPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132I.google.cl" + + "oud.compute.v1.HealthAggregationPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14521,8 +15110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032j\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022K\n" - + "\005value\030\002 \001(\0132<.g" - + "oogle.cloud.compute.v1.HealthAggregationPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132<.googl" + + "e.cloud.compute.v1.HealthAggregationPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14530,8 +15119,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\277\002\n" + "\033HealthAggregationPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022B\n" - + "\005items\030\300\317\367/ \003(\01320.googl" - + "e.cloud.compute.v1.HealthAggregationPolicy\022\024\n" + + "\005items\030\300\317\367/ \003(\01320.google.cl" + + "oud.compute.v1.HealthAggregationPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14546,17 +15135,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022check_interval_sec\030\256\257\343\244\001 \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022K\n" - + "\021grpc_health_check\030\346\247\344( \001(\0132(.go" - + "ogle.cloud.compute.v1.GRPCHealthCheckH\003\210\001\001\022R\n" - + "\025grpc_tls_health_check\030\252\210\271\177 \001(\0132+.g" - + "oogle.cloud.compute.v1.GRPCTLSHealthCheckH\004\210\001\001\022\"\n" + + "\021grpc_health_check\030\346\247\344( \001(\0132(.google" + + ".cloud.compute.v1.GRPCHealthCheckH\003\210\001\001\022R\n" + + "\025grpc_tls_health_check\030\252\210\271\177 \001(\0132+.googl" + + "e.cloud.compute.v1.GRPCTLSHealthCheckH\004\210\001\001\022\"\n" + "\021healthy_threshold\030\311\220\242\300\001 \001(\005H\005\210\001\001\022M\n" - + "\022http2_health_check\030\332\265\265\005 \001(\0132).goog" - + "le.cloud.compute.v1.HTTP2HealthCheckH\006\210\001\001\022L\n" - + "\021http_health_check\030\274\247\336\304\001 \001(\0132(.googl" - + "e.cloud.compute.v1.HTTPHealthCheckH\007\210\001\001\022N\n" - + "\022https_health_check\030\271\230\366\317\001 \001(\0132).google" - + ".cloud.compute.v1.HTTPSHealthCheckH\010\210\001\001\022\020\n" + + "\022http2_health_check\030\332\265\265\005" + + " \001(\0132).google.cloud.compute.v1.HTTP2HealthCheckH\006\210\001\001\022L\n" + + "\021http_health_check\030\274\247\336\304\001" + + " \001(\0132(.google.cloud.compute.v1.HTTPHealthCheckH\007\210\001\001\022N\n" + + "\022https_health_check\030\271\230\366\317\001" + + " \001(\0132).google.cloud.compute.v1.HTTPSHealthCheckH\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022J\n\n" @@ -14567,10 +15156,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022\032\n" + "\016source_regions\030\333\367\261\301\001 \003(\t\022J\n" - + "\020ssl_health_check\030\270\351\303\205\001" - + " \001(\0132\'.google.cloud.compute.v1.SSLHealthCheckH\017\210\001\001\022J\n" - + "\020tcp_health_check\030\203\252\215\340\001 " - + "\001(\0132\'.google.cloud.compute.v1.TCPHealthCheckH\020\210\001\001\022\033\n" + + "\020ssl_health_check\030\270\351\303\205\001 " + + "\001(\0132\'.google.cloud.compute.v1.SSLHealthCheckH\017\210\001\001\022J\n" + + "\020tcp_health_check\030\203\252\215\340\001 \001(\0132" + + "\'.google.cloud.compute.v1.TCPHealthCheckH\020\210\001\001\022\033\n" + "\013timeout_sec\030\363\300\222& \001(\005H\021\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\022\210\001\001\022#\n" + "\023unhealthy_threshold\030\320\275\331l \001(\005H\023\210\001\001\"\215\001\n" @@ -14599,7 +15188,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\t\n" + "\007_regionB\014\n\n" + "_self_linkB\023\n" - + "\021_ssl_health_checkB\023\n" + + "\021_ssl_health_ch", + "eckB\023\n" + "\021_tcp_health_checkB\016\n" + "\014_timeout_secB\007\n" + "\005_typeB\026\n" @@ -14652,8 +15242,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\327\003\n" + " HealthCheckServiceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022V\n" - + "\005items\030\300\317\367/ \003(\0132D.google.cloud.compu" - + "te.v1.HealthCheckServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132D.google.cloud.compute.v" + + "1.HealthCheckServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14662,8 +15252,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032d\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.google.cloud.comput" - + "e.v1.HealthCheckServicesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01326.google.cloud.compute.v1.HealthCheckServicesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14687,15 +15277,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\035HealthCheckServicesScopedList\022A\n" - + "\tresources\030\245\374\262N" - + " \003(\0132+.google.cloud.compute.v1.HealthCheckService\0229\n" + + "\tresources\030\245\374\262N \003(\013" + + "2+.google.cloud.compute.v1.HealthCheckService\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\304\003\n" + "\032HealthChecksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/ \003(\0132>.google.clo" - + "ud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.google.cloud.c" + + "ompute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14747,8 +15337,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_source_type\"\305\003\n" + "\032HealthSourceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/ \003(\0132>" - + ".google.cloud.compute.v1.HealthSourceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.goo" + + "gle.cloud.compute.v1.HealthSourceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14757,13 +15347,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032^\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002 \001(\01320.google" - + ".cloud.compute.v1.HealthSourcesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01320.google.clo" + + "ud.compute.v1.HealthSourcesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" - + "\010_warning\"\251\002\n" + + "\010_warning\"\232\002\n" + + "\022HealthSourceHealth\022\035\n" + + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022U\n" + + "\007sources\030\270\267\362; \003(\0132" + + "A.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo\"^\n" + + "\013HealthState\022\032\n" + + "\026UNDEFINED_HEALTH_STATE\020\000\022\017\n" + + "\007HEALTHY\020\375\252\333\321\001\022\021\n" + + "\tUNHEALTHY\020\304\271\255\334\001\022\017\n" + + "\007UNKNOWN\020\252\360\304\316\001B\017\n\r" + + "_health_stateB\007\n" + + "\005_kind\"\251\002\n" + "\020HealthSourceList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0227\n" + "\005items\030\300\317\367/ \003(\0132%.google.cloud.compute.v1.HealthSource\022\024\n" @@ -14776,7 +15379,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"\243\001\n" + + "\010_warning\"\347\001\n" + + "(HealthSourcesGetHealthResponseSourceInfo\022b\n" + + "\010backends\030\337\230\313\363\001 \003(\0132L.go" + + "ogle.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo\022 \n" + + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\026\n" + + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\022\n" + + "\020_forwarding_ruleB\t\n" + + "\007_source\"\316\001\n" + + "3HealthSourcesGetHealthResponseSourceInfoBackendInfo\022\037\n" + + "\016endpoint_count\030\345\233\206\350\001 \001(\005H\000\210\001\001\022\025\n" + + "\005group\030\377\354\203/ \001(\tH\001\210\001\001\022\'\n" + + "\026healthy_endpoint_count\030\307\311\362\212\001 \001(\005H\002\210\001\001B\021\n" + + "\017_endpoint_countB\010\n" + + "\006_groupB\031\n" + + "\027_healthy_endpoint_count\"\243\001\n" + "\027HealthSourcesScopedList\022A\n" + "\016health_sources\030\325\321\334\275\001" + " \003(\0132%.google.cloud.compute.v1.HealthSource\0229\n" @@ -14789,8 +15406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\"\n" + "\022forwarding_rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\002\210\001\001\022\030\n" - + "\010instance\030\225\251\332\010 \001(\tH\003\210\001\001\022\033\n" - + "\n" + + "\010instance\030\225\251\332\010 \001(\tH\003\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\004\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\005\210\001\001\022!\n" + "\021ipv6_health_state\030\306\200\340Z \001(\tH\006\210\001\001\022\024\n" @@ -14823,8 +15439,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_weightB\017\n\r" + "_weight_error\"\324\005\n" + "\036HealthStatusForNetworkEndpoint\022R\n" - + "\017backend_service\030\212\300\256\222\001 \001" - + "(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + + "\017backend_service\030\212\300\256\222\001" + + " \001(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + "\017forwarding_rule\030\376\245\335\200\001" + " \001(\01320.google.cloud.compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" + "\014health_check\030\345\252\244\223\001" @@ -14884,8 +15500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132).google.cloud.compute.v1.HttpHeaderOption\022$\n" + "\031request_headers_to_remove\030\237\317\223h \003(\t\022M\n" + "\027response_headers_to_add\030\364\266\251\017" - + " \003(\0132).google.cloud.compute.v1.Htt", - "pHeaderOption\022%\n" + + " \003(\0132).google.cloud.compute.v1.HttpHeaderOption\022%\n" + "\032response_headers_to_remove\030\321\201\373# \003(\t\"\260\003\n" + "\017HttpHeaderMatch\022\034\n" + "\013exact_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\033\n" @@ -14914,8 +15529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_replace\"\304\001\n" + "\027HttpQueryParameterMatch\022\034\n" + "\013exact_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022\035\n" - + "\r" + + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022\035\n\r" + "present_match\030\301\372\223 \001(\010H\002\210\001\001\022\033\n" + "\013regex_match\030\315\267\2323 \001(\tH\003\210\001\001B\016\n" + "\014_exact_matchB\007\n" @@ -14945,8 +15559,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017HttpRetryPolicy\022\033\n" + "\013num_retries\030\215\253\201x \001(\r" + "H\000\210\001\001\022C\n" - + "\017per_try_timeout\030\273\255\304\205\001 \001(" - + "\0132!.google.cloud.compute.v1.DurationH\001\210\001\001\022\033\n" + + "\017per_try_timeout\030\273\255\304\205\001" + + " \001(\0132!.google.cloud.compute.v1.DurationH\001\210\001\001\022\033\n" + "\020retry_conditions\030\257\341\336\r" + " \003(\tB\016\n" + "\014_num_retriesB\022\n" @@ -14954,41 +15568,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017HttpRouteAction\022A\n" + "\013cors_policy\030\204\314\235\276\001" + " \001(\0132#.google.cloud.compute.v1.CorsPolicyH\000\210\001\001\022T\n" - + "\026fault_injection_policy\030\227\224\352\304\001 \001(\0132+.google.c" - + "loud.compute.v1.HttpFaultInjectionH\001\210\001\001\022F\n" + + "\026fault_injection_policy\030\227\224\352\304\001 \001(\0132+.goog" + + "le.cloud.compute.v1.HttpFaultInjectionH\001\210\001\001\022F\n" + "\023max_stream_duration\030\230\245\245\035" + " \001(\0132!.google.cloud.compute.v1.DurationH\002\210\001\001\022S\n" - + "\025request_mirror_policy\030\202\340\377h" - + " \001(\0132,.google.cloud.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" + + "\025request_mirror_policy\030\202\340\377h \001(\0132,.google.c" + + "loud.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" + "\014retry_policy\030\251\345\212\033" + " \001(\0132(.google.cloud.compute.v1.HttpRetryPolicyH\004\210\001\001\022;\n" + "\007timeout\030\341\232\275\215\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022A\n" - + "\013url_rewrite\030\274\375\252\202\001" - + " \001(\0132#.google.cloud.compute.v1.UrlRewriteH\006\210\001\001\022V\n" - + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132/.go" - + "ogle.cloud.compute.v1.WeightedBackendServiceB\016\n" + + "\013url_rewrite\030\274\375\252\202\001 \001(\0132#" + + ".google.cloud.compute.v1.UrlRewriteH\006\210\001\001\022V\n" + + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132" + + "/.google.cloud.compute.v1.WeightedBackendServiceB\016\n" + "\014_cors_policyB\031\n" + "\027_fault_injection_policyB\026\n" + "\024_max_stream_durationB\030\n" + "\026_request_mirror_policyB\017\n\r" - + "_retry_policyB\n\n" + + "_retry_policyB\n" + + "\n" + "\010_timeoutB\016\n" + "\014_url_rewrite\"\350\004\n\r" + "HttpRouteRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332` \001(" - + "\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + + "\034custom_error_response_policy\030\353\370\332`" + + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132).go" - + "ogle.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" + + "header_action\030\250\240\270\234\001 \001(\0132" + + ").google.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" + "\013match_rules\030\375\273\261\263\001" + " \003(\0132+.google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001" - + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001 \001(\0132+.google.c" + + "loud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + "\035_custom_error_response_policyB\016\n" + "\014_descriptionB\020\n" + "\016_header_actionB\013\n" @@ -15017,8 +15632,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022#\n" + "\022archive_size_bytes\030\312\214\334\265\001 \001(\003H\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 " - + "\001(\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022\027\n" @@ -15031,15 +15646,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022>\n" - + "\006labels\030\377\277\301\356\001 \003(\0132*.g" - + "oogle.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\013" + + "2*.google.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022<\n" + "\006params\030\206\363\253% \001(\0132$.google.cloud.compute.v1.ImageParamsH\r" + "\210\001\001\022;\n" + "\010raw_disk\030\324\316\363\357\001 \001(\0132" - + " .google.cloud.compute.v1.RawDiskH\016\210\001\001\022\036\n\r" + + " .google.cloud.compute.v1.RawDiskH\016\210\001\001\022\036\n" + + "\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\017\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\020\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022\\\n" @@ -15125,8 +15741,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013ImageParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 " - + "\003(\0132=.google.cloud.compute.v1.ImageParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132=.google.cloud.compute.v1.ImageParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\216\002\n" @@ -15154,26 +15770,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\274\001\n" + "\032InsertBackendBucketRequest\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(" - + "\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001" + + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertBackendServiceRequest\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.goo" - + "gle.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'" + + ".google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "\035InsertCrossSiteNetworkRequest\022V\n" - + "\033cross_site_network_resource\030\270\344\335\016 \001(\0132).googl" - + "e.cloud.compute.v1.CrossSiteNetworkB\003\340A\002\022!\n" + + "\033cross_site_network_resource\030\270\344\335\016 \001(\0132).g" + + "oogle.cloud.compute.v1.CrossSiteNetworkB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\r" @@ -15199,14 +15814,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\304\001\n" + "\033InsertFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001" - + "(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022&\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022&\n" + "\tparent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\tparent_id\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\001\n" + "\025InsertFirewallRequest\022D\n" - + "\021firewall_resource\030\355\260\340\023" - + " \001(\0132!.google.cloud.compute.v1.FirewallB\003\340A\002\022!\n" + + "\021firewall_resource\030\355\260\340\023 \001(\0132!.google", + ".cloud.compute.v1.FirewallB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -15243,8 +15858,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\'InsertGlobalNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.google" - + ".cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.go" + + "ogle.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -15273,8 +15888,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_force_createB\r\n" + "\013_request_id\"\356\001\n" + "!InsertInstanceGroupManagerRequest\022^\n" - + "\037instance_group_manager_resource\030\212\212\276|" - + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.clou" + + "d.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -15284,7 +15899,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InsertInstanceGroupManagerResizeRequestRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n" + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" - + " \001(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute." + + "v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -15320,7 +15936,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\337\001\n" + + "\013_request_id\"\266\002\n" + + "!InsertInstantSnapshotGroupRequest\022^\n" + + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.google.clo" + + "ud.compute.v1.InstantSnapshotGroupB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022)\n" + + "\030source_consistency_group\030\364\314\257\375\001 \001(" + + "\tH\001\210\001\001\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004zoneB\r\n" + + "\013_request_idB\033\n" + + "\031_source_consistency_group\"\337\001\n" + "\034InsertInstantSnapshotRequest\022T\n" + "\031instant_snapshot_resource\030\313\252\210\267\001" + " \001(\0132(.google.cloud.compute.v1.InstantSnapshotB\003\340A\002\022!\n" @@ -15331,16 +15959,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\346\001\n" + "(InsertInterconnectAttachmentGroupRequest\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.google.cloud.c" - + "ompute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004" + + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\002\n" + "#InsertInterconnectAttachmentRequest\022a\n" - + " interconnect_attachment_resource\030\371\244\240e" - + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e \001" + + "(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15356,8 +15983,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\270\001\n" + "\031InsertInterconnectRequest\022M\n" - + "\025interconnect_resource\030\237\241\314\275\001" - + " \001(\0132%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + + "\025interconnect_resource\030\237\241\314\275\001 " + + "\001(\0132%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -15370,8 +15997,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\356\001\n" + "\031InsertMachineImageRequest\022M\n" - + "\026machine_image_resource\030\352\252\373\034" - + " \001(\0132%.google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + + "\026machine_image_resource\030\352\252\373\034 \001" + + "(\0132%.google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" @@ -15384,11 +16011,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\267\002\n" + "\'InsertNetworkEdgeSecurityServiceRequest\022l\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.googl" - + "e.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.google.c" + + "loud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15410,8 +16038,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\001\n" + "\024InsertNetworkRequest\022B\n" + "\020network_resource\030\377\335\234: \001(\0132" @@ -15422,8 +16049,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\026InsertNodeGroupRequest\022\"\n" + "\022initial_node_count\030\355\310\247\" \001(\005B\003\340A\002\022H\n" - + "\023node_group_resource\030\253\263\372\360\001 \001(\013" - + "2\".google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + + "\023node_group_resource\030\253\263\372\360\001 \001(\0132\"." + + "google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -15442,8 +16069,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tparent_id\030\320\341\232\333\001 \001(\tB\014\362G" + "\tparent_idH\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(\0132" - + "\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002B\014\n\n" + + "\030security_policy_resource\030\374\252\211g \001(\0132\'.g" + + "oogle.cloud.compute.v1.SecurityPolicyB\003\340A\002B\014\n\n" + "_parent_idB\r\n" + "\013_request_id\"\343\001\n" + "\034InsertPacketMirroringRequest\022T\n" @@ -15457,21 +16084,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$InsertPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.google.clou" - + "d.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o" + + " \001(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "#InsertPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026 " - + "\001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\013" + + "2..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\035InsertRegionAutoscalerRequest\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001(\0132#" - + ".google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b" + + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\343\001\n" + + " InsertRegionBackendBucketRequest\022P\n" + + "\027backend_bucket_resource\030\230\316\307\265\001" + + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15480,23 +16116,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!InsertRegionBackendServiceRequest\022R\n" + "\030backend_service_resource\030\243\201\337\245\001" + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" - + "\007pro", - "ject\030\231\226\301l \001(\tB\r" + + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\035InsertRegionCommitmentRequest\022H\n" - + "\023commitment_resource\030\370\243\273t" - + " \001(\0132#.google.cloud.compute.v1.CommitmentB\003\340A\002\022!\n" + + "\023commitment_resource\030\370\243\273t \001(\0132#." + + "google.cloud.compute.v1.CommitmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionCompositeHealthCheckRequest\022^\n" - + "\037composite_health_check_resource\030\360\313\204?" - + " \001(\0132-.google.cloud.compute.v1.CompositeHealthCheckB\003\340A\002\022!\n" + + "\037composite_health_check_resource\030\360\313\204? \001(\0132-" + + ".google.cloud.compute.v1.CompositeHealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15513,8 +16148,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\017\n\r" + "_source_image\"\202\002\n" + "*InsertRegionHealthAggregationPolicyRequest\022e\n" - + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320." - + "google.cloud.compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320.google.cloud." + + "compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15526,11 +16161,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\363\001\n" + "%InsertRegionHealthCheckServiceRequest\022[\n" - + "\035health_check_service_resource\030\362\233\320\343\001 \001(\0132+.google" - + ".cloud.compute.v1.HealthCheckServiceB\003\340A\002\022!\n" + + "\035health_check_service_resource\030\362\233\320\343\001" + + " \001(\0132+.google.cloud.compute.v1.HealthCheckServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15545,8 +16181,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionInstanceGroupManagerRequest\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.clo" - + "ud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\312\002\n" + + "4InsertRegionInstanceGroupManagerResizeRequestRequest\022&\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n" + + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" + + " \001(\0132:.google.cloud.compute.v1" + + ".InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15559,7 +16205,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\351\001\n" + + "\013_request_id\"\300\002\n" + + "\'InsertRegionInstantSnapshotGroupRequest\022^\n" + + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.g" + + "oogle.cloud.compute.v1.InstantSnapshotGroupB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022)\n" + + "\030source_consistency_group\030\364\314\257\375\001 \001(\tH\001\210\001\001B\r\n" + + "\013_request_idB\033\n" + + "\031_source_consistency_group\"\351\001\n" + "\"InsertRegionInstantSnapshotRequest\022T\n" + "\031instant_snapshot_resource\030\313\252\210\267\001" + " \001(\0132(.google.cloud.compute.v1.InstantSnapshotB\003\340A\002\022!\n" @@ -15569,16 +16225,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "\'InsertRegionNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.goog" - + "le.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.g" + + "oogle.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\355\001\n" + "(InsertRegionNetworkFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132" - + "\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001" + + "(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -15601,61 +16257,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" - + "\016_validate_only\"\345\001\n" + + "\016_validate_only\"\323\001\n" + + "\033InsertRegionSnapshotRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n" + + "\021snapshot_resource\030\251\270\301\345\001" + + " \001(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002B\r\n" + + "\013_request_id\"\345\001\n" + "!InsertRegionSslCertificateRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030ssl_certificate_resource\030\211\324\225V" - + " \001(\0132\'.google.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + + "\030ssl_certificate_resource\030\211\324\225V \001(\0132\'.g" + + "oogle.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + "\013_request_id\"\327\001\n" + "\034InsertRegionSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n" - + "\023ssl_policy_resource\030\310\210\212\203\001 \001" - + "(\0132\".google.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n" + + "\023ssl_policy_resource\030\310\210\212\203\001" + + " \001(\0132\".google.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n" + "\013_request_id\"\351\001\n" + "\"InsertRegionTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(.googl" - + "e.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013" + + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\355\001\n" + "#InsertRegionTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132).google" - + ".cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001" + + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\346\001\n" + "!InsertRegionTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_tcp_proxy_resource\030\313\360\311E" - + " \001(\0132\'.google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + + "\031target_tcp_proxy_resource\030\313\360\311E " + + "\001(\0132\'.google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + "\013_request_id\"\315\001\n" + "\031InsertRegionUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022A\n" - + "\020url_map_resource\030\341\220\267P \001" - + "(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P" + + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\322\001\n" + "\030InsertReservationRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" - + "\024reservation_resource\030\241\356\364\207\001" - + " \001(\0132$.google.cloud.compute.v1.ReservationB\003\340A\002\022\033\n" + + "\024reservation_resource\030\241\356\364\207\001 \001(\0132$" + + ".google.cloud.compute.v1.ReservationB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\337\001\n" @@ -15664,8 +16328,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030resource_policy_resource\030\312\214\321$ \001(\0132\'.goog" - + "le.cloud.compute.v1.ResourcePolicyB\003\340A\002B\r\n" + + "\030resource_policy_resource\030\312\214\321$" + + " \001(\0132\'.google.cloud.compute.v1.ResourcePolicyB\003\340A\002B\r\n" + "\013_request_id\"\242\001\n" + "\022InsertRouteRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -15686,8 +16350,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(\0132\'.googl" - + "e.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + + "\030security_policy_resource\030\374\252\211g" + + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" + "\016_validate_only\"\351\001\n" @@ -15696,8 +16360,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022X\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001(\0132*.goo" - + "gle.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001" + + " \001(\0132*.google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + "\013_request_id\"\254\001\n" + "\025InsertSnapshotRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -15708,7 +16372,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\276\001\n" + "\033InsertSslCertificateRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" + "\030ssl_certificate_resource\030\211\324\225V" + " \001(\0132\'.google.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" @@ -15732,7 +16397,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027InsertSubnetworkRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340", + "A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n" + "\023subnetwork_resource\030\277\332\221\024" + " \001(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\r\n" @@ -15762,8 +16428,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030target_instance_resource\030\312\342\240\315\001 \001(\013" - + "2\'.google.cloud.compute.v1.TargetInstanceB\003\340A\002\022\033\n" + + "\030target_instance_resource\030\312\342\240\315\001" + + " \001(\0132\'.google.cloud.compute.v1.TargetInstanceB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\323\001\n" @@ -15779,8 +16445,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_ssl_proxy_resource\030\300\375\333C \001(\0132\'." - + "google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" + + "\031target_ssl_proxy_resource\030\300\375\333C" + + " \001(\0132\'.google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -15794,16 +16460,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n" - + "\033target_vpn_gateway_resource\030\202\263\036" - + " \001(\0132).google.cloud.compute.v1.TargetVpnGatewayB\003\340A\002B\r\n" + + "\033target_vpn_gateway_resource\030\202\263\036 \001(\0132)" + + ".google.cloud.compute.v1.TargetVpnGatewayB\003\340A\002B\r\n" + "\013_request_id\"\246\001\n" + "\023InsertUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022A\n" + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r" - + "\n" + + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\323\001\n" + "\027InsertVpnGatewayRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -15818,8 +16483,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022G\n" - + "\023vpn_tunnel_resource\030\272\241\264)" - + " \001(\0132\".google.cloud.compute.v1.VpnTunnelB\003\340A\002B\r\n" + + "\023vpn_tunnel_resource\030\272\241\264) \001(\0132" + + "\".google.cloud.compute.v1.VpnTunnelB\003\340A\002B\r\n" + "\013_request_id\"\204\002\n" + "\026InsertWireGroupRequest\022\"\n" + "\022cross_site_network\030\325\305\3133 \001(\tB\003\340A\002\022!\n" @@ -15830,28 +16495,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023wire_group_resource\030\310\301\3537" + " \001(\0132\".google.cloud.compute.v1.WireGroupB\003\340A\002B\r\n" + "\013_request_idB\020\n" - + "\016_validate_only\"\360\036\n" + + "\016_validate_only\"\352\001\n" + + "\"InsertZoneVmExtensionPolicyRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Y\n" + + "\034vm_extension_policy_resource\030\363\371\361\365\001" + + " \001(\0132*.google.cloud.compute.v1.VmExtensionPolicyB\003\340A\002\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004zoneB\r\n" + + "\013_request_id\"\360\036\n" + "\010Instance\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.goog" - + "le.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001" + + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001 " - + "\001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + + "\034confidential_instance_config\030\365\222\372\351\001" + + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + "\014cpu_platform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022F\n" - + "\016display_device\030\363\210\274{ \001(\013" - + "2&.google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + + "\016display_device\030\363\210\274{" + + " \001(\0132&.google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\010\210\001\001\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001" - + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022\030\n" + + "\022guest_accelerators\030\357\314\207\335\001 \003(\013" + + "2*.google.cloud.compute.v1.AcceleratorConfig\022\030\n" + "\010hostname\030\263\270\205q \001(\tH\t\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022W\n" - + "\027instance_encryption_key\030\215\301\357\036 \001(\0132..google." - + "cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + + "\027instance_encryption_key\030\215\301\357\036" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\014\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\r" + "\210\001\001\022!\n" @@ -15867,19 +16541,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.MetadataH\023\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\024\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031" - + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001 \001(\01321.googl" - + "e.cloud.compute.v1.NetworkPerformanceConfigH\026\210\001\001\022?\n" - + "\006params\030\206\363\253%" - + " \001(\0132\'.google.cloud.compute.v1.InstanceParamsH\027\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031 " + + "\003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001" + + " \001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\026\210\001\001\022?\n" + + "\006params\030\206\363\253% \001(" + + "\0132\'.google.cloud.compute.v1.InstanceParamsH\027\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\030\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001(\0132,.google." - + "cloud.compute.v1.ReservationAffinityH\031\210\001\001\022\034\n" + + "\024reservation_affinity\030\273\270\242K" + + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\031\210\001\001\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022H\n" - + "\017resource_status\030\303\372\367v" - + " \001(\0132\'.google.cloud.compute.v1.ResourceStatusH\032\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001(\0132\'.goog" + + "le.cloud.compute.v1.ResourceStatusH\032\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\033\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\034\210\001\001\022@\n\n" + "scheduling\030\224\313\261\270\001" @@ -15887,21 +16561,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030\215\222\305\331\001 \001(\tH\036\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" - + "\030shielded_instance_config\030\265\213\221\006" - + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH\037\210\001\001\022l\n" - + "\"shielded_instance_integrity_policy\030\227\242\207N \001(\01328.googl" - + "e.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH \210\001\001\022$\n" + + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.google.cloud" + + ".compute.v1.ShieldedInstanceConfigH\037\210\001\001\022l\n" + + "\"shielded_instance_integrity_policy\030\227\242\207N" + + " \001(\01328.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH" + + " \210\001\001\022$\n" + "\024source_machine_image\030\277\334\260\n" + " \001(\tH!\210\001\001\022c\n" - + "#source_machine_image_encryption_key\030\243\373\371[" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\"\210\001\001\022 \n" + + "#source_machine_image_encryption_key\030\243\373\371[ \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryptionKeyH\"\210\001\001\022 \n" + "\020start_restricted\030\330\320\375: \001(\010H#\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH$\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH%\210\001\001\0223\n" + "\004tags\030\231\350\330\001" + " \001(\0132\035.google.cloud.compute.v1.TagsH&\210\001\001\022Z\n" - + "\030workload_identity_config\030\233\202\242\241\001" - + " \001(\0132/.google.cloud.compute.v1.WorkloadIdentityConfigH\'\210\001\001\022\024\n" + + "\030workload_identity_config\030\233\202\242\241\001 \001(\0132/.google." + + "cloud.compute.v1.WorkloadIdentityConfigH\'\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH(\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -15972,8 +16647,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026InstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132" - + ":.google.cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132:.google.cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -15982,16 +16657,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.google.cl" - + "oud.compute.v1.InstancesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\0132,.google.cloud.compute.v1.InstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\027InstanceConsumptionData\022R\n" - + "\020consumption_info\030\322\345\344E \001(\01320." - + "google.cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + + "\020consumption_info\030\322\345\344E" + + " \001(\01320.google.cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001B\023\n" + "\021_consumption_infoB\013\n" + "\t_instance\"\320\001\n" @@ -16006,12 +16681,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_min_node_cpus\"\207\002\n" + "\031InstanceFlexibilityPolicy\022j\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132J.google.cloud" - + ".compute.v1.InstanceFlexibilityPolicy.InstanceSelectionsEntry\032~\n" + + " \003(\0132" + + "J.google.cloud.compute.v1.InstanceFlexibilityPolicy.InstanceSelectionsEntry\032~\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132C.g" - + "oogle.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection:\0028\001\"\236\001\n" + + "\005value\030\002 \001(\0132C.google.cloud.compute.v1.Ins" + + "tanceFlexibilityPolicyInstanceSelection:\0028\001\"\236\001\n" + "*InstanceFlexibilityPolicyInstanceSelection\0227\n" + "\005disks\030\366\314\312-" + " \003(\0132%.google.cloud.compute.v1.AttachedDisk\022\030\n\r" @@ -16048,8 +16723,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\310\003\n" + "\033InstanceGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" - + "\005items\030\300\317\367/ \003(\0132?.goo" - + "gle.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132?.google.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16058,8 +16733,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002 \001(\01321.google.cl" - + "oud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\01321.google.cloud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16069,8 +16744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\tH\000\210\001\001\0228\n" + "\005items\030\300\317\367/ \003(\0132&.google.cloud.compute.v1.InstanceGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" - + "\017next_page_t", - "oken\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" @@ -16080,25 +16754,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\367\023\n" + "\024InstanceGroupManager\022e\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132?.google.cloud" - + ".compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" - + "\025auto_healing_policies\030\205\347\350\331\001" - + " \003(\0132>.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132" + + "?.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" + + "\025auto_healing_policies\030\205\347\350\331\001 \003(\0132>.google.cloud." + + "compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + "\022base_instance_name\030\207\226\305\271\001 \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\\\n" - + "\017current_actions\030\267\310\234N \001(\0132;.google.cloud.compute.v" - + "1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + + "\017current_actions\030\267\310\234N \001(\0132;.google.c" + + "loud.compute.v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022Q\n" - + "\023distribution_policy\030\315\356\362\376\001" - + " \001(\0132+.google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + + "\023distribution_policy\030\315\356\362\376\001 \001(\0132+" + + ".google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022s\n" - + "\033instance_flexibility_policy\030\202\216\354\014 \001(" - + "\0132F.google.cloud.compute.v1.InstanceGrou" - + "pManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + + "\033instance_flexibility_policy\030\202\216\354\014 \001(\0132F.google.cloud.compute.v" + + "1.InstanceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tH\t\210\001\001\022p\n" - + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.google.c" - + "loud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + + "\031instance_lifecycle_policy\030\221\264\315\325\001 " + + "\001(\0132D.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + "\210\001\001\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n" @@ -16109,27 +16782,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\".google.cloud.compute.v1.NamedPort\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022`\n" + "\021resource_policies\030\341\234\314\n" - + " \001(\0132=.google.cl" - + "oud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + + " \001" + + "(\0132=.google.cloud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022[\n" - + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google.cloud.compute." - + "v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" - + "\017stateful_policy\030\205\303\325\026" - + " \001(\0132\'.google.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" - + "\006status\030\362\237\267V" - + " \001(\01323.google.cloud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google." + + "cloud.compute.v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + + "\017stateful_policy\030\205\303\325\026 " + + "\001(\0132\'.google.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" + + "\006status\030\362\237\267V \001(\01323.google.cl" + + "oud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + "\014target_pools\030\251\237\240\240\001 \003(\t\022\033\n" + "\013target_size\030\357\363\375\035 \001(\005H\027\210\001\001\022a\n" - + "\022target_size_policy\030\202\333\263= \001(\0132=" - + ".google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicyH\030\210\001\001\022#\n" + + "\022target_size_policy\030\202\333\263= \001(\0132=.google.cloud.compute.v1.I" + + "nstanceGroupManagerTargetSizePolicyH\030\210\001\001\022#\n" + "\023target_stopped_size\030\241\326\223\001 \001(\005H\031\210\001\001\022&\n" - + "\025target_suspended_size\030\323\210\364\222\001 \001(\005H\032\210\001\001\022X\n\r" - + "update_policy\030\350\312\352S" - + " \001(\01329.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicyH\033\210\001\001\022I\n" - + "\010versions\030\233\375\271M" - + " \003(\01324.google.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + + "\025target_suspended_size\030\323\210\364\222\001 \001(\005H\032\210\001\001\022X\n" + + "\r" + + "update_policy\030\350\312\352S \001(\01329.google.cloud.c" + + "ompute.v1.InstanceGroupManagerUpdatePolicyH\033\210\001\001\022I\n" + + "\010versions\030\233\375\271M \003(\01324.google.cl" + + "oud.compute.v1.InstanceGroupManagerVersion\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\034\210\001\001\"n\n" + "\033ListManagedInstancesResults\022,\n" + "(UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS\020\000\022\017\n" @@ -16196,8 +16870,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_verifying\"\335\003\n" + "\"InstanceGroupManagerAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.goo" - + "gle.cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1.Insta" + + "nceGroupManagerAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16206,16 +16880,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.go" - + "ogle.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01328.google.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\205\001\n" + "&InstanceGroupManagerAllInstancesConfig\022L\n\n" - + "properties\030\263\232\266F \001(\01320.google.cloud" - + ".compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + + "properties\030\263\232\266F \001(\0132" + + "0.google.cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + "\013_properties\"\220\001\n" + "%InstanceGroupManagerAutoHealingPolicy\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001\022!\n" @@ -16224,12 +16898,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_sec\"\304\002\n" + "-InstanceGroupManagerInstanceFlexibilityPolicy\022~\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132^.google.cloud.compute.v1.InstanceG" - + "roupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + + " \003(\0132^.google.cloud.comput" + + "e.v1.InstanceGroupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022f\n" - + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.InstanceGroupMana" - + "gerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"y\n" + + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.Ins" + + "tanceGroupManagerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"y\n" + ">InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection\022\030\n\r" + "machine_types\030\201\335\201& \003(\t\022\024\n" + "\004rank\030\254\230\325\001 \001(\005H\000\210\001\001B\007\n" @@ -16254,8 +16928,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_on_failed_health_check\"\271\002\n" + "\030InstanceGroupManagerList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003(" - + "\0132-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16265,23 +16939,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"\215\006\n" + + "\010_warning\"\260\006\n" + "!InstanceGroupManagerResizeRequest\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022I\n" + + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\005\210\001\001\022I\n" + "\026requested_run_duration\030\371\213\331n" - + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022\032\n" - + "\tresize_by\030\302\317\300\376\001 \001(\005H\006\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" - + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\025\n" - + "\005state\030\221\211\2534 \001(\tH\t\210\001\001\022X\n" - + "\006status\030\362\237\267V \001(\0132@.google.clou" - + "d.compute.v1.InstanceGroupManagerResizeRequestStatusH\n" - + "\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\"\217\001\n" + + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022\032\n" + + "\tresize_by\030\302\317\300\376\001 \001(\005H\007\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022\025\n" + + "\005state\030\221\211\2534 \001(\tH\n" + + "\210\001\001\022X\n" + + "\006status\030\362\237\267V \001(\0132@.google.cloud." + + "compute.v1.InstanceGroupManagerResizeRequestStatusH\013\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\014\210\001\001\"\217\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\017\n" + "\010ACCEPTED\020\247\237\322u\022\020\n" @@ -16294,7 +16969,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\005\n" + "\003_idB\007\n" + "\005_kindB\007\n" - + "\005_nameB\031\n" + + "\005_nameB\t\n" + + "\007_regionB\031\n" + "\027_requested_run_durationB\014\n\n" + "_resize_byB\014\n\n" + "_self_linkB\024\n" @@ -16305,9 +16981,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'InstanceGroupManagerResizeRequestStatus\0225\n" + "\005error\030\210\244\223." + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" - + "\014last_attempt\030\244\254\250\317\001 \001(" - + "\0132K.google.cloud.compute.v1.InstanceGrou" - + "pManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v1.Ins" + + "tanceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + "\006_errorB\017\n\r" + "_last_attempt\"u\n" + "2InstanceGroupManagerResizeRequestStatusLastAttempt\0225\n" @@ -16316,13 +16991,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_error\"\334\002\n" + ".InstanceGroupManagerResizeRequestsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.g" - + "oogle.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + + "\007warning\030", + "\234\337\226\030 \001(\0132 .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16339,33 +17014,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006MANUAL\020\306\267\3678\022\024\n" + "\016SCALE_OUT_POOL\020\202\344&B\024\n" + "\022_initial_delay_secB\007\n" - + "\005_mode\"\325\005\n" + + "\005_mode\"\351\006\n" + "\032InstanceGroupManagerStatus\022k\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.compute.v1.Insta" - + "nceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022r\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.compute" + + ".v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022r\n" + "\036applied_accelerator_topologies\030\243\357\305\345\001" - + " \003(\0132F.google.cloud.compute.v1.Insta" - + "nceGroupManagerStatusAcceleratorTopology\022\033\n\n" + + " \003(\0132F.google.cloud.compute" + + ".v1.InstanceGroupManagerStatusAcceleratorTopology\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\001\210\001\001\022r\n" - + "\027bulk_instance_operation\030\212\255\233\357\001 \001(\0132H.google.clou" - + "d.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationH\002\210\001\001\022\031\n" - + "\tis_stable\030\360\357\3303 \001(\010H\003\210\001\001\022U\n" - + "\010stateful\030\314\346\310t \001(\0132;.goog" - + "le.cloud.compute.v1.InstanceGroupManagerStatusStatefulH\004\210\001\001\022a\n" - + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud.compute.v1.Instan" - + "ceGroupManagerStatusVersionTargetH\005\210\001\001B\027\n" + + "\027bulk_instance_operation\030\212\255\233\357\001 \001(\0132H.go" + + "ogle.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationH\002\210\001\001\022t\n" + + "\031current_instance_statuses\030\304\356\274\200\001 \001(\0132H.goog" + + "le.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryH\003\210\001\001\022\031\n" + + "\tis_stable\030\360\357\3303 \001(\010H\004\210\001\001\022U\n" + + "\010stateful\030\314\346\310t \001(\013" + + "2;.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulH\005\210\001\001\022a\n" + + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud.compute.v1" + + ".InstanceGroupManagerStatusVersionTargetH\006\210\001\001B\027\n" + "\025_all_instances_configB\r\n" + "\013_autoscalerB\032\n" - + "\030_bulk_instance_operationB\014\n\n" + + "\030_bulk_instance_operationB\034\n" + + "\032_current_instance_statusesB\014\n\n" + "_is_stableB\013\n" + "\t_statefulB\021\n" + "\017_version_target\"\271\003\n" + "-InstanceGroupManagerStatusAcceleratorTopology\022%\n" + "\024accelerator_topology\030\303\263\322\271\001 \001(\tH\000\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\001\210\001\001\022\204\001\n\r" - + "state_details\030\224\371\310- \001(\0132e.google.cloud.compute.v1.In" - + "stanceGroupManagerStatusAcceleratorTopol" - + "ogyAcceleratorTopologyStateDetailsH\002\210\001\001\"\215\001\n" + + "state_details\030\224\371\310- \001(\0132e.google.cloud.compute.v1.Insta" + + "nceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsH\002\210\001\001\"\215\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\022\n\n" + "ACTIVATING\020\360\331\321\264\001\022\016\n" @@ -16390,9 +17067,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_effective\"\367\001\n" + "/InstanceGroupManagerStatusBulkInstanceOperation\022\034\n" + "\013in_progress\030\207\300\327\230\001 \001(\010H\000\210\001\001\022~\n" - + "\023last_progress_check\030\277\242\276c \001" - + "(\0132Y.google.cloud.compute.v1.InstanceGro" - + "upManagerStatusBulkInstanceOperationLastProgressCheckH\001\210\001\001B\016\n" + + "\023last_progress_check\030\277\242\276c \001(\0132" + + "Y.google.cloud.compute.v1.InstanceGroupM" + + "anagerStatusBulkInstanceOperationLastProgressCheckH\001\210\001\001B\016\n" + "\014_in_progressB\026\n" + "\024_last_progress_check\"\254\001\n" + "@InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck\0225\n" @@ -16400,11 +17077,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\001\210\001\001B\010\n" + "\006_errorB\014\n\n" - + "_timestamp\"\360\001\n" + + "_timestamp\"\333\004\n" + + "/InstanceGroupManagerStatusInstanceStatusSummary\022\037\n" + + "\016deprovisioning\030\356\313\260\334\001 \001(\005H\000\210\001\001\022\035\n" + + "\014non_existent\030\306\207\262\337\001 \001(\005H\001\210\001\001\022\030\n" + + "\007pending\030\227\223\302\272\001 \001(\005H\002\210\001\001\022\034\n" + + "\014pending_stop\030\252\273\346M \001(\005H\003\210\001\001\022\034\n" + + "\014provisioning\030\355\245\3379 \001(\005H\004\210\001\001\022\032\n" + + "\trepairing\030\265\342\264\224\001 \001(\005H\005\210\001\001\022\030\n" + + "\007running\030\277\253\274\343\001 \001(\005H\006\210\001\001\022\027\n" + + "\007staging\030\273\260\230w \001(\005H\007\210\001\001\022\027\n" + + "\007stopped\030\315\243\276} \001(\005H\010\210\001\001\022\030\n" + + "\010stopping\030\364\360\2122 \001(\005H\t\210\001\001\022\032\n" + + "\tsuspended\030\333\233\326\347\001 \001(\005H\n" + + "\210\001\001\022\032\n\n" + + "suspending\030\246\374\360\r" + + " \001(\005H\013\210\001\001\022\033\n\n" + + "terminated\030\243\234\364\217\001 \001(\005H\014\210\001\001B\021\n" + + "\017_deprovisioningB\017\n\r" + + "_non_existentB\n\n" + + "\010_pendingB\017\n\r" + + "_pending_stopB\017\n\r" + + "_provisioningB\014\n\n" + + "_repairingB\n\n" + + "\010_runningB\n\n" + + "\010_stagingB\n\n" + + "\010_stoppedB\013\n" + + "\t_stoppingB\014\n\n" + + "_suspendedB\r\n" + + "\013_suspendingB\r\n" + + "\013_terminated\"\360\001\n" + "\"InstanceGroupManagerStatusStateful\022#\n" + "\023has_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022t\n" - + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.google.cloud.c" - + "ompute.v1.InstanceGroupManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.google.clou" + + "d.compute.v1.InstanceGroupManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + "\024_has_stateful_configB\027\n" + "\025_per_instance_configs\"h\n" + "4InstanceGroupManagerStatusStatefulPerInstanceConfigs\022\036\n\r" @@ -16455,8 +17161,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033InstanceGroupManagerVersion\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022D\n" - + "\013target_size\030\357\363\375\035 " - + "\001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\002\210\001\001B\024\n" + + "\013target_size\030\357\363\375\035" + + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\002\210\001\001B\024\n" + "\022_instance_templateB\007\n" + "\005_nameB\016\n" + "\014_target_size\"D\n" @@ -16488,8 +17194,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0InstanceGroupManagersDeletePerInstanceConfigsReq\022\020\n" + "\005names\030\310\256\3571 \003(\t\"\244\001\n" + "\'InstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/ \003(\01322.google.cl" - + "oud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(\01322.google" + + ".cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\261\001\n" + "1InstanceGroupManagersListManagedInstancesResponse\022G\n" @@ -16506,8 +17212,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_next_page_tokenB\n\n" + "\010_warning\"\177\n" + "/InstanceGroupManagersPatchPerInstanceConfigsReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132*.g" - + "oogle.cloud.compute.v1.PerInstanceConfig\"E\n" + + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132" + + "*.google.cloud.compute.v1.PerInstanceConfig\"E\n" + "-InstanceGroupManagersRecreateInstancesRequest\022\024\n" + "\tinstances\030\376\374\357\r" + " \003(\t\"C\n" @@ -16518,8 +17224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027instance_group_managers\030\220\372\211f" + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"k\n" + "/InstanceGroupManagersSetInstanceTemplateRequest\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n" @@ -16550,8 +17255,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"\276\002\n" + "\033InstanceGroupsListInstances\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ \003(\0132/.go" - + "ogle.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/" + + ".google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16576,7 +17281,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017instance_groups\030\276\301\337\256\001" + " \003(\0132&.google.cloud.compute.v1.InstanceGroup\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n" + "\010_warning\"\216\001\n" + "\"InstanceGroupsSetNamedPortsRequest\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022;\n" @@ -16610,10 +17316,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\274\002\n" + "\031InstanceManagedByIgmError\022]\n" - + "\005error\030\210\244\223. \001(\0132F.goo" - + "gle.cloud.compute.v1.InstanceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" - + "\027instance_action_details\030\243\374\253\213\001 \001(\0132G.google.cl" - + "oud.compute.v1.InstanceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + + "\005error\030\210\244\223. \001(\0132F." + + "google.cloud.compute.v1.InstanceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" + + "\027instance_action_details\030\243\374\253\213\001 \001(\0132G.google" + + ".cloud.compute.v1.InstanceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010\n" + "\006_errorB\032\n" + "\030_instance_action_detailsB\014\n\n" @@ -16621,17 +17327,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InstanceManagedByIgmErrorInstanceActionDetails\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001 \001(\0132/.google.clo" - + "ud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + + "\007version\030\330\271\324\247\001 \001(\0132/.google." + + "cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + "\006Action\022\024\n" - + "\020UNDEFINED_ACTION\020\000\022\022\n\n" + + "\020UNDEFINED_ACTION\020\000\022\022\n" + + "\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" + "\010CREATING\020\271\275\235\331\001\022 \n" + "\030CREATING_WITHOUT_RETRIES\020\211\306\276\314\001\022\020\n" + "\010DELETING\020\250\247\207\374\001\022\013\n" + "\004NONE\020\270\316\222\001\022\022\n\n" - + "RECREATING\020\354\213\376\210\001\022\021\n" - + "\n" + + "RECREATING\020\354\213\376\210\001\022\021\n\n" + "REFRESHING\020\247\376\354M\022\022\n\n" + "RESTARTING\020\363\356\353\230\001\022\020\n" + "\010RESUMING\020\252\373\211\325\001\022\020\n" @@ -16655,9 +17361,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016InstanceParams\022M\n" + "\032request_valid_for_duration\030\335\226\2677" + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022c\n" - + "\025res", - "ource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cl" - + "oud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google" + + ".cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\035\n" @@ -16666,32 +17371,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031advanced_machine_features\030\262\347\252\303\001" + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001" - + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + + "\034confidential_instance_config\030\365\222\372\351\001 \001(\01323.google.cloud.comp" + + "ute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.goo" - + "gle.cloud.compute.v1.AcceleratorConfig\022*\n" + + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*." + + "google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud.co" - + "mpute.v1.InstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud" + + ".compute.v1.InstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\005\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\006\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\007\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031 \003(\0132).go" - + "ogle.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001 \001(\01321" - + ".google.cloud.compute.v1.NetworkPerformanceConfigH\010\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031 \003(\0132)" + + ".google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001 \001(" + + "\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\010\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\t\210\001\001\022R\n" + "\024reservation_affinity\030\273\270\242K" + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\n" + "\210\001\001\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.compute" - + ".v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.comp" + + "ute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + "\021resource_policies\030\341\234\314\n" - + " \003(\t\022@\n" - + "\n" + + " \003(\t\022@\n\n" + "scheduling\030\224\313\261\270\001" + " \001(\0132#.google.cloud.compute.v1.SchedulingH\013\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" @@ -16700,11 +17404,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH\014\210\001\001\0223\n" + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH\r" + "\210\001\001\022Z\n" - + "\030workload_identity_config\030\233\202\242\241\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.WorkloadIdentityConfigH\016\210\001\001\032-\n" + + "\030workload_identity_config\030\233\202\242\241\001 \001(\0132" + + "/.google.cloud.compute.v1.WorkloadIdentityConfigH\016\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -16735,10 +17438,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_tagsB\033\n" + "\031_workload_identity_config\"\240\002\n" + "\027InstancePropertiesPatch\022P\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132<.google.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" - + "\010metadata\030\257\366\265) \003(\0132>.google.cloud.compute." - + "v1.InstancePropertiesPatch.MetadataEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132<.google.cloud.compute." + + "v1.InstancePropertiesPatch.LabelsEntry\022S\n" + + "\010metadata\030\257\366\265) \003(\0132>.google.cloud.compu" + + "te.v1.InstancePropertiesPatch.MetadataEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" @@ -16759,8 +17462,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_metadataB\007\n" + "\005_zone\"\267\001\n" + "\030InstanceSettingsMetadata\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud.com" - + "pute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud." + + "compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\032,\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -16791,8 +17494,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_source_instance_params\"\270\003\n" + "\036InstanceTemplateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cloud.compute" - + ".v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.comp" + + "ute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16800,8 +17503,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.c" - + "loud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.googl" + + "e.cloud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16822,8 +17525,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n" + "\033InstanceTemplatesScopedList\022I\n" - + "\022instance_templates\030\217\270\245\333\001 \003(" - + "\0132).google.cloud.compute.v1.InstanceTemplate\0229\n" + + "\022instance_templates\030\217\270\245\333\001" + + " \003(\0132).google.cloud.compute.v1.InstanceTemplate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\216\003\n" @@ -16851,16 +17554,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resource_policies\030\341\234\314\n" + " \003(\t\"\212\002\n" + "$InstancesBulkInsertOperationMetadata\022t\n" - + "\023per_location_status\030\232\351\204P \003(\0132T.google.cloud.comput" - + "e.v1.InstancesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + + "\023per_location_status\030\232\351\204P \003(\0132T.google.cloud.com" + + "pute.v1.InstancesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + "\026PerLocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322" - + ".google.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + + "\005value\030\002 \001(" + + "\01322.google.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + "&InstancesGetEffectiveFirewallsResponse\022t\n" - + "\020firewall_policys\030\302\312\374\303\001" - + " \003(\0132V.google.cloud.compute.v1.Instan" - + "cesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.google.cloud.compute.v1.Ins" + + "tancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\254\004\n" + "=InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" @@ -16869,12 +17571,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026packet_mirroring_rules\030\304\377\300\375\001" + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" - + "\005rules\030\367\221\3653 \003(\0132+." - + "google.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" + + "\005rules\030\367\221\3653 \003(\013" + + "2+.google.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" + "short_name\030\356\270\320\352\001 \001(\tH\003\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"\231\001\n" + "\004Type\022\022\n" - + "\016UNDEFINED_TYPE\020\000\022\020\n" + + "\016UNDEFINED_T", + "YPE\020\000\022\020\n" + "\tHIERARCHY\020\225\304\252!\022\017\n" + "\007NETWORK\020\216\314\263\305\001\022\027\n" + "\020NETWORK_REGIONAL\020\260\342\375Z\022\024\n\r" @@ -16891,8 +17594,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\"\310\002\n" + "\"InstancesReportHostAsFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022`\n\r" - + "fault_reasons\030\222\253\221P \003(\0132F.google.cloud.compute.v1.Instanc" - + "esReportHostAsFaultyRequestFaultReason\"\202\001\n" + + "fault_reasons\030\222\253\221P \003(\0132F.google.cloud.compute.v1.Inst" + + "ancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\016\n" @@ -16919,8 +17622,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\327\001\n" + "\031InstancesSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022R\n" - + "\006labels\030\377\277\301\356\001 \003(\0132>.google.cloud.compute" - + ".v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132>.google.cloud.comp" + + "ute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -16948,8 +17651,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"w\n" + "&InstancesStartWithEncryptionKeyRequest\022M\n" - + "\005disks\030\366\314\312-" - + " \003(\0132;.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\224\n\n" + + "\005disks\030\366\314\312- \003(\0132;.google.cloud.compute" + + ".v1.CustomerEncryptionKeyProtectedDisk\"\275\013\n" + "\017InstantSnapshot\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -16958,14 +17661,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n" - + "\006labels\030\377\277\301\356\001 \003(\01324" - + ".google.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(" + + "\01324.google.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022F\n" + "\006params\030\206\363\253%" + " \001(\0132..google.cloud.compute.v1.InstantSnapshotParamsH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022W\n" - + "\017resource_status\030\303\372\367v \001(\01326" - + ".google.cloud.compute.v1.InstantSnapshotResourceStatusH\n" + + "\017resource_status\030\303\372\367v \001(" + + "\01326.google.cloud.compute.v1.InstantSnapshotResourceStatusH\n" + "\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\013\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\014\210\001\001\022\032\n" @@ -16973,9 +17676,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\016\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\017\210\001\001\022\037\n" - + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\020\210\001\001\022\026\n" - + "\006status\030\362\237\267V \001(\tH\021\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tH\022\210\001\001\032-\n" + + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\020\210\001\001\022.\n" + + "\035source_instant_snapshot_group\030\206\376\347\372\001 \001(" + + "\tH\021\210\001\001\0220\n" + + " source_instant_snapshot_group_id\030\364\231\327O \001(\tH\022\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\023\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\024\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"j\n" @@ -17007,13 +17713,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\024\n" + "\022_self_link_with_idB\016\n" + "\014_source_diskB\021\n" - + "\017_source_disk_idB\t\n" + + "\017_source_disk_idB \n" + + "\036_source_instant_snapshot_groupB#\n" + + "!_source_instant_snapshot_group_idB\t\n" + "\007_statusB\007\n" + "\005_zone\"\316\003\n" + "\035InstantSnapshotAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.cloud.comp" + + "ute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17028,7 +17736,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"\257\002\n" + + "\010_warning\"\335\005\n" + + "\024InstantSnapshotGroup\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\005\210\001\001\022\\\n" + + "\017resource_status\030\303\372\367v \001(\0132;.google.cloud.comp" + + "ute.v1.InstantSnapshotGroupResourceStatusH\006\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022)\n" + + "\030source_consistency_group\030\364\314\257\375\001 \001(\tH\t\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\n" + + "\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\"\202\001\n" + + "\006Status\022\024\n" + + "\020UNDEFINED_STATUS\020\000\022\020\n" + + "\010CREATING\020\271\275\235\331\001\022\020\n" + + "\010DELETING\020\250\247\207\374\001\022\016\n" + + "\006FAILED\020\275\220\246\331\001\022\017\n" + + "\007INVALID\020\327\373\355\374\001\022\014\n" + + "\005READY\020\203\303\217%\022\017\n" + + "\007UNKNOWN\020\252\360\304\316\001B\025\n" + + "\023_creation_timestampB\016\n" + + "\014_descriptionB\005\n" + + "\003_idB\007\n" + + "\005_kindB\007\n" + + "\005_nameB\t\n" + + "\007_regionB\022\n" + + "\020_resource_statusB\014\n\n" + + "_self_linkB\024\n" + + "\022_self_link_with_idB\033\n" + + "\031_source_consistency_groupB\t\n" + + "\007_statusB\007\n" + + "\005_zone\"r\n" + + "\036InstantSnapshotGroupParameters\022.\n" + + "\035source_instant_snapshot_group\030\206\376\347\372\001 \001(\tH\000\210\001\001B \n" + + "\036_source_instant_snapshot_group\"\357\001\n" + + "\"InstantSnapshotGroupResourceStatus\0227\n" + + "&consistency_membership_resolution_time\030\236\265\247\245\001 \001(" + + "\tH\000\210\001\001\022U\n" + + "\013source_info\030\322\234\276\327\001 \001(\01327.google.cl" + + "oud.compute.v1.InstantSnapshotGroupSourceInfoH\001\210\001\001B)\n" + + "\'_consistency_membership_resolution_timeB\016\n" + + "\014_source_info\"\231\001\n" + + "\036InstantSnapshotGroupSourceInfo\022\"\n" + + "\021consistency_group\030\230\213\251\362\001 \001(\tH\000\210\001\001\022$\n" + + "\024consistency_group_id\030\242\312\350( \001(\tH\001\210\001\001B\024\n" + + "\022_consistency_groupB\027\n" + + "\025_consistency_group_id\"\257\002\n" + "\023InstantSnapshotList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" + "\005items\030\300\317\367/" @@ -17044,9 +17802,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\277\001\n" + "\025InstantSnapshotParams\022j\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132G.google.cloud.compute.v1.Ins" - + "tantSnapshotParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132G.googl" + + "e.cloud.compute.v1.InstantSnapshotParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"[\n" @@ -17054,8 +17811,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022storage_size_bytes\030\361\215\346\270\001 \001(\003H\000\210\001\001B\025\n" + "\023_storage_size_bytes\"\254\001\n" + "\032InstantSnapshotsScopedList\022G\n" - + "\021instant_snapshots\030\321\274\227\235\001" - + " \003(\0132(.google.cloud.compute.v1.InstantSnapshot\0229\n" + + "\021instant_snapshots\030\321\274\227\235\001 \003(\013" + + "2(.google.cloud.compute.v1.InstantSnapshot\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"h\n" @@ -17067,16 +17824,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014Interconnect\022\034\n" + "\013aai_enabled\030\313\242\261\271\001 \001(\010H\000\210\001\001\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\001\210\001\001\022r\n" - + "\036application_aware_interconnect\030\236\370\315\314\001 \001(\013" - + "2A.google.cloud.compute.v1.InterconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + + "\036application_aware_interconnect\030\236\370\315\314\001 \001(\0132A.google.cloud.co" + + "mpute.v1.InterconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + "\022available_features\030\363\271\326\354\001 \003(\t\022J\n\r" - + "circuit_infos\030\257\203\315N" - + " \003(\01320.google.cloud.compute.v1.InterconnectCircuitInfo\022\"\n" + + "circuit_infos\030\257\203\315N \003(\01320.googl" + + "e.cloud.compute.v1.InterconnectCircuitInfo\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n\r" + "customer_name\030\314\334\337\001 \001(\tH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022T\n" - + "\020expected_outages\030\233\352\216~ \003(\01327.google.clou" - + "d.compute.v1.InterconnectOutageNotification\022\"\n" + + "\020expected_outages\030\233\352\216~" + + " \003(\01327.google.cloud.compute.v1.InterconnectOutageNotification\022\"\n" + "\021google_ip_address\030\242\205\245\323\001 \001(\tH\006\210\001\001\022$\n" + "\023google_reference_id\030\325\265\212\377\001 \001(\tH\007\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022$\n" @@ -17086,8 +17843,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001 \003(\01321" - + ".google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01321.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + "\tlink_type\030\337\210\276\371\001 \001(\tH\014\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\r" + "\210\001\001\022D\n" @@ -17097,8 +17854,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\020\210\001\001\022!\n" + "\021noc_contact_email\030\200\370\332\006 \001(\tH\021\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\022\210\001\001\022C\n" - + "\006params\030\206\363\253% \001(\0132+" - + ".google.cloud.compute.v1.InterconnectParamsH\023\210\001\001\022\037\n" + + "\006params\030\206\363\253%" + + " \001(\0132+.google.cloud.compute.v1.InterconnectParamsH\023\210\001\001\022\037\n" + "\017peer_ip_address\030\331\227\207c \001(\tH\024\210\001\001\022\'\n" + "\026provisioned_link_count\030\365\322\366\303\001 \001(\005H\025\210\001\001\022 \n" + "\017remote_location\030\216\217\327\232\001 \001(\tH\026\210\001\001\022\036\n" @@ -17167,16 +17924,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\n\n" + "\010_subzone\"\247\004\n" + "(InterconnectApplicationAwareInterconnect\022\207\001\n" - + "\033bandwidth_percentage_policy\030\351\334\226Y \001(\0132Z.goog" - + "le.cloud.compute.v1.InterconnectApplicat" - + "ionAwareInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + + "\033bandwidth_percentage_policy\030\351\334\226Y \001(\0132Z.google.cloud.compute.v" + + "1.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + "\023profile_description\030\346\354\250} \001(\tH\001\210\001\001\022z\n" - + "\031shape_average_percentages\030\331\270\364{" - + " \003(\0132T.google.cloud.compute.v1.Intercon" - + "nectApplicationAwareInterconnectBandwidthPercentage\022}\n" - + "\026strict_priority_policy\030\267\225\227E" - + " \001(\0132U.google.cloud.compute.v1.Interco" - + "nnectApplicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + + "\031shape_average_percentages\030\331\270\364{ \003(\0132T.google.clo" + + "ud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\022}\n" + + "\026strict_priority_policy\030\267\225\227E \001(\0132U.google.cl" + + "oud.compute.v1.InterconnectApplicationAw" + + "areInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + "\034_bandwidth_percentage_policyB\026\n" + "\024_profile_descriptionB\031\n" + "\027_strict_priority_policy\"\210\002\n" @@ -17195,8 +17950,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_percentageB\020\n" + "\016_traffic_class\"\273\001\n" + "AInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy\022v\n" - + "\025bandwidth_percentages\030\213\375\243o \003(\0132T.googl" - + "e.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\">\n" + + "\025bandwidth_percentages\030\213\375\243o \003(\0132T.google.cloud.compute.v1" + + ".InterconnectApplicationAwareInterconnectBandwidthPercentage\">\n" + ".google." - + "cloud.compute.v1.InterconnectAttachmentPartnerMetadataH\037\210\001\001\022e\n" - + "\031private_interconnect_info\030\203\354\221q \001(\0132:.google.cloud.compute", - ".v1.InterconnectAttachmentPrivateInfoH \210\001\001\022\026\n" + + "\020partner_metadata\030\306\341\266\037 \001(\0132>.google.cloud.compute.v1.I" + + "nterconnectAttachmentPartnerMetadataH\037\210\001\001\022e\n" + + "\031private_interconnect_info\030\203\354\221q \001(\0132" + + ":.google.cloud.compute.v1.InterconnectAttachmentPrivateInfoH \210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH!\210\001\001\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\"\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tH#\210\001\001\022\036\n\r" @@ -17358,8 +18113,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_vlan_tag8021q\"\343\003\n" + "$InterconnectAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n" - + "\005items\030\300\317\367/ \003(\0132H.google.clo" - + "ud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132H.google.cloud.compute.v1.Inte" + + "rconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17368,8 +18123,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001(\0132:.google." - + "cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -17377,8 +18132,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + ".InterconnectAttachmentConfigurationConstraints\022\030\n" + "\007bgp_md5\030\212\350\363\261\001 \001(\tH\000\210\001\001\022w\n" - + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.google.clou" - + "d.compute.v1.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + + "\023bgp_peer_asn_ranges\030\202\273\371\342\001" + + " \003(\0132V.google.cloud.compute.v1.Inter" + + "connectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + "\006BgpMd5\022\025\n" + "\021UNDEFINED_BGP_MD5\020\000\022\024\n" + "\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n" @@ -17393,27 +18149,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_maxB\006\n" + "\004_min\"\201\007\n" + "\033InterconnectAttachmentGroup\022^\n" - + "\013attachments\030\260\227\317\237\001" - + " \003(\0132E.google.cloud.compute.v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud.compu" - + "te.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + + "\013attachments\030\260\227\317\237\001 \003(\0132E.google.clou" + + "d.compute.v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" + + "configured\030\276\364\373\214\001 \001(" + + "\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\0132:.google.cloud.compute.v1" - + ".InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.g" + + "oogle.cloud.compute.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tH\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022g\n" - + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.compute.v1.Inter" - + "connectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + + "\021logical_structure\030\275\231\364C \001(\0132D.google." + + "cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\032r\n" + "\020AttachmentsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google.cloud.com" - + "pute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + + "\005value\030\002 " + + "\001(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -17429,16 +18185,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "attachment\030\243\262\335W \001(\tH\000\210\001\001B\r\n" + "\013_attachment\"\256\001\n" + "%InterconnectAttachmentGroupConfigured\022p\n" - + "\020availability_sla\030\304\270\263\341\001 " - + "\001(\0132M.google.cloud.compute.v1.Interconne" - + "ctAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + + "\020availability_sla\030\304\270\263\341\001 \001(\0132M.google.cloud" + + ".compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + "\021_availability_sla\"\212\003\n" + "4InterconnectAttachmentGroupConfiguredAvailabilitySLA\022\035\n\r" + "effective_sla\030\220\325\337D \001(\tH\000\210\001\001\022\203\001\n" - + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`.googl" - + "e.cloud.compute.v1.InterconnectAttachmen" - + "tGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" - + "\014EffectiveSla\022\033\n" + + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`.google.cloud.compute.v1" + + ".InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + + "\014Eff", + "ectiveSla\022\033\n" + "\027UNDEFINED_EFFECTIVE_SLA\020\000\022!\n" + "\031EFFECTIVE_SLA_UNSPECIFIED\020\250\247\220\352\001\022\r\n" + "\006NO_SLA\020\212\343\376L\022\033\n" @@ -17475,22 +18230,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PRODUCTION_NON_CRITICAL\020\267\275\3757B\023\n" + "\021_availability_sla\"\215\001\n" + "+InterconnectAttachmentGroupLogicalStructure\022^\n" - + "\007regions\030\377\357\362\005 \003(\0132J.google." - + "cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + + "\007regions\030\377\357\362\005 \003(\0132J.google.cloud.compute.v1.I" + + "nterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + "1InterconnectAttachmentGroupLogicalStructureRegion\022c\n" - + "\006metros\030\372\354\227\376\001 \003(\0132O.google.cloud.comp" - + "ute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + + "\006metros\030\372\354\227\376\001 \003(\0132O.google.cloud.compute.v1.Interconnec" + + "tAttachmentGroupLogicalStructureRegionMetro\022\026\n" + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\312\001\n" + "6InterconnectAttachmentGroupLogicalStructureRegionMetro\022o\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud.compu" - + "te.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud.compute.v1.Interconnect" + + "AttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\327\001\n" + ">InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022m\n" - + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.compute.v1." - + "InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.compute.v1.InterconnectAttach" + + "mentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + "\t_facility\"|\n" + "BInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone\022\027\n" + "\013attachments\030\260\227\317\237\001 \003(\t\022\024\n" @@ -17498,15 +18253,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\304\001\n" + "8InterconnectAttachmentGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022^\n" - + "\006result\030\235\220\267B \001(\0132F.google.clo" - + "ud.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132F.google.cloud.compute.v1.Inte" + + "rconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\210\003\n" + "(InterconnectAttachmentGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022F\n" - + "\005items\030\300\317\367/ \003(\01324.google.clo" - + "ud.compute.v1.InterconnectAttachmentGroup\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01324.google.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -17520,16 +18275,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\210\005\n" + "-InterconnectAttachmentGroupsOperationalStatus\022w\n" - + "\023attachment_statuses\030\274\257\230\352\001 \003" - + "(\0132V.google.cloud.compute.v1.Interconnec" - + "tAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.goo" - + "gle.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + + "\023attachment_statuses\030\274\257\230\352\001 \003(\0132V.google.cloud." + + "compute.v1.InterconnectAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud.compute." + + "v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\0132:.goo" - + "gle.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" - + "\013operational\030\322\307\354= " - + "\001(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.google.cloud.compute." + + "v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" + + "\013operational\030\322\307\354= \001(\0132>.google.cloud" + + ".compute.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -17572,28 +18326,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_is_activeB\t\n" + "\007_status\"\333\004\n" + "\"InterconnectAttachmentL2Forwarding\022r\n" - + "\022appliance_mappings\030\267\277\313\262\001 \003(\0132R.googl" - + "e.cloud.compute.v1.InterconnectAttachmentL2Forwarding.ApplianceMappingsEntry\022-\n" + + "\022appliance_mappings\030\267\277\313\262\001 \003(\0132R.google.cloud.compute.v1" + + ".InterconnectAttachmentL2Forwarding.ApplianceMappingsEntry\022-\n" + "\034default_appliance_ip_address\030\354\343\350\377\001 \001(" + "\tH\000\210\001\001\022f\n\r" - + "geneve_header\030\250\225\3148 \001(\0132G.google.c" - + "loud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeaderH\001\210\001\001\022\027\n" + + "geneve_header\030\250\225\3148 \001(\0132G.google.cloud.compute.v1.In" + + "terconnectAttachmentL2ForwardingGeneveHeaderH\001\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\002\210\001\001\022+\n" + "\032tunnel_endpoint_ip_address\030\357\326\301\337\001 \001(" + "\tH\003\210\001\001\032\205\001\n" + "\026ApplianceMappingsEntry\022\013\n" + "\003key\030\001 \001(\t\022Z\n" - + "\005value\030\002 \001(\0132K.googl" - + "e.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping:\0028\001B\037\n" + + "\005value\030\002 \001(\0132K.google.cloud.compute.v1" + + ".InterconnectAttachmentL2ForwardingApplianceMapping:\0028\001B\037\n" + "\035_default_appliance_ip_addressB\020\n" + "\016_geneve_headerB\n\n" + "\010_networkB\035\n" + "\033_tunnel_endpoint_ip_address\"\250\002\n" + "2InterconnectAttachmentL2ForwardingApplianceMapping\022$\n" + "\024appliance_ip_address\030\256\225\323\033 \001(\tH\000\210\001\001\022\223\001\n" - + " inner_vlan_to_appliance_mappings\030\250\213\270. \003(\0132f.google.clou" - + "d.compute.v1.InterconnectAttachmentL2For" - + "wardingApplianceMappingInnerVlanToApplianceMapping\022\024\n" + + " inner_vlan_to_appliance_mappings\030\250\213\270." + + " \003(\0132f.google.cloud.compute.v1.Inter" + + "connectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\027\n" + "\025_appliance_ip_addressB\007\n" + "\005_name\"\270\001\n" @@ -17608,8 +18362,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_vni\"\275\002\n" + "\032InterconnectAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ \003(\0132/" - + ".google.cloud.compute.v1.InterconnectAttachment\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -17621,8 +18375,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\315\001\n" + "\034InterconnectAttachmentParams\022q\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132" - + "N.google.cloud.compute.v1.InterconnectAttachmentParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132N.google.cloud.com" + + "pute.v1.InterconnectAttachmentParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\274\001\n" @@ -17638,8 +18392,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001B\013\n" + "\t_tag8021q\"\301\001\n" + "!InterconnectAttachmentsScopedList\022U\n" - + "\030interconnect_attachments\030\377\322\353\312\001 " - + "\003(\0132/.google.cloud.compute.v1.InterconnectAttachment\0229\n" + + "\030interconnect_attachments\030\377\322\353\312\001" + + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\305\001\n" @@ -17652,12 +18406,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_google_circuit_idB\023\n" + "\021_google_demarc_id\"\225\005\n" + "\027InterconnectDiagnostics\022P\n\n" - + "arp_caches\030\221\326\330\305\001" - + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + + "arp_caches\030\221\326\330\305\001 \003(\01328." + + "google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + "\027bundle_aggregation_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n" + "\031bundle_operational_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n" - + "\005links\030\271\237\2151" - + " \003(\0132:.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + + "\005links\030\271\237\2151 \003(\0132:" + + ".google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + "\013mac_address\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n" + "\025BundleAggregationType\022%\n" + "!UNDEFINED_BUNDLE_AGGREGATION_TYPE\020\000\022#\n" @@ -17700,20 +18454,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\010\n" + "\006_value\"\361\006\n" + "!InterconnectDiagnosticsLinkStatus\022P\n\n" - + "arp_caches\030\221\326\330\305\001" - + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + + "arp_caches\030\221\326\330\305\001 \003(\0132" + + "8.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + "circuit_id\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\r" + "google_demarc\030\214\217\003 \001(\tH\001\210\001\001\022\\\n" - + "\013lacp_status\030\257\304\236\254\001 \001(\0132>" - + ".google.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" - + "\006macsec\030\242\301\227\374\001" - + " \001(\0132<.google.cloud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.google.cloud.comp" + + "ute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" + + "\006macsec\030\242\301\227\374\001 \001(\0132<.google.c" + + "loud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\004\210\001\001\022i\n" - + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.clou" - + "d.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" - + "\032transmitting_optical_power\030\235\272\211\333\001" - + " \001(\0132@.google.cloud.compute" - + ".v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.cloud.compute.v1.Inter" + + "connectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" + + "\032transmitting_optical_power\030\235\272\211\333\001 \001(\0132" + + "@.google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + "\021OperationalStatus\022 \n" + "\034UNDEFINED_OPERATIONAL_STATUS\020\000\022$\n" + "\034LINK_OPERATIONAL_STATUS_DOWN\020\375\344\246\206\001\022\"\n" @@ -17731,26 +18484,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_cknB\016\n" + "\014_operational\"\224\006\n" + "\021InterconnectGroup\022Q\n\n" - + "configured\030\276\364\373\214\001 \001(\01324." - + "google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + + "configured\030\276\364\373\214\001 \001(\01324.google.cloud.compu" + + "te.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022I\n" + "\006intent\030\234\355\304\313\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n" - + "\r" - + "interconnects\030\245\333\205\370\001 \003(\0132=.google.cloud." - + "compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" + + "interconnects\030\245\333\205\370\001" + + " \003(\0132=.google.cloud.compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022_\n" - + "\022physical_structure\030\213\320\220] \001" - + "(\0132;.google.cloud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + + "\022physical_structure\030\213\320\220] \001(\0132;.google.cloud." + + "compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.google.clou" - + "d.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + + "\005value\030\002" + + " \001(\01326.google.cloud.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -17762,13 +18514,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_physical_structureB\014\n\n" + "_self_link\"\242\001\n" + "\033InterconnectGroupConfigured\022k\n" - + "\023topology_capability\030\350\331\340D \001(\0132F.google.cloud.compute.v1.Interco" - + "nnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + + "\023topology_capability\030\350\331\340D \001(\0132F.google.cl" + + "oud.compute.v1.InterconnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + "\024_topology_capability\"\374\002\n" + "-InterconnectGroupConfiguredTopologyCapability\022\212\001\n" - + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\013" - + "2`.google.cloud.compute.v1.InterconnectG" - + "roupConfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\0132`.google.cloud.co" + + "mpute.v1.InterconnectGroupConfiguredTopo" + + "logyCapabilityIntendedCapabilityBlockers\022\035\n\r" + "supported_sla\030\227\364\242\034 \001(\tH\000\210\001\001\"\214\001\n" + "\014SupportedSla\022\033\n" + "\027UNDEFINED_SUPPORTED_SLA\020\000\022\r\n" @@ -17809,17 +18561,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001B\017\n\r" + "_interconnect\"{\n" + "\"InterconnectGroupPhysicalStructure\022U\n" - + "\006metros\030\372\354\227\376\001 \003(\0132A.google." - + "cloud.compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + + "\006metros\030\372\354\227\376\001 \003(\0132A.google.cloud.compute.v1.I" + + "nterconnectGroupPhysicalStructureMetros\"\260\001\n" + "(InterconnectGroupPhysicalStructureMetros\022c\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.compute.v1.Interco" - + "nnectGroupPhysicalStructureMetrosFacilities\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132K.google.cl" + + "oud.compute.v1.InterconnectGroupPhysicalStructureMetrosFacilities\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\300\001\n" + "2InterconnectGroupPhysicalStructureMetrosFacilities\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022b\n" - + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute." - + "v1.InterconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute.v1.InterconnectGro" + + "upPhysicalStructureMetrosFacilitiesZonesB\013\n" + "\t_facility\"s\n" + "7InterconnectGroupPhysicalStructureMetrosFacilitiesZones\022\031\n\r" + "interconnects\030\245\333\205\370\001 \003(\t\022\024\n" @@ -17827,12 +18579,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\320\003\n" + "\037InterconnectGroupsCreateMembers\022(\n" + "\030intent_mismatch_behavior\030\300\325\262N \001(\tH\000\210\001\001\022d\n\r" - + "interconne", - "cts\030\245\333\205\370\001 \003(\0132I.google.cloud.compute.v1." - + "InterconnectGroupsCreateMembersInterconnectInput\022p\n" - + "\025template_interconnect\030\263\260\225k \001" - + "(\0132I.google.cloud.compute.v1.Interconnec" - + "tGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + + "interconnects\030\245\333\205\370\001 \003(\0132I.go" + + "ogle.cloud.compute.v1.InterconnectGroupsCreateMembersInterconnectInput\022p\n" + + "\025template_interconnect\030\263\260\225k \001(\0132I.google.cloud." + + "compute.v1.InterconnectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + "\026IntentMismatchBehavior\022&\n" + "\"UNDEFINED_INTENT_MISMATCH_BEHAVIOR\020\000\022\016\n" + "\006CREATE\020\374\251\342\267\001\022\r\n" @@ -17879,13 +18629,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_requested_link_count\"\207\001\n" + "&InterconnectGroupsCreateMembersRequest\022Q\n" + "\007request\030\217\345\273\n" - + " \001(\01328.g" - + "oogle.cloud.compute.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + + " \001(\01328.google.cloud.comput" + + "e.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + "\010_request\"\260\001\n" + ".InterconnectGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022T\n" - + "\006result\030\235\220\267B " - + "\001(\0132<.google.cloud.compute.v1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132<.google.cloud" + + ".compute.v1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\364\002\n" + "\036InterconnectGroupsListResponse\022\024\n" @@ -17906,16 +18656,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\350\004\n" + "#InterconnectGroupsOperationalStatus\022Q\n\n" - + "configured\030\276\364\373\214\001" - + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + + "configured\030\276\364\373\214\001 \001(\01324.google" + + ".cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001 \001(\0132" - + "0.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" - + "\025interconnect_statuses\030\261\351\203\325\001" - + " \003(\0132N.google.cloud.compute.v1.Inte" - + "rconnectGroupsOperationalStatusInterconnectStatus\022Q\n" - + "\013operational\030\322\307\354= \001(\01324.goog" - + "le.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + + "\006intent\030\234\355\304\313\001" + + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" + + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google" + + ".cloud.compute.v1.InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" + + "\013operational\030\322\307\354=" + + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -17928,8 +18677,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_operational\"\207\003\n" + "5InterconnectGroupsOperationalStatusInterconnectStatus\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022N\n" - + "\013diagnostics\030\254\263\372\236\001 \001(\0132" - + "0.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + + "\013diagnostics\030\254\263\372\236\001" + + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\002\210\001\001\022\031\n" + "\tis_active\030\273\327\3406 \001(\tH\003\210\001\001\"d\n" + "\010IsActive\022\027\n" @@ -17962,8 +18711,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022p\n" - + "\035cross_site_interconnect_infos\030\215\337\303v \003(\0132F.google.cloud.compute" - + ".v1.InterconnectLocationCrossSiteInterconnectInfo\022\034\n" + + "\035cross_site_interconnect_infos\030\215\337\303v \003(\0132" + + "F.google.cloud.compute.v1.InterconnectLocationCrossSiteInterconnectInfo\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\"\n" + "\021facility_provider\030\215\240\246\376\001 \001(\tH\006\210\001\001\022-\n" + "\035facility_provider_facility_id\030\205\276\316) \001(\tH\007\210\001\001\022\020\n" @@ -17972,8 +18721,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\013\210\001\001\022Q\n" - + "\014region_infos\030\372\350\356\224\001" - + " \003(\01327.google.cloud.compute.v1.InterconnectLocationRegionInfo\022\032\n" + + "\014region_infos\030\372\350\356\224\001 \003(\01327.googl" + + "e.cloud.compute.v1.InterconnectLocationRegionInfo\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022<\n" + "0single_region_production_critical_peer_locations\030\317\233\313\321\001 \003(" + "\t\022\026\n" @@ -17997,7 +18746,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010C_AFRICA\020\366\223\252\"\022\022\n\n" + "C_ASIA_PAC\020\371\217\206\336\001\022\017\n" + "\010C_EUROPE\020\236\312\305_\022\027\n" - + "\017C_NORTH_AMERICA\020\230\233\273\203\001\022\027\n" + + "\017C_NORTH_AMERICA\020\230\233\273\203\001", + "\022\027\n" + "\017C_SOUTH_AMERICA\020\340\214\260\275\001\022\016\n" + "\006EUROPE\020\242\323\312\324\001\022\025\n\r" + "NORTH_AMERICA\020\224\331\320\325\001\022\024\n\r" @@ -18026,8 +18776,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_city\"\271\002\n" + "\030InterconnectLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003(" - + "\0132-.google.cloud.compute.v1.InterconnectLocation\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.InterconnectLocation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18055,12 +18805,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_region\"\224\001\n" + "\022InterconnectMacsec\022\032\n" + "\tfail_open\030\313\225\373\375\001 \001(\010H\000\210\001\001\022T\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003(\01327.goo" - + "gle.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + + "\017pre_shared_keys\030\362\313\265\310\001" + + " \003(\01327.google.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + "_fail_open\"v\n" + "\030InterconnectMacsecConfig\022Z\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003" - + "(\0132=.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + + "\017pre_shared_keys\030\362\313\265\310\001 \003(\0132=.google.cloud." + + "compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + "$InterconnectMacsecConfigPreSharedKey\022\022\n" + "\003cak\030\315\377\005 \001(\tH\000\210\001\001\022\022\n" + "\003ckn\030\206\202\006 \001(\tH\001\210\001\001\022\024\n" @@ -18109,20 +18859,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_start_timeB\010\n" + "\006_state\"\271\001\n" + "\022InterconnectParams\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132D.google.cloud.compute.v1.Int" - + "erconnectParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.googl" + + "e.cloud.compute.v1.InterconnectParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\212\014\n" + "\032InterconnectRemoteLocation\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n" - + "$attachment_configuration_constraints\030\321\350\353\233\001" - + " \001(\0132G.google.cloud.compute.v1.Interc" - + "onnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + + "$attachment_configuration_constraints\030\321\350\353\233\001 \001(\0132G.google.c" + + "loud.compute.v1.InterconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022[\n" - + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud.compute.v1.In" - + "terconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + + "\013constraints\030\266\314\356\001 \001(\0132>.goog" + + "le.cloud.compute.v1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\004\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n" @@ -18138,9 +18886,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024max_lag_size400_gbps\030\322\214\2052 \001(\005H\016\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\017\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\020\210\001\001\022j\n" - + "\025permitted_connections\030\256\263\345\322\001" - + " \003(\0132G.google.cloud.compute.v1.Inte" - + "rconnectRemoteLocationPermittedConnections\022\037\n" + + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google" + + ".cloud.compute.v1.InterconnectRemoteLocationPermittedConnections\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\021\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\023\210\001\001\"\202\001\n" @@ -18148,7 +18895,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023UNDEFINED_CONTINENT\020\000\022\016\n" + "\006AFRICA\020\372\234\257\227\001\022\017\n" + "\010ASIA_PAC\020\375\366\2169\022\016\n" - + "\006EUROPE\020\242\323\312\324\001\022\025\n\r" + + "\006EUROPE\020\242\323\312\324\001\022\025\n" + + "\r" + "NORTH_AMERICA\020\224\331\320\325\001\022\024\n\r" + "SOUTH_AMERICA\020\334\312\305\017\"K\n" + "\004Lacp\022\022\n" @@ -18183,9 +18931,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031port_pair_remote_location\030\247\262\274\354\001 \001(" + "\tH\000\210\001\001\022\037\n" + "\016port_pair_vlan\030\352\362\203\344\001 \001(\tH\001\210\001\001\022t\n" - + "\023subnet_length_range\030\306\260\373W \001(\013" - + "2O.google.cloud.compute.v1.InterconnectR" - + "emoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.co" + + "mpute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + "\026PortPairRemoteLocation\022\'\n" + "#UNDEFINED_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n" + "\"PORT_PAIR_MATCHING_REMOTE_LOCATION\020\323\213\354b\022.\n" @@ -18204,8 +18951,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_min\"\305\002\n" + "\036InterconnectRemoteLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022E\n" - + "\005items\030\300\317\367/" - + " \003(\01323.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "23.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18220,18 +18967,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025interconnect_location\030\306\330\333\352\001 \001(\tH\000\210\001\001B\030\n" + "\026_interconnect_location\"z\n" + "#InterconnectsGetDiagnosticsResponse\022H\n" - + "\006result\030\235\220\267B" - + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\01320.google" + + ".cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + "\007_result\"\233\001\n" + "$InterconnectsGetMacsecConfigResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n" - + "\006result\030\235\220\267B \001(\01321." - + "google.cloud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B" + + " \001(\01321.google.cloud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\351\001\n" + "\034InvalidateCacheUrlMapRequest\022a\n" - + " cache_invalidation_rule_resource\030\255\303\223\225\001 \001(\0132..googl" - + "e.cloud.compute.v1.CacheInvalidationRuleB\003\340A\002\022!\n" + + " cache_invalidation_rule_resource\030\255\303\223\225\001" + + " \001(\0132..google.cloud.compute.v1.CacheInvalidationRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" @@ -18262,8 +19009,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.compute.v1.LicenseParamsH\013\210\001\001\022#\n" + "\023removable_from_disk\030\256\205\252\014 \001(\010H\014\210\001\001\022\'\n" + "\034required_coattached_licenses\030\201\272\315= \003(\t\022[\n" - + "\025resource_requirements\030\241\262\227f" - + " \001(\01324.google.cloud.compute.v1.LicenseResourceRequirementsH\r" + + "\025resource_requirements\030\241\262\227f \001(\01324.google.clo" + + "ud.compute.v1.LicenseResourceRequirementsH\r" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\017\210\001\001\022!\n" @@ -18294,8 +19041,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022J\n\r" - + "license_alias\030\322\221\342\024 \003(\01320.goog" - + "le.cloud.compute.v1.LicenseCodeLicenseAlias\022\024\n" + + "license_alias\030\322\221\342\024" + + " \003(\01320.google.cloud.compute.v1.LicenseCodeLicenseAlias\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\005\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\006\210\001\001\022\034\n" @@ -18321,8 +19068,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\014\n\n" + "_self_link\"\257\001\n\r" + "LicenseParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.cl" - + "oud.compute.v1.LicenseParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132?.google.cloud.compute.v1.LicenseParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\234\001\n" @@ -18479,8 +19226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024UNDEFINED_ROUTE_TYPE\020\000\022\021\n\n" + "ADVERTISED\020\235\222\327\t\022\016\n" + "\007LEARNED\020\303\313\311n\022\035\n" - + "\026UNSPECI", - "FIED_ROUTE_TYPE\020\270\323\244vB\021\n" + + "\026UNSPECIFIED_ROUTE_TYPE\020\270\323\244vB\021\n" + "\017_address_familyB\025\n" + "\023_destination_prefixB\t\n" + "\007_filterB\016\n" @@ -18632,7 +19378,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\265\002\n" + "\035ListFutureReservationsRequest\022\027\n" @@ -18690,7 +19437,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\235\002\n" + "\033ListGlobalOperationsRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\006filter\030\370\226\243\240\001 ", + "\001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -18712,8 +19460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\014\n\n" + "_parent_idB\031\n" + "\027_return_partial_success\"\252\002\n" @@ -18784,8 +19531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\261\002\n" + "\031ListInstanceGroupsRequest\022\027\n" @@ -18820,8 +19566,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022}\n" + "/instance_groups_list_instances_request_resource\030\237\250\214\343\001" - + " \001(\0132;.goo" - + "gle.cloud.compute.v1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + + " \001(\0132;.google.cloud.compute." + + "v1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -18845,8 +19591,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\211\001\n" + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027" - + " \001(\0132A.google.cloud.compute.v" - + "1.RegionInstanceGroupsListInstancesRequestB\003\340A\002\022\'\n" + + " \001(\0132A." + + "google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -18867,6 +19613,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\362\002\n" + + "\031ListInstantSnapshotGroups\022\024\n" + + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\tH\001\210\001\001\022?\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.InstantSnapshotGroup\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" + + "\014unreachables\030\237\240\206t \003(\t\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\005\210\001\001B\007\n" + + "\005_etagB\005\n" + + "\003_idB\007\n" + + "\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n" + + "\010_warning\"\270\002\n" + + " ListInstantSnapshotGroupsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001" + + " \001(\010H\004\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\263\002\n" + "\033ListInstantSnapshotsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -19000,8 +19778,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\360\002\n" + "0ListManagedInstancesInstanceGroupManagersRequest\022\027\n" @@ -19084,8 +19861,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\001\210\001\001\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\213\001\n" + "7network_endpoint_groups_list_endpoints_request_resource\030\216\230\257\034" - + " \001(\0132B.googl" - + "e.cloud.compute.v1.NetworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + + " \001(\0132B.google.cloud.co" + + "mpute.v1.NetworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" @@ -19155,8 +19932,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" @@ -19198,8 +19974,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_return_partial_success\"\317\002\n" + "\032ListNodesNodeGroupsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_results\030\233", - "\310\213\032 \001(\r" + + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -19369,7 +20144,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" - + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "page_token\030\311\260\304\t \001(\tH\003\210", + "\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" + " \001(\010H\004\210\001\001\022\024\n" @@ -19392,6 +20168,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\271\002\n" + + "\037ListRegionBackendBucketsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\272\002\n" + " ListRegionBackendServicesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -19518,6 +20308,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\365\002\n" + + "3ListRegionInstanceGroupManagerResizeRequestsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022&\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\300\002\n" + "&ListRegionInstanceGroupManagersRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -19560,6 +20365,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\300\002\n" + + "&ListRegionInstantSnapshotGroupsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\273\002\n" + "!ListRegionInstantSnapshotsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -19644,6 +20463,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\264\002\n" + + "\032ListRegionSnapshotsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\272\002\n" + " ListRegionSslCertificatesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -19846,7 +20679,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006router\030\311\256\356F \001(\tB\003\340A\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\254\002\n" + "\022ListRoutersRequest\022\027\n" @@ -19914,8 +20748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" - + "\013_page_toke", - "nB\031\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\234\002\n" + "\032ListSslCertificatesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -19977,7 +20810,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" @@ -20017,7 +20851,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\237\002\n" + "\035ListTargetHttpsProxiesRequest\022\027\n" @@ -20035,7 +20870,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_return_partial_success\"\262\002\n" + "\032ListTargetInstancesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_results\030\233\310\213\032 \001(\r" + + "\013max_result", + "s\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" @@ -20114,6 +20950,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\241\002\n" + + "\037ListUsableBackendBucketsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\242\002\n" + " ListUsableBackendServicesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -20127,6 +20976,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\277\002\n" + + "%ListUsableRegionBackendBucketsRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\300\002\n" + "&ListUsableRegionBackendServicesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -20206,8 +21069,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022n\n" - + "(projects_list_xpn_hosts_request_resource\030\227\320\316q \001(\01324.google.clou" - + "d.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002\022\'\n" + + "(projects_list_xpn_hosts_request_resource\030\227\320\316q \001(\01324.g" + + "oogle.cloud.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -20228,6 +21091,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + + "\027_return_partial_success\"\272\002\n" + + "\"ListZoneVmExtensionPoliciesRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\r" + + "H\001\210\001\001\022\030\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + + "\026return_partial_success\030\266\244\317\366\001" + + " \001(\010H\004\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" + + "\007_filterB\016\n" + + "\014_max_resultsB\013\n" + + "\t_order_byB\r\n" + + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\222\002\n" + "\020ListZonesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -20239,7 +21117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\217\001\n" + "\tLocalDisk\022\032\n\n" @@ -20255,11 +21134,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_localeB\n\n" + "\010_message\"\236\003\n" + "\016LocationPolicy\022M\n" - + "\tlocations\030\336\256\221\305\001 \003(\01326.go" - + "ogle.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + + "\tlocations\030\336\256\221\305\001 \003" + + "(\01326.google.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022J\n" - + "\005zones\030\307\244\2557 \003(\01328.google.cloud.comp" - + "ute.v1.LocationPolicyZoneConfiguration\032a\n" + + "\005zones\030\307\244\2557 \003(\01328.google.clo" + + "ud.compute.v1.LocationPolicyZoneConfiguration\032a\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" + "\005value\030\002" @@ -20271,8 +21150,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BALANCED\020\210\272\255\337\001B\017\n\r" + "_target_shape\"\216\002\n" + "\026LocationPolicyLocation\022W\n" - + "\013constraints\030\266\314\356\001 \001(\0132:.google.cloud.com" - + "pute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + + "\013constraints\030\266\314\356\001 \001(\0132:.google.cl" + + "oud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + "preference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" @@ -20292,12 +21171,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022P\n" - + "\023instance_properties\030\235\236\330f \001(\0132+.google" - + ".cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + + "\023instance_properties\030\235\236\330f \001(\0132+" + + ".google.cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001 \003(\01321" - + ".google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01321.google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" + "\034machine_image_encryption_key\030\377\377\347\373\001" + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022C\n" @@ -20309,12 +21188,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013saved_disks\030\276\355\300\275\001" + " \003(\0132\".google.cloud.compute.v1.SavedDisk\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022Y\n" - + "\033source_disk_encryption_keys\030\262\370\317\260\001 \003(\01320.google.c" - + "loud.compute.v1.SourceDiskEncryptionKey\022 \n" + + "\033source_disk_encryption_keys\030\262\370\317\260\001 \003(\01320.g" + + "oogle.cloud.compute.v1.SourceDiskEncryptionKey\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\r" + "\210\001\001\022^\n" - + "\032source_instance_properties\030\371\321\313\342\001 \001(\01321.goog" - + "le.cloud.compute.v1.SourceInstancePropertiesH\016\210\001\001\022\026\n" + + "\032source_instance_properties\030\371\321\313\342\001 \001(\013" + + "21.google.cloud.compute.v1.SourceInstancePropertiesH\016\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\017\210\001\001\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\022#\n" + "\023total_storage_bytes\030\354\207\204\' \001(\003H\020\210\001\001\032-\n" @@ -20359,9 +21238,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\022MachineImageParams\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132D.google.cloud.compute.v1.Mach" - + "ineImageParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.compute." + + "v1.MachineImageParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\213\010\n" @@ -20369,12 +21247,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014accelerators\030\350\326\305\200\001" + " \003(\0132%.google.cloud.compute.v1.Accelerators\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022N\n" - + "\022bundled_local_ssds\030\200\347\340\270\001 " - + "\001(\0132).google.cloud.compute.v1.BundledLocalSsdsH\001\210\001\001\022\"\n" + + "\022bundled_local_ssds\030\200\347\340\270\001" + + " \001(\0132).google.cloud.compute.v1.BundledLocalSsdsH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*.google" - + ".cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" - + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*" + + ".google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n" + + "\n" + "guest_cpus\030\322\313\310\273\001 \001(\005H\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\036\n" + "\016image_space_gb\030\230\362\365# \001(\005H\007\210\001\001\022\036\n\r" @@ -20412,8 +21291,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\302\003\n" + "\031MachineTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/ " - + "\003(\0132=.google.cloud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132=.google.cloud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -20422,8 +21301,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.go" - + "ogle.cloud.compute.v1.MachineTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\0132/.google.cloud.compute.v1.MachineTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -20445,15 +21324,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026MachineTypesScopedList\022>\n\r" + "machine_types\030\201\335\201& \003(\0132$.google.cloud.compute.v1.MachineType\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\202\013\n" + "\017ManagedInstance\022\036\n" + "\016current_action\030\274\247\215U \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022S\n" - + "\017instance_health\030\306\222\274\266\001" - + " \003(\01326.google.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + + "\017instance_health\030\306\222\274\266\001 \003(\01326.google.cloud.co" + + "mpute.v1.ManagedInstanceInstanceHealth\022\037\n" + "\017instance_status\030\334\255\237S \001(\tH\003\210\001\001\022R\n" + "\014last_attempt\030\244\254\250\317\001" + " \001(\01323.google.cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" @@ -20462,8 +21340,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" + "\033preserved_state_from_policy\030\322\257\276\340\001" + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" - + "\"properties_from_flexibility_policy\030\301\305\224J \001(\0132G.google." - + "cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022I\n" + + "\"properties_from_flexibility_policy\030\301\305\224J \001(\0132G." + + "google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022I\n" + "\007version\030\330\271\324\247\001" + " \001(\0132/.google.cloud.compute.v1.ManagedInstanceVersionH" + "\t\210\001\001\"\205\002\n\r" @@ -20516,9 +21394,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_detailed_health_stateB\017\n\r" + "_health_check\"{\n" + "\032ManagedInstanceLastAttempt\022R\n" - + "\006errors\030\353\336\325\226\001" - + " \001(\01329.google.cloud.compute.v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B" - + "\t\n" + + "\006errors\030\353\336\325\226\001 \001(\01329.google.cloud.compute" + + ".v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + "\007_errors\"W\n" + " ManagedInstanceLastAttemptErrors\0223\n" + "\006errors\030\353\336\325\226\001 \003(\0132\037.google.cloud.compute.v1.Errors\"_\n" @@ -20556,16 +21433,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022l\n" - + "®ion_addresses_move_request_resource\030\304\260\210\303\001" - + " \001(\01323.google.cloud.comp" - + "ute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + + "®ion_addresses_move_request_resource\030\304\260\210\303\001 \001(\01323.google.clo" + + "ud.compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\275\001\n" + "\026MoveDiskProjectRequest\022U\n" - + "\032disk_move_request_resource\030\312\302\240\225\001" - + " \001(\0132(.google.cloud.compute.v1.DiskMoveRequestB\003\340A\002\022!\n" + + "\032disk_move_request_resource\030\312\302\240\225\001 \001(\0132(.go" + + "ogle.cloud.compute.v1.DiskMoveRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\220\001\n" + "\031MoveFirewallPolicyRequest\022 \n" @@ -20594,16 +21471,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\014\n\n" + "_parent_idB\r\n" - + "\013_request_i", - "d\"I\n" + + "\013_request_id\"I\n" + "\tNamedPort\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\024\n" + "\004port\030\201\261\322\001 \001(\005H\001\210\001\001B\007\n" + "\005_nameB\007\n" + "\005_port\"\210\001\n" + "\tNatIpInfo\022S\n" - + "\024nat_ip_info_mappings\030\234\200\216s " - + "\003(\01322.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + + "\024nat_ip_info_mappings\030\234\200\216s" + + " \003(\01322.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + "\010nat_name\030\351\255\370\312\001 \001(\tH\000\210\001\001B\013\n" + "\t_nat_name\"\362\001\n" + "\031NatIpInfoNatIpInfoMapping\022\024\n" @@ -20646,8 +21522,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" + "\010peerings\030\263\252\251!" + " \003(\0132\'.google.cloud.compute.v1.NetworkPeering\022N\n" - + "\016routing_config\030\333\251\323\371\001 \001(\0132-" - + ".google.cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + + "\016routing_config\030\333\251\323\371\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\021\210\001\001\022\027\n" + "\013subnetworks\030\305\324\245\306\001 \003(\t\"\240\001\n" @@ -20663,7 +21539,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_firewall_policyB\020\n" + "\016_gateway_i_pv4B\005\n" + "\003_idB\026\n" - + "\024_internal_ipv6_rangeB\007\n" + + "\024_internal_i", + "pv6_rangeB\007\n" + "\005_kindB\006\n" + "\004_mtuB\007\n" + "\005_nameB,\n" @@ -20674,8 +21551,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\024\n" + "\022_self_link_with_id\"\247\006\n" + "\021NetworkAttachment\022]\n" - + "\024connection_endpoints\030\335\242\276\233\001" - + " \003(\0132;.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint\022&\n" + + "\024connection_endpoints\030\335\242\276\233\001 \003(\0132;.google.cloud.c" + + "ompute.v1.NetworkAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\033\n" @@ -20702,15 +21579,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_fingerprintB\005\n" + "\003_idB\007\n" + "\005_kindB\007\n" - + "\005_nameB\n\n" + + "\005_nameB\n" + + "\n" + "\010_networkB\t\n" + "\007_regionB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_id\"\273\003\n" + "\037NetworkAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003" - + "(\0132C.google.cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.google.cloud.compute.v1.Netw" + + "orkAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20718,21 +21596,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.google.cloud.co" + + "mpute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" - + "\010_warning\"\207\004\n" + + "\010_warning\"\277\004\n" + "\"NetworkAttachmentConnectedEndpoint\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\000\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\001\210\001\001\022\"\n" + "\021project_id_or_num\030\250\212\345\246\001 \001(\tH\002\210\001\001\022#\n" - + "\030secondary_ip_cidr_ranges\030\224\262\3607 \003(\t\022\026\n" - + "\006status\030\362\237\267V \001(\tH\003\210\001\001\022\033\n\n" - + "subnetwork\030\356\247\344\222\001 \001(\tH\004\210\001\001\022&\n" - + "\025subnetwork_cidr_range\030\243\333\337\266\001 \001(\tH\005\210\001\001\"\224\001\n" + + "\030secondary_ip_cidr_ranges\030\224\262\3607 \003(\t\022!\n" + + "\020service_class_id\030\214\267\313\311\001 \001(\tH\003\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\004\210\001\001\022\033\n\n" + + "subnetwork\030\356\247\344\222\001 \001(\tH\005\210\001\001\022&\n" + + "\025subnetwork_cidr_range\030\243\333\337\266\001 \001(\tH\006\210\001\001\"\224\001\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\017\n" + "\010ACCEPTED\020\247\237\322u\022\016\n" @@ -20743,14 +21623,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022STATUS_UNSPECIFIED\020\312\314\213\024B\r\n" + "\013_ip_addressB\017\n\r" + "_ipv6_addressB\024\n" - + "\022_project_id_or_numB\t\n" + + "\022_project_id_or_numB\023\n" + + "\021_service_class_idB\t\n" + "\007_statusB\r\n" + "\013_subnetworkB\030\n" + "\026_subnetwork_cidr_range\"\263\002\n" + "\025NetworkAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\013" - + "2*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20762,8 +21643,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034NetworkAttachmentsScopedList\022K\n" - + "\023network_attachments\030\237\336\326\370\001 \003(\0132*.goo" - + "gle.cloud.compute.v1.NetworkAttachment\0229\n" + + "\023network_attachments\030\237\336\326\370\001" + + " \003(\0132*.google.cloud.compute.v1.NetworkAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\304\003\n" @@ -20791,8 +21672,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(NetworkEdgeSecurityServiceAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.google.clo" - + "ud.compute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google.cloud.compute.v1.Net" + + "workEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -20801,8 +21682,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032l\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.goo" - + "gle.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132>.google.cloud.compute" + + ".v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -20810,17 +21691,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\316\001\n" + "%NetworkEdgeSecurityServicesScopedList\022^\n" - + "\036network_edge_security_services\030\254\313\370\020" - + " \003(\01323.google.cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + + "\036network_edge_security_services\030\254\313\370\020 \003(" + + "\01323.google.cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\236\003\n" + "\017NetworkEndpoint\022Q\n" - + "\013annotations\030\244\366\2655 \003(\01329.google.clou" - + "d.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + + "\013annotations\030\244\366\2655" + + " \003(\01329.google.cloud.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + "\027client_destination_port\030\206\210\202; \001(\005H\000\210\001\001\022\024\n" + "\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022\030\n" - + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\n" + + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n" + + "\n" + "ip_address\030\334\361\334\301\001 \001(\tH\003\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\004\210\001\001\022\024\n" + "\004port\030\201\261\322\001 \001(\005H\005\210\001\001\0322\n" @@ -20829,20 +21711,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\032\n" + "\030_client_destination_portB\007\n" + "\005_fqdnB\013\n" - + "\t_instanceB\r" - + "\n" + + "\t_instanceB\r\n" + "\013_ip_addressB\017\n\r" + "_ipv6_addressB\007\n" + "\005_port\"\211\013\n" + "\024NetworkEndpointGroup\022V\n" - + "\013annotations\030\244\366\2655" - + " \003(\0132>.google.cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" - + "app_engine\030\240\214\300\242\001" - + " \001(\01326.google.cloud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" - + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.google.cloud" - + ".compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" - + "\tcloud_run\030\201\313\3724 \001(\01325.googl" - + "e.cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + + "\013annotations\030\244\366\2655 \003(\0132>.google" + + ".cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" + + "app_engine\030\240\214\300\242\001 \001(\0132" + + "6.google.cloud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" + + "\016cloud_function\030\242\345\363\367\001" + + " \001(\0132:.google.cloud.compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" + + "\tcloud_run\030\201\313\3724" + + " \001(\01325.google.cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n" + "\014default_port\030\277\367\360\311\001 \001(\005H\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\020\n" @@ -20852,8 +21733,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\t\210\001\001\022%\n" + "\025network_endpoint_type\030\323\306\2648 \001(\tH\n" + "\210\001\001\022N\n" - + "\010psc_data\030\311\333\246\"" - + " \001(\01324.google.cloud.compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + + "\010psc_data\030\311\333\246\" \001(\0132" + + "4.google.cloud.compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + "\022psc_target_service\030\346\302\252\200\001 \001(\tH\014\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\r" + "\210\001\001\022\032\n" @@ -20874,8 +21755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020INTERNET_IP_PORT\020\233\333\345\343\001\022\037\n" + "\027NON_GCP_PRIVATE_IP_PORT\020\340\223\267\240\001\022\036\n" + "\027PRIVATE_SERVICE_CONNECT\020\304\364\371\026\022\022\n\n" - + "SERVERLESS\020\334\306\375\200\001B\r" - + "\n" + + "SERVERLESS\020\334\306\375\200\001B\r\n" + "\013_app_engineB\021\n" + "\017_cloud_functionB\014\n\n" + "_cloud_runB\025\n" @@ -20896,8 +21776,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\335\003\n" + "\"NetworkEndpointGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1" - + ".NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F." + + "google.cloud.compute.v1.NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -20906,8 +21786,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002" - + " \001(\01328.google.cloud.compute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328" + + ".google.cloud.compute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -20978,8 +21858,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_health_status\"\253\002\n" + ")NetworkEndpointGroupsListNetworkEndpoints\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003(\01328.goog" - + "le.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01328.google.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -20995,15 +21875,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\317\001\n" + "\037NetworkEndpointWithHealthStatus\022K\n" - + "\007healths\030\227\223\255{" - + " \003(\01327.google.cloud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" + + "\007healths\030\227\223\255{ \003" + + "(\01327.google.cloud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" + "\020network_endpoint\030\206\221\212\033" + " \001(\0132(.google.cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" + "\021_network_endpoint\"\332\003\n" + "#NetworkFirewallPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v1.Netw" - + "orkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132G.googl" + + "e.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -21012,25 +21892,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.goo" + + "gle.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" - + "\010_warning\"\331\013\n" + + "_self_linkB\n\n" + + "\010_warning\"\221\014\n" + "\020NetworkInterface\022@\n" - + "\016access_configs\030\226\273\3724" - + " \003(\0132%.google.cloud.compute.v1.AccessConfig\022A\n" + + "\016access_configs\030\226\273\3724 \003(" + + "\0132%.google.cloud.compute.v1.AccessConfig\022A\n" + "\017alias_ip_ranges\030\277\203\334N" + " \003(\0132%.google.cloud.compute.v1.AliasIpRange\022&\n" + "\025enable_vpc_scoped_dns\030\314\370\222\207\001 \001(\010H\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\032\n\n" + "igmp_query\030\312\244\266\016 \001(\tH\002\210\001\001\022+\n" + "\033internal_ipv6_prefix_length\030\235\203\231a \001(\005H\003\210\001\001\022F\n" - + "\023ipv6_access_configs\030\356\345\304\346\001" - + " \003(\0132%.google.cloud.compute.v1.AccessConfig\022!\n" + + "\023ipv6_access_configs\030\356\345\304\346\001 \003" + + "(\0132%.google.cloud.compute.v1.AccessConfig\022!\n" + "\020ipv6_access_type\030\335\365\321\360\001 \001(\tH\004\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" @@ -21042,10 +21921,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010nic_type\030\221\306\302\034 \001(\tH\013\210\001\001\022 \n" + "\017parent_nic_name\030\327\254\327\307\001 \001(\tH\014\210\001\001\022\034\n" + "\013queue_count\030\341\370\227\360\001 \001(\005H\r" - + "\210\001\001\022\033\n\n" - + "stack_type\030\221\265\213\313\001 \001(\tH\016\210\001\001\022\033\n\n" - + "subnetwork\030\356\247\344\222\001 \001(\tH\017\210\001\001\022\024\n" - + "\004vlan\030\343\212\335\001 \001(\005H\020\210\001\001\"X\n" + + "\210\001\001\022!\n" + + "\020service_class_id\030\214\267\313\311\001 \001(\tH\016\210\001\001\022\033\n\n" + + "stack_type\030\221\265\213\313\001 \001(\tH\017\210\001\001\022\033\n\n" + + "subnetwork\030\356\247\344\222\001 \001(\tH\020\210\001\001\022\024\n" + + "\004vlan\030\343\212\335\001 \001(\005H\021\210\001\001\"X\n" + "\tIgmpQuery\022\030\n" + "\024UNDEFINED_IGMP_QUERY\020\000\022\032\n" + "\023IGMP_QUERY_DISABLED\020\361\261\276\r" @@ -21085,7 +21965,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_network_i_pB\013\n" + "\t_nic_typeB\022\n" + "\020_parent_nic_nameB\016\n" - + "\014_queue_countB\r\n" + + "\014_queue_countB\023\n" + + "\021_service_class_idB\r\n" + "\013_stack_typeB\r\n" + "\013_subnetworkB\007\n" + "\005_vlan\"\237\002\n" @@ -21103,15 +21984,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n\r" + "NetworkParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.cloud.compute.v1." - + "NetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132?.google.cloud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\316\010\n" + "\016NetworkPeering\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022[\n" - + "\021connection_status\030\363\360\321\372\001 \001(\01327.google.cloud." - + "compute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + + "\021connection_status\030\363\360\321\372\001 \001(\01327.google.cloud.c" + + "ompute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + "\026exchange_subnet_routes\030\320\312\306\014 \001(\010H\002\210\001\001\022$\n" + "\024export_custom_routes\030\215\245\337\034 \001(\010H\003\210\001\001\0223\n" + "#export_subnet_routes_with_public_ip\030\342\352\331." @@ -21158,10 +22040,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_state_detailsB\022\n" + "\020_update_strategy\"\314\003\n" + "\036NetworkPeeringConnectionStatus\022g\n" - + "\017consensus_state\030\311\275\213\265\001 \001(\0132E.google.clo" - + "ud.compute.v1.NetworkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" - + "\025traffic_configuration\030\264\324\266? \001(\0132K.google.cloud.compute" - + ".v1.NetworkPeeringConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + + "\017consensus_state\030\311\275\213\265\001 \001(\0132E.google.clou" + + "d.compute.v1.NetworkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" + + "\025traffic_configuration\030\264\324\266? \001(\0132K.google.cloud.compute." + + "v1.NetworkPeeringConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + "\017update_strategy\030\251\334\365\002 \001(\tH\002\210\001\001\"j\n" + "\016UpdateStrategy\022\035\n" + "\031UNDEFINED_UPDATE_STRATEGY\020\000\022\020\n" @@ -21219,12 +22101,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NetworkProfile\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022P\n" - + "\010features\030\275\310\263u \001(\01326.google." - + "cloud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + + "\010features\030\275\310\263u \001(\01326.google.c" + + "loud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n" - + "\010location\030\265\277\276\212\001 \001(\0132/.goog" - + "le.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + + "\010location\030\265\277\276\212\001 \001(\0132/.googl" + + "e.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022P\n" + "\014profile_type\030\220\300\315G" + " \001(\01322.google.cloud.compute.v1.NetworkProfileProfileTypeH\007\210\001\001\022\032\n" @@ -21254,8 +22136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scope\"\2716\n" + "\035NetworkProfileNetworkFeatures\022\034\n" + "\020address_purposes\030\200\336\275\316\001 \003(\t\022\'\n" - + "\026allow_address_creation\030\200\242\203\327\001 \001(\tH\000\210", - "\001\001\022&\n" + + "\026allow_address_creation\030\200\242\203\327\001 \001(\tH\000\210\001\001\022&\n" + "\025allow_alias_ip_ranges\030\311\221\261\332\001 \001(\tH\001\210\001\001\022&\n" + "\026allow_auto_mode_subnet\030\237\202\311H \001(\tH\002\210\001\001\022\'\n" + "\027allow_class_d_firewalls\030\233\343\340> \001(\tH\003\210\001\001\022\037\n" @@ -21291,8 +22172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&predefined_network_internal_ipv6_range\030\335\202\327\373\001 \001(" + "\tH\034\210\001\001\022y\n" + "\034predefined_subnetwork_ranges\030\316\304\363\302\001" - + " \003(\0132O.google.cloud.compute.v1.Ne" - + "tworkProfileNetworkFeaturesPredefinedSubnetworkRange\022\033\n" + + " \003(\0132O.google.cloud.compute.v1.Net" + + "workProfileNetworkFeaturesPredefinedSubnetworkRange\022\033\n" + "\017subnet_purposes\030\267\233\330\217\001 \003(\t\022\036\n" + "\022subnet_stack_types\030\240\354\267\370\001 \003(\t\022\037\n" + "\023subnetwork_purposes\030\306\240\361\373\001 \003(\t\022\"\n" @@ -21300,7 +22181,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007unicast\030\257\220\221w \001(\tH\035\210\001\001\"\363\001\n" + "\017AddressPurposes\022\036\n" + "\032UNDEFINED_ADDRESS_PURPOSES\020\000\022\024\n" - + "\014DNS_RESOLVER\020\374\334\203\343\001\022\023\n" + + "\014DNS_RESOLVER\020\374\334\203\343\001", + "\022\023\n" + "\014GCE_ENDPOINT\020\253\304\365m\022\032\n" + "\022IPSEC_INTERCONNECT\020\203\322\252\242\001\022\017\n" + "\010NAT_AUTO\020\255\264\205N\022\036\n" @@ -21572,23 +22454,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031NetworksAddPeeringRequest\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n" - + "\017network_peering\030\257\214\354\234\001 \001" - + "(\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + + "\017network_peering\030\257\214\354\234\001 \001(" + + "\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + "\014peer_network\030\321\340\333\356\001 \001(\tH\003\210\001\001B\025\n" + "\023_auto_create_routesB\007\n" + "\005_nameB\022\n" + "\020_network_peeringB\017\n\r" + "_peer_network\"\326\001\n" + "%NetworksGetEffectiveFirewallsResponse\022s\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132U.google.cloud.comp" - + "ute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132U.google.cloud.compu" + + "te.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\363\003\n" + ".google.cloud." - + "compute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.google.cloud.c" + + "ompute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -21861,8 +22744,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032^\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002 \001(\01320.google.cloud.compute", - ".v1.NodeTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01320.google.cloud.compute.v1.NodeTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -21925,12 +22808,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026NodeTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.googl" - + "e.cloud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google" + + ".cloud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" - + "\014unreachables\030\237\240\206t \003(\t\0229\n" + + "\014unreachables\030\237\240\206t \003(\t\022", + "9\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" @@ -21963,8 +22847,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024NotificationEndpoint\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022Y\n\r" - + "grpc_settings\030\244\306\300\331\001 \001(\01329.google.cloud.compute" - + ".v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + + "grpc_settings\030\244\306\300\331\001 \001(\01329.google.cloud.compute." + + "v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n" @@ -21980,8 +22864,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\335\003\n" + "\"NotificationEndpointAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute" - + ".v1.NotificationEndpointAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute." + + "v1.NotificationEndpointAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -21990,8 +22874,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.google.cloud.comput" - + "e.v1.NotificationEndpointsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.google.cloud.compute" + + ".v1.NotificationEndpointsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22012,8 +22896,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_retry_duration_sec\"\271\002\n" + "\030NotificationEndpointList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003(" - + "\0132-.google.cloud.compute.v1.NotificationEndpoint\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2-.google.cloud.compute.v1.NotificationEndpoint\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -22037,15 +22921,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\261\247\3476 \001(\tH\003\210\001\001\0225\n" + "\005error\030\210\244\223." + " \001(\0132\036.google.cloud.compute.v1.ErrorH\004\210\001\001\022d\n" - + "\036get_version_operation_metadata\030\327\220\315R \001(\01324.google." - + "cloud.compute.v1.GetVersionOperationMetadataH\005\210\001\001\022\'\n" + + "\036get_version_operation_metadata\030\327\220\315R \001(\01324.google.c" + + "loud.compute.v1.GetVersionOperationMetadataH\005\210\001\001\022\'\n" + "\022http_error_message\030\331\372\310` \001(\tB\003\350G\004H\006\210\001\001\022,\n" + "\026http_error_status_code\030\354\204\370\224\001" + " \001(\005B\003\350G\003H\007\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022\034\n" + "\013insert_time\030\223\251\350\316\001 \001(\tH\t\210\001\001\022w\n" - + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132=." - + "google.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\n" + + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132=.g" + + "oogle.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\n" + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022\031\n" + "\004name\030\213\365\315\001 \001(\tB\003\350G\001H\014\210\001\001\022\"\n" @@ -22055,11 +22939,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010progress\030\255\204\323\" \001(\005H\017\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\020\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022\205\001\n" - + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001 \001" - + "(\0132C.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataH\022\210\001\001\022\032\n\n" + + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001 \001(" + + "\0132C.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataH\022\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\023\210\001\001\022F\n" - + "\006status\030\362\237\267V " - + "\001(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\024\210\001\001\022\037\n" + + "\006status\030\362\237\267V \001" + + "(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\024\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH\025\210\001\001\022\031\n" + "\ttarget_id\030\211\225\215{ \001(\004H\026\210\001\001\022\033\n" + "\013target_link\030\350\223\361\035 \001(\tH\027\210\001\001\022\024\n" @@ -22093,16 +22977,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0_set_common_instance_metadata_operation_metadataB\r\n" + "\013_start_timeB\t\n" + "\007_statusB\021\n" - + "\017_status_messageB\014\n" - + "\n" + + "\017_status_messageB\014\n\n" + "_target_idB\016\n" + "\014_target_linkB\007\n" + "\005_userB\007\n" + "\005_zone\"\274\003\n" + "\027OperationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132;.google.c" - + "loud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.google.cl" + + "oud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22142,8 +23025,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\332\006\n" + "\020OutlierDetection\022E\n" - + "\022base_ejection_time\030\207\327\317& \001(\0132" - + "!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + + "\022base_ejection_time\030\207\327\317& \001(\0132!" + + ".google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + "\022consecutive_errors\030\240\263\320\270\001 \001(\005H\001\210\001\001\022,\n" + "\033consecutive_gateway_failure\030\372\267\212\307\001" + " \001(\005H\002\210\001\001\022,\n" @@ -22197,8 +23080,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_num_intervalsB\007\n" + "\005_type\"\272\006\n" + "\017PacketMirroring\022Z\n\r" - + "collector_ilb\030\355\211\266\313\001 \001(\0132:.googl" - + "e.cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + + "collector_ilb\030\355\211\266\313\001 \001(\0132:.google" + + ".cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\003\210\001\001\022G\n" @@ -22206,11 +23089,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022`\n" - + "\022mirrored_resources\030\304\237\302; \001(\0132<.google.cloud.compute.v1.P" - + "acketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + + "\022mirrored_resources\030\304\237\302; \001(\0132<.google.cloud.compute.v1.Pa" + + "cketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022L\n" - + "\007network\030\256\264\205o \001(" - + "\01323.google.cloud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + + "\007network\030\256\264\205o \001(\013" + + "23.google.cloud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\r" + "H\n" + "\210\001\001\022\026\n" @@ -22235,18 +23118,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\316\003\n" + "\035PacketMirroringAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n" + + "\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\013" - + "23.google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132" + + "3.google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22262,8 +23146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006EGRESS\020\365\366\264\316\001\022\017\n" + "\007INGRESS\020\225\375\276\366\001B\014\n\n" + "_direction\"q\n" - + "!PacketMirroringForwardingRuleInfo\022\036\n" - + "\r" + + "!PacketMirroringForwardingRuleInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" + "\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n" + "\016_canonical_urlB\006\n" @@ -22284,9 +23167,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\367\001\n" + "#PacketMirroringMirroredResourceInfo\022^\n" + "\tinstances\030\376\374\357\r" - + " \003(\0132H.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" - + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.co" - + "mpute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + + " \003" + + "(\0132H.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.com" + + "pute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + "\004tags\030\231\350\330\001 \003(\t\"\177\n" + "/PacketMirroringMirroredResourceInfoInstanceInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" @@ -22298,8 +23182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n" + "\016_canonical_urlB\006\n" + "\004_url\"j\n" - + "\032PacketMirroringNetworkInfo\022\036\n" - + "\r" + + "\032PacketMirroringNetworkInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" + "\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n" + "\016_canonical_urlB\006\n" @@ -22323,8 +23206,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\333\001\n" + "\031PatchBackendBucketRequest\022\036\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\013" - + "2&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132" + + "&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -22374,8 +23257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\346\001\n" + " PatchGlobalForwardingRuleRequest\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(" - + "\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\013" + + "2\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -22390,10 +23273,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\323\001\n" + "\027PatchHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244` \001(\013" - + "2$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244` \001(\0132" + + "$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\271\001\n" + "\021PatchImageRequest\022\025\n" @@ -22406,11 +23290,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\225\002\n" + " PatchInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google." - + "cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.c" + + "loud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -22428,8 +23311,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\302\002\n" + "\'PatchInterconnectAttachmentGroupRequest\022-\n" + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004" - + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004 " + + "\001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -22438,8 +23321,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\240\002\n" + "\"PatchInterconnectAttachmentRequest\022(\n" + "\027interconnect_attachment\030\364\212\367\222\001 \001(\tB\003\340A\002\022a\n" - + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.goog" - + "le.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.googl" + + "e.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -22447,8 +23330,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\231\002\n" + "\035PatchInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022W\n" - + "\033interconnect_group_resource\030\237\363\346( \001(\0132*.google.c" - + "loud.compute.v1.InterconnectGroupB\003\340A\002\022!\n" + + "\033interconnect_group_resource\030\237\363\346(" + + " \001(\0132*.google.cloud.compute.v1.InterconnectGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -22474,8 +23357,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\203\003\n" + "&PatchNetworkEdgeSecurityServiceRequest\022-\n" + "\035network_edge_security_service\030\247\237\357J \001(\tB\003\340A\002\022l\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.google." - + "cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.google.c" + + "loud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -22499,8 +23382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.NetworkB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313", - "\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\351\001\n" + "\025PatchNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022H\n" @@ -22515,8 +23397,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&PatchOrganizationSecurityPolicyRequest\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n" - + "\030security_policy_resource\030\374\252\211g" - + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002B\r\n" + + "\030security_policy_resource\030\374\252\211g " + + "\001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002B\r\n" + "\013_request_id\"\204\002\n" + "\033PatchPacketMirroringRequest\022 \n" + "\020packet_mirroring\030\314\271\321\n" @@ -22541,8 +23423,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2PatchPerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n" + "?instance_group_managers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" - + " \001(\0132H.google.cloud.compute.v1.InstanceGro" - + "upManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132H.google.cloud.compute.v1.InstanceGrou" + + "pManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -22552,19 +23434,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "8PatchPerInstanceConfigsRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\037\n" + + "\340A\002\362G\007proj", + "ect\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_manager_patch_instance_config_req_resource\030\312\315\241^" - + " \001(\0132I.go" - + "ogle.cloud.compute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132I.goo" + + "gle.cloud.compute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\201\002\n" + "#PatchPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" + "\030public_advertised_prefix\030\236\367\3110 \001(\tB\003\340A\002\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(" - + "\0132/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o \001(\013" + + "2/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\236\002\n" + "\"PatchPublicDelegatedPrefixeRequest\022!\n" @@ -22578,18 +23461,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\203\002\n" + "\034PatchRegionAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b \001(" - + "\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b \001(\013" + + "2#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\r\n" + "\013_autoscalerB\r\n" + + "\013_request_id\"\202\002\n" + + "\037PatchRegionBackendBucketRequest\022\036\n" + + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&.goog" + + "le.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\207\002\n" + " PatchRegionBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'" - + ".google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001" + + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -22597,8 +23489,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\240\002\n" + "&PatchRegionCompositeHealthCheckRequest\022\'\n" + "\026composite_health_check\030\235\300\326\336\001 \001(\tB\003\340A\002\022^\n" - + "\037composite_health_check_resource\030\360\313\204? " - + "\001(\0132-.google.cloud.compute.v1.CompositeHealthCheckB\003\340A\002\022!\n" + + "\037composite_health_check_resource\030\360\313\204?" + + " \001(\0132-.google.cloud.compute.v1.CompositeHealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -22606,8 +23498,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\254\002\n" + ")PatchRegionHealthAggregationPolicyRequest\022)\n" + "\031health_aggregation_policy\030\362\317\313r \001(\tB\003\340A\002\022e\n" - + "\"health_aggregation_policy_resource\030\273\273\373\213\001" - + " \001(\01320.google.cloud.compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + + "\"health_aggregation_policy_resource\030\273\273\373\213\001 " + + "\001(\01320.google.cloud.compute.v1.HealthAggregationPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -22642,8 +23534,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\237\002\n" + "&PatchRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google" - + ".cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -22668,12 +23560,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + + "\014_update_mask\"\230\002\n" + + "!PatchRegionSnapshotSettingRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022V\n" + + "\032snapshot_settings_resource\030\357\215\306\252\001" + + " \001(\0132).google.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + + "\013_request_idB\016\n" + "\014_update_mask\"\363\001\n" + "\033PatchRegionSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n" + "\023ssl_policy_resource\030\310\210\212\203\001" @@ -22685,8 +23586,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132).go" - + "ogle.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001" + + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\346\001\n" + "\030PatchRegionUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -22713,8 +23614,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" - + "\025route_policy_resource\030\205\275\2657 \001(\0132" - + "$.google.cloud.compute.v1.RoutePolicyB\003\340A\002\022\026\n" + + "\025route_policy_resource\030\205\275\2657" + + " \001(\0132$.google.cloud.compute.v1.RoutePolicyB\003\340A\002\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\335\001\n" + "\022PatchRouterRequest\022!\n" @@ -22728,8 +23629,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\036PatchRuleFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132" + + "+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" + "\t_priorityB\r\n" @@ -22748,14 +23649,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001" - + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002B\013\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.g" + + "oogle.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002B\013\n" + "\t_priorityB\r\n" + "\013_request_id\"\302\002\n" + "+PatchRuleRegionNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+" + + ".google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -22769,8 +23670,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.google.cl" - + "oud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001" + + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -22781,8 +23682,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132" - + "+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001" + + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -22793,8 +23694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(" - + "\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + + "\030security_policy_resource\030\374\252\211g" + + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\215\002\n" @@ -22804,15 +23705,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022service_attachment\030\355\251\320\241\001 \001(\tB\003\340A\002\022X\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001(\0132*.g" - + "oogle.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001" + + " \001(\0132*.google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + "\013_request_id\"\361\001\n" + "\033PatchSnapshotSettingRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022V\n" - + "\032snapshot_settings_resource\030\357\215\306\252\001 \001(\0132).go" - + "ogle.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + + "\032snapshot_settings_resource\030\357\215\306\252\001" + + " \001(\0132).google.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\314\001\n" @@ -22821,8 +23722,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n" - + "\023ssl_policy_resource\030\310\210\212\203\001" - + " \001(\0132\".google.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n" + + "\023ssl_policy_resource\030\310\210\212\203\001 \001(\0132\"" + + ".google.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n" + "\013_request_id\"\260\002\n" + "\026PatchSubnetworkRequest\022&\n" + "\025drain_timeout_seconds\030\332\332\310\252\001 \001(\005H\000\210\001\001\022!\n" @@ -22831,8 +23732,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022H\n" - + "\023subnetwork_resource\030\277\332\221\024" - + " \001(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n" + + "\023subnetwork_resource\030\277\332\221\024 \001(\0132#" + + ".google.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n" + "\026_drain_timeout_secondsB\r\n" + "\013_request_id\"\345\001\n" + "\033PatchTargetGrpcProxyRequest\022!\n" @@ -22845,28 +23746,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\344\001\n" + "\033PatchTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013" - + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013 \001" + + "(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\351\001\n" + "\034PatchTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132)." + + "google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\277\001\n" + "\022PatchUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n" - + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P \001(" + + "\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\315\002\n" + "\025PatchWireGroupRequest\022\"\n" + "\022cross_site_network\030\325\305\3133 \001(\tB\003\340A\002\022!\n" @@ -22877,26 +23777,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\265\372\337s \001(\010H\002\210\001\001\022\032\n\n" + "wire_group\030\305\244\267: \001(\tB\003\340A\002\022G\n" + "\023wire_group_resource\030\310\301\3537" - + " \001(\0132\".google.cloud.compute.v1.WireGroupB\003\340A\002B\r" - + "\n" + + " \001(\0132\".google.cloud.compute.v1.WireGroupB\003\340A\002B\r\n" + "\013_request_idB\016\n" + "\014_update_maskB\020\n" + "\016_validate_only\"\322\005\n" + "\013PathMatcher\022h\n" - + "$default_custom_error_response_policy\030\251\213\340& \001(\01322.googl" - + "e.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" - + "\024default_route_action\030\252\264\327\264\001 " - + "\001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + + "$default_custom_error_response_policy\030\251\213\340&" + + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" + + "\024default_route_action\030\252\264\327\264\001" + + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\002\210\001\001\022R\n" - + "\024default_url_redirect\030\352\253\266\253\001 \001(\0132+" - + ".google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + + "\024default_url_redirect\030\352\253\266\253\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022I\n\r" + "header_action\030\250\240\270\234\001" + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\n" + "path_rules\030\335\300\3461 \003(\0132!.google.cloud.compute.v1.PathRule\022?\n" - + "\013route_rules\030\201\207\267\263\001" - + " \003(\0132&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + + "\013route_rules\030\201\207\267\263\001 \003(" + + "\0132&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + "%_default_custom_error_response_policyB\027\n" + "\025_default_route_actionB\022\n" + "\020_default_serviceB\027\n" @@ -22905,8 +23804,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_header_actionB\007\n" + "\005_name\"\374\002\n" + "\010PathRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332` \001(\01322.google.clou" - + "d.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + + "\034custom_error_response_policy\030\353\370\332`" + + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + "\005paths\030\356\301\3402 \003(\t\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" @@ -22920,8 +23819,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021PerInstanceConfig\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022H\n" - + "\017preserved_state\030\252\342\240\001" - + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + + "\017preserved_state\030\252\342\240\001 \001(\0132" + + "\'.google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\003\210\001\001\"\220\001\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -22946,8 +23845,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"PerformMaintenanceNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022~\n" + "0node_groups_perform_maintenance_request_resource\030\326\270\256X" - + " \001(\0132<.google.c" - + "loud.compute.v1.NodeGroupsPerformMaintenanceRequestB\003\340A\002\022!\n" + + " \001(\0132<.google.cloud.compute.v1.N" + + "odeGroupsPerformMaintenanceRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -22961,8 +23860,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\"\n" + "\021reservation_block\030\332\304\211\376\001 \001(\tB\003\340A\002\022\217\001\n" + "8reservations_blocks_perform_maintenance_request_resource\030\211\251\324\347\001" - + " \001(\0132D.google.cloud.compute.v1.Reser" - + "vationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132D.google" + + ".cloud.compute.v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\262\002\n" @@ -22971,8 +23870,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\201\001\n" - + "1reservations_perform_maintenance_request_resource\030\240\365\224\016 " - + "\001(\0132>.google.cloud.compute.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + + "1reservations_perform_maintenance_request_resource\030\240\365\224\016" + + " \001(\0132>.google.clou" + + "d.compute.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\336\001\n" @@ -22987,8 +23887,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\360\001\n" + "\006Policy\022?\n\r" - + "audit_configs\030\215\272\270\234\001" - + " \003(\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + + "audit_configs\030\215\272\270\234\001 \003" + + "(\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\032\n" @@ -22998,29 +23898,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_iam_ownedB\n\n" + "\010_version\"]\n" + "\023PreconfiguredWafSet\022F\n" - + "\017expression_sets\030\230\253\203\342\001 \003(\0132).g" - + "oogle.cloud.compute.v1.WafExpressionSet\"\276\005\n" + + "\017expression_sets\030\230\253\203\342\001" + + " \003(\0132).google.cloud.compute.v1.WafExpressionSet\"\276\005\n" + "\016PreservedState\022D\n" - + "\005disks\030\366\314\312- \003(\01322.g" - + "oogle.cloud.compute.v1.PreservedState.DisksEntry\022S\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\01328.go" - + "ogle.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" - + "internal_i_ps\030\333\233\357f \003(\0132" - + "8.google.cloud.compute.v1.PreservedState.InternalIPsEntry\022J\n" - + "\010metadata\030\257\366\265) \003(\01325" - + ".google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + + "\005disks\030\366\314\312-" + + " \003(\01322.google.cloud.compute.v1.PreservedState.DisksEntry\022S\n\r" + + "external_i_ps\030\215\323\200\376\001" + + " \003(\01328.google.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" + + "internal_i_ps\030\333\233\357f \003(\01328.google.cloud.co" + + "mpute.v1.PreservedState.InternalIPsEntry\022J\n" + + "\010metadata\030\257\366\265)" + + " \003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002" - + " \001(\01324.google.cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + + "\005value\030\002 \001(\01324" + + ".google.cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(" - + "\01329.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + + "\005value\030\002 \001(\01329.google.cloud." + + "compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.googl" - + "e.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + + "\005value\030\002 \001(\01329.google.cloud.compute.v" + + "1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\254\002\n" @@ -23041,8 +23941,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_source\"\236\002\n" + " PreservedStatePreservedNetworkIp\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\n" - + "ip_address\030\334\361\334\301\001 \001(\0132B.google.cloud.comput" - + "e.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + + "ip_address\030\334\361\334\301\001 \001(" + + "\0132B.google.cloud.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" + "\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" + "\005NEVER\020\354\244\257#\022%\n" @@ -23061,14 +23961,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022[\n" - + "\021rollout_operation\030\331\320\214\350\001 \001(\01327.google.c" - + "loud.compute.v1.PreviewFeatureRolloutOperationH\006\210\001\001\022\032\n" + + "\021rollout_operation\030\331\320\214\350\001" + + " \001(\01327.google.cloud.compute.v1.PreviewFeatureRolloutOperationH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022E\n" - + "\006status\030\362\237\267V" - + " \001(\0132-.google.cloud.compute.v1.PreviewFeatureStatusH\010\210\001\001\"y\n" + + "\006status\030\362\237\267V \001(" + + "\0132-.google.cloud.compute.v1.PreviewFeatureStatusH\010\210\001\001\"y\n" + "\020ActivationStatus\022\037\n" - + "\033UNDEFINED_ACTIVATION_STATU", - "S\020\000\022\"\n" + + "\033UNDEFINED_ACTIVATION_STATUS\020\000\022\"\n" + "\034ACTIVATION_STATE_UNSPECIFIED\020\340\312&\022\020\n" + "\010DISABLED\020\374\324\260\366\001\022\016\n" + "\007ENABLED\020\241\256\354VB\024\n" @@ -23097,8 +23996,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\226\001\n" + "\036PreviewFeatureRolloutOperation\022b\n\r" - + "rollout_input\030\274\347\333~ \001(\0132C.g" - + "oogle.cloud.compute.v1.PreviewFeatureRolloutOperationRolloutInputH\000\210\001\001B\020\n" + + "rollout_input\030\274\347\333~ \001(\0132C.google.cloud.compu" + + "te.v1.PreviewFeatureRolloutOperationRolloutInputH\000\210\001\001B\020\n" + "\016_rollout_input\"\273\002\n" + "*PreviewFeatureRolloutOperationRolloutInput\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022(\n" @@ -23109,15 +24008,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ROLLOUT_PLAN_FAST_ROLLOUT\020\326\235\202P\022$\n" + "\034ROLLOUT_PLAN_TWO_DAY_ROLLOUT\020\223\226\352\246\001\022\037\n" + "\030ROLLOUT_PLAN_UNSPECIFIED\020\357\247\364DB\007\n" - + "\005_nameB\032\n" + + "\005_nam", + "eB\032\n" + "\030_predefined_rollout_plan\"\335\001\n" + "\024PreviewFeatureStatus\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\031\n" + "\thelp_link\030\270\364\303j \001(\tH\001\210\001\001\022[\n" - + "\016release_status\030\252\276\237\362\001 \001(\0132:.g" - + "oogle.cloud.compute.v1.PreviewFeatureStatusReleaseStatusH\002\210\001\001B\016\n" - + "\014_descriptionB\014\n" - + "\n" + + "\016release_status\030\252\276\237\362\001 \001(\0132:.google.cloud.compu" + + "te.v1.PreviewFeatureStatusReleaseStatusH\002\210\001\001B\016\n" + + "\014_descriptionB\014\n\n" + "_help_linkB\021\n" + "\017_release_status\"\367\001\n" + "!PreviewFeatureStatusReleaseStatus\022\025\n" @@ -23152,8 +24051,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022T\n" - + "\025usage_export_location\030\302\262\334\245\001 \001(\013" - + "2,.google.cloud.compute.v1.UsageExportLocationH\n" + + "\025usage_export_location\030\302\262\334\245\001" + + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationH\n" + "\210\001\001\022\036\n" + "\016vm_dns_setting\030\262\247\210\034 \001(\tH\013\210\001\001\022\"\n" + "\022xpn_project_status\030\301\315\365l \001(\tH\014\210\001\001\"~\n" @@ -23192,12 +24091,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_vm_dns_settingB\025\n" + "\023_xpn_project_status\"z\n" + "!ProjectsDisableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(\0132&" + + ".google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"y\n" + " ProjectsEnableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(" + + "\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"\253\001\n" + "\027ProjectsGetXpnResources\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\037\n" @@ -23238,9 +24137,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tpdp_scope\030\321\312\376\371\001 \001(\tH\n" + "\210\001\001\022j\n" - + "\030public_delegated_prefixs\030\213\276\205\313\001" - + " \003(\0132D.google.cloud.compute.v" - + "1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(\0132D" + + ".google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\013\210\001\001\022\036\n\r" + "shared_secret\030\312\247\217\266\001 \001(\tH\014\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\r" @@ -23285,8 +24183,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032PublicAdvertisedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.go" + + "ogle.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -23326,8 +24224,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022\035\n\r" + "parent_prefix\030\307\347\241\007 \001(\tH\r" + "\210\001\001\022o\n" - + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.g" - + "oogle.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.google.cloud.compu" + + "te.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + "\006region\030\364\315\240B \001(\tH\016\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\017\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\020\210\001\001\"D\n" @@ -23373,8 +24271,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\341\003\n" + "#PublicDelegatedPrefixAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\013" - + "2G.google.cloud.compute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132G.google.cloud.c" + + "ompute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -23383,8 +24281,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001" - + "(\0132:.google.cloud.compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google.cloud" + + ".compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -23392,8 +24290,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\273\002\n" + "\031PublicDelegatedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/ \003(\0132..goo" - + "gle.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -23409,7 +24307,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021delegatee_project\030\332\212\351\305\001 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022/\n" + "\037enable_enhanced_ipv4_allocation\030\355\267\203\032" - + " \001(\010H\003\210\001\001\022\035\n\r" + + " \001(\010H\003\210\001\001\022\035\n" + + "\r" + "ip_cidr_range\030\312\315\344. \001(\tH\004\210\001\001\022!\n" + "\020ipv6_access_type\030\335\365\321\360\001 \001(\tH\005\210\001\001\022\033\n\n" + "is_address\030\337\213\222\250\001 \001(\010H\006\210\001\001\022\024\n" @@ -23444,8 +24343,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\t\n" + "\007_status\"\301\001\n" + "!PublicDelegatedPrefixesScopedList\022U\n" - + "\031public_delegated_prefixes\030\226\202\252\226\001" - + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + + "\031public_delegated_prefixes\030\226\202\252\226\001 \003(\0132..google." + + "cloud.compute.v1.PublicDelegatedPrefix\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\346(\n" @@ -23627,8 +24526,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_ownerB\010\n" + "\006_usage\"\340\003\n" + "\021QuotaExceededInfo\022R\n\n" - + "dimensions\030\315\377\310\305\001 \003(\0132:." - + "google.cloud.compute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + + "dimensions\030\315\377\310\305\001 \003(\0132:.google.cloud.comp" + + "ute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + "\014future_limit\030\277\274\332\331\001 \001(\001H\000\210\001\001\022\025\n" + "\005limit\030\273\227\2151 \001(\001H\001\210\001\001\022\033\n\n" + "limit_name\030\217\211\360\275\001 \001(\tH\002\210\001\001\022\034\n" @@ -23636,12 +24535,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016rollout_status\030\300\344\226\343\001 \001(\tH\004\210\001\001\0321\n" + "\017DimensionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"e\n\r" + + "\005value\030\002 \001(\t:\0028\001\"e\n" + + "\r" + "RolloutStatus\022\034\n" + "\030UNDEFINED_ROLLOUT_STATUS\020\000\022\023\n" + "\013IN_PROGRESS\020\207\250\335\337\001\022!\n" - + "\032ROLLOUT_STATUS_UNSPECIFIED\020\270\327\347\014B\017\n" - + "\r" + + "\032ROLLOUT_STATUS_UNSPECIFIED\020\270\327\347\014B\017\n\r" + "_future_limitB\010\n" + "\006_limitB\r\n" + "\013_limit_nameB\016\n" @@ -23678,8 +24577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026REQUIRED_TOS_AGREEMENT\020\203\316\344\001\0221\n" + ")RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING\020\301\364\355\354\001\022\033\n" + "\024RESOURCE_NOT_DELETED\020\274\267\262P\022!\n" - + "\031SCHEMA_VALIDATION_IGNORED\020\312\324", - "\237\203\001\022(\n" + + "\031SCHEMA_VALIDATION_IGNORED\020\312\324\237\203\001\022(\n" + "!SINGLE_INSTANCE_PROPERTY_TEMPLATE\020\321\211\370\177\022\035\n" + "\025UNDECLARED_PROPERTIES\020\237\206\233\272\001\022\022\n" + "\013UNREACHABLE\020\264\275\255\006B\007\n" @@ -23698,13 +24596,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",RecreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\223\001\n" + ";instance_group_managers_recreate_instances_request_resource\030\200\302\232\n" - + " \001(\0132F.google.cloud.compute.v1.Instanc" - + "eGroupManagersRecreateInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132F.google.c" + + "loud.compute.v1.InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n" + + "\340A\002\362G\004zoneB\r" + + "\n" + "\013_request_id\"\333\002\n" + "2RecreateInstancesRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" @@ -23712,8 +24611,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\215\001\n" + "8region_instance_group_managers_recreate_request_resource\030\224\374\304Q" - + " \001(\0132C.google.cloud.c" - + "ompute.v1.RegionInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + + " \001(\0132C.google.cloud.compute.v1.RegionI" + + "nstanceGroupManagersRecreateRequestB\003\340A\002", + "\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\001\n" + "\tReference\022\024\n" @@ -23733,8 +24633,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022R\n" - + "\024quota_status_warning\030\366\211\272\220\001 \001(\0132+." - + "google.cloud.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n" + + "\024quota_status_warning\030\366\211\272\220\001" + + " \001(\0132+.google.cloud.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\010\210\001\001\022\034\n" @@ -23784,7 +24684,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" - + "\010_warning\"E\n" + + "\010_warning\"O\n" + + "\035RegionDiskUpdateKmsKeyRequest\022\035\n" + + "\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001B\017\n\r" + + "_kms_key_name\"E\n" + "%RegionDisksAddResourcePoliciesRequest\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\"H\n" @@ -23827,8 +24730,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\200\001\n" + "0RegionInstanceGroupManagerPatchInstanceConfigReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003" - + "(\0132*.google.cloud.compute.v1.PerInstanceConfig\"\201\001\n" + + "\024per_instance_configs\030\251\325\370\372\001" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"\232\003\n" + + "4RegionInstanceGroupManagerResizeRequestsListResponse\022\024\n" + + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\tH\001\210\001\001\022L\n" + + "\005items\030\300\317\367/ \003(\0132:.google.cloud" + + ".compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" + + "\014unreachables\030\237\240\206t \003(\t\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\005\210\001\001B\007\n" + + "\005_etagB\005\n" + + "\003_idB\007\n" + + "\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n" + + "\010_warning\"\201\001\n" + "1RegionInstanceGroupManagerUpdateInstanceConfigReq\022L\n" + "\024per_instance_configs\030\251\325\370\372\001" + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"J\n" @@ -23840,7 +24760,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tinstances\030\376\374\357\r" + " \003(\t\022\037\n" + "\016minimal_action\030\224\215\202\201\001 \001(\tH\001\210\001\001\022.\n" - + "\036most_disruptive_allowed_action\030\215\316\302\037 \001(\tH\002\210\001\001\"-\n\r" + + "\036most_disruptive_allowed_action\030\215\316\302\037 \001(\tH\002\210\001\001\"-\n" + + "\r" + "MinimalAction\022\034\n" + "\030UNDEFINED_MINIMAL_ACTION\020\000\"K\n" + "\033MostDisruptiveAllowedAction\022,\n" @@ -23858,8 +24779,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\000\210\001\001B%\n" + "#_skip_instances_on_validation_error\"\252\001\n" + "-RegionInstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/ \003(\01322.google." - + "cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(\01322.google.clo" + + "ud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\356\001\n" + "2RegionInstanceGroupManagersListInstanceConfigsResp\022<\n" @@ -23904,8 +24825,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_force_suspend\"\304\002\n" + "!RegionInstanceGroupsListInstances\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ \003(\0132/." - + "google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.goo" + + "gle.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -23914,8 +24835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\320\001\n" + "(RegionInstanceGroupsListInstancesRequest\022\036\n" + "\016instance_state\030\347\360\374+ \001(\tH\000\210\001\001\022\031\n" @@ -23951,20 +24871,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021network_endpoints\030\255\221\272G" + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + ":RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse\022\210\001\n" - + "\020firewall_policys\030\302\312\374\303\001" - + " \003(\0132j.google.cloud.compute.v1.RegionNet" - + "workFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(" + + "\0132j.google.cloud.compute.v1.RegionNetwor" + + "kFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\224\004\n" - + "QRegionNetworkFirewallPoli" - + "ciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + + "QRegionNetworkFirewallPolicie" + + "sGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" + "\026packet_mirroring_rules\030\304\377\300\375\001" + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" - + "\005rules\030\367\221\3653 \003(\0132+.goo" - + "gle.cloud.compute.v1.FirewallPolicyRule\022\024\n" + + "\005rules\030\367\221\3653" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"\231\001\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\020\n" @@ -23980,8 +24900,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\321\001\n" + "\026RegionSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(\0132;.google.clo" - + "ud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;.google.cloud." + + "compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -23990,10 +24910,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n" - + "\006policy\030\262\312\266+ \001(" - + "\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + + "\006policy\030\262\312\266+" + + " \001(\0132\037.google.cloud.compute.v1.PolicyH\001\210\001\001B\007\n" + "\005_etagB\t\n" - + "\007_policy\"Q\n" + + "\007_policy\"S\n" + + "!RegionSnapshotUpdateKmsKeyRequest\022\035\n" + + "\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001B\017\n\r" + + "_kms_key_name\"Q\n" + "1RegionTargetHttpsProxiesSetSslCertificatesRequest\022\034\n" + "\020ssl_certificates\030\217\242\303\256\001 \003(\t\"f\n" + "\034RegionUrlMapsValidateRequest\0229\n" @@ -24036,8 +24959,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022\200\001\n" + "1target_pools_remove_health_check_request_resource\030\263\347\266\221\001" - + " \001(\0132<.google.cloud.compute.v1.T" - + "argetPoolsRemoveHealthCheckRequestB\003\340A\002B\r\n" + + " \001(\0132<.google.cloud.compute.v1" + + ".TargetPoolsRemoveHealthCheckRequestB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "\037RemoveInstanceTargetPoolRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -24045,13 +24968,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022x\n" - + "-target_pools_remove_instance_request_resource\030\203\300\213\016 \001(\01329.goog" - + "le.cloud.compute.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + + "-target_pools_remove_instance_request_resource\030\203\300\213\016 \001(\01329.go" + + "ogle.cloud.compute.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + "\013_request_id\"\264\002\n" + "#RemoveInstancesInstanceGroupRequest\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022\201\001\n" + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001" - + " \001(\0132=.google.cloud.compute.v1.InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132=.google.cloud.compute.v1.Ins" + + "tanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24076,8 +25000,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\243\002\n" + "!RemoveResourcePoliciesDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022}\n" - + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001 " - + "\001(\0132;.google.cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001" + + " \001(\0132;.google.cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24087,8 +25011,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%RemoveResourcePoliciesInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\204\001\n" + "3instances_remove_resource_policies_request_resource\030\366\335\274\027" - + " \001(\0132?.google.c" - + "loud.compute.v1.InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + " \001(\0132?.google" + + ".cloud.compute.v1.InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24101,8 +25025,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\211\001\n" + "6region_disks_remove_resource_policies_request_resource\030\243\303\225\004" - + " \001(\0132A.google.cloud.compute.v1.Regio" - + "nDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132A.google.cloud.compute.v1.Reg" + + "ionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\226\001\n" + "\037RemoveRuleFirewallPolicyRequest\022 \n" @@ -24154,22 +25078,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022%\n" + "\025reservation_sub_block\030\233\312\354\n" + " \001(\tB\003\340A\002\022\210\001\n" - + "5reservation_sub_blocks_report_faulty_request_resource\030\302\311\375\326\001" - + " \001(\0132" - + "@.google.cloud.compute.v1.ReservationSubBlocksReportFaultyRequestB\003\340A\002\022\033\n" + + "5reservation_sub_blocks_report_faulty_request_resource\030\302\311\375\326\001 \001(" + + "\0132@.google.cloud.compute.v1.ReservationSubBlocksReportFaultyRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\250\002\n" + "!ReportHostAsFaultyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022~\n" - + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001 \001(\013" - + "2;.google.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001 \001" + + "(\0132;.google.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\177\n" + "\023RequestMirrorPolicy\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001\022\037\n" @@ -24179,55 +25101,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RequestRemovePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022~\n" + "0networks_request_remove_peering_request_resource\030\316\344\367G" - + " \001(\0132<.google.clo" - + "ud.compute.v1.NetworksRequestRemovePeeringRequestB\003\340A\002\022!\n" + + " \001(\0132<.google.c" + + "loud.compute.v1.NetworksRequestRemovePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\333\023\n" + + "\013_request_id\"\277\025\n" + "\013Reservation\022k\n" - + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\0132=.google.c" - + "loud.compute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" + + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\0132=.google" + + ".cloud.compute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" + "\025aggregate_reservation\030\314\362\203\213\001" + " \001(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\001\210\001\001\022\033\n\n" - + "commitment\030\225\226\363\345\001 \001(\tH\002\210\001\001\022\"\n" - + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022I\n" + + "commitment\030\225\226\363\345\001 \001(\tH\002\210\001\001\022*\n" + + "\031confidential_compute_type\030\231\357\242\270\001 \001(\tH\003\210\001\001\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022I\n" + "\025delete_after_duration\030\253\233\277\232\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\004\210\001\001\022\036\n" - + "\016delete_at_time\030\305\361\333\' \001(\tH\005\210\001\001\022 \n" - + "\017deployment_type\030\364\200\226\275\001 \001(\tH\006\210\001\001\022\034\n" - + "\013description\030\374\207\326\311\001 \001(\tH\007\210\001\001\022)\n" - + "\030early_access_maintenance\030\224\216\377\243\001 \001(\tH\010\210\001\001\022,\n" - + "\033enable_emergent_maintenance\030\211\342\327\250\001 \001(\010H" - + "\t\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\n" - + "\210\001\001\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022\036\n" + + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022\036\n" + + "\016delete_at_time\030\305\361\333\' \001(\tH\006\210\001\001\022 \n" + + "\017deployment_type\030\364\200\226\275\001 \001(\tH\007\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\010\210\001\001\022)\n" + + "\030early_access_maintenance\030\224\216\377\243\001 \001(\tH\t\210\001\001\022,\n" + + "\033enable_emergent_maintenance\030\211\342\327\250\001 \001(\010H\n" + + "\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\004H\013\210\001\001\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022\036\n" + "\022linked_commitments\030\330\375\310\340\001 \003(\t\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022B\n" - + "\006params\030\206\363\253% \001(\0132*.google.cloud.compute.v1.ReservationParamsH\r" - + "\210\001\001\022 \n" - + "\017protection_tier\030\210\237\247\360\001 \001(\tH\016\210\001\001\022g\n" - + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;.goo" - + "gle.cloud.compute.v1.AllocationReservationSharingPolicyH\017\210\001\001\022X\n" + + "\004name\030\213\365\315\001 \001(\tH\r" + + "\210\001\001\022B\n" + + "\006params\030\206\363\253% \001(\0132*" + + ".google.cloud.compute.v1.ReservationParamsH\016\210\001\001\022 \n" + + "\017protection_tier\030\210\237\247\360\001 \001(\tH\017\210\001\001\022g\n" + + "\032reservation_sharing_policy\030\310\265\233b \001(\013" + + "2;.google.cloud.compute.v1.AllocationReservationSharingPolicyH\020\210\001\001\022X\n" + "\021resource_policies\030\341\234\314\n" + " \003(\0132:.google.cloud.compute.v1.Reservation.ResourcePoliciesEntry\022R\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01321.google.cloud.compute.v1.AllocationResourceStatusH\020\210\001\001\022\036\n\r" - + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\021\210\001\001\022\037\n" - + "\017scheduling_type\030\205\376\244_ \001(\tH\022\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022F\n" - + "\016share_settings\030\203\221\224\177 \001(\0132&.goo" - + "gle.cloud.compute.v1.ShareSettingsH\024\210\001\001\022`\n" - + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.goog" - + "le.cloud.compute.v1.AllocationSpecificSKUReservationH\025\210\001\001\022-\n" + + "\017resource_status\030\303\372\367v \001(\01321.google.cloud." + + "compute.v1.AllocationResourceStatusH\021\210\001\001\022\036\n\r" + + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\037\n" + + "\017scheduling_type\030\205\376\244_ \001(\tH\023\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\024\210\001\001\022F\n" + + "\016share_settings\030\203\221\224\177 \001(\013" + + "2&.google.cloud.compute.v1.ShareSettingsH\025\210\001\001\022`\n" + + "\024specific_reservation\030\277\240\211\301\001 \001(\0132" + + "9.google.cloud.compute.v1.AllocationSpecificSKUReservationH\026\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l" - + " \001(\010H\026\210\001\001\022\026\n" - + "\006status\030\362\237\267V \001(\tH\027\210\001\001\022\024\n" - + "\004zone\030\254\307\344\001 \001(\tH\030\210\001\001\0327\n" + + " \001(\010H\027\210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH\030\210\001\001\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tH\031\210\001\001\0327\n" + "\025ResourcePoliciesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"a\n" + + "\005value\030\002 \001(\t:\0028\001\"\227\001\n" + + "\027ConfidentialComputeType\022\'\n" + + "#UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE\020\000\022%\n" + + "\035CONFIDENTIAL_COMPUTE_TYPE_TDX\020\342\254\322\217\001\022,\n" + + "%CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED\020\221\257\221\024\"a\n" + "\016DeploymentType\022\035\n" + "\031UNDEFINED_DEPLOYMENT_TYPE\020\000\022\014\n" + "\005DENSE\020\377\225\373\036\022\"\n" @@ -24256,7 +25183,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010UPDATING\020\306\356\354\353\001B\036\n" + "\034_advanced_deployment_controlB\030\n" + "\026_aggregate_reservationB\r\n" - + "\013_commitmentB\025\n" + + "\013_commitmentB\034\n" + + "\032_confidential_compute_typeB\025\n" + "\023_creation_timestampB\030\n" + "\026_delete_after_durationB\021\n" + "\017_delete_at_timeB\022\n" @@ -24269,8 +25197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\t\n" + "\007_paramsB\022\n" + "\020_protection_tierB\035\n" - + "\033_reservation_sharin", - "g_policyB\022\n" + + "\033_reservation_sharing_policyB\022\n" + "\020_resource_statusB\020\n" + "\016_satisfies_pzsB\022\n" + "\020_scheduling_typeB\014\n\n" @@ -24278,7 +25205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_share_settingsB\027\n" + "\025_specific_reservationB \n" + "\036_specific_reservation_requiredB\t\n" - + "\007_statusB\007\n" + + "\007_statusB", + "\007\n" + "\005_zone\"\252\002\n" + "$ReservationAdvancedDeploymentControl\022-\n" + "\034reservation_operational_mode\030\203\244\264\356\001 \001(" @@ -24304,8 +25232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_key\"\302\003\n" + "\031ReservationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/" - + " \003(\0132=.google.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132=.google.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24314,8 +25242,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.ReservationsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132/.goo" + + "gle.cloud.compute.v1.ReservationsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24324,15 +25252,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ReservationBlock\022\025\n" + "\005count\030\217\242\235- \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022P\n" - + "\013health_info\030\261\351\230p \001(\01323.google.cloud.c" - + "ompute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p" + + " \001(\01323.google.cloud.compute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\004\210\001\001\022\"\n" + "\021in_use_host_count\030\312\207\315\255\001 \001(\005H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022]\n" - + "\021physical_topology\030\327\251\264\205\001 \001(" - + "\01329.google.cloud.compute.v1.ReservationBlockPhysicalTopologyH\010\210\001\001\022W\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\01329.google" + + ".cloud.compute.v1.ReservationBlockPhysicalTopologyH\010\210\001\001\022W\n" + "\027reservation_maintenance\030\240\206\265\242\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\t\210\001\001\022,\n" + "\033reservation_sub_block_count\030\353\261\335\235\001 \001(\005H\n" @@ -24388,9 +25316,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_cluster\"\235\002\n" + "(ReservationBlockPhysicalTopologyInstance\022\033\n" + "\013instance_id\030\205\262\330\025 \001(\004H\000\210\001\001\022~\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132U.goo" - + "gle.cloud.compute.v1.ReservationBlockPhy" - + "sicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132U.google.cloud." + + "compute.v1.ReservationBlockPhysicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + "project_id\030\201\310\322T \001(\004H\002\210\001\001B\016\n" + "\014_instance_idB\031\n" + "\027_physical_host_topologyB\r\n" @@ -24401,8 +25328,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\014\n\n" + "_sub_block\"p\n" + "\034ReservationBlocksGetResponse\022C\n" - + "\010resource\030\216\210\257] " - + "\001(\0132).google.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\0132).goog" + + "le.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + "\t_resource\"\272\002\n" + "\035ReservationBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" @@ -24432,8 +25359,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\267\001\n" + "\021ReservationParams\022f\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud.compute." - + "v1.ReservationParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132C.google.cloud.compute.v1.ReservationParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\005\n" @@ -24446,8 +25373,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\004\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\005\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\006\210\001\001\022F\n" - + "\016share_settings\030\203\221\224\177" - + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\007\210\001\001\022\025\n" + + "\016share_settings\030\203\221\224\177 \001(\0132&." + + "google.cloud.compute.v1.ShareSettingsH\007\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\010\210\001\001\022F\n" + "\006status\030\362\237\267V \001(\0132..google.cloud.compute.v1.ReservationSlotStatusH" + "\t\210\001\001\022\024\n" @@ -24481,14 +25408,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\014\n\n" + "_sub_block\"\310\001\n" + "\025ReservationSlotStatus\022\\\n" - + "\021physical_topology\030\327\251\264\205\001" - + " \001(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\000\210\001\001\022\034\n" + + "\021physical_topology\030\327\251\264\205\001 \001" + + "(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\000\210\001\001\022\034\n" + "\021rdma_ip_addresses\030\343\245\204P \003(\t\022\035\n" + "\021running_instances\030\376\327\334\377\001 \003(\tB\024\n" + "\022_physical_topology\"n\n" + "\033ReservationSlotsGetResponse\022B\n" - + "\010resource\030\216\210\257]" - + " \001(\0132(.google.cloud.compute.v1.ReservationSlotH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\013" + + "2(.google.cloud.compute.v1.ReservationSlotH\000\210\001\001B\013\n" + "\t_resource\"\323\001\n" + "!ReservationSlotsGetVersionRequest\022\032\n" + "\017sbom_selections\030\371\366\374 \003(\t\"\221\001\n" @@ -24512,19 +25439,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\241\010\n" + "\023ReservationSubBlock\022_\n" - + "\033accelerator_topologies_info\030\214\351\271( \001(\01322.google.cloud.c" - + "ompute.v1.AcceleratorTopologiesInfoH\000\210\001\001\022\025\n" + + "\033accelerator_topologies_info\030\214\351\271(" + + " \001(\01322.google.cloud.compute.v1.AcceleratorTopologiesInfoH\000\210\001\001\022\025\n" + "\005count\030\217\242\235- \001(\005H\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022S\n" - + "\013health_info\030\261\351\230p " - + "\001(\01326.google.cloud.compute.v1.ReservationSubBlockHealthInfoH\003\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p \001(\01326.goog" + + "le.cloud.compute.v1.ReservationSubBlockHealthInfoH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\005\210\001\001\022\"\n" + "\021in_use_host_count\030\312\207\315\255\001 \001(\005H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022`\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google.cloud." - + "compute.v1.ReservationSubBlockPhysicalTopologyH\t\210\001\001\022a\n" + + "\021physical_topology\030\327\251\264\205\001" + + " \001(\0132<.google.cloud.compute.v1.ReservationSubBlockPhysicalTopologyH" + + "\t\210\001\001\022a\n" + "!reservation_sub_block_maintenance\030\357\313\342\263\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\n" + "\210\001\001\022\032\n" @@ -24578,8 +25506,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_clusterB\014\n\n" + "_sub_block\"v\n" + "\037ReservationSubBlocksGetResponse\022F\n" - + "\010resource\030\216\210\257] \001(\0132,.goog" - + "le.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257]" + + " \001(\0132,.google.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + "\t_resource\"\327\001\n" + "%ReservationSubBlocksGetVersionRequest\022\032\n" + "\017sbom_selections\030\371\366\374 \003(\t\"\221\001\n" @@ -24605,8 +25533,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'ReservationSubBlocksReportFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022!\n" + "\021failure_component\030\210\311\255\014 \001(\tH\001\210\001\001\022e\n\r" - + "fault_reasons\030\222\253\221P \003(\0132K.google.cloud.comp" - + "ute.v1.ReservationSubBlocksReportFaultyRequestFaultReason\"r\n" + + "fault_reasons\030\222\253\221P \003(\0132K.google.cloud.compute.v1.Res" + + "ervationSubBlocksReportFaultyRequestFaultReason\"r\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\020\n" @@ -24689,8 +25617,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022h\n" - + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001(\01321." - + "google.cloud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001(\01321.google.clo" + + "ud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\326\001\n" + "\'ResizeRegionInstanceGroupManagerRequest\022&\n" @@ -24706,8 +25634,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022i\n" - + "$reservations_resize_request_resource\030\321\333\316\271\001" - + " \001(\01322.google.cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + + "$reservations_resize_request_resource\030\321\333\316\271\001 \001(\01322.goo" + + "gle.cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\202\002\n" @@ -24737,26 +25665,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ResourcePolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022q\n" - + "\035disk_consistency_group_policy\030\233\204\362\341\001" - + " \001(\0132A.google.cloud.compute.v1.Resourc" - + "ePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" - + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.goog" - + "le.cloud.compute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + + "\035disk_consistency_group_policy\030\233\204\362\341\001 \001(\0132A.g" + + "oogle.cloud.compute.v1.ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" + + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.google.cloud.c" + + "ompute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022h\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.go" - + "ogle.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.google.cloud" + + ".compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022V\n" - + "\017resource_status\030\303\372\367v \001(\0132" - + "5.google.cloud.compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v \001(\01325.google.c" + + "loud.compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022g\n" - + "\030snapshot_schedule_policy\030\337\326\201h" - + " \001(\0132=.google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132=.goo" + + "gle.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\014\210\001\001\022V\n" - + "\017workload_policy\030\372\205\3326" - + " \001(\01325.google.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + + "\017workload_policy\030\372\205\3326 \001(\01325.goo" + + "gle.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + "\210\001\001\"r\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -24782,8 +25709,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ResourcePolicyAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022R\n" - + "\005items\030\300\317\367/" - + " \003(\0132@.google.cloud.compute.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2@.google.cloud.compute.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -24792,8 +25719,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01323.go" + + "ogle.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -24838,10 +25765,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expiration_time\030\335\254\350m \001(\tH\000\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031\n" + "\ttime_zone\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n" - + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.clo" - + "ud.compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" - + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google.cloud.compute.v1." - + "ResourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.cloud.compute" + + ".v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" + + "\020vm_stop_schedule\030\254\345\237\313\001 " + + "\001(\0132E.google.cloud.compute.v1.ResourcePo" + + "licyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + "\020_expiration_timeB\r\n" + "\013_start_timeB\014\n\n" + "_time_zoneB\024\n" @@ -24867,9 +25795,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\034ResourcePolicyResourceStatus\022|\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.go" - + "ogle.cloud.compute.v1.ResourcePolicyReso" - + "urceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.google.cloud" + + ".compute.v1.ResourcePolicyResourceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + "\031_instance_schedule_policy\"\266\001\n" + "8ResourcePolicyResourceStatusInstanceSchedulePolicyStatus\022$\n" + "\023last_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022$\n" @@ -24877,41 +25804,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_last_run_start_timeB\026\n" + "\024_next_run_start_time\"\250\003\n" + "$ResourcePolicySnapshotSchedulePolicy\022n\n" - + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud.compute.v1.Resour" - + "cePolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" - + "\010schedule\030\227\245\232\263\001 \001(\0132E.googl" - + "e.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" - + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.comp" - + "ute.v1.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + + "\020retention_policy\030\363\312\334 \001(\0132L." + + "google.cloud.compute.v1.ResourcePolicySn" + + "apshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" + + "\010schedule\030\227\245\232\263\001 \001(\0132E.google.cloud.co" + + "mpute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" + + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.compute.v1.Res" + + "ourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + "\021_retention_policyB\013\n" + "\t_scheduleB\026\n" + "\024_snapshot_properties\"\325\002\n" - + "3ResourcePolicySnapshotScheduleP", - "olicyRetentionPolicy\022#\n" + + "3ResourcePolicySnapshotSchedulePolicyRetentionPolicy\022#\n" + "\022max_retention_days\030\223\302\321\232\001 \001(\005H\000\210\001\001\022&\n" + "\025on_source_disk_delete\030\311\315\302\231\001 \001(\tH\001\210\001\001\"\237\001\n" + "\022OnSourceDiskDelete\022#\n" + "\037UNDEFINED_ON_SOURCE_DISK_DELETE\020\000\022\036\n" - + "\026APPLY_RETENTION_POLICY\020\344\224\222\377\001\022\032\n" + + "\026APPLY_RET", + "ENTION_POLICY\020\344\224\222\377\001\022\032\n" + "\023KEEP_AUTO_SNAPSHOTS\020\371\310\273{\022(\n" + "!UNSPECIFIED_ON_SOURCE_DISK_DELETE\020\241\377\203rB\025\n" + "\023_max_retention_daysB\030\n" + "\026_on_source_disk_delete\"\347\002\n" + ",ResourcePolicySnapshotSchedulePolicySchedule\022Q\n" - + "\016daily_schedule\030\375\343\212) \001(\01321.google.cloud." - + "compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" - + "\017hourly_schedule\030\245\261\243\022 \001(\01322.google.cl" - + "oud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" - + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322.goo" - + "gle.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + + "\016daily_schedule\030\375\343\212)" + + " \001(\01321.google.cloud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" + + "\017hourly_schedule\030\245\261\243\022" + + " \001(\01322.google.cloud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" + + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322.google.cloud." + + "compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + "\017_daily_scheduleB\022\n" + "\020_hourly_scheduleB\022\n" + "\020_weekly_schedule\"\320\002\n" + "6ResourcePolicySnapshotSchedulePolicySnapshotProperties\022\032\n\n" + "chain_name\030\311\332\335 \001(\tH\000\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\001\210\001\001\022o\n" - + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v1.Resour" - + "cePolicySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + + "\006labels\030\377\277\301\356\001 \003(\0132[." + + "google.cloud.compute.v1.ResourcePolicySn" + + "apshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -24919,8 +25848,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_chain_nameB\016\n" + "\014_guest_flush\"q\n" + "\031ResourcePolicyWeeklyCycle\022T\n" - + "\014day_of_weeks\030\332\237\373z \003(\0132;.google.cloud.c" - + "ompute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + + "\014day_of_weeks\030\332\237\373z" + + " \003(\0132;.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + "\"ResourcePolicyWeeklyCycleDayOfWeek\022\022\n" + "\003day\030\234\207\006 \001(\tH\000\210\001\001\022\030\n" + "\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\n" @@ -24961,15 +25890,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_max_topology_distanceB\007\n" + "\005_type\"\260\005\n" + "\016ResourceStatus\022m\n" - + "\033effective_instance_metadata\030\201\216\240\032 \001(\0132@.google.cloud.c" - + "ompute.v1.ResourceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + + "\033effective_instance_metadata\030\201\216\240\032" + + " \001(\0132@.google.cloud.compute.v1." + + "ResourceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + "physical_host\030\220\370\266\335\001 \001(\tH\001\210\001\001\022d\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001" - + "(\0132;.google.cloud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022o\n" - + "\034reservation_consumption_info\030\345\305\357_ \001(\0132A.google.c" - + "loud.compute.v1.ResourceStatusReservationConsumptionInfoH\003\210\001\001\022N\n\n" - + "scheduling\030\224\313\261\270\001" - + " \001(\01321.google.cloud.compute.v1.ResourceStatusSchedulingH\004\210\001\001\022R\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;.googl" + + "e.cloud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022o\n" + + "\034reservation_consumption_info\030\345\305\357_ \001(\0132A.google.cloud.compu" + + "te.v1.ResourceStatusReservationConsumptionInfoH\003\210\001\001\022N\n\n" + + "scheduling\030\224\313\261\270\001 \001(\01321.go" + + "ogle.cloud.compute.v1.ResourceStatusSchedulingH\004\210\001\001\022R\n" + "\024upcoming_maintenance\030\360\240\264l" + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\005\210\001\001B\036\n" + "\034_effective_instance_metadataB\020\n" @@ -25030,8 +25960,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*ResumeInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_resume_instances_request_resource\030\302\276\302=" - + " \001(\0132D.google.c" - + "loud.compute.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.compu" + + "te.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -25043,10 +25973,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_instance_group_m" - + "anagers_resume_instances_request_resource\030\267\203\200\335\001" - + " \001(\0132J.google.cloud.compute.v1.Re" - + "gionInstanceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_instance_group_managers_resume_instances_request_resource\030\267\203\200\335\001" + + " \001(\0132J.google.cloud.compute.v1.RegionInstan" + + "ceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\355\014\n" + "\005Route\0229\n" @@ -25109,7 +26038,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\n\n" + "\010_networkB\023\n" + "\021_next_hop_gatewayB\017\n\r" - + "_next_hop_hubB\017\n\r" + + "_next_hop_hubB\017\n" + + "\r" + "_next_hop_ilbB\024\n" + "\022_next_hop_instanceB\035\n" + "\033_next_hop_inter_region_costB#\n" @@ -25146,13 +26076,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013RouteParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.goo" - + "gle.cloud.compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.google.cloud." + + "compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\310\002\n" @@ -25160,8 +26089,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022@\n" - + "\005terms\030\207\223\3114 \003(\0132..googl" - + "e.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + + "\005terms\030\207\223\3114" + + " \003(\0132..google.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"^\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022 \n" @@ -25181,8 +26110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Router\0226\n" + "\003bgp\030\313\371\005" + " \001(\0132\".google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" - + "\tbgp_peers\030\335\255\356\327\001 \003(\013" - + "2&.google.cloud.compute.v1.RouterBgpPeer\022\"\n" + + "\tbgp_peers\030\335\255\356\327\001" + + " \003(\0132&.google.cloud.compute.v1.RouterBgpPeer\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022.\n" + "\035encrypted_interconnect_router\030\237\242\214\216\001" @@ -25219,8 +26148,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_range\"\263\003\n" + "\024RouterAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/" - + " \003(\01328.google.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.goo" + + "gle.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25229,8 +26158,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002 \001(\0132*.google" - + ".cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132*.google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25240,8 +26169,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020" - + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + + "\024advertised_ip_ranges\030\314\330\363\020 \003(" + + "\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + "\003asn\030\374\364\005 \001(\r" + "H\001\210\001\001\022!\n" + "\020identifier_range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n" @@ -25262,14 +26191,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020" - + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + + "\024advertised_ip_ranges\030\314\330\363\020 \003(\013" + + "20.google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + "\031advertised_route_priority\030\274\234\366X \001(\r" + "H\001\210\001\001\022=\n" - + "\003bfd\030\240\371\005 \001(\0132)" - + ".google.cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n" - + "\030custom_learned_ip_ranges\030\304\210\304\345\001" - + " \003(\0132:.google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + + "\003bfd\030\240\371\005" + + " \001(\0132).google.cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n" + + "\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.goo" + + "gle.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + "\035custom_learned_route_priority\030\304\342\306\235\001" + " \001(\005H\003\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\004\210\001\001\022\033\n" @@ -25416,8 +26345,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"source_subnetwork_ip_ranges_to_nat\030\333\357\241x \001(\tH\t\210\001\001\0224\n" + "$source_subnetwork_ip_ranges_to_nat64\030\331\347\247v \001(\tH\n" + "\210\001\001\022J\n" - + "\013subnetworks\030\305\324\245\306\001" - + " \003(\01321.google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\01321." + + "google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + " tcp_established_idle_timeout_sec\030\355\353\260j \001(\005H\013\210\001\001\022*\n" + "\031tcp_time_wait_timeout_sec\030\375\273\363\364\001" + " \001(\005H\014\210\001\001\022/\n" @@ -25451,7 +26380,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030LIST_OF_IPV6_SUBNETWORKS\020\264\230\274\370\001\":\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\017\n" - + "\007PRIVATE\020\343\342\262\300\001\022\r\n" + + "\007PRIVATE\020\343\342\262\300\001\022\r" + + "\n" + "\006PUBLIC\020\351\314\302jB\024\n" + "\022_auto_network_tierB!\n" + "\037_enable_dynamic_port_allocationB&\n" @@ -25480,8 +26410,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\t\n" + "\007_filter\"\335\001\n\r" + "RouterNatRule\022D\n" - + "\006action\030\266\374\275Y \001(\0132" - + ",.google.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + + "\006action\030\266\374\275Y \001(\0132,.google.c" + + "loud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n" + "\005match\030\305\263\2671 \001(\tH\002\210\001\001\022\034\n" + "\013rule_number\030\354\333\232\377\001 \001(\r" @@ -25509,20 +26439,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\255\001\n" + "\014RouterParams\022a\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132>.google.cloud" - + ".compute.v1.RouterParams.ResourceManagerTagsEntry\032:\n" - + "\030ResourceManagerTagsEntry\022\013\n", - "\003key\030\001 \001(\t\022\r\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132>.google.cloud.compute.v" + + "1.RouterParams.ResourceManagerTagsEntry\032:\n" + + "\030ResourceManagerTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\306\002\n" + "\014RouterStatus\0227\n" + "\013best_routes\030\205\254\337\274\001" + " \003(\0132\036.google.cloud.compute.v1.Route\022A\n" + "\026best_routes_for_router\030\371\373\3668" - + " \003(\0132\036.google.cloud.compute.v1.Route\022N\n" - + "\017bgp_peer_status\030\373\327\225h \003(\01322" - + ".google.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" - + "nat_status\030\320\231\213\036 \003(\0132..goog" - + "le.cloud.compute.v1.RouterStatusNatStatus\022\027\n" + + " \003(\0132\036.google.cloud.compute.v1.Route", + "\022N\n" + + "\017bgp_peer_status\030\373\327\225h \003(\01322.google.cl" + + "oud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" + + "nat_status\030\320\231\213\036" + + " \003(\0132..google.cloud.compute.v1.RouterStatusNatStatus\022\027\n" + "\007network\030\256\264\205o \001(\tH\000\210\001\001B\n\n" + "\010_network\"\351\n\n" + "\031RouterStatusBgpPeerStatus\022=\n" @@ -25591,8 +26522,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n" + "\"num_vm_endpoints_with_nat_mappings\030\354\266\250\364\001" + " \001(\005H\002\210\001\001\022S\n" - + "\013rule_status\030\225\305\356B \003(\0132;.goo" - + "gle.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + + "\013rule_status\030\225\305\356B \003(\0132;.google.cloud." + + "compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + "\037user_allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n" + "\026user_allocated_nat_ips\030\242\262\331\361\001 \003(\tB\033\n" + "\031_min_extra_nat_ips_neededB\007\n" @@ -25610,13 +26541,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_rule_number\"\177\n" + "\024RouterStatusResponse\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022=\n" - + "\006result\030\235\220\267B" - + " \001(\0132%.google.cloud.compute.v1.RouterStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001" + + "(\0132%.google.cloud.compute.v1.RouterStatusH\001\210\001\001B\007\n" + "\005_kindB\t\n" + "\007_result\"l\n" + "\035RoutersGetRoutePolicyResponse\022>\n" - + "\010resource\030\216\210\257]" - + " \001(\0132$.google.cloud.compute.v1.RoutePolicyH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\013" + + "2$.google.cloud.compute.v1.RoutePolicyH\000\210\001\001B\013\n" + "\t_resource\"\342\002\n" + "\024RoutersListBgpRoutes\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" @@ -25631,8 +26562,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\351\002\n" + "\030RoutersListRoutePolicies\022\024\n" @@ -25688,8 +26618,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\024\n" + "\004boot\030\362\365\270\001 \001(\010H\001\210\001\001\022\033\n" + "\013device_name\030\324\265\232 \001(\tH\002\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..goog" + + "le.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001\001\022\031\n" + "\tdisk_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" @@ -25774,18 +26704,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032host_error_timeout_seconds\030\223\334\331\302\001" + " \001(\005H\002\210\001\001\022+\n" + "\033instance_termination_action\030\273\377\2313 \001(\tH\003\210\001\001\022M\n" - + "\032local_ssd_recovery_timeout\030\346\257\346\177 \001" - + "(\0132!.google.cloud.compute.v1.DurationH\004\210\001\001\022\036\n\r" + + "\032local_ssd_recovery_timeout\030\346\257\346\177" + + " \001(\0132!.google.cloud.compute.v1.DurationH\004\210\001\001\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\005\210\001\001\022D\n" + "\020max_run_duration\030\303\257\270\315\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022\036\n\r" + "min_node_cpus\030\273\244\242\227\001 \001(\005H\007\210\001\001\022L\n" - + "\017node_affinities\030\243\204\232\334\001" - + " \003(\0132/.google.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + + "\017node_affinities\030\243\204\232\334\001 \003(\0132/.go" + + "ogle.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + "\023on_host_maintenance\030\334\362\347\036 \001(\tH\010\210\001\001\022a\n" - + "\027on_instance_stop_action\030\311\215\325\374\001" - + " \001(\01327.google.cloud.compute.v1.SchedulingOnInstanceStopActionH" - + "\t\210\001\001\022\034\n" + + "\027on_instance_stop_action\030\311\215\325\374\001 \001(\01327" + + ".google.cloud.compute.v1.SchedulingOnInstanceStopActionH\t\210\001\001\022\034\n" + "\013preemptible\030\241\345\313\232\001 \001(\010H\n" + "\210\001\001\022!\n" + "\022provisioning_model\030\327\226\036 \001(\tH\013\210\001\001\022&\n" @@ -25843,8 +26772,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036SecurityPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.googl" - + "e.cloud.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.co" + + "mpute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -25853,8 +26782,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.c" - + "loud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -25866,8 +26795,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01322.google.cloud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + "\036_preconfigured_expression_sets\"\252\001\n" + "\032SecurityPoliciesScopedList\022E\n" - + "\021security_policies\030\357\246\367<" - + " \003(\0132\'.google.cloud.compute.v1.SecurityPolicy\0229\n" + + "\021security_policies\030\357\246\367< \003" + + "(\0132\'.google.cloud.compute.v1.SecurityPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"r\n" @@ -25876,30 +26805,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + "_waf_rules\"\314\013\n" + "\016SecurityPolicy\022k\n" - + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google.cloud.comput" - + "e.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" - + "\027advanced_options_config\030\300\323\235\326\001" - + " \001(\0132<.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022L\n" + + "\032adaptive_protection_config\030\337\373\321G" + + " \001(\0132?.google.cloud.compute.v1.Secur" + + "ityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" + + "\027advanced_options_config\030\300\323\235\326\001 \001(\0132<.go" + + "ogle.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022L\n" + "\014associations\030\222\350\312\362\001" + " \003(\01322.google.cloud.compute.v1.SecurityPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022c\n" - + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.google.cloud.com" - + "pute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + + "\026ddos_protection_config\030\315\204\377\027" + + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\01323.google.cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01323.google" + + ".cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\026\n" + "\006parent\030\252\221\254% \001(\tH\n" + "\210\001\001\022h\n" - + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google.cloud.comput" - + "e.v1.SecurityPolicyRecaptchaOptionsConfigH\013\210\001\001\022\026\n" + + "\030recaptcha_options_config\030\333\324\275\367\001" + + " \001(\0132=.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfigH\013\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022=\n" - + "\005rules\030\367\221\3653" - + " \003(\0132+.google.cloud.compute.v1.SecurityPolicyRule\022\032\n" + + "\005rules\030\367\221\3653 \003(\0132+" + + ".google.cloud.compute.v1.SecurityPolicyRule\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022\033\n\n" + "short_name\030\356\270\320\352\001 \001(\tH\016\210\001\001\022\024\n" @@ -25931,15 +26861,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_nameB\007\n" + "\005_type\"\315\001\n" + "&SecurityPolicyAdaptiveProtectionConfig\022\203\001\n" - + "\032layer7_ddos_defense_config\030\243\331\303\320\001" - + " \001(\0132V.google.cloud.compute.v1.Se" - + "curityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + + "\032layer7_ddos_defense_config\030\243\331\303\320\001 \001(" + + "\0132V.google.cloud.compute.v1.SecurityPoli" + + "cyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + "\033_layer7_ddos_defense_config\"\363\002\n" + "=SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022 \n" + "\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001\022\203\001\n" - + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.compute.v1.Se" - + "curityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + + "\021threshold_configs\030\235\253\343\034 \003(" + + "\0132e.google.cloud.compute.v1.SecurityPoli" + + "cyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + "\016RuleVisibility\022\035\n" + "\031UNDEFINED_RULE_VISIBILITY\020\000\022\017\n" + "\007PREMIUM\020\267\264\301\276\001\022\020\n" @@ -25958,9 +26889,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"detection_relative_to_baseline_qps\030\205\233\366\212\001" + " \001(\002H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\245\001\n" - + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.google.clo" - + "ud.compute.v1.SecurityPolicyAdaptiveProt" - + "ectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigB#\n" + + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.google.cloud.compute" + + ".v1.SecurityPolicyAdaptiveProtectionConf" + + "igLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigB#\n" + "!_auto_deploy_confidence_thresholdB\035\n" + "\033_auto_deploy_expiration_secB*\n" + "(_auto_deploy_impacted_baseline_thresholdB\035\n" @@ -25969,8 +26900,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_detection_load_thresholdB%\n" + "#_detection_relative_to_baseline_qpsB\007\n" + "\005_name\"\320\002\n" - + "dSecurityPolicyAdaptiveProtectionCo" - + "nfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + + "dSecurityPolicyAdaptiveProtectionConfigLayer7" + + "DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + "\030enable_each_unique_value\030\305\212\336\337\001" + " \001(\010H\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n" @@ -25984,8 +26915,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_typeB\010\n" + "\006_value\"\255\004\n" + "#SecurityPolicyAdvancedOptionsConfig\022p\n" - + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.compute.v1.Se" - + "curityPolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + + "\022json_custom_config\030\271\331\2315 \001(" + + "\0132L.google.cloud.compute.v1.SecurityPoli" + + "cyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + "\014json_parsing\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n" + "\tlog_level\030\311\275\204C \001(\tH\002\210\001\001\022,\n" + "\034request_body_inspection_size\030\377\215\232[ \001(\tH\003\210\001\001\022#\n" @@ -26028,8 +26960,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_ddos_protection\"\203\002\n" + "\022SecurityPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ " - + "\003(\0132\'.google.cloud.compute.v1.SecurityPolicy\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.SecurityPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -26047,22 +26979,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SecurityPolicyRule\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022[\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001 \001(\0132;" + + ".google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022I\n" - + "\005match\030\305\263\2671 \001(\01322.goo" - + "gle.cloud.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" - + "network_match\030\364\370\372\334\001 \001(\01329" - + ".google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" - + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google.cloud.compu" - + "te.v1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + + "\005match\030\305\263\2671 \001(\01322.google.cloud." + + "compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" + + "network_match\030\364\370\372\334\001 \001(\01329.google.cl" + + "oud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" + + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google.cloud.compute.v1.Secu" + + "rityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + "\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\010\210\001\001\022_\n" + "\022rate_limit_options\030\373\311\232 " + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsH" + "\t\210\001\001\022\\\n" - + "\020redirect_options\030\273\222\356M \001(\0132:.google.c" - + "loud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + + "\020redirect_options\030\273\222\356M \001(\0132:.google.cloud.compu" + + "te.v1.SecurityPolicyRuleRedirectOptionsH\n" + "\210\001\001B\t\n" + "\007_actionB\016\n" + "\014_descriptionB\020\n" @@ -26076,20 +27008,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_rate_limit_optionsB\023\n" + "\021_redirect_options\"\225\001\n" + "\"SecurityPolicyRuleHttpHeaderAction\022o\n" - + "\027request_headers_to_adds\030\315\253\372) \003(\0132K.google.c" - + "loud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + + "\027request_headers_to_adds\030\315\253\372) \003(\0132K.google.cloud.compu" + + "te.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + "2SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\022\033\n" + "\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n" + "\014header_value\030\277\362\353` \001(\tH\001\210\001\001B\016\n" + "\014_header_nameB\017\n\r" + "_header_value\"\233\003\n" + "\031SecurityPolicyRuleMatcher\022P\n" - + "\006config\030\302\206\376y \001(\01328.google.cloud.co" - + "mpute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + + "\006config\030\302\206\376y" + + " \001(\01328.google.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + "\004expr\030\365\363\276\001" + " \001(\0132\035.google.cloud.compute.v1.ExprH\001\210\001\001\022\\\n" - + "\014expr_options\030\324\304\354\347\001" - + " \001(\0132=.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + + "\014expr_options\030\324\304\354\347\001 \001(\0132=.goo" + + "gle.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + "\016versioned_expr\030\275\343\326\231\001 \001(\tH\003\210\001\001\"@\n\r" + "VersionedExpr\022\034\n" + "\030UNDEFINED_VERSIONED_EXPR\020\000\022\021\n\n" @@ -26101,9 +27033,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SecurityPolicyRuleMatcherConfig\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n" + "$SecurityPolicyRuleMatcherExprOptions\022q\n" - + "\021recaptcha_options\030\306\366\307\271\001 \001(" - + "\0132M.google.cloud.compute.v1.SecurityPoli" - + "cyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google" + + ".cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + "\022_recaptcha_options\"~\n" + "4SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions\022!\n" + "\026action_token_site_keys\030\235\352\311\034 \003(\t\022#\n" @@ -26118,28 +27049,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tsrc_ports\030\367\273\236\324\001 \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022n\n" + "\023user_defined_fields\030\243\211\300\r" - + " \003(\0132N.google.cloud.compute.v1.SecurityPoli" - + "cyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" - + "5SecurityPolicyRuleNetworkMatcherUse", - "rDefinedFieldMatch\022\024\n" + + " \003(\0132N.google" + + ".cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + + "5SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n" + "\006values\030\242\272\226w \003(\tB\007\n" + "\005_name\"\215\001\n" + "(SecurityPolicyRulePreconfiguredWafConfig\022a\n\n" - + "exclusions\030\345\370\277c \003(\0132J.google.cloud.compute." - + "v1.SecurityPolicyRulePreconfiguredWafConfigExclusion\"\202\005\n" + + "exclusions\030\345\370\277c \003(\0132J.google.cloud.compute.v1.Securit", + "yPolicyRulePreconfiguredWafConfigExclusion\"\202\005\n" + "1SecurityPolicyRulePreconfiguredWafConfigExclusion\022|\n" - + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.google.cloud" - + ".compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" - + "\032request_headers_to_exclude\030\237\244\223\036 \003(\0132U.google" - + ".cloud.compute.v1.SecurityPolicyRulePrec" - + "onfiguredWafConfigExclusionFieldParams\022\202\001\n" - + "\037request_query_params_to_exclude\030\210\236\272\242\001" - + " \003(\0132U.google.cloud.compute.v1.SecurityP" - + "olicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" - + "\027request_uris_to_exclude\030\236\252\237+" - + " \003(\0132U.google.cloud.compute.v1.Securi" - + "tyPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.google.cloud.compute.v" + + "1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" + + "\032request_headers_to_exclude\030\237\244\223\036 \003(\0132U.google.cloud.com" + + "pute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" + + "\037request_query_params_to_exclude\030\210\236\272\242\001 \003(\0132U.goo" + + "gle.cloud.compute.v1.SecurityPolicyRuleP" + + "reconfiguredWafConfigExclusionFieldParams\022y\n" + + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U." + + "google.cloud.compute.v1.SecurityPolicyRu" + + "lePreconfiguredWafConfigExclusionFieldParams\022\033\n" + "\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 \n" + "\017target_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n" + "\020_target_rule_set\"\347\001\n" @@ -26157,20 +27086,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_val\"\232\010\n" + "\"SecurityPolicyRuleRateLimitOptions\022 \n" + "\020ban_duration_sec\030\326\232\272\024 \001(\005H\000\210\001\001\022d\n\r" - + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google" - + ".cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.cloud.com" + + "pute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + "\016conform_action\030\317\306\350\366\001 \001(\tH\002\210\001\001\022\037\n" + "\016enforce_on_key\030\374\235\326\306\001 \001(\tH\003\210\001\001\022p\n" - + "\026enforce_on_key_configs\030\256\276\225\020" - + " \003(\0132M.google.cloud.compute.v1.Securi" - + "tyPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132M." + + "google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + "\023enforce_on_key_name\030\356\303\232? \001(\tH\004\210\001\001\022\035\n\r" + "exceed_action\030\241\312\332O \001(\tH\005\210\001\001\022d\n" - + "\027exceed_redirect_options\030\346\214\355\341\001 \001(\0132:.google" - + ".cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" - + "\024rate_limit_threshold\030\210\277\317\226\001" - + " \001(\0132D.google.cloud.compute.v1.Sec" - + "urityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\364\001\n" + + "\027exceed_redirect_options\030\346\214\355\341\001 \001(\0132:.google.cloud.com" + + "pute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" + + "\024rate_limit_threshold\030\210\277\317\226\001 \001(\013" + + "2D.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\364\001\n" + "\014EnforceOnKey\022\034\n" + "\030UNDEFINED_ENFORCE_ON_KEY\020\000\022\t\n" + "\003ALL\020\201\373\003\022\023\n" @@ -26242,8 +27169,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_offsetB\007\n" + "\005_size\"\326\001\n" + "\020SecuritySettings\022O\n" - + "\025aws_v4_authentication\030\227\353\370\316\001" - + " \001(\0132\'.google.cloud.compute.v1.AWSV4SignatureH\000\210\001\001\022\"\n" + + "\025aws_v4_authentication\030\227\353\370\316\001 \001" + + "(\0132\'.google.cloud.compute.v1.AWSV4SignatureH\000\210\001\001\022\"\n" + "\021client_tls_policy\030\352\213\272\334\001 \001(\tH\001\210\001\001\022\035\n" + "\021subject_alt_names\030\337\263\257\235\001 \003(\tB\030\n" + "\026_aws_v4_authenticationB\024\n" @@ -26277,11 +27204,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"\361\n\n" + "\021ServiceAttachment\022[\n" - + "\023connected_endpoints\030\310\227\270\"" - + " \003(\0132;.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + + "\023connected_endpoints\030\310\227\270\" \003(\0132;." + + "google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022a\n" - + "\025consumer_accept_lists\030\307\266\204\300\001 \003(\0132>.google.cloud.c" - + "ompute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + + "\025consumer_accept_lists\030\307\266\204\300\001" + + " \003(\0132>.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + "\025consumer_reject_lists\030\236\231\245a \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" @@ -26290,8 +27217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022M\n" - + "\010metadata\030\257\366\265) \003(\01328.google.cloud.co" - + "mpute.v1.ServiceAttachment.MetadataEntry\022\024\n" + + "\010metadata\030\257\366\265)" + + " \003(\01328.google.cloud.compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n" + "\013nat_subnets\030\230\217\333\262\001 \003(\t\022(\n" + "\030producer_forwarding_rule\030\321\250\234v \001(\tH\010\210\001\001\022,\n" @@ -26330,8 +27257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_target_service\"\324\003\n" + "\037ServiceAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003(\0132C.google.cloud.com" - + "pute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.google.cloud.compute.v1.Se" + + "rviceAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26340,12 +27267,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002 \001(\01325.google.cloud.compu" - + "te.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01325.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\220\004\n" + "\"ServiceAttachmentConnectedEndpoint\022 \n" + "\020consumer_network\030\345\335\244y \001(\tH\000\210\001\001\022\030\n" @@ -26402,19 +27330,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\246\002\n" + "&SetBackendServiceTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" + "7target_ssl_proxies_set_backend_service_request_resource\030\244\351\250B" - + " \001(\0132A.google.cloud." - + "compute.v1.TargetSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.compute.v1" + + ".TargetSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetBackendServiceTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" - + "7target_tcp_proxies_set_backend_service_request_resource\030\357\321\302\202\001 \001" - + "(\0132A.google.cloud.compute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + "7target_tcp_proxies_set_backend_service_request_resource\030\357\321\302\202\001" + + " \001(\0132A.googl" + + "e.cloud.compute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\261\002\n" + "\032SetBackupTargetPoolRequest\022\036\n" @@ -26424,8 +27354,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022T\n" - + "\031target_reference_resource\030\360\267\335\371\001 \001(\0132(.google" - + ".cloud.compute.v1.TargetReferenceB\003\340A\002B\021\n" + + "\031target_reference_resource\030\360\267\335\371\001" + + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\021\n" + "\017_failover_ratioB\r\n" + "\013_request_id\"\256\002\n" + "(SetCertificateMapTargetHttpsProxyRequest\022!\n" @@ -26433,8 +27363,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\217\001\n" + "9target_https_proxies_set_certificate_map_request_resource\030\273\266\376\336\001" - + " \001(\0132C.google.cloud.compute.v1.T" - + "argetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + + " \001" + + "(\0132C.google.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetCertificateMapTargetSslProxyRequest\022!\n" @@ -26442,30 +27372,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_ssl_proxies_set_certificate_map_request_resource\030\272\226\203\244\001" - + " \001(\0132A.goog" - + "le.cloud.compute.v1.TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.c" + + "ompute.v1.TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\352\001\n" + "\037SetCloudArmorTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" - + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$" - + " \001(\01329.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" + + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$ \001(\01329.go" + + "ogle.cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\214\003\n" + "*SetCommonInstanceMetadataOperationMetadata\022$\n" + "\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001\n" - + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.go" - + "ogle.cloud.compute.v1.SetCommonInstanceM" - + "etadataOperationMetadata.PerLocationOperationsEntry\032\231\001\n" + + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud" + + ".compute.v1.SetCommonInstanceMetadataOpe" + + "rationMetadata.PerLocationOperationsEntry\032\231\001\n" + "\032PerLocationOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022j\n" - + "\005value\030\002 \001(\0132[.google.cloud.compute.v1.SetCommonInstanceMetada" - + "taOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + + "\005value\030\002 \001(\0132[.google.cloud.comp" + + "ute.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + "\024_client_operation_id\"\262\002\n" + "BSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo\0226\n" - + "\005error\030\210\244\223. \001(\013" - + "2\037.google.cloud.compute.v1.StatusH\000\210\001\001\022\025\n" + + "\005error\030\210\244\223." + + " \001(\0132\037.google.cloud.compute.v1.StatusH\000\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\001\210\001\001\"\210\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\020\n" @@ -26482,15 +27412,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\367\001\n" + "#SetDefaultNetworkTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\201\001\n" - + "2projects_set_default_network_tier_request_resource\030\212\300\243< \001(\0132=.googl" - + "e.cloud.compute.v1.ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "2projects_set_default_network_tier_request_resource\030\212\300\243<" + + " \001(\0132=.google.cloud.co" + + "mpute.v1.ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\351\001\n" + "$SetDeletionProtectionInstanceRequest\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\000\210\001\001\022!\n" @@ -26517,8 +27448,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.g" - + "oogle.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.clou" + + "d.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\202\002\n" + "*SetEdgeSecurityPolicyBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022!\n" @@ -26529,13 +27460,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\273\001\n" + " SetIamPolicyBackendBucketRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001" + + "(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\274\001\n" + "!SetIamPolicyBackendServiceRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 " - + "\001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goog" + + "le.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\304\001\n" + "\027SetIamPolicyDiskRequest\022\027\n" @@ -26545,8 +27476,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " zone_set_policy_request_resource\030\273\270\230\266\001" + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + "!SetIamPolicyFirewallPolicyRequest\022|\n" - + "/global_organization_set_policy_request_resource\030\336\224\314T" - + " \001(\0132;.google.cloud.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + + "/global_organization_set_policy_request_resource\030\336\224\314T \001(\0132;.go" + + "ogle.cloud.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\263\001\n" + "\030SetIamPolicyImageRequest\022d\n" + "\"global_set_policy_request_resource\030\262\347\333\240\001" @@ -26557,22 +27488,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google." - + "cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\276\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001" + + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\276\001\n" + "#SetIamPolicyInstanceTemplateRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\013" + + "2/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\324\001\n" + + "\'SetIamPolicyInstantSnapshotGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" - + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\317\001\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.cl" + + "oud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\317\001\n" + "\"SetIamPolicyInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.goog" - + "le.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\311\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-" + + ".google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\311\001\n" + ".SetIamPolicyInterconnectAttachmentGroupRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.cloud." - + "compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.c" + + "loud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\277\001\n" + "$SetIamPolicyInterconnectGroupRequest\022d\n" @@ -26581,20 +27518,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\265\001\n" + "\032SetIamPolicyLicenseRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001" - + "(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\272\001\n" + "\037SetIamPolicyMachineImageRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" - + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n" + "$SetIamPolicyNetworkAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132" + + "/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\303\001\n" + "(SetIamPolicyNetworkFirewallPolicyRequest\022d\n" + "\"global_set_policy_request_resource\030\262\347\333\240\001" @@ -26605,45 +27542,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\322\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.c" + + "loud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\322\001\n" + "\037SetIamPolicyNodeTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" + "\"region_set_policy_request_resource\030\203\307\353\203\001" + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\331\001\n" + + "&SetIamPolicyRegionBackendBucketRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\332\001\n" + "\'SetIamPolicyRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google." - + "cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\320\001\n" + "\035SetIamPolicyRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(" - + "\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" - + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\333\001\n" - + "(SetIamPolicyRegionInstantSnapshotRequest\022\027\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.clou" + + "d.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\340\001\n" + + "-SetIamPolicyRegionInstantSnapshotGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" + "\"region_set_policy_request_resource\030\203\307\353\203\001" + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\333\001\n" + + "(SetIamPolicyRegionInstantSnapshotRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\341\001\n" + ".SetIamPolicyRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" + "\"region_set_policy_request_resource\030\203\307\353\203\001" + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\324\001\n" + + "!SetIamPolicyRegionSnapshotRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/" + + ".google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\375\001\n" + "#SetIamPolicyReservationBlockRequest\022\037\n" + "\017parent_resource\030\203\230\320\010 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022l\n" - + "\'zone_set_nested_policy_request_resource\030\323\361\200\177" - + " \001(\01323.google.cloud.compute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\313\001\n" + + "\'zone_set_nested_policy_request_resource\030\323\361\200\177 \001(\01323.g" + + "oogle.cloud.compute.v1.ZoneSetNestedPoli", + "cyRequestB\003\340A\002\"\313\001\n" + "\036SetIamPolicyReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" @@ -26655,24 +27611,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022l\n" - + "\'zone_set_nested_policy_request_resource\030\323\361\200\177 \001(\01323.goo" - + "gle.cloud.compute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\324\001\n" + + "\'zone_set_nested_policy_request_resource\030\323\361\200\177" + + " \001(\01323.google.cloud.com" + + "pute.v1.ZoneSetNestedPolicyRequestB\003\340A\002\"\324\001\n" + "!SetIamPolicyResourcePolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.clo" - + "ud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n" - + "$SetIamPo", - "licyServiceAttachmentRequest\022\027\n" + + "$SetIamPolicyServiceAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.googl" + + "e.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\266\001\n" + "\033SetIamPolicySnapshotRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.googl" + + "e.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001\n" + "\036SetIamPolicyStoragePoolRequest\022\027\n" @@ -26684,14 +27640,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SetIamPolicySubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\336\002\n" + ".SetInstanceTemplateInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\230\001\n" + ">instance_group_managers_set_instance_template_request_resource\030\305\331\326\004" - + " \001(\0132H.google.cloud.compute.v1" - + ".InstanceGroupManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + + " \001(\0132H.google.cloud.compute.v1.InstanceGrou" + + "pManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26704,8 +27660,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\224\001\n" + ".googl" - + "e.cloud.compute.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + " \001(\0132>.google.cloud.compute.v1.T" + + "argetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\235\002\n" + "#SetProxyHeaderTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\204\001\n" - + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h \001(\013" - + "2>.google.cloud.compute.v1.TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h" + + " \001(\0132>.google.cloud.comp" + + "ute.v1.TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetQuicOverrideTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\"" - + " \001(\0132A.google.cloud.compute.v1" - + ".TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + + " \001(\0132A.goo" + + "gle.cloud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\356\001\n" + "\034SetSchedulingInstanceRequest\022\030\n" @@ -27000,15 +27969,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.cloud" + + ".compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\243\002\n" + " SetSecurityPolicyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022z\n" - + ".instances_set_security_policy_request_resource\030\212\321\272v \001(\0132:." - + "google.cloud.compute.v1.InstancesSetSecurityPolicyRequestB\003\340A\002\022!\n" + + ".instances_set_security_policy_request_resource\030\212\321\272v" + + " \001(\0132:.google.cloud.compute" + + ".v1.InstancesSetSecurityPolicyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -27019,15 +27990,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.go" - + "ogle.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\233\002\n" + "&SetSecurityPolicyTargetInstanceRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022 \n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320" + + ".google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022 \n" + "\017target_instance\030\203\217\226\212\001 \001(\tB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -27037,14 +28008,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.goog" + + "le.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\244\002\n" + " SetServiceAccountInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022{\n" - + ".instances_set_service_account_request_resource\030\270\236\262\203\001 \001(\0132:.go" - + "ogle.cloud.compute.v1.InstancesSetServiceAccountRequestB\003\340A\002\022!\n" + + ".instances_set_service_account_request_resource\030\270\236\262\203\001" + + " \001(\0132:.google.cloud.compute.v" + + "1.InstancesSetServiceAccountRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27057,7 +28029,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022v\n" + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001" - + " \001(\01328.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + + " \001(\01328.google.clo" + + "ud.compute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\345\002\n" @@ -27065,9 +28038,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" - + "Aregion_target_https_proxies_set_ssl_certificates_request_resource\030\207\204\246\272\001" - + " \001(\0132J.goo" - + "gle.cloud.compute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + + "Aregion_target_https_p" + + "roxies_set_ssl_certificates_request_resource\030\207\204\246\272\001" + + " \001(\0132J.google.cloud.compute.v1" + + ".RegionTargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\260\002\n" @@ -27076,16 +28050,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n" + ":target_https_proxies_set_ssl_certificates_request_resource\030\334\253\262j" - + " \001(\0132D.google.cloud.compute.v" - + "1.TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + + " \001(\0132D.go" + + "ogle.cloud.compute.v1.TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\251\002\n" + "\'SetSslCertificatesTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n" - + "8target_ssl_proxies_set_ssl_certificates_request_resource\030\275\313\305F \001(\0132B" - + ".google.cloud.compute.v1.TargetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + + "8target_ssl_proxies_set_ssl_certificates_request_resource\030\275\313\305F" + + " \001(\0132B.google.cloud.comput" + + "e.v1.TargetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\363\001\n" + "#SetSslPolicyTargetHttpsProxyRequest\022!\n" @@ -27100,8 +28075,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n" - + "\035ssl_policy_reference_resource\030\274\364\237p \001(\0132+.google." - + "cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022!\n" + + "\035ssl_policy_reference_resource\030\274\364\237p" + + " \001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\334\001\n" + "\026SetTagsInstanceRequest\022\030\n" @@ -27112,7 +28087,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tags_resource\030\364\232\205\236\001" + " \001(\0132\035.google.cloud.compute.v1.TagsB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n" + + "\340A\002\362G\004zoneB\r" + + "\n" + "\013_request_id\"\207\002\n" + "\036SetTargetForwardingRuleRequest\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n" @@ -27120,22 +28096,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n" - + "\031target_reference_resource\030\360\267\335\371\001 \001(\0132(." - + "google.cloud.compute.v1.TargetReferenceB\003\340A\002B\r\n" + + "\031target_reference_resource\030\360\267\335\371\001" + + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\r\n" + "\013_request_id\"\354\001\n" + "$SetTargetGlobalForwardingRuleRequest\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n" - + "\031target_reference_resource\030\360\267\335\371\001 \001(\0132(.g" - + "oogle.cloud.compute.v1.TargetReferenceB\003\340A\002B\r\n" + + "\031target_reference_resource\030\360\267\335\371\001" + + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\r\n" + "\013_request_id\"\320\002\n" + ")SetTargetPoolsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_set_target_pools_request_resource\030\210\206\210\206\001" - + " \001(\0132C.google.cloud.compute." - + "v1.InstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + + " \001(\0132C.g" + + "oogle.cloud.compute.v1.InstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27148,18 +28124,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_managers_set_target_pools_request_resource\030\375\312\305%" - + " \001(\0132I.go" - + "ogle.cloud.compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + + " \001(\0132I.google.cloud.compute.v" + + "1.RegionInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\220\002\n" - + "%SetUrlMapRegionTargetHttpProxyRequest\022!\n" + + "%SetUrlMapRegionTa", + "rgetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n" + "\032url_map_reference_resource\030\225\346\216\276\001" - + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r" + + "\n" + "\013_request_id\"\222\002\n" + "&SetUrlMapRegionTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -27183,25 +28161,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001" - + "(\0132(.google.cloud.compute.v1.UrlMapRefer", - "enceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\320\001\n" + "\"SetUsageExportBucketProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\\\n" - + "\036usage_export_location_resource\030\353\314\324\t" - + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationB\003\340A\002B\r\n" + + "\036usage_export_location_resource\030\353\314\324\t \001(\0132,.google.c" + + "loud.compute.v1.UsageExportLocationB\003\340A\002B\r\n" + "\013_request_id\"\372\002\n\r" + "ShareSettings\022N\n" - + "\013project_map\030\266\326\377? \003(\01326." - + "google.cloud.compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + + "\013project_map\030\266\326\377?" + + " \003(\01326.google.cloud.compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + "share_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + + "\005value\030\002 \001(\01323.google.c" + + "loud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + "\tShareType\022\030\n" + "\024UNDEFINED_SHARE_TYPE\020\000\022\014\n" + "\005LOCAL\020\313\316\317\"\022\024\n" @@ -27221,15 +28198,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpm\"\201\004\n" + "\030ShieldedInstanceIdentity\022`\n" - + "\027ecc_p256_encryption_key\030\305\307\366\337\001" - + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022]\n" - + "\024ecc_p256_signing_key\030\303\226\343\343\001 \001(\01326.google.cloud.compu" - + "te.v1.ShieldedInstanceIdentityEntryH\001\210\001\001\022W\n" - + "\016encryption_key\030\243\307\351\350\001 \001(\01326.google.cl" - + "oud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001\022\024\n" + + "\027ecc_p256_encryption_key\030\305\307\366\337\001 \001(\01326.google.cloud." + + "compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022]\n" + + "\024ecc_p256_signing_key\030\303\226\343\343\001 \001(\0132" + + "6.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\001\210\001\001\022W\n" + + "\016encryption_key\030\243\307\351\350\001" + + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022T\n" - + "\013signing_key\030\245\220\205\231\001" - + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\004\210\001\001B\032\n" + + "\013signing_key\030\245\220\205\231\001 \001(\01326.g" + + "oogle.cloud.compute.v1.ShieldedInstanceIdentityEntryH\004\210\001\001B\032\n" + "\030_ecc_p256_encryption_keyB\027\n" + "\025_ecc_p256_signing_keyB\021\n" + "\017_encryption_keyB\007\n" @@ -27237,7 +28214,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_signing_key\"i\n" + "\035ShieldedInstanceIdentityEntry\022\030\n" + "\007ek_cert\030\235\334\324\326\001 \001(\tH\000\210\001\001\022\027\n" - + "\006ek_pub\030\344\327\250\223\001 \001(\tH\001\210\001\001B\n\n" + + "\006ek_pub\030\344\327\250\223\001 \001(\tH\001\210\001\001B\n" + + "\n" + "\010_ek_certB\t\n" + "\007_ek_pub\"h\n" + "\037ShieldedInstanceIntegrityPolicy\022(\n" @@ -27262,13 +28240,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(SimulateMaintenanceEventNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\214\001\n" + "7node_groups_simulate_maintenance_event_request_resource\030\334\371\313\247\001" - + " \001(\0132B.google.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud." + + "compute.v1.NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" - + "\013_request_id\"\231\025\n" + + "\013_request_id\"\262\026\n" + "\010Snapshot\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\035\n" + "\014auto_created\030\330\310\233\335\001 \001(\010H\001\210\001\001\022\032\n\n" @@ -27280,43 +28259,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016download_bytes\030\364\313\271\317\001 \001(\003H\007\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\010\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\t\210\001\001\022E\n" - + "\021guest_os_features\030\321\340\347% \003(\0132" - + "\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + + "\021guest_os_features\030\321\340\347%" + + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022A\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132-.google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\0132-.go" + + "ogle.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\r" + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022?\n" - + "\006params\030\206\363\253%" - + " \001(\0132\'.google.cloud.compute.v1.SnapshotParamsH\017\210\001\001\022\036\n\r" - + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\020\210\001\001\022\036\n\r" - + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\021\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022W\n" - + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132.." - + "google.cloud.compute.v1.CustomerEncryptionKeyH\023\210\001\001\022\035\n\r" - + "snapshot_type\030\325\331\245; \001(\tH\024\210\001\001\022\034\n" - + "\013source_disk\030\301\356\264\327\001 \001(\tH\025\210\001\001\022[\n" - + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..google" - + ".cloud.compute.v1.CustomerEncryptionKeyH\026\210\001\001\0224\n" + + "\006params\030\206\363\253% " + + "\001(\0132\'.google.cloud.compute.v1.SnapshotParamsH\017\210\001\001\022\026\n" + + "\006region\030\364\315\240B \001(\tH\020\210\001\001\022\036\n\r" + + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022W\n" + + "\027snapshot_encryption_key\030\376\366\324\024 \001(" + + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\024\210\001\001\022!\n" + + "\021snapshot_group_id\030\366\235\314y \001(\tH\025\210\001\001\022#\n" + + "\023snapshot_group_name\030\246\343\265u \001(\tH\026\210\001\001\022\035\n\r" + + "snapshot_type\030\325\331\245; \001(\tH\027\210\001\001\022\034\n" + + "\013source_disk\030\301\356\264\327\001 \001(\tH\030\210\001\001\022[\n" + + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..google.clo" + + "ud.compute.v1.CustomerEncryptionKeyH\031\210\001\001\0224\n" + "#source_disk_for_recovery_checkpoint\030\376\341\312\253\001 \001(" - + "\tH\027\210\001\001\022\037\n" - + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\030\210\001\001\022\'\n" - + "\027source_instant_snapshot\030\206\204\303h \001(\tH\031\210\001\001\022g\n" + + "\tH\032\210\001\001\022\037\n" + + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\033\210\001\001\022\'\n" + + "\027source_instant_snapshot\030\206\204\303h \001(\tH\034\210\001\001\022g\n" + "&source_instant_snapshot_encryption_key\030\374\205\224\320\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\032\210\001\001\022+\n" - + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH\033\210\001\001\022/\n" - + "\037source_snapshot_schedule_policy\030\203\266\265p \001(\tH\034\210\001\001\0222\n" - + "\"source_snapshot_schedule_policy_id\030\327\247\316! \001(" - + "\tH\035\210\001\001\022\026\n" - + "\006status\030\362\237\267V \001(\tH\036\210\001\001\022\036\n\r" - + "storage_bytes\030\247\273\275\312\001 \001(\003H\037\210\001\001\022%\n" - + "\024storage_bytes_status\030\212\253\200\352\001 \001(\tH \210\001\001\022\035\n" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\035\210\001\001\022+\n" + + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH\036\210\001\001\022/\n" + + "\037source_snapshot_schedule_policy\030\203\266\265p \001(\tH\037\210\001\001\0222\n" + + "\"source_snapshot_schedule_policy_id\030\327\247\316! \001(\tH \210\001\001\022\026\n" + + "\006status\030\362\237\267V \001(\tH!\210\001\001\022\036\n\r" + + "storage_bytes\030\247\273\275\312\001 \001(\003H\"\210\001\001\022%\n" + + "\024storage_bytes_status\030\212\253\200\352\001 \001(\tH#\210\001\001\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -27356,11 +28337,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_label_fingerprintB\020\n" + "\016_location_hintB\007\n" + "\005_nameB\t\n" - + "\007_paramsB\020\n" + + "\007_paramsB\t\n" + + "\007_regionB\020\n" + "\016_satisfies_pziB\020\n" + "\016_satisfies_pzsB\014\n\n" + "_self_linkB\032\n" - + "\030_snapshot_encryption_keyB\020\n" + + "\030_snapshot_encryption_keyB\024\n" + + "\022_snapshot_group_idB\026\n" + + "\024_snapshot_group_nameB\020\n" + "\016_snapshot_typeB\016\n" + "\014_source_diskB\035\n" + "\033_source_disk_encryption_keyB&\n" @@ -27373,7 +28357,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#_source_snapshot_schedule_policy_idB\t\n" + "\007_statusB\020\n" + "\016_storage_bytesB\027\n" - + "\025_storage_bytes_status\"\241\002\n" + + "\025_storage_bytes_status\"\223\001\n" + + "\027SnapshotGroupParameters\022\030\n\r" + + "replica_zones\030\200\270\214\027 \003(\t\022%\n" + + "\025source_snapshot_group\030\350\361\254k \001(\tH\000\210\001\001\022\024\n" + + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001B\030\n" + + "\026_source_snapshot_groupB\007\n" + + "\005_type\"\241\002\n" + "\014SnapshotList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0223\n" + "\005items\030\300\317\367/ \003(\0132!.google.cloud.compute.v1.Snapshot\022\024\n" @@ -27392,19 +28382,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132@.google.cloud.compute.v1.SnapshotParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\214\001\n" - + "\020SnapshotSettings\022c\n" - + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google.cloud.c" - + "ompute.v1.SnapshotSettingsStorageLocationSettingsH\000\210\001\001B\023\n" - + "\021_storage_location\"\336\003\n" + + "\005value\030\002 \001(\t:\0028\001\"\372\001\n" + + "\020SnapshotSettings\022X\n" + + "\017access_location\030\260\330\343\010 \001(\01327.google.cloud." + + "compute.v1.SnapshotSettingsAccessLocationH\000\210\001\001\022c\n" + + "\020storage_location\030\371\321\340\333\001 \001(\0132@.g" + + "oogle.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsH\001\210\001\001B\022\n" + + "\020_access_locationB\023\n" + + "\021_storage_location\"\220\003\n" + + "\036SnapshotSettingsAccessLocation\022]\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132F.google.cloud.compute.v1.Snapsho" + + "tSettingsAccessLocation.LocationsEntry\022\026\n" + + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\201\001\n" + + "\016LocationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022^\n" + + "\005value\030\002 \001(\0132O.google.c" + + "loud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference:\0028\001\"h\n" + + "\006Policy\022\024\n" + + "\020UNDEFINED_POLICY\020\000\022\023\n" + + "\013ALL_REGIONS\020\241\256\237\202\001\022\031\n" + + "\022POLICY_UNSPECIFIED\020\212\267\263^\022\030\n" + + "\020SPECIFIC_REGIONS\020\322\343\305\330\001B\t\n" + + "\007_policy\"[\n" + + "6SnapshotSettingsAccessLocationAccessLocationPreference\022\026\n" + + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + + "\007_region\"\336\003\n" + "\'SnapshotSettingsStorageLocationSettings\022f\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.cloud.co" - + "mpute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132O.google" + + ".cloud.compute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022h\n" - + "\005value\030\002 \001(\0132Y.google.cloud.compute.v1" - + ".SnapshotSettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + + "\005value\030\002 \001(\0132Y.google.cloud.compute.v1.SnapshotSettingsStorageLocatio" + + "nSettingsStorageLocationPreference:\0028\001\"\231\001\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\024\n" + "\014LOCAL_REGION\020\350\354\265\300\001\022\033\n" @@ -27414,10 +28424,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_policy\"a\n" + "@SnapshotSettingsStorageLocationSettingsStorageLocationPreference\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" - + "\005_name\"\265\001\n" + + "\005_name\"M\n" + + "\033SnapshotUpdateKmsKeyRequest\022\035\n" + + "\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001B\017\n\r" + + "_kms_key_name\"\265\001\n" + "\027SourceDiskEncryptionKey\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..g" - + "oogle.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\016\n" + "\014_source_disk\"a\n" @@ -27430,11 +28443,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022<\n" + "\005disks\030\366\314\312-" + " \003(\0132*.google.cloud.compute.v1.SavedAttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001 \003" - + "(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + + "\022guest_accelerators\030\357\314\207\335\001" + + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\003\210\001\001\022Q\n" - + "\006labels\030\377\277\301\356\001 \003(\0132=.google." - + "cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001 \003(\0132=" + + ".google.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\004\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\005\210\001\001\022 \n" @@ -27445,8 +28458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\007\210\001\001\022@\n\n" + "scheduling\030\224\313\261\270\001" + " \001(\0132#.google.cloud.compute.v1.SchedulingH\010\210\001\001\022E\n" - + "\020service_accounts\030\260\304\253\204\001 \003(\0132\'" - + ".google.cloud.compute.v1.ServiceAccount\0223\n" + + "\020service_accounts\030\260\304\253\204\001" + + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH" + "\t\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -27479,15 +28492,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\355\323\221\322\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022V\n" - + "\007managed\030\237\237\244\216\001 \001(\0132<.google.cloud.compute.v1.Ss" - + "lCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + + "\007managed\030\237\237\244\216\001 \001(\0132<.google.cloud.compu" + + "te.v1.SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n" + "\013private_key\030\243\363\245\254\001 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022_\n" - + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud.compute.v1.SslCe" - + "rtificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud.compute." + + "v1.SslCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + "\031subject_alternative_names\030\343\357\223\374\001 \003(\t\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n" + "\004Type\022\022\n" @@ -27510,8 +28523,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\313\003\n" + "\034SslCertificateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@." - + "google.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132@.google.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -27520,8 +28533,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.googl" - + "e.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "22.google.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -27542,8 +28555,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\320\003\n" + "#SslCertificateManagedSslCertificate\022i\n\r" - + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.compute.v1.SslCertifica" - + "teManagedSslCertificate.DomainStatusEntry\022\022\n" + + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.compute.v1.SslC" + + "ertificateManagedSslCertificate.DomainStatusEntry\022\022\n" + "\007domains\030\257\210\233l \003(\t\022\026\n" + "\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n" + "\021DomainStatusEntry\022\013\n" @@ -27564,16 +28577,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_certificateB\016\n" + "\014_private_key\"\251\001\n" + "\031SslCertificatesScopedList\022E\n" - + "\020ssl_certificates\030\217\242\303\256\001 \003(\0132\'." - + "google.cloud.compute.v1.SslCertificate\0229\n" + + "\020ssl_certificates\030\217\242\303\256\001" + + " \003(\0132\'.google.cloud.compute.v1.SslCertificate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\340\003\n" + "\031SslPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=." - + "google.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132=.google.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -27582,8 +28595,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.c" - + "loud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132.." + + "google.cloud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -27655,8 +28668,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " StartAsyncReplicationDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022{\n" + ".disks_start_async_replication_request_resource\030\332\236\300\340\001" - + " \001(\0132:.google.cloud" - + ".compute.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + + " \001(\0132:.goog" + + "le.cloud.compute.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27669,8 +28682,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\210\001\n" + "5region_disks_start_async_replication_request_resource\030\205\310\226\342\001" - + " \001(\0132@" - + ".google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + + " \001(\0132@.google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\233\001\n" + "\024StartInstanceRequest\022\030\n" @@ -27684,8 +28697,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")StartInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\215\001\n" + "8instance_group_managers_start_instances_request_resource\030\253\245\277|" - + " \001(\0132C.google.clou" - + "d.compute.v1.InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132C.goo" + + "gle.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27697,17 +28710,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" - + "?region_instance_group_manage" - + "rs_start_instances_request_resource\030\226\233\377\354\001" - + " \001(\0132I.google.cloud.compute.v1.RegionIn" - + "stanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + + "?region_instance_grou" + + "p_managers_start_instances_request_resource\030\226\233\377\354\001" + + " \001(\0132I.google.cloud.compute.v1." + + "RegionInstanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\265\002\n" + "%StartWithEncryptionKeyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\206\001\n" + "4instances_start_with_encryption_key_request_resource\030\377\376\317\322\001" - + " \001(\0132?.google.cloud.c" - + "ompute.v1.InstancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + + " \001(\0132?.google" + + ".cloud.compute.v1.InstancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27719,24 +28732,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01325.google.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + "\020_preserved_state\"\216\005\n" + "\034StatefulPolicyPreservedState\022R\n" - + "\005disks\030\366\314\312- \003(\0132@.google.cloud.compute" - + ".v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google." - + "cloud.compute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" - + "internal_i_ps\030\333\233\357f \003(\0132F.google.cloud.compute.v1.State" - + "fulPolicyPreservedState.InternalIPsEntry\032m\n\n" + + "\005disks\030\366\314\312- \003(\0132@.google.cloud", + ".compute.v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" + + "external_i_ps\030\215\323\200\376\001 \003(\0132F" + + ".google.cloud.compute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" + + "internal_i_ps\030\333\233\357f \003(\0132F.google.cloud.compute." + + "v1.StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001" - + "(\0132?.google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + + "\005value\030\002 \001(\0132?.google.cloud.compute.v1.Sta" + + "tefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132" - + ">.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + + "\005value\030\002" + + " \001(\0132>.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.go" - + "ogle.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + + "\005value\030\002 " + + "\001(\0132>.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + "&StatefulPolicyPreservedStateDiskDevice\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" @@ -27774,8 +28787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\232\002\n" + "$StopGroupAsyncReplicationDiskRequest\022\206\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?" - + ".google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27784,13 +28796,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\244\002\n" + "*StopGroupAsyncReplicationRegionDiskRequest\022\206\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?.google.cloud.compute.v1.Disk" - + "sStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute" + + ".v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_i", - "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\324\001\n" + "\023StopInstanceRequest\022\"\n" + "\021discard_local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001\022\030\n" @@ -27800,13 +28811,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\024\n" - + "\022_discard_local_ssdB\r\n" + + "\022_discard_local_ssdB\r" + + "\n" + "\013_request_id\"\313\002\n" + "(StopInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\213\001\n" + "7instance_group_managers_stop_instances_request_resource\030\215\245\364\021" - + " \001(\0132" - + "B.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud.compute.v1.Instan" + + "ceGroupManagersStopInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -27818,23 +28830,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\231\001\n" - + ">region_instance_g" - + "roup_managers_stop_instances_request_resource\030\302\234\362\200\001" - + " \001(\0132H.google.cloud.compute.v" - + "1.RegionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + + ">region_in" + + "stance_group_managers_stop_instances_request_resource\030\302\234\362\200\001" + + " \001(\0132H.google.cloud.c" + + "ompute.v1.RegionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\354\014\n" + "\013StoragePool\022*\n" + "\032capacity_provisioning_type\030\207\212\375w \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022r\n" - + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001 \001(\0132@.google.cl" - + "oud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\003\210\001\001\022\020\n" + + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001 \001(\0132@.g" + + "oogle.cloud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022D\n" - + "\006labels\030\377\277\301\356\001 \003(\01320.goo" - + "gle.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\01320.google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022B\n" + "\006params\030\206\363\253%" + " \001(\0132*.google.cloud.compute.v1.StoragePoolParamsH\010\210\001\001\022.\n" @@ -27844,14 +28856,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022%\n" + "\025pool_provisioned_iops\030\227\311\2715 \001(\003H\013\210\001\001\022+\n" + "\033pool_provisioned_throughput\030\230\215\330P \001(\003H\014\210\001\001\022S\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\r" + + "\017resource_status\030\303\372\367v \001(\01322.google.c" + + "loud.compute.v1.StoragePoolResourceStatusH\r" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\017\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\020\210\001\001\022J\n" - + "\006status\030\362\237\267V \001(\01322.google.cloud.c" - + "ompute.v1.StoragePoolResourceStatusH\021\210\001\001\022\"\n" + + "\006status\030\362\237\267V \001(\01322.google" + + ".cloud.compute.v1.StoragePoolResourceStatusH\021\210\001\001\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tH\022\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\023\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -27890,8 +28902,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031StoragePoolAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.googl" - + "e.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2=.google.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -27900,8 +28912,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132/.googl" + + "e.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -27960,7 +28972,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\350\002\n" + "\024StoragePoolListDisks\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" @@ -27980,8 +28993,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\267\001\n" + "\021StoragePoolParams\022f\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud.co" - + "mpute.v1.StoragePoolParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google." + + "cloud.compute.v1.StoragePoolParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\220\010\n" @@ -28023,8 +29036,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"_total_provisioned_disk_throughput\"\347\007\n" + "\017StoragePoolType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*.goo" - + "gle.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001" + + "(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\0220\n" @@ -28061,8 +29074,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\265\003\n" + "\035StoragePoolTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.google.clou" - + "d.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.goo" + + "gle.cloud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -28070,8 +29083,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323." - + "google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28141,8 +29154,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005state\030\221\211\2534 \001(\tH\034\210\001\001\022/\n" + "$system_reserved_external_ipv6_ranges\030\341\210\223\037 \003(\t\0220\n" + "$system_reserved_internal_ipv6_ranges\030\323\230\221\316\001 \003(\t\022Z\n" - + "\023utilization_details\030\245\212\346; \001(\01325.go" - + "ogle.cloud.compute.v1.SubnetworkUtilizationDetailsH\035\210\001\001\"y\n" + + "\023utilization_details\030\245\212\346; " + + "\001(\01325.google.cloud.compute.v1.SubnetworkUtilizationDetailsH\035\210\001\001\"y\n" + "\016Ipv6AccessType\022\036\n" + "\032UNDEFINED_IPV6_ACCESS_TYPE\020\000\022\017\n" + "\010EXTERNAL\020\313\247\375\020\022\020\n" @@ -28219,8 +29232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_utilization_details\"\277\003\n" + "\030SubnetworkAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<" - + ".google.cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28229,12 +29242,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.c" - + "loud.compute.v1.SubnetworksScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132.." + + "google.cloud.compute.v1.SubnetworksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\245\002\n" + "\016SubnetworkList\022\020\n" @@ -28276,8 +29288,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_flow_samplingB\013\n" + "\t_metadata\"\265\001\n" + "\020SubnetworkParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.c" - + "ompute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google" + + ".cloud.compute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\275\001\n" @@ -28289,14 +29301,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_range_nameB\032\n" + "\030_reserved_internal_range\"\310\004\n" + "\034SubnetworkUtilizationDetails\022y\n" - + "\"external_ipv6_instance_utilization\030\334\302\223\310\001 \001(\0132D.google.cloud." - + "compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\000\210\001\001\022r\n" - + "\034external_ipv6_lb_utilization\030\275\227\217A \001(\0132D.google.cloud.comp" - + "ute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\001\210\001\001\022o\n" - + "\031internal_ipv6_utilization\030\214\312\236! \001(\0132D.google.cloud.compute.v1." - + "SubnetworkUtilizationDetailsIPV6UtilizationH\002\210\001\001\022b\n" - + "\021ipv4_utilizations\030\253\235\250b \003(\0132D" - + ".google.cloud.compute.v1.SubnetworkUtilizationDetailsIPV4UtilizationB%\n" + + "\"external_ipv6_instance_utilization\030\334\302\223\310\001 \001(\0132D.googl" + + "e.cloud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\000\210\001\001\022r\n" + + "\034external_ipv6_lb_utilization\030\275\227\217A \001(\0132D.google.cl" + + "oud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\001\210\001\001\022o\n" + + "\031internal_ipv6_utilization\030\214\312\236! \001(\0132D.google.cloud.com" + + "pute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\002\210\001\001\022b\n" + + "\021ipv4_utilizations\030\253\235\250b" + + " \003(\0132D.google.cloud.compute.v1.SubnetworkUtilizationDetailsIPV4UtilizationB%\n" + "#_external_ipv6_instance_utilizationB\037\n" + "\035_external_ipv6_lb_utilizationB\034\n" + "\032_internal_ipv6_utilization\"\306\001\n" @@ -28332,7 +29344,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*SubnetworksSetPrivateIpGoogleAccessRequest\022)\n" + "\030private_ip_google_access\030\316\350\375\310\001 \001(\010H\000\210\001\001B\033\n" + "\031_private_ip_google_access\"\177\n\n" - + "Subsetting\022\026\n" + + "Sub", + "setting\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\"N\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022!\n" @@ -28352,8 +29365,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+SuspendInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\221\001\n" + ":instance_group_managers_suspend_instances_request_resource\030\321\215\241\026" - + " \001(\0132E.google.cloud.compute.v1.I" - + "nstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132E.google.cloud.comp" + + "ute.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -28366,8 +29379,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" + "Aregion_instance_group_managers_suspend_instances_request_resource\030\374\345\224f" - + " \001(\0132K.google.cloud.compute.v1.RegionInstanceGro" - + "upManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132K.google.cloud.compute.v1.RegionIns" + + "tanceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\211\001\n" + " SwitchToCustomModeNetworkRequest\022\027\n" @@ -28411,8 +29424,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\006\210\001\001\022!\n" - + "\021self_link_with_id\030\202\254\235\025 \001", - "(\tH\007\210\001\001\022\030\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\007\210\001\001\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tH\010\210\001\001\022&\n" + "\026validate_for_proxyless\030\250\343\3060 \001(\010H\t\210\001\001B\025\n" + "\023_creation_timestampB\016\n" @@ -28440,8 +29452,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\256\001\n" + "\033TargetHttpProxiesScopedList\022H\n" - + "\023target_http_proxies\030\303\325\250M \003(\0132(" - + ".google.cloud.compute.v1.TargetHttpProxy\0229\n" + + "\023target_http_proxies\030\303\325\250M" + + " \003(\0132(.google.cloud.compute.v1.TargetHttpProxy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\353\003\n" @@ -28472,16 +29484,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\210\003\n" + "\035TargetHttpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.go" - + "ogle.cloud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132A.google.cloud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002" - + " \001(\01324.google.cloud.compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.google.cloud.comp" + + "ute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28571,8 +29583,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\322\003\n" + "\036TargetHttpsProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cloud.compute.v" - + "1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.c" + + "ompute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28581,8 +29593,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.google.cloud.comp" + + "ute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28590,8 +29602,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\261\002\n" + "\024TargetHttpsProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.TargetHttpsProxy\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132).google.cloud.compute.v1.TargetHttpsProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -28616,7 +29628,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tH\n" + "\210\001\001\"4\n" + "\tNatPolicy\022\030\n" - + "\024UNDEFINED_NAT_POLICY\020\000\022\r\n" + + "\024UNDEFINED_NAT_POLICY\020\000\022\r" + + "\n" + "\006NO_NAT\020\203\273\376LB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\005\n" @@ -28631,8 +29644,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\313\003\n" + "\034TargetInstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cloud.com" - + "pute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.c" + + "loud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28641,8 +29654,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google.cloud." + + "compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28650,8 +29663,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\255\002\n" + "\022TargetInstanceList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.TargetInstance\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132\'.google.cloud.compute.v1.TargetInstance\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -28666,8 +29679,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020target_instances\030\320\322\255\273\001" + " \003(\0132\'.google.cloud.compute.v1.TargetInstance\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\245\006\n\n" + "TargetPool\022\033\n" + "\013backup_pool\030\371\310\360\025 \001(\tH\000\210\001\001\022\"\n" @@ -28709,8 +29721,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_session_affinity\"\277\003\n" + "\030TargetPoolAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ " - + "\003(\0132<.google.cloud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28719,16 +29731,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..goo" - + "gle.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001" + + "(\0132..google.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"{\n" + "\030TargetPoolInstanceHealth\022@\n\r" - + "health_status\030\265\326\272\265\001 " - + "\003(\0132%.google.cloud.compute.v1.HealthStatus\022\024\n" + + "health_status\030\265\326\272\265\001" + + " \003(\0132%.google.cloud.compute.v1.HealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\245\002\n" + "\016TargetPoolList\022\020\n" @@ -28745,8 +29757,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"l\n" + " TargetPoolsAddHealthCheckRequest\022H\n\r" - + "health_checks\030\256\257\346\325\001 \003(\0132-.googl" - + "e.cloud.compute.v1.HealthCheckReference\"a\n" + + "health_checks\030\256\257\346\325\001 \003(\013" + + "2-.google.cloud.compute.v1.HealthCheckReference\"a\n" + "\035TargetPoolsAddInstanceRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"o\n" @@ -28834,7 +29846,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ProxyHeader\022\032\n" + "\026UNDEFINED_PROXY_HEADER\020\000\022\013\n" + "\004NONE\020\270\316\222\001\022\020\n" - + "\010PROXY_V1\020\254\244\267\237\001B\017\n\r" + + "\010PROXY_V1\020\254\244\267\237\001B\017\n" + + "\r" + "_proxy_header\"\350\003\n" + "\016TargetTcpProxy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -28863,8 +29876,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_service\"\314\003\n" + "\034TargetTcpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/" - + " \003(\0132@.google.cloud.compute.v1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v1" + + ".TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28873,8 +29886,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(" - + "\01323.google.cloud.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28901,12 +29914,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022I\n" - + "\006labels\030\377\277\301\356\001 \003(\01325.g" - + "oogle.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01325.google.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\006\210\001\001\022G\n" - + "\006params\030\206\363\253% \001(\0132/." - + "google.cloud.compute.v1.TargetVpnGatewayParamsH\007\210\001\001\022\026\n" + + "\006params\030\206\363\253%" + + " \001(\0132/.google.cloud.compute.v1.TargetVpnGatewayParamsH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\n" @@ -28934,8 +29947,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\321\003\n" + "\036TargetVpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cl" - + "oud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.g" + + "oogle.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28944,8 +29957,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.cloud" - + ".compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.goog" + + "le.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28966,14 +29979,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\301\001\n" + "\026TargetVpnGatewayParams\022k\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132H.go" - + "ogle.cloud.compute.v1.TargetVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 " + + "\003(\0132H.google.cloud.compute.v1.TargetVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\260\001\n" + "\033TargetVpnGatewaysScopedList\022J\n" - + "\023target_vpn_gateways\030\210\223\312\277\001" - + " \003(\0132).google.cloud.compute.v1.TargetVpnGateway\0229\n" + + "\023target_vpn_gateways\030\210\223\312\277\001 \003" + + "(\0132).google.cloud.compute.v1.TargetVpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\223\004\n" @@ -29002,19 +30016,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\323\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\323\001\n" + "#TestIamPermissionsAutoscalerRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" - + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\300\001\n" + "&TestIamPermissionsBackendBucketRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + + " \001(\0132/.google.cloud.comput", + "e.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + "\'TestIamPermissionsBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -29023,8 +30038,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035TestIamPermissionsDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" - + "e.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" + + "2/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\305\001\n" + "+TestIamPermissionsExternalVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" @@ -29033,13 +30048,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + "\'TestIamPermissionsFirewallPolicyRequest\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" - + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + "!TestIamPermissionsFirewallRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\300\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" + + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\300\001\n" + "&TestIamPermissionsGlobalAddressRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -29048,31 +30063,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$TestIamPermissionsHealthCheckRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + "\036TestIamPermissionsImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\326\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" + + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\326\001\n" + "&TestIamPermissionsInstanceGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" - + ".compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\321\001\n" + "!TestIamPermissionsInstanceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." - + "google.cloud.compute.v1.TestPermissionsR", - "equestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\303\001\n" + ")TestIamPermissionsInstanceTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\330\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "-TestIamPermissionsInstantSnapshotGroupRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\330\001\n" + "(TestIamPermissionsInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -29082,23 +30102,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "4TestIamPermissionsInterconnectAttachmentGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." + + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + "*TestIamPermissionsInterconnectGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + "$TestIamPermissionsLicenseCodeRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." - + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + " TestIamPermissionsLicenseRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\277\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\277\001\n" + "%TestIamPermissionsMachineImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -29108,19 +30128,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + "-TestIamPermissionsNetworkEndpointGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." + + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\310\001\n" + ".TestIamPermissionsNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + "\"TestIamPermissionsNodeGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -29137,106 +30157,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001" - + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\333\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\333\001\n" + ")TestIamPermissionsRegionAutoscalerRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." - + "compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\336\001\n" + + ",TestIamPermissionsRegionBackendBucketRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + "-TestIamPermissionsRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + "3TestIamPermissionsRegionCompositeHealthCheckRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001" - + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\350\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\350\001\n" + "6TestIamPermissionsRegionHealthAggregationPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + "*TestIamPermissionsRegionHealthCheckRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\343\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\343\001\n" + "1TestIamPermissionsRegionHealthCheckServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 " + + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + "+TestIamPermissionsRegionHealthSourceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\336\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\336\001\n" + ",TestIamPermissionsRegionInstanceGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" - + "ogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" - + ".TestIamPermissionsRegionInstantSnapshotRequest\022\027\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + + "3TestIamPermissionsRegionInstantSnapshotGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + + ".TestIamPermissionsRegionInstantSnapshotRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + "4TestIamPermissionsRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." + + "compute.v1.TestPermissionsRequestB\003\340A\002\"\345\001\n" + "3TestIamPermissionsRegionNotificationEndpointRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\372\001\n" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\331\001\n" + + "\'TestIamPermissionsRegionSnapshotRequest\022\027\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\372\001\n" + ")TestIamPermissionsReservationBlockRequest\022\037\n" + "\017parent_resource\030\203\230\320\010 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" - + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\324\001\n" + "$TestIamPermissionsReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\375\001\n" + ",TestIamPermissionsReservationSubBlockRequest\022\037\n" + "\017parent_resource\030\203\230\320\010 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" - + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\331\001\n" + "\'TestIamPermissionsResourcePolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" - + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\270\001\n" + "\036TestIamPermissionsRouteRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -29246,18 +30284,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + "!TestIamPermissionsSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" - + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + "$TestIamPermissionsStoragePoolRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." - + "compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\325\001\n" + "#TestIamPermissionsSubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" @@ -29280,24 +30318,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'TestIamPermissionsTargetSslProxyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + "\'TestIamPermissionsTargetTcpProxyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\271\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." + + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\271\001\n" + "\037TestIamPermissionsUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + "\026TestPermissionsRequest\022\026\n" + "\013permissions\030\204\351\313\034 \003(\t\"1\n" + "\027TestPermissionsResponse\022\026\n" @@ -29366,10 +30404,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\372\001\n" + "\027UpdateAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b" - + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b \001(\013" + + "2#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -29377,8 +30416,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\334\001\n" + "\032UpdateBackendBucketRequest\022\036\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&.go" - + "ogle.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001" + + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -29406,8 +30445,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\016\n" + "\014_update_mask\"\373\001\n" + "\"UpdateDisplayDeviceInstanceRequest\022P\n" - + "\027display_device_resource\030\332\204\221\212\001 \001(\0132&.goo" - + "gle.cloud.compute.v1.DisplayDeviceB\003\340A\002\022\030\n" + + "\027display_device_resource\030\332\204\221\212\001" + + " \001(\0132&.google.cloud.compute.v1.DisplayDeviceB\003\340A\002\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -29421,13 +30460,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.FirewallB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\267\002\n" + "\036UpdateFutureReservationRequest\022\"\n" + "\022future_reservation\030\320\306\346\032 \001(\tB\003\340A\002\022X\n" - + "\033future_reservation_resource\030\235\230\310\336\001" - + " \001(\0132*.google.cloud.compute.v1.FutureReservationB\003\340A\002\022!\n" + + "\033future_reservation_resource\030\235\230\310\336\001 \001(\0132*.goo" + + "gle.cloud.compute.v1.FutureReservationB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -29463,6 +30501,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_discard_local_ssdB\021\n" + "\017_minimal_actionB!\n" + "\037_most_disruptive_allowed_actionB\r\n" + + "\013_request_id\"\202\002\n" + + "\027UpdateKmsKeyDiskRequest\022\024\n" + + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022f\n" + + "$disk_update_kms_key_request_resource\030\340\353\361T" + + " \001(\01320.google.cloud.compute.v1.DiskUpdateKmsKeyRequestB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004z", + "oneB\r\n" + + "\013_request_id\"\231\002\n" + + "\035UpdateKmsKeyRegionDiskRequest\022\024\n" + + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022s\n" + + "+region_disk_update_kms_key_request_resource\030\313\250\343\004 \001(\01326" + + ".google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestB\003\340A\002\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "\013_request_id\"\253\002\n" + + "!UpdateKmsKeyRegionSnapshotRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\037\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022|\n" + + "/region_snapshot_update_kms_key_request_resource\030\362\245\234\205\001" + + " \001(\0132:.google.c" + + "loud.compute.v1.RegionSnapshotUpdateKmsKeyRequestB\003\340A\002\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n" + + "\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002B\r\n" + + "\013_request_id\"\366\001\n" + + "\033UpdateKmsKeySnapshotRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n" + + "\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002\022n\n" + + "(snapshot_update_kms_key_request_resource\030\207\304\2271" + + " \001(\01324.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestB\003\340A\002B\r" + + "\n" + "\013_request_id\"\360\001\n" + "\024UpdateLicenseRequest\022\027\n" + "\007license\030\301\210\302O \001(\tB\003\340A\002\022C\n" @@ -29477,8 +30554,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%UpdateNetworkInterfaceInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022V\n" - + "\032network_interface_resource\030\205\224\256\233\001 \001(\0132).go" - + "ogle.cloud.compute.v1.NetworkInterfaceB\003\340A\002\022!\n" + + "\032network_interface_resource\030\205\224\256\233\001 \001(\013" + + "2).google.cloud.compute.v1.NetworkInterfaceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -29487,8 +30564,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\365\001\n" + "\033UpdatePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022o\n" - + "(networks_update_peering_request_resource\030\331\252\202k" - + " \001(\01325.google.cloud.compute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + + "(networks_update_peering_request_resource\030\331\252\202k \001(\01325.google.cloud" + + ".compute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -29496,8 +30573,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "3UpdatePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n" + "@instance_group_managers_update_per_instance_configs_req_resource\030\276\301\266C" - + " \001(\0132I.google.cloud.compute.v1.I" - + "nstanceGroupManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132I.google.cloud.compute" + + ".v1.InstanceGroupManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -29510,14 +30587,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "Aregion_instance_group_manager_update_instance_config_req_resource\030\247\256\272*" - + " \001(\0132J.google.cloud.compute.v1.Regio" - + "nInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132J.google.cloud.compute.v1." + + "RegionInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\340\001\n" + "\033UpdatePreviewFeatureRequest\022 \n" + "\017preview_feature\030\377\372\372\330\001 \001(\tB\003\340A\002\022Q\n" - + "\030preview_feature_resource\030\316\355\227\005 \001(\0132\'.go" - + "ogle.cloud.compute.v1.PreviewFeatureB\003\340A\002\022!\n" + + "\030preview_feature_resource\030\316\355\227\005 \001(\013" + + "2\'.google.cloud.compute.v1.PreviewFeatureB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -29548,8 +30625,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001B\010\n" + "\006_pathsB\r\n" @@ -29574,8 +30650,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002", - "\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\347\001\n" + "\031UpdateRegionUrlMapRequest\022!\n" @@ -29628,16 +30703,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n" + "\017router_resource\030\304\200\202J" - + " \001(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r" - + "\n" + + " \001(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + "\013_request_id\"\227\002\n" + "+UpdateShieldedInstanceConfigInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022c\n" - + "!shielded_instance_config_resource\030\330\226\335\201\001 \001(\0132/." - + "google.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + + "!shielded_instance_config_resource\030\330\226\335\201\001 \001" + + "(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\237\002\n" @@ -29660,6 +30734,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n" + "\020url_map_resource\030\341\220\267P" + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\013_request_id\"\220\002\n" + + "\"UpdateZoneVmExtensionPolicyRequest\022!\n" + + "\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022$\n" + + "\023vm_extension_policy\030\272\223\213\236\001 \001(\tB\003\340A\002\022Y\n" + + "\034vm_extension_policy_resource\030\363\371\361\365\001" + + " \001(\0132*.google.cloud.compute.v1.VmExtensionPolicyB\003\340A\002\022\033\n" + + "\004zone\030\254\307\344\001 \001(\tB\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\362\007\n" + "\006UrlMap\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022h\n" @@ -29915,6 +30999,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + + "\010_warning\"\275\007\n" + + "\021VmExtensionPolicy\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022`\n" + + "\022extension_policies\030\320\272\315l \003(\0132A.google.cloud.compute.v1" + + ".VmExtensionPolicy.ExtensionPoliciesEntry\022%\n" + + "\024global_resource_link\030\357\363\250\366\001 \001(\tH\002\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\004H\003\210\001\001\022Z\n" + + "\022instance_selectors\030\312\302\214\370\001" + + " \003(\0132:.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + + "\021managed_by_global\030\353\207\240* \001(\010H\005\210\001\001\022\024\n" + + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\031\n" + + "\010priority\030\244\363\241\324\001 \001(\005H\007\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022\025\n" + + "\005state\030\221\211\2534 \001(\tH\n" + + "\210\001\001\022 \n" + + "\020update_timestamp\030\240\352\3229 \001(\tH\013\210\001\001\032s\n" + + "\026ExtensionPoliciesEntry\022\013\n" + + "\003key\030\001 \001(\t\022H\n" + + "\005value\030\002 \001(\01329.google." + + "cloud.compute.v1.VmExtensionPolicyExtensionPolicy:\0028\001\"Y\n" + + "\005State\022\023\n" + + "\017UNDEFINED_STATE\020\000\022\016\n" + + "\006ACTIVE\020\206\346\211\226\001\022\020\n" + + "\010DELETING\020\250\247\207\374\001\022\031\n" + + "\021STATE_UNSPECIFIED\020\311\320\274\340\001B\025\n" + + "\023_creation_timestampB\016\n" + + "\014_descriptionB\027\n" + + "\025_global_resource_linkB\005\n" + + "\003_idB\007\n" + + "\005_kindB\024\n" + + "\022_managed_by_globalB\007\n" + + "\005_nameB\013\n" + + "\t_priorityB\014\n\n" + + "_self_linkB\024\n" + + "\022_self_link_with_idB\010\n" + + "\006_stateB\023\n" + + "\021_update_timestamp\"\210\001\n" + + " VmExtensionPolicyExtensionPolicy\022\037\n" + + "\016pinned_version\030\361\376\345\324\001 \001(\tH\000\210\001\001\022\036\n\r" + + "string_config\030\260\266\210\230\001 \001(\tH\001\210\001\001B\021\n" + + "\017_pinned_versionB\020\n" + + "\016_string_config\"\220\001\n" + + "!VmExtensionPolicyInstanceSelector\022X\n" + + "\016label_selector\030\312\361\344\246\001 \001(\01327.google.cloud.comp" + + "ute.v1.VmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + + "\017_label_selector\"\304\001\n" + + "\036VmExtensionPolicyLabelSelector\022j\n" + + "\020inclusion_labels\030\202\331\205\357\001" + + " \003(\0132L.google.cloud.compute.v1.VmExten" + + "sionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + + "\024InclusionLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\353\002\n" + + "\025VmExtensionPolicyList\022\024\n" + + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.VmExtensionPolicy\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" + + "\014unreachables\030\237\240\206t \003(\t\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\005\210\001\001B\007\n" + + "\005_etagB\005\n" + + "\003_idB\007\n" + + "\005_kindB\022\n" + + "\020_next_page_tokenB\014\n\n" + + "_self_linkB\n\n" + "\010_warning\"\240\007\n\n" + "VpnGateway\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" @@ -29923,18 +31079,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022C\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132/.google.cloud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\0132/" + + ".google.cloud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022A\n" - + "\006params\030\206\363\253%" - + " \001(\0132).google.cloud.compute.v1.VpnGatewayParamsH\010\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001(\0132).goog" + + "le.cloud.compute.v1.VpnGatewayParamsH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\013\210\001\001\022Q\n" - + "\016vpn_interfaces\030\205\315\345+" - + " \003(\01326.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + + "\016vpn_interfaces\030\205\315\345+ \003(\01326.google.c" + + "loud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"N\n" @@ -29958,24 +31114,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\n\n" + "\010_networkB\t\n" + "\007_paramsB\t\n" - + "\007_regionB\014\n" - + "\n" + + "\007_regionB\014\n\n" + "_self_linkB\r\n" + "\013_stack_type\"\277\003\n" + "\030VpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud.co" + + "mpute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.W", + "arningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001" - + "(\0132..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -29991,12 +31146,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\265\001\n" + "\020VpnGatewayParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cl" - + "oud.compute.v1.VpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132" + + "B.google.cloud.compute.v1.VpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"g\n" @@ -30027,10 +31183,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035VpnGatewayStatusVpnConnection\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\000\210\001\001\022!\n" + "\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001\001\022`\n" - + "\005state\030\221\211\2534 \001(\0132I.google.cloud.compute.v1" - + ".VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" - + "\007tunnels\030\213\372\3551 \003(\0132/.goo" - + "gle.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + + "\005state\030\221\211\2534 \001(\0132I.google.cloud" + + ".compute.v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + + "\007tunnels\030\213\372\3551" + + " \003(\0132/.google.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + "\026_peer_external_gatewayB\023\n" + "\021_peer_gcp_gatewayB\010\n" + "\006_state\"\332\001\n" @@ -30050,14 +31206,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132).google.cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + "\007_result\"\234\001\n" + "\025VpnGatewaysScopedList\022<\n" - + "\014vpn_gateways\030\232\373\312{ \003" - + "(\0132#.google.cloud.compute.v1.VpnGateway\0229\n" + + "\014vpn_gateways\030\232\373\312{" + + " \003(\0132#.google.cloud.compute.v1.VpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\307\r\n" + "\tVpnTunnel\022L\n" - + "\014cipher_suite\030\304\327\316\323\001 \001(\0132-.google." - + "cloud.compute.v1.VpnTunnelCipherSuiteH\000\210\001\001\022\"\n" + + "\014cipher_suite\030\304\327\316\323\001 \001(" + + "\0132-.google.cloud.compute.v1.VpnTunnelCipherSuiteH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022 \n" + "\017detailed_status\030\341\244\203\237\001 \001(\tH\003\210\001\001\022\020\n" @@ -30065,8 +31221,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ike_version\030\234\320\220h \001(\005H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\007\210\001\001\022B\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132..google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + + "\006labels\030\377\277\301\356\001 \003(\0132.." + + "google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + "\026local_traffic_selector\030\265\254\247\227\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022@\n" + "\006params\030\206\363\253% \001(\0132(.google.cloud.compute.v1.VpnTunnelParamsH" @@ -30121,8 +31277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_peer_gcp_gatewayB\n\n" + "\010_peer_ipB\t\n" + "\007_regionB\t\n" - + "\007_routerB\014\n" - + "\n" + + "\007_routerB\014\n\n" + "_self_linkB\020\n" + "\016_shared_secretB\025\n" + "\023_shared_secret_hashB\t\n" @@ -30132,8 +31287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_vpn_gateway_interface\"\274\003\n" + "\027VpnTunnelAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132;.googl" - + "e.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132;.google.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -30142,18 +31297,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032[\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002" - + " \001(\0132-.google.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132-.goog" + + "le.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\304\001\n" + "\024VpnTunnelCipherSuite\022J\n" - + "\006phase1\030\226\314\230(" - + " \001(\01322.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsH\000\210\001\001\022J\n" - + "\006phase2\030\227\314\230(" - + " \001(\01322.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsH\001\210\001\001B\t\n" + + "\006phase1\030\226\314\230( \001(\01322.google." + + "cloud.compute.v1.VpnTunnelPhase1AlgorithmsH\000\210\001\001\022J\n" + + "\006phase2\030\227\314\230( \001(\01322.google.clou" + + "d.compute.v1.VpnTunnelPhase2AlgorithmsH\001\210\001\001B\t\n" + "\007_phase1B\t\n" + "\007_phase2\"\243\002\n\r" + "VpnTunnelList\022\020\n" @@ -30170,8 +31325,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\263\001\n" + "\017VpnTunnelParams\022d\n" - + "\025resource_manager_tags\030\374\233\213\264\001 " - + "\003(\0132A.google.cloud.compute.v1.VpnTunnelParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132A.google.cloud.compute.v1" + + ".VpnTunnelParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"e\n" @@ -30187,12 +31342,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024VpnTunnelsScopedList\022:\n" + "\013vpn_tunnels\030\300\361\372M \003(\0132\".google.cloud.compute.v1.VpnTunnel\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n" + "\010_warning\"\214\001\n" + "\020WafExpressionSet\022\022\n" + "\007aliases\030\376\235\365K \003(\t\022K\n" - + "\013expressions\030\333\201\333S" - + " \003(\01323.google.cloud.compute.v1.WafExpressionSetExpression\022\020\n" + + "\013expressions\030\333\201\333S \003(\01323.go" + + "ogle.cloud.compute.v1.WafExpressionSetExpression\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001B\005\n" + "\003_id\"b\n" + "\032WafExpressionSetExpression\022\020\n" @@ -30219,8 +31375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Code\022\022\n" + "\016UNDEFINED_CODE\020\000\022\025\n" + "\016CLEANUP_FAILED\020\330\214\326G\022 \n" - + "\030DEPRECATED_RESOURCE_USED", - "\020\302\337\353\272\001\022\034\n" + + "\030DEPRECATED_RESOURCE_USED\020\302\337\353\272\001\022\034\n" + "\024DEPRECATED_TYPE_USED\020\226\244\236\245\001\022(\n" + " DISK_SIZE_LARGER_THAN_IMAGE_SIZE\020\227\201\225\260\001\022\036\n" + "\026EXPERIMENTAL_TYPE_USED\020\213\216\301\327\001\022\033\n" @@ -30298,11 +31453,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_weight\"\366\001\n" + "\004Wire\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022<\n" - + "\tendpoints\030\376\252\362\210\001" - + " \003(\0132%.google.cloud.compute.v1.WireEndpoint\022\025\n" + + "\tendpoints\030\376\252\362\210\001 \003" + + "(\0132%.google.cloud.compute.v1.WireEndpoint\022\025\n" + "\005label\030\364\375\3750 \001(\tH\001\210\001\001\022I\n" - + "\017wire_properties\030\255\272\304\220\001 \001" - + "(\0132\'.google.cloud.compute.v1.WirePropertiesH\002\210\001\001B\020\n" + + "\017wire_properties\030\255\272\304\220\001" + + " \001(\0132\'.google.cloud.compute.v1.WirePropertiesH\002\210\001\001B\020\n" + "\016_admin_enabledB\010\n" + "\006_labelB\022\n" + "\020_wire_properties\"e\n" @@ -30329,8 +31484,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005wires\030\216\301\3715 \003(\0132\035.google.cloud.compute.v1.Wire\032\\\n" + "\016EndpointsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002" - + " \001(\0132*.google.cloud.compute.v1.WireGroupEndpoint:\0028\001B\020\n" + + "\005value\030\002 \001(\0132*.g" + + "oogle.cloud.compute.v1.WireGroupEndpoint:\0028\001B\020\n" + "\016_admin_enabledB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\005\n" @@ -30342,12 +31497,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_topologyB\022\n" + "\020_wire_properties\"\333\001\n" + "\021WireGroupEndpoint\022X\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132=.google.clo" - + "ud.compute.v1.WireGroupEndpoint.InterconnectsEntry\032l\n" + + "interconnects\030\245\333\205\370\001 \003(\0132=" + + ".google.cloud.compute.v1.WireGroupEndpoint.InterconnectsEntry\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.google.cloud.comp" - + "ute.v1.WireGroupEndpointInterconnect:\0028\001\"e\n" + + "\005value\030\002 \001(\01326.google" + + ".cloud.compute.v1.WireGroupEndpointInterconnect:\0028\001\"e\n" + "\035WireGroupEndpointInterconnect\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001\022\025\n" + "\tvlan_tags\030\365\232\262\267\001 \003(\005B\017\n\r" @@ -30369,8 +31524,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"^\n" + "\021WireGroupTopology\022I\n" - + "\tendpoints\030\376\252\362\210\001" - + " \003(\01322.google.cloud.compute.v1.WireGroupTopologyEndpoint\"[\n" + + "\tendpoints\030\376\252\362\210\001 \003(\01322.google.cl" + + "oud.compute.v1.WireGroupTopologyEndpoint\"[\n" + "\031WireGroupTopologyEndpoint\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\000\210\001\001\022\025\n" + "\005label\030\364\375\3750 \001(\tH\001\210\001\001B\007\n" @@ -30474,8 +31629,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\315\001\n" + "\024ZoneSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01329.google.cloud.compute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\01329.google.cloud.co" + + "mpute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -30497,1910 +31652,2002 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\t\n" + "\007_policy2\263\006\n" + "\020AcceleratorTypes\022\326\001\n" - + "\016AggregatedList\022>.google.cloud.compute.v1.AggregatedListAcceleratorTyp" - + "esRequest\0326.google.cloud.compute.v1.Acce" - + "leratorTypeAggregatedList\"L\332A\007project\202\323\344" - + "\223\002<\022:/compute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" - + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequ" - + "est\032(.google.cloud.compute.v1.Accelerato" - + "rType\"w\332A\035project,zone,accelerator_type\202" - + "\323\344\223\002Q\022O/compute/v1/projects/{project}/zo" - + "nes/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" - + "\004List\0224.google.cloud.compute.v1.ListAcceleratorTypesRequest\032,.google.c" - + "loud.compute.v1.AcceleratorTypeList\"S\332A\014" - + "project,zone\202\323\344\223\002>\022.google.cloud.compute.v1.AggregatedListAcc" + + "eleratorTypesRequest\0326.google.cloud.comp" + + "ute.v1.AcceleratorTypeAggregatedList\"L\332A" + + "\007project\202\323\344\223\002<\022:/compute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" + + "\003Get\0222.google.cloud.compute.v1.GetAccelera" + + "torTypeRequest\032(.google.cloud.compute.v1" + + ".AcceleratorType\"w\332A\035project,zone,accele" + + "rator_type\202\323\344\223\002Q\022O/compute/v1/projects/{" + + "project}/zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" + + "\004List\0224.google.cloud.compute.v1.ListAcceleratorTypesRequest" + + "\032,.google.cloud.compute.v1.AcceleratorTy" + + "peList\"S\332A\014project,zone\202\323\344\223\002>\022p" - + "roject,zone,disk,disks_add_resource_poli" - + "cies_request_resource\212N\016ZoneOperations\202\323" - + "\344\223\002|\"L/compute/v1/projects/{project}/zon" - + "es/{zone}/disks/{disk}/addResourcePolici" - + "es:,disks_add_resource_policies_request_" - + "resource\022\265\001\n\016AggregatedList\0223.google.clo" - + "ud.compute.v1.AggregatedListDisksRequest" - + "\032+.google.cloud.compute.v1.DiskAggregate" - + "dList\"A\332A\007project\202\323\344\223\0021\022//compute/v1/pro" - + "jects/{project}/aggregated/disks\022\216\002\n\nBul" - + "kInsert\022..google.cloud.compute.v1.BulkIn" - + "sertDiskRequest\032\".google.cloud.compute.v" - + "1.Operation\"\253\001\332A/project,zone,bulk_inser" - + "t_disk_resource_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002b\"project,zone," + + "disk,disks_add_resource_policies_request" + + "_resource\212N\016ZoneOperations\202\323\344\223\002|\"L/compu" + + "te/v1/projects/{project}/zones/{zone}/di" + + "sks/{disk}/addResourcePolicies:,disks_ad" + + "d_resource_policies_request_resource\022\265\001\n" + + "\016AggregatedList\0223.google.cloud.compute.v" + + "1.AggregatedListDisksRequest\032+.google.cl" + + "oud.compute.v1.DiskAggregatedList\"A\332A\007pr" + + "oject\202\323\344\223\0021\022//compute/v1/projects/{proje" + + "ct}/aggregated/disks\022\216\002\n\nBulkInsert\022..go" + + "ogle.cloud.compute.v1.BulkInsertDiskRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\253\001\332A/project,zone,bulk_insert_disk_resou" + + "rce_resource\212N\016ZoneOperations\202\323\344\223\002b\".google.cloud.compu" - + "te.v1.ListAssociationsFirewallPolicyRequ" - + "est\032A.google.cloud.compute.v1.FirewallPo" - + "liciesListAssociationsResponse\"I\332A\000\202\323\344\223\002" - + "@\022>/compute/v1/locations/global/firewall" - + "Policies/listAssociations\022\350\001\n\004Move\0222.goo" - + "gle.cloud.compute.v1.MoveFirewallPolicyR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\207\001\332A\031firewall_policy,parent_id\212N\034Glob" - + "alOrganizationOperations\202\323\344\223\002F\"D/compute" - + "/v1/locations/global/firewallPolicies/{f" - + "irewall_policy}/move\022\216\002\n\005Patch\0223.google." - + "cloud.compute.v1.PatchFirewallPolicyRequ", - "est\032\".google.cloud.compute.v1.Operation\"" - + "\253\001\332A(firewall_policy,firewall_policy_res" + + "/stopAsyncReplication\022\340\002\n\031StopGroupAsync" + + "Replication\022=.google.cloud.compute.v1.St" + + "opGroupAsyncReplicationDiskRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\337\001\332AAproj" + + "ect,zone,disks_stop_group_async_replicat" + + "ion_resource_resource\212N\016ZoneOperations\202\323" + + "\344\223\002\203\001\"K/compute/v1/projects/{project}/zo" + + "nes/{zone}/disks/stopGroupAsyncReplicati" + + "on:4disks_stop_group_async_replication_r" + + "esource_resource\022\265\002\n\022TestIamPermissions\022" + + "6.google.cloud.compute.v1.TestIamPermiss" + + "ionsDiskRequest\0320.google.cloud.compute.v" + + "1.TestPermissionsResponse\"\264\001\332A7project,z" + + "one,resource,test_permissions_request_re" + + "source\202\323\344\223\002t\"O/compute/v1/projects/{proj" + + "ect}/zones/{zone}/disks/{resource}/testI" + + "amPermissions:!test_permissions_request_" + + "resource\022\335\001\n\006Update\022*.google.cloud.compu" + + "te.v1.UpdateDiskRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\202\001\332A\037project,zone,di" + + "sk,disk_resource\212N\016ZoneOperations\202\323\344\223\002I2" + + "8/compute/v1/projects/{project}/zones/{z" + + "one}/disks/{disk}:\rdisk_resource\022\244\002\n\014Upd" + + "ateKmsKey\0220.google.cloud.compute.v1.Upda" + + "teKmsKeyDiskRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\275\001\332A6project,zone,disk,d" + + "isk_update_kms_key_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002m\"E/compute/v1/projects" + + "/{project}/zones/{zone}/disks/{disk}/upd" + + "ateKmsKey:$disk_update_kms_key_request_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\251\r\n\023ExternalVpnGateways\022\363\001\n\006Delete\0228" + + ".google.cloud.compute.v1.DeleteExternalV" + + "pnGatewayRequest\032\".google.cloud.compute." + + "v1.Operation\"\212\001\332A\034project,external_vpn_g" + + "ateway\212N\020GlobalOperations\202\323\344\223\002R*P/comput" + + "e/v1/projects/{project}/global/externalV" + + "pnGateways/{external_vpn_gateway}\022\342\001\n\003Ge" + + "t\0225.google.cloud.compute.v1.GetExternalV" + + "pnGatewayRequest\032+.google.cloud.compute." + + "v1.ExternalVpnGateway\"w\332A\034project,extern" + + "al_vpn_gateway\202\323\344\223\002R\022P/compute/v1/projec" + + "ts/{project}/global/externalVpnGateways/" + + "{external_vpn_gateway}\022\204\002\n\006Insert\0228.goog" + + "le.cloud.compute.v1.InsertExternalVpnGat" + + "ewayRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\233\001\332A%project,external_vpn_gatewa" + + "y_resource\212N\020GlobalOperations\202\323\344\223\002Z\"9/co" + + "mpute/v1/projects/{project}/global/exter" + + "nalVpnGateways:\035external_vpn_gateway_res" + + "ource\022\275\001\n\004List\0227.google.cloud.compute.v1" + + ".ListExternalVpnGatewaysRequest\032/.google" + + ".cloud.compute.v1.ExternalVpnGatewayList" + + "\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/projects" + + "/{project}/global/externalVpnGateways\022\262\002" + + "\n\tSetLabels\022;.google.cloud.compute.v1.Se" + + "tLabelsExternalVpnGatewayRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\303\001\332A3projec" + + "t,resource,global_set_labels_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002t\"N/compute" + + "/v1/projects/{project}/global/externalVp" + + "nGateways/{resource}/setLabels:\"global_s" + + "et_labels_request_resource\022\306\002\n\022TestIamPe" + + "rmissions\022D.google.cloud.compute.v1.Test" + + "IamPermissionsExternalVpnGatewayRequest\032" + + "0.google.cloud.compute.v1.TestPermission" + + "sResponse\"\267\001\332A2project,resource,test_per" + + "missions_request_resource\202\323\344\223\002|\"W/comput" + + "e/v1/projects/{project}/global/externalV" + + "pnGateways/{resource}/testIamPermissions" + + ":!test_permissions_request_resource\032r\312A\026" + + "compute.googleapis.com\322AVhttps://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platform2\225$\n\020Fire" + + "wallPolicies\022\307\002\n\016AddAssociation\022<.google" + + ".cloud.compute.v1.AddAssociationFirewall" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"\322\001\332A4firewall_policy,firewall_" + + "policy_association_resource\212N\034GlobalOrga" + + "nizationOperations\202\323\344\223\002v\"N/compute/v1/lo" + + "cations/global/firewallPolicies/{firewal" + + "l_policy}/addAssociation:$firewall_polic" + + "y_association_resource\022\244\002\n\007AddRule\0225.goo" + + "gle.cloud.compute.v1.AddRuleFirewallPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\275\001\332A-firewall_policy,firewall_poli" + + "cy_rule_resource\212N\034GlobalOrganizationOpe" + + "rations\202\323\344\223\002h\"G/compute/v1/locations/glo" + + "bal/firewallPolicies/{firewall_policy}/a" + + "ddRule:\035firewall_policy_rule_resource\022\360\001" + + "\n\nCloneRules\0228.google.cloud.compute.v1.C" + + "loneRulesFirewallPolicyRequest\032\".google." + + "cloud.compute.v1.Operation\"\203\001\332A\017firewall" + + "_policy\212N\034GlobalOrganizationOperations\202\323" + + "\344\223\002L\"J/compute/v1/locations/global/firew" + + "allPolicies/{firewall_policy}/cloneRules" + + "\022\334\001\n\006Delete\0224.google.cloud.compute.v1.De" + + "leteFirewallPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"x\332A\017firewall_polic" + + "y\212N\034GlobalOrganizationOperations\202\323\344\223\002A*?" + + "/compute/v1/locations/global/firewallPol" + + "icies/{firewall_policy}\022\274\001\n\003Get\0221.google" + + ".cloud.compute.v1.GetFirewallPolicyReque" + + "st\032\'.google.cloud.compute.v1.FirewallPol" + + "icy\"Y\332A\017firewall_policy\202\323\344\223\002A\022?/compute/" + + "v1/locations/global/firewallPolicies/{fi" + + "rewall_policy}\022\354\001\n\016GetAssociation\022<.goog" + + "le.cloud.compute.v1.GetAssociationFirewa" + + "llPolicyRequest\0322.google.cloud.compute.v" + + "1.FirewallPolicyAssociation\"h\332A\017firewall" + + "_policy\202\323\344\223\002P\022N/compute/v1/locations/glo" + + "bal/firewallPolicies/{firewall_policy}/g" + + "etAssociation\022\305\001\n\014GetIamPolicy\022:.google." + + "cloud.compute.v1.GetIamPolicyFirewallPol" + + "icyRequest\032\037.google.cloud.compute.v1.Pol" + + "icy\"X\332A\010resource\202\323\344\223\002G\022E/compute/v1/loca" + + "tions/global/firewallPolicies/{resource}" + + "/getIamPolicy\022\320\001\n\007GetRule\0225.google.cloud" + + ".compute.v1.GetRuleFirewallPolicyRequest" + + "\032+.google.cloud.compute.v1.FirewallPolic" + + "yRule\"a\332A\017firewall_policy\202\323\344\223\002I\022G/comput" + + "e/v1/locations/global/firewallPolicies/{" + + "firewall_policy}/getRule\022\370\001\n\006Insert\0224.go" + + "ogle.cloud.compute.v1.InsertFirewallPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\223\001\332A\"parent_id,firewall_policy_res" + "ource\212N\034GlobalOrganizationOperations\202\323\344\223" - + "\002[2?/compute/v1/locations/global/firewal" - + "lPolicies/{firewall_policy}:\030firewall_po" - + "licy_resource\022\252\002\n\tPatchRule\0227.google.clo" - + "ud.compute.v1.PatchRuleFirewallPolicyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\277\001\332A-firewall_policy,firewall_policy_ru" - + "le_resource\212N\034GlobalOrganizationOperatio" - + "ns\202\323\344\223\002j\"I/compute/v1/locations/global/f" - + "irewallPolicies/{firewall_policy}/patchR" - + "ule:\035firewall_policy_rule_resource\022\205\002\n\021R" - + "emoveAssociation\022?.google.cloud.compute." - + "v1.RemoveAssociationFirewallPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\212\001" - + "\332A\017firewall_policy\212N\034GlobalOrganizationO" - + "perations\202\323\344\223\002S\"Q/compute/v1/locations/g" - + "lobal/firewallPolicies/{firewall_policy}" - + "/removeAssociation\022\360\001\n\nRemoveRule\0228.goog" - + "le.cloud.compute.v1.RemoveRuleFirewallPo" - + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\203\001\332A\017firewall_policy\212N\034GlobalOrg" - + "anizationOperations\202\323\344\223\002L\"J/compute/v1/l" - + "ocations/global/firewallPolicies/{firewa" - + "ll_policy}/removeRule\022\247\002\n\014SetIamPolicy\022:" - + ".google.cloud.compute.v1.SetIamPolicyFir" - + "ewallPolicyRequest\032\037.google.cloud.comput" - + "e.v1.Policy\"\271\001\332A8resource,global_organiz" - + "ation_set_policy_request_resource\202\323\344\223\002x\"" - + "E/compute/v1/locations/global/firewallPo" - + "licies/{resource}/setIamPolicy:/global_o" - + "rganization_set_policy_request_resource\022" - + "\256\002\n\022TestIamPermissions\022@.google.cloud.co" - + "mpute.v1.TestIamPermissionsFirewallPolic" - + "yRequest\0320.google.cloud.compute.v1.TestP" - + "ermissionsResponse\"\243\001\332A*resource,test_pe" - + "rmissions_request_resource\202\323\344\223\002p\"K/compu" - + "te/v1/locations/global/firewallPolicies/" - + "{resource}/testIamPermissions:!test_perm" - + "issions_request_resource\032r\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform2\204\r\n\tFirewalls\022\306\001\n\006D" - + "elete\022..google.cloud.compute.v1.DeleteFi" - + "rewallRequest\032\".google.cloud.compute.v1." - + "Operation\"h\332A\020project,firewall\212N\020GlobalO" - + "perations\202\323\344\223\002<*:/compute/v1/projects/{p" - + "roject}/global/firewalls/{firewall}\022\254\001\n\003" - + "Get\022+.google.cloud.compute.v1.GetFirewal" - + "lRequest\032!.google.cloud.compute.v1.Firew" - + "all\"U\332A\020project,firewall\202\323\344\223\002<\022:/compute" - + "/v1/projects/{project}/global/firewalls/" - + "{firewall}\022\327\001\n\006Insert\022..google.cloud.com" - + "pute.v1.InsertFirewallRequest\032\".google.c" - + "loud.compute.v1.Operation\"y\332A\031project,fi" - + "rewall_resource\212N\020GlobalOperations\202\323\344\223\002D" - + "\"//compute/v1/projects/{project}/global/" - + "firewalls:\021firewall_resource\022\237\001\n\004List\022-." - + "google.cloud.compute.v1.ListFirewallsReq" - + "uest\032%.google.cloud.compute.v1.FirewallL" - + "ist\"A\332A\007project\202\323\344\223\0021\022//compute/v1/proje" - + "cts/{project}/global/firewalls\022\352\001\n\005Patch" - + "\022-.google.cloud.compute.v1.PatchFirewall" + + "\002I\"-/compute/v1/locations/global/firewal" + + "lPolicies:\030firewall_policy_resource\022\243\001\n\004" + + "List\0224.google.cloud.compute.v1.ListFirew" + + "allPoliciesRequest\032+.google.cloud.comput" + + "e.v1.FirewallPolicyList\"8\332A\000\202\323\344\223\002/\022-/com" + + "pute/v1/locations/global/firewallPolicie" + + "s\022\340\001\n\020ListAssociations\022>.google.cloud.co" + + "mpute.v1.ListAssociationsFirewallPolicyR" + + "equest\032A.google.cloud.compute.v1.Firewal" + + "lPoliciesListAssociationsResponse\"I\332A\000\202\323" + + "\344\223\002@\022>/compute/v1/locations/global/firew" + + "allPolicies/listAssociations\022\350\001\n\004Move\0222." + + "google.cloud.compute.v1.MoveFirewallPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\207\001\332A\031firewall_policy,parent_id\212N\034G" + + "lobalOrganizationOperations\202\323\344\223\002F\"D/comp" + + "ute/v1/locations/global/firewallPolicies" + + "/{firewall_policy}/move\022\216\002\n\005Patch\0223.goog" + + "le.cloud.compute.v1.PatchFirewallPolicyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\253\001\332A(firewall_policy,firewall_policy_" + + "resource\212N\034GlobalOrganizationOperations\202" + + "\323\344\223\002[2?/compute/v1/locations/global/fire" + + "wallPolicies/{firewall_policy}:\030firewall" + + "_policy_resource\022\252\002\n\tPatchRule\0227.google." + + "cloud.compute.v1.PatchRuleFirewallPolicy" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\215\001\332A\"project,firewall,firewall_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002O2:/compute/v" - + "1/projects/{project}/global/firewalls/{f" - + "irewall}:\021firewall_resource\022\262\002\n\022TestIamP" - + "ermissions\022:.google.cloud.compute.v1.Tes" - + "tIamPermissionsFirewallRequest\0320.google." - + "cloud.compute.v1.TestPermissionsResponse" - + "\"\255\001\332A2project,resource,test_permissions_" - + "request_resource\202\323\344\223\002r\"M/compute/v1/proj" - + "ects/{project}/global/firewalls/{resourc" - + "e}/testIamPermissions:!test_permissions_" - + "request_resource\022\354\001\n\006Update\022..google.clo" - + "ud.compute.v1.UpdateFirewallRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\215\001\332A\"pro" - + "ject,firewall,firewall_resource\212N\020Global" - + "Operations\202\323\344\223\002O\032:/compute/v1/projects/{" - + "project}/global/firewalls/{firewall}:\021fi" - + "rewall_resource\032r\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\231\021\n\017ForwardingRules\022\323\001\n\016Aggr" - + "egatedList\022=.google.cloud.compute.v1.Agg" - + "regatedListForwardingRulesRequest\0325.goog" - + "le.cloud.compute.v1.ForwardingRuleAggreg" - + "atedList\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/" - + "projects/{project}/aggregated/forwarding" - + "Rules\022\362\001\n\006Delete\0224.google.cloud.compute." - + "v1.DeleteForwardingRuleRequest\032\".google." - + "cloud.compute.v1.Operation\"\215\001\332A\036project," - + "region,forwarding_rule\212N\020RegionOperation" - + "s\202\323\344\223\002S*Q/compute/v1/projects/{project}/" - + "regions/{region}/forwardingRules/{forwar" - + "ding_rule}\022\335\001\n\003Get\0221.google.cloud.comput" - + "e.v1.GetForwardingRuleRequest\032\'.google.c" - + "loud.compute.v1.ForwardingRule\"z\332A\036proje" - + "ct,region,forwarding_rule\202\323\344\223\002S\022Q/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/forwardingRules/{forwarding_rule}\022\203\002\n\006I" - + "nsert\0224.google.cloud.compute.v1.InsertFo" - + "rwardingRuleRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\236\001\332A\'project,region,forw" - + "arding_rule_resource\212N\020RegionOperations\202" - + "\323\344\223\002[\"?/compute/v1/projects/{project}/re" - + "gions/{region}/forwardingRules:\030forwardi" - + "ng_rule_resource\022\302\001\n\004List\0223.google.cloud" - + ".compute.v1.ListForwardingRulesRequest\032+" - + ".google.cloud.compute.v1.ForwardingRuleL" - + "ist\"X\332A\016project,region\202\323\344\223\002A\022?/compute/v" - + "1/projects/{project}/regions/{region}/fo" - + "rwardingRules\022\243\002\n\005Patch\0223.google.cloud.c" - + "ompute.v1.PatchForwardingRuleRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\300\001\332A7pr" - + "oject,region,forwarding_rule,forwarding_" - + "rule_resource\212N\020RegionOperations\202\323\344\223\002m2Q" - + "/compute/v1/projects/{project}/regions/{" - + "region}/forwardingRules/{forwarding_rule" - + "}:\030forwarding_rule_resource\022\273\002\n\tSetLabel" - + "s\0227.google.cloud.compute.v1.SetLabelsFor" - + "wardingRuleRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\320\001\332A:project,region,resou" - + "rce,region_set_labels_request_resource\212N" - + "\020RegionOperations\202\323\344\223\002z\"T/compute/v1/pro" - + "jects/{project}/regions/{region}/forward" - + "ingRules/{resource}/setLabels:\"region_se" - + "t_labels_request_resource\022\267\002\n\tSetTarget\022" - + "7.google.cloud.compute.v1.SetTargetForwa" - + "rdingRuleRequest\032\".google.cloud.compute." - + "v1.Operation\"\314\001\332A8project,region,forward" - + "ing_rule,target_reference_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002x\"[/compute/v1/project" - + "s/{project}/regions/{region}/forwardingR" - + "ules/{forwarding_rule}/setTarget:\031target" - + "_reference_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\337\016\n\022FutureReservations\022\345" - + "\001\n\016AggregatedList\022@.google.cloud.compute" - + ".v1.AggregatedListFutureReservationsRequ" - + "est\032A.google.cloud.compute.v1.FutureRese" - + "rvationsAggregatedListResponse\"N\332A\007proje" - + "ct\202\323\344\223\002>\022/compute/v1/proje" - + "cts/{project}/zones/{zone}/futureReserva" - + "tions:\033future_reservation_resource\022\316\001\n\004L" - + "ist\0226.google.cloud.compute.v1.ListFuture" - + "ReservationsRequest\0327.google.cloud.compu" - + "te.v1.FutureReservationsListResponse\"U\332A" - + "\014project,zone\202\323\344\223\002@\022>/compute/v1/project" - + "s/{project}/zones/{zone}/futureReservati" - + "ons\022\257\002\n\006Update\0227.google.cloud.compute.v1" - + ".UpdateFutureReservationRequest\032\".google" - + ".cloud.compute.v1.Operation\"\307\001\332A;project" - + ",zone,future_reservation,future_reservat" - + "ion_resource\212N\016ZoneOperations\202\323\344\223\002r2S/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/futureReservations/{future_reservation}" - + ":\033future_reservation_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\203\016\n\017GlobalAddr" - + "esses\022\311\001\n\006Delete\0223.google.cloud.compute." - + "v1.DeleteGlobalAddressRequest\032\".google.c" - + "loud.compute.v1.Operation\"f\332A\017project,ad" - + "dress\212N\020GlobalOperations\202\323\344\223\002;*9/compute" - + "/v1/projects/{project}/global/addresses/" - + "{address}\022\256\001\n\003Get\0220.google.cloud.compute" - + ".v1.GetGlobalAddressRequest\032 .google.clo" - + "ud.compute.v1.Address\"S\332A\017project,addres" - + "s\202\323\344\223\002;\0229/compute/v1/projects/{project}/" - + "global/addresses/{address}\022\332\001\n\006Insert\0223." - + "google.cloud.compute.v1.InsertGlobalAddr" - + "essRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"w\332A\030project,address_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002C\"//compute/v1/projec" - + "ts/{project}/global/addresses:\020address_r" - + "esource\022\244\001\n\004List\0223.google.cloud.compute." - + "v1.ListGlobalAddressesRequest\032$.google.c" - + "loud.compute.v1.AddressList\"A\332A\007project\202" - + "\323\344\223\0021\022//compute/v1/projects/{project}/gl" - + "obal/addresses\022\232\002\n\004Move\0221.google.cloud.c" - + "ompute.v1.MoveGlobalAddressRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\272\001\332A6proj" - + "ect,address,global_addresses_move_reques" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002h\">/co" - + "mpute/v1/projects/{project}/global/addre" - + "sses/{address}/move:&global_addresses_mo" - + "ve_request_resource\022\243\002\n\tSetLabels\0226.goog" - + "le.cloud.compute.v1.SetLabelsGlobalAddre" - + "ssRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\271\001\332A3project,resource,global_set_l" - + "abels_request_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002j\"D/compute/v1/projects/{project}/" - + "global/addresses/{resource}/setLabels:\"g" - + "lobal_set_labels_request_resource\022\267\002\n\022Te" - + "stIamPermissions\022?.google.cloud.compute." - + "v1.TestIamPermissionsGlobalAddressReques" - + "t\0320.google.cloud.compute.v1.TestPermissi" - + "onsResponse\"\255\001\332A2project,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002r\"M/comp" - + "ute/v1/projects/{project}/global/address" + + "ion\"\277\001\332A-firewall_policy,firewall_policy" + + "_rule_resource\212N\034GlobalOrganizationOpera" + + "tions\202\323\344\223\002j\"I/compute/v1/locations/globa" + + "l/firewallPolicies/{firewall_policy}/pat" + + "chRule:\035firewall_policy_rule_resource\022\205\002" + + "\n\021RemoveAssociation\022?.google.cloud.compu" + + "te.v1.RemoveAssociationFirewallPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\212\001\332A\017firewall_policy\212N\034GlobalOrganizati" + + "onOperations\202\323\344\223\002S\"Q/compute/v1/location" + + "s/global/firewallPolicies/{firewall_poli" + + "cy}/removeAssociation\022\360\001\n\nRemoveRule\0228.g" + + "oogle.cloud.compute.v1.RemoveRuleFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\203\001\332A\017firewall_policy\212N\034Global" + + "OrganizationOperations\202\323\344\223\002L\"J/compute/v" + + "1/locations/global/firewallPolicies/{fir" + + "ewall_policy}/removeRule\022\247\002\n\014SetIamPolic" + + "y\022:.google.cloud.compute.v1.SetIamPolicy" + + "FirewallPolicyRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"\271\001\332A8resource,global_orga" + + "nization_set_policy_request_resource\202\323\344\223" + + "\002x\"E/compute/v1/locations/global/firewal" + + "lPolicies/{resource}/setIamPolicy:/globa" + + "l_organization_set_policy_request_resour" + + "ce\022\256\002\n\022TestIamPermissions\022@.google.cloud" + + ".compute.v1.TestIamPermissionsFirewallPo" + + "licyRequest\0320.google.cloud.compute.v1.Te" + + "stPermissionsResponse\"\243\001\332A*resource,test" + + "_permissions_request_resource\202\323\344\223\002p\"K/co" + + "mpute/v1/locations/global/firewallPolici" + "es/{resource}/testIamPermissions:!test_p" + "ermissions_request_resource\032r\312A\026compute." + "googleapis.com\322AVhttps://www.googleapis." + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\373\016\n\025GlobalForwar" - + "dingRules\022\346\001\n\006Delete\022:.google.cloud.comp" - + "ute.v1.DeleteGlobalForwardingRuleRequest" - + "\032\".google.cloud.compute.v1.Operation\"|\332A" - + "\027project,forwarding_rule\212N\020GlobalOperati" - + "ons\202\323\344\223\002I*G/compute/v1/projects/{project" - + "}/global/forwardingRules/{forwarding_rul" - + "e}\022\322\001\n\003Get\0227.google.cloud.compute.v1.Get" - + "GlobalForwardingRuleRequest\032\'.google.clo" - + "ud.compute.v1.ForwardingRule\"i\332A\027project" - + ",forwarding_rule\202\323\344\223\002I\022G/compute/v1/proj" - + "ects/{project}/global/forwardingRules/{f" - + "orwarding_rule}\022\370\001\n\006Insert\022:.google.clou" - + "d.compute.v1.InsertGlobalForwardingRuleR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\215\001\332A project,forwarding_rule_resource" - + "\212N\020GlobalOperations\202\323\344\223\002Q\"5/compute/v1/p" - + "rojects/{project}/global/forwardingRules" - + ":\030forwarding_rule_resource\022\267\001\n\004List\0229.go" - + "ogle.cloud.compute.v1.ListGlobalForwardi" - + "ngRulesRequest\032+.google.cloud.compute.v1" - + ".ForwardingRuleList\"G\332A\007project\202\323\344\223\0027\0225/" - + "compute/v1/projects/{project}/global/for" - + "wardingRules\022\230\002\n\005Patch\0229.google.cloud.co" - + "mpute.v1.PatchGlobalForwardingRuleReques" - + "t\032\".google.cloud.compute.v1.Operation\"\257\001" - + "\332A0project,forwarding_rule,forwarding_ru" - + "le_resource\212N\020GlobalOperations\202\323\344\223\002c2G/c" - + "ompute/v1/projects/{project}/global/forw" - + "ardingRules/{forwarding_rule}:\030forwardin" - + "g_rule_resource\022\260\002\n\tSetLabels\022=.google.c" - + "loud.compute.v1.SetLabelsGlobalForwardin" - + "gRuleRequest\032\".google.cloud.compute.v1.O" - + "peration\"\277\001\332A3project,resource,global_se" + + "com/auth/cloud-platform2\204\r\n\tFirewalls\022\306\001" + + "\n\006Delete\022..google.cloud.compute.v1.Delet" + + "eFirewallRequest\032\".google.cloud.compute." + + "v1.Operation\"h\332A\020project,firewall\212N\020Glob" + + "alOperations\202\323\344\223\002<*:/compute/v1/projects" + + "/{project}/global/firewalls/{firewall}\022\254" + + "\001\n\003Get\022+.google.cloud.compute.v1.GetFire" + + "wallRequest\032!.google.cloud.compute.v1.Fi" + + "rewall\"U\332A\020project,firewall\202\323\344\223\002<\022:/comp" + + "ute/v1/projects/{project}/global/firewal" + + "ls/{firewall}\022\327\001\n\006Insert\022..google.cloud." + + "compute.v1.InsertFirewallRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"y\332A\031project" + + ",firewall_resource\212N\020GlobalOperations\202\323\344" + + "\223\002D\"//compute/v1/projects/{project}/glob" + + "al/firewalls:\021firewall_resource\022\237\001\n\004List" + + "\022-.google.cloud.compute.v1.ListFirewalls" + + "Request\032%.google.cloud.compute.v1.Firewa" + + "llList\"A\332A\007project\202\323\344\223\0021\022//compute/v1/pr" + + "ojects/{project}/global/firewalls\022\352\001\n\005Pa" + + "tch\022-.google.cloud.compute.v1.PatchFirew" + + "allRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\215\001\332A\"project,firewall,firewall_re" + + "source\212N\020GlobalOperations\202\323\344\223\002O2:/comput" + + "e/v1/projects/{project}/global/firewalls" + + "/{firewall}:\021firewall_resource\022\262\002\n\022TestI" + + "amPermissions\022:.google.cloud.compute.v1." + + "TestIamPermissionsFirewallRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\255\001\332A2project,resource,test_permissio" + + "ns_request_resource\202\323\344\223\002r\"M/compute/v1/p" + + "rojects/{project}/global/firewalls/{reso" + + "urce}/testIamPermissions:!test_permissio" + + "ns_request_resource\022\354\001\n\006Update\022..google." + + "cloud.compute.v1.UpdateFirewallRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\215\001\332A\"" + + "project,firewall,firewall_resource\212N\020Glo" + + "balOperations\202\323\344\223\002O\032:/compute/v1/project" + + "s/{project}/global/firewalls/{firewall}:" + + "\021firewall_resource\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\231\021\n\017ForwardingRules\022\323\001\n\016A" + + "ggregatedList\022=.google.cloud.compute.v1." + + "AggregatedListForwardingRulesRequest\0325.g" + + "oogle.cloud.compute.v1.ForwardingRuleAgg" + + "regatedList\"K\332A\007project\202\323\344\223\002;\0229/compute/" + + "v1/projects/{project}/aggregated/forward" + + "ingRules\022\362\001\n\006Delete\0224.google.cloud.compu" + + "te.v1.DeleteForwardingRuleRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\215\001\332A\036proje" + + "ct,region,forwarding_rule\212N\020RegionOperat" + + "ions\202\323\344\223\002S*Q/compute/v1/projects/{projec" + + "t}/regions/{region}/forwardingRules/{for" + + "warding_rule}\022\335\001\n\003Get\0221.google.cloud.com" + + "pute.v1.GetForwardingRuleRequest\032\'.googl" + + "e.cloud.compute.v1.ForwardingRule\"z\332A\036pr" + + "oject,region,forwarding_rule\202\323\344\223\002S\022Q/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/forwardingRules/{forwarding_rule}\022\203\002" + + "\n\006Insert\0224.google.cloud.compute.v1.Inser" + + "tForwardingRuleRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\236\001\332A\'project,region,f" + + "orwarding_rule_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002[\"?/compute/v1/projects/{project}" + + "/regions/{region}/forwardingRules:\030forwa" + + "rding_rule_resource\022\302\001\n\004List\0223.google.cl" + + "oud.compute.v1.ListForwardingRulesReques" + + "t\032+.google.cloud.compute.v1.ForwardingRu" + + "leList\"X\332A\016project,region\202\323\344\223\002A\022?/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/forwardingRules\022\243\002\n\005Patch\0223.google.clou" + + "d.compute.v1.PatchForwardingRuleRequest\032" + + "\".google.cloud.compute.v1.Operation\"\300\001\332A" + + "7project,region,forwarding_rule,forwardi" + + "ng_rule_resource\212N\020RegionOperations\202\323\344\223\002" + + "m2Q/compute/v1/projects/{project}/region" + + "s/{region}/forwardingRules/{forwarding_r" + + "ule}:\030forwarding_rule_resource\022\273\002\n\tSetLa" + + "bels\0227.google.cloud.compute.v1.SetLabels" + + "ForwardingRuleRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\320\001\332A:project,region,re" + + "source,region_set_labels_request_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002z\"T/compute/v1/" + + "projects/{project}/regions/{region}/forw" + + "ardingRules/{resource}/setLabels:\"region" + + "_set_labels_request_resource\022\267\002\n\tSetTarg" + + "et\0227.google.cloud.compute.v1.SetTargetFo" + + "rwardingRuleRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\314\001\332A8project,region,forw" + + "arding_rule,target_reference_resource\212N\020" + + "RegionOperations\202\323\344\223\002x\"[/compute/v1/proj" + + "ects/{project}/regions/{region}/forwardi" + + "ngRules/{forwarding_rule}/setTarget:\031tar" + + "get_reference_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\337\016\n\022FutureReservation" + + "s\022\345\001\n\016AggregatedList\022@.google.cloud.comp" + + "ute.v1.AggregatedListFutureReservationsR" + + "equest\032A.google.cloud.compute.v1.FutureR" + + "eservationsAggregatedListResponse\"N\332A\007pr" + + "oject\202\323\344\223\002>\022/compute/v1/pr" + + "ojects/{project}/zones/{zone}/futureRese" + + "rvations:\033future_reservation_resource\022\316\001" + + "\n\004List\0226.google.cloud.compute.v1.ListFut" + + "ureReservationsRequest\0327.google.cloud.co" + + "mpute.v1.FutureReservationsListResponse\"" + + "U\332A\014project,zone\202\323\344\223\002@\022>/compute/v1/proj" + + "ects/{project}/zones/{zone}/futureReserv" + + "ations\022\257\002\n\006Update\0227.google.cloud.compute" + + ".v1.UpdateFutureReservationRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\307\001\332A;proj" + + "ect,zone,future_reservation,future_reser" + + "vation_resource\212N\016ZoneOperations\202\323\344\223\002r2S" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/futureReservations/{future_reservati" + + "on}:\033future_reservation_resource\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\203\016\n\017GlobalA" + + "ddresses\022\311\001\n\006Delete\0223.google.cloud.compu" + + "te.v1.DeleteGlobalAddressRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"f\332A\017project" + + ",address\212N\020GlobalOperations\202\323\344\223\002;*9/comp" + + "ute/v1/projects/{project}/global/address" + + "es/{address}\022\256\001\n\003Get\0220.google.cloud.comp" + + "ute.v1.GetGlobalAddressRequest\032 .google." + + "cloud.compute.v1.Address\"S\332A\017project,add" + + "ress\202\323\344\223\002;\0229/compute/v1/projects/{projec" + + "t}/global/addresses/{address}\022\332\001\n\006Insert" + + "\0223.google.cloud.compute.v1.InsertGlobalA" + + "ddressRequest\032\".google.cloud.compute.v1." + + "Operation\"w\332A\030project,address_resource\212N" + + "\020GlobalOperations\202\323\344\223\002C\"//compute/v1/pro" + + "jects/{project}/global/addresses:\020addres" + + "s_resource\022\244\001\n\004List\0223.google.cloud.compu" + + "te.v1.ListGlobalAddressesRequest\032$.googl" + + "e.cloud.compute.v1.AddressList\"A\332A\007proje" + + "ct\202\323\344\223\0021\022//compute/v1/projects/{project}" + + "/global/addresses\022\232\002\n\004Move\0221.google.clou" + + "d.compute.v1.MoveGlobalAddressRequest\032\"." + + "google.cloud.compute.v1.Operation\"\272\001\332A6p" + + "roject,address,global_addresses_move_req" + + "uest_resource\212N\020GlobalOperations\202\323\344\223\002h\">" + + "/compute/v1/projects/{project}/global/ad" + + "dresses/{address}/move:&global_addresses" + + "_move_request_resource\022\243\002\n\tSetLabels\0226.g" + + "oogle.cloud.compute.v1.SetLabelsGlobalAd" + + "dressRequest\032\".google.cloud.compute.v1.O" + + "peration\"\271\001\332A3project,resource,global_se" + "t_labels_request_resource\212N\020GlobalOperat" - + "ions\202\323\344\223\002p\"J/compute/v1/projects/{projec" - + "t}/global/forwardingRules/{resource}/set" - + "Labels:\"global_set_labels_request_resour" - + "ce\022\254\002\n\tSetTarget\022=.google.cloud.compute." - + "v1.SetTargetGlobalForwardingRuleRequest\032" - + "\".google.cloud.compute.v1.Operation\"\273\001\332A" - + "1project,forwarding_rule,target_referenc" - + "e_resource\212N\020GlobalOperations\202\323\344\223\002n\"Q/co" - + "mpute/v1/projects/{project}/global/forwa" - + "rdingRules/{forwarding_rule}/setTarget:\031" - + "target_reference_resource\032r\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform2\254\022\n\033GlobalNetworkE" - + "ndpointGroups\022\274\003\n\026AttachNetworkEndpoints" - + "\022P.google.cloud.compute.v1.AttachNetwork" - + "EndpointsGlobalNetworkEndpointGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\253" - + "\002\332A_project,network_endpoint_group,globa" - + "l_network_endpoint_groups_attach_endpoin" - + "ts_request_resource\212N\020GlobalOperations\202\323" - + "\344\223\002\257\001\"k/compute/v1/projects/{project}/gl" - + "obal/networkEndpointGroups/{network_endp" - + "oint_group}/attachNetworkEndpoints:@glob" - + "al_network_endpoint_groups_attach_endpoi" - + "nts_request_resource\022\201\002\n\006Delete\022@.google" - + ".cloud.compute.v1.DeleteGlobalNetworkEnd" - + "pointGroupRequest\032\".google.cloud.compute" - + ".v1.Operation\"\220\001\332A\036project,network_endpo" - + "int_group\212N\020GlobalOperations\202\323\344\223\002V*T/com" - + "pute/v1/projects/{project}/global/networ" - + "kEndpointGroups/{network_endpoint_group}" - + "\022\274\003\n\026DetachNetworkEndpoints\022P.google.clo" - + "ud.compute.v1.DetachNetworkEndpointsGlob" - + "alNetworkEndpointGroupRequest\032\".google.c" - + "loud.compute.v1.Operation\"\253\002\332A_project,n" - + "etwork_endpoint_group,global_network_end" - + "point_groups_detach_endpoints_request_re" - + "source\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/compu" - + "te/v1/projects/{project}/global/networkE" - + "ndpointGroups/{network_endpoint_group}/d" - + "etachNetworkEndpoints:@global_network_en" - + "dpoint_groups_detach_endpoints_request_r" - + "esource\022\362\001\n\003Get\022=.google.cloud.compute.v" - + "1.GetGlobalNetworkEndpointGroupRequest\032-" - + ".google.cloud.compute.v1.NetworkEndpoint" - + "Group\"}\332A\036project,network_endpoint_group" - + "\202\323\344\223\002V\022T/compute/v1/projects/{project}/g" - + "lobal/networkEndpointGroups/{network_end" - + "point_group}\022\222\002\n\006Insert\022@.google.cloud.c" - + "ompute.v1.InsertGlobalNetworkEndpointGro" - + "upRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\241\001\332A\'project,network_endpoint_grou" - + "p_resource\212N\020GlobalOperations\202\323\344\223\002^\";/co" + + "ions\202\323\344\223\002j\"D/compute/v1/projects/{projec" + + "t}/global/addresses/{resource}/setLabels" + + ":\"global_set_labels_request_resource\022\267\002\n" + + "\022TestIamPermissions\022?.google.cloud.compu" + + "te.v1.TestIamPermissionsGlobalAddressReq" + + "uest\0320.google.cloud.compute.v1.TestPermi" + + "ssionsResponse\"\255\001\332A2project,resource,tes" + + "t_permissions_request_resource\202\323\344\223\002r\"M/c" + + "ompute/v1/projects/{project}/global/addr" + + "esses/{resource}/testIamPermissions:!tes" + + "t_permissions_request_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap", + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\373\016\n\025GlobalFor" + + "wardingRules\022\346\001\n\006Delete\022:.google.cloud.c" + + "ompute.v1.DeleteGlobalForwardingRuleRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "|\332A\027project,forwarding_rule\212N\020GlobalOper" + + "ations\202\323\344\223\002I*G/compute/v1/projects/{proj" + + "ect}/global/forwardingRules/{forwarding_" + + "rule}\022\322\001\n\003Get\0227.google.cloud.compute.v1." + + "GetGlobalForwardingRuleRequest\032\'.google." + + "cloud.compute.v1.ForwardingRule\"i\332A\027proj" + + "ect,forwarding_rule\202\323\344\223\002I\022G/compute/v1/p" + + "rojects/{project}/global/forwardingRules" + + "/{forwarding_rule}\022\370\001\n\006Insert\022:.google.c" + + "loud.compute.v1.InsertGlobalForwardingRu" + + "leRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\215\001\332A project,forwarding_rule_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002Q\"5/compute/v" + + "1/projects/{project}/global/forwardingRu" + + "les:\030forwarding_rule_resource\022\267\001\n\004List\0229" + + ".google.cloud.compute.v1.ListGlobalForwa" + + "rdingRulesRequest\032+.google.cloud.compute" + + ".v1.ForwardingRuleList\"G\332A\007project\202\323\344\223\0027" + + "\0225/compute/v1/projects/{project}/global/" + + "forwardingRules\022\230\002\n\005Patch\0229.google.cloud" + + ".compute.v1.PatchGlobalForwardingRuleReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\257\001\332A0project,forwarding_rule,forwarding" + + "_rule_resource\212N\020GlobalOperations\202\323\344\223\002c2" + + "G/compute/v1/projects/{project}/global/f" + + "orwardingRules/{forwarding_rule}:\030forwar" + + "ding_rule_resource\022\260\002\n\tSetLabels\022=.googl" + + "e.cloud.compute.v1.SetLabelsGlobalForwar" + + "dingRuleRequest\032\".google.cloud.compute.v" + + "1.Operation\"\277\001\332A3project,resource,global" + + "_set_labels_request_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002p\"J/compute/v1/projects/{pro" + + "ject}/global/forwardingRules/{resource}/" + + "setLabels:\"global_set_labels_request_res" + + "ource\022\254\002\n\tSetTarget\022=.google.cloud.compu" + + "te.v1.SetTargetGlobalForwardingRuleReque" + + "st\032\".google.cloud.compute.v1.Operation\"\273" + + "\001\332A1project,forwarding_rule,target_refer" + + "ence_resource\212N\020GlobalOperations\202\323\344\223\002n\"Q" + + "/compute/v1/projects/{project}/global/fo" + + "rwardingRules/{forwarding_rule}/setTarge" + + "t:\031target_reference_resource\032r\312A\026compute" + + ".googleapis.com\322AVhttps://www.googleapis" + + ".com/auth/compute,https://www.googleapis" + + ".com/auth/cloud-platform2\254\022\n\033GlobalNetwo" + + "rkEndpointGroups\022\274\003\n\026AttachNetworkEndpoi" + + "nts\022P.google.cloud.compute.v1.AttachNetw" + + "orkEndpointsGlobalNetworkEndpointGroupRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\253\002\332A_project,network_endpoint_group,gl" + + "obal_network_endpoint_groups_attach_endp" + + "oints_request_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002\257\001\"k/compute/v1/projects/{project}" + + "/global/networkEndpointGroups/{network_e" + + "ndpoint_group}/attachNetworkEndpoints:@g" + + "lobal_network_endpoint_groups_attach_end" + + "points_request_resource\022\201\002\n\006Delete\022@.goo" + + "gle.cloud.compute.v1.DeleteGlobalNetwork" + + "EndpointGroupRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\220\001\332A\036project,network_en" + + "dpoint_group\212N\020GlobalOperations\202\323\344\223\002V*T/" + + "compute/v1/projects/{project}/global/net" + + "workEndpointGroups/{network_endpoint_gro" + + "up}\022\274\003\n\026DetachNetworkEndpoints\022P.google." + + "cloud.compute.v1.DetachNetworkEndpointsG" + + "lobalNetworkEndpointGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\253\002\332A_projec" + + "t,network_endpoint_group,global_network_" + + "endpoint_groups_detach_endpoints_request" + + "_resource\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/co" + + "mpute/v1/projects/{project}/global/netwo" + + "rkEndpointGroups/{network_endpoint_group" + + "}/detachNetworkEndpoints:@global_network" + + "_endpoint_groups_detach_endpoints_reques" + + "t_resource\022\362\001\n\003Get\022=.google.cloud.comput" + + "e.v1.GetGlobalNetworkEndpointGroupReques" + + "t\032-.google.cloud.compute.v1.NetworkEndpo" + + "intGroup\"}\332A\036project,network_endpoint_gr" + + "oup\202\323\344\223\002V\022T/compute/v1/projects/{project" + + "}/global/networkEndpointGroups/{network_" + + "endpoint_group}\022\222\002\n\006Insert\022@.google.clou" + + "d.compute.v1.InsertGlobalNetworkEndpoint" + + "GroupRequest\032\".google.cloud.compute.v1.O" + + "peration\"\241\001\332A\'project,network_endpoint_g" + + "roup_resource\212N\020GlobalOperations\202\323\344\223\002^\";" + + "/compute/v1/projects/{project}/global/ne" + + "tworkEndpointGroups:\037network_endpoint_gr" + + "oup_resource\022\311\001\n\004List\022?.google.cloud.com" + + "pute.v1.ListGlobalNetworkEndpointGroupsR" + + "equest\0321.google.cloud.compute.v1.Network" + + "EndpointGroupList\"M\332A\007project\202\323\344\223\002=\022;/co" + "mpute/v1/projects/{project}/global/netwo" - + "rkEndpointGroups:\037network_endpoint_group" - + "_resource\022\311\001\n\004List\022?.google.cloud.comput" - + "e.v1.ListGlobalNetworkEndpointGroupsRequ" - + "est\0321.google.cloud.compute.v1.NetworkEnd" - + "pointGroupList\"M\332A\007project\202\323\344\223\002=\022;/compu" + + "rkEndpointGroups\022\300\002\n\024ListNetworkEndpoint" + + "s\022O.google.cloud.compute.v1.ListNetworkE" + + "ndpointsGlobalNetworkEndpointGroupsReque" + + "st\032B.google.cloud.compute.v1.NetworkEndp" + + "ointGroupsListNetworkEndpoints\"\222\001\332A\036proj" + + "ect,network_endpoint_group\202\323\344\223\002k\"i/compu" + "te/v1/projects/{project}/global/networkE" - + "ndpointGroups\022\300\002\n\024ListNetworkEndpoints\022O" - + ".google.cloud.compute.v1.ListNetworkEndp" - + "ointsGlobalNetworkEndpointGroupsRequest\032" - + "B.google.cloud.compute.v1.NetworkEndpoin" - + "tGroupsListNetworkEndpoints\"\222\001\332A\036project" - + ",network_endpoint_group\202\323\344\223\002k\"i/compute/" - + "v1/projects/{project}/global/networkEndp" - + "ointGroups/{network_endpoint_group}/list" - + "NetworkEndpoints\032r\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform2\320\010\n\020GlobalOperations\022\312\001\n\016Ag" - + "gregatedList\022>.google.cloud.compute.v1.A" - + "ggregatedListGlobalOperationsRequest\0320.g" - + "oogle.cloud.compute.v1.OperationAggregat" - + "edList\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/pr" - + "ojects/{project}/aggregated/operations\022\321" - + "\001\n\006Delete\0225.google.cloud.compute.v1.Dele" - + "teGlobalOperationRequest\0326.google.cloud." - + "compute.v1.DeleteGlobalOperationResponse" - + "\"X\332A\021project,operation\202\323\344\223\002>*\022.google.cloud.compu" - + "te.v1.GetGlobalOrganizationOperationRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "J\332A\toperation\220N\001\202\323\344\223\0025\0223/compute/v1/loca" - + "tions/global/operations/{operation}\022\244\001\n\004" - + "List\022@.google.cloud.compute.v1.ListGloba" - + "lOrganizationOperationsRequest\032&.google." - + "cloud.compute.v1.OperationList\"2\332A\000\202\323\344\223\002" - + ")\022\'/compute/v1/locations/global/operatio" - + "ns\032r\312A\026compute.googleapis.com\322AVhttps://" - + "www.googleapis.com/auth/compute,https://" - + "www.googleapis.com/auth/cloud-platform2\321" - + "\013\n\035GlobalPublicDelegatedPrefixes\022\207\002\n\006Del" - + "ete\022B.google.cloud.compute.v1.DeleteGlob" - + "alPublicDelegatedPrefixeRequest\032\".google" - + ".cloud.compute.v1.Operation\"\224\001\332A\037project" - + ",public_delegated_prefix\212N\020GlobalOperati" - + "ons\202\323\344\223\002Y*W/compute/v1/projects/{project" - + "}/global/publicDelegatedPrefixes/{public" - + "_delegated_prefix}\022\372\001\n\003Get\022?.google.clou" - + "d.compute.v1.GetGlobalPublicDelegatedPre" - + "fixeRequest\032..google.cloud.compute.v1.Pu" - + "blicDelegatedPrefix\"\201\001\332A\037project,public_" - + "delegated_prefix\202\323\344\223\002Y\022W/compute/v1/proj" - + "ects/{project}/global/publicDelegatedPre" - + "fixes/{public_delegated_prefix}\022\230\002\n\006Inse" - + "rt\022B.google.cloud.compute.v1.InsertGloba", - "lPublicDelegatedPrefixeRequest\032\".google." - + "cloud.compute.v1.Operation\"\245\001\332A(project," - + "public_delegated_prefix_resource\212N\020Globa" - + "lOperations\202\323\344\223\002a\"=/compute/v1/projects/" - + "{project}/global/publicDelegatedPrefixes" - + ": public_delegated_prefix_resource\022\316\001\n\004L" - + "ist\022A.google.cloud.compute.v1.ListGlobal" - + "PublicDelegatedPrefixesRequest\0322.google." - + "cloud.compute.v1.PublicDelegatedPrefixLi" - + "st\"O\332A\007project\202\323\344\223\002?\022=/compute/v1/projec" + + "ndpointGroups/{network_endpoint_group}/l" + + "istNetworkEndpoints\032r\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform2\320\010\n\020GlobalOperations\022\312\001\n" + + "\016AggregatedList\022>.google.cloud.compute.v" + + "1.AggregatedListGlobalOperationsRequest\032" + + "0.google.cloud.compute.v1.OperationAggre" + + "gatedList\"F\332A\007project\202\323\344\223\0026\0224/compute/v1" + + "/projects/{project}/aggregated/operation" + + "s\022\321\001\n\006Delete\0225.google.cloud.compute.v1.D" + + "eleteGlobalOperationRequest\0326.google.clo" + + "ud.compute.v1.DeleteGlobalOperationRespo" + + "nse\"X\332A\021project,operation\202\323\344\223\002>*\022.google.cloud.co" + + "mpute.v1.GetGlobalOrganizationOperationR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"J\332A\toperation\220N\001\202\323\344\223\0025\0223/compute/v1/l" + + "ocations/global/operations/{operation}\022\244" + + "\001\n\004List\022@.google.cloud.compute.v1.ListGl" + + "obalOrganizationOperationsRequest\032&.goog" + + "le.cloud.compute.v1.OperationList\"2\332A\000\202\323" + + "\344\223\002)\022\'/compute/v1/locations/global/opera" + + "tions\032r\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m2\321\013\n\035GlobalPublicDelegatedPrefixes\022\207\002\n\006" + + "Delete\022B.google.cloud.compute.v1.DeleteG" + + "lobalPublicDelegatedPrefixeRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\224\001\332A\037proj" + + "ect,public_delegated_prefix\212N\020GlobalOper" + + "ations\202\323\344\223\002Y*W/compute/v1/projects/{proj" + + "ect}/global/publicDelegatedPrefixes/{pub" + + "lic_delegated_prefix}\022\372\001\n\003Get\022?.google.c" + + "loud.compute.v1.GetGlobalPublicDelegated" + + "PrefixeRequest\032..google.cloud.compute.v1" + + ".PublicDelegatedPrefix\"\201\001\332A\037project,publ" + + "ic_delegated_prefix\202\323\344\223\002Y\022W/compute/v1/p" + + "rojects/{project}/global/publicDelegated" + + "Prefixes/{public_delegated_prefix}\022\230\002\n\006I" + + "nsert\022B.google.cloud.compute.v1.InsertGl" + + "obalPublicDelegatedPrefixeRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\245\001\332A(proje" + + "ct,public_delegated_prefix_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002a\"=/compute/v1/projec" + "ts/{project}/global/publicDelegatedPrefi" - + "xes\022\310\002\n\005Patch\022A.google.cloud.compute.v1." - + "PatchGlobalPublicDelegatedPrefixeRequest" - + "\032\".google.cloud.compute.v1.Operation\"\327\001\332" - + "A@project,public_delegated_prefix,public" - + "_delegated_prefix_resource\212N\020GlobalOpera" - + "tions\202\323\344\223\002{2W/compute/v1/projects/{proje" - + "ct}/global/publicDelegatedPrefixes/{publ" - + "ic_delegated_prefix}: public_delegated_p" - + "refix_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\276\017\n\014HealthChecks\022\313\001\n\016Aggregat" - + "edList\022:.google.cloud.compute.v1.Aggrega" - + "tedListHealthChecksRequest\0323.google.clou" - + "d.compute.v1.HealthChecksAggregatedList\"" - + "H\332A\007project\202\323\344\223\0028\0226/compute/v1/projects/" - + "{project}/aggregated/healthChecks\022\324\001\n\006De" - + "lete\0221.google.cloud.compute.v1.DeleteHea" - + "lthCheckRequest\032\".google.cloud.compute.v" - + "1.Operation\"s\332A\024project,health_check\212N\020G" - + "lobalOperations\202\323\344\223\002C*A/compute/v1/proje" - + "cts/{project}/global/healthChecks/{healt" - + "h_check}\022\275\001\n\003Get\022..google.cloud.compute." - + "v1.GetHealthCheckRequest\032$.google.cloud." - + "compute.v1.HealthCheck\"`\332A\024project,healt" - + "h_check\202\323\344\223\002C\022A/compute/v1/projects/{pro" - + "ject}/global/healthChecks/{health_check}" - + "\022\346\001\n\006Insert\0221.google.cloud.compute.v1.In" - + "sertHealthCheckRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\204\001\332A\035project,health_c" - + "heck_resource\212N\020GlobalOperations\202\323\344\223\002K\"2" - + "/compute/v1/projects/{project}/global/he" - + "althChecks:\025health_check_resource\022\250\001\n\004Li" - + "st\0220.google.cloud.compute.v1.ListHealthC" - + "hecksRequest\032(.google.cloud.compute.v1.H" - + "ealthCheckList\"D\332A\007project\202\323\344\223\0024\0222/compu" + + "xes: public_delegated_prefix_resource\022\316\001" + + "\n\004List\022A.google.cloud.compute.v1.ListGlo" + + "balPublicDelegatedPrefixesRequest\0322.goog" + + "le.cloud.compute.v1.PublicDelegatedPrefi" + + "xList\"O\332A\007project\202\323\344\223\002?\022=/compute/v1/pro" + + "jects/{project}/global/publicDelegatedPr" + + "efixes\022\310\002\n\005Patch\022A.google.cloud.compute." + + "v1.PatchGlobalPublicDelegatedPrefixeRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\327\001\332A@project,public_delegated_prefix,pub" + + "lic_delegated_prefix_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002{2W/compute/v1/projects/{pr" + + "oject}/global/publicDelegatedPrefixes/{p" + + "ublic_delegated_prefix}: public_delegate" + + "d_prefix_resource\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\276\017\n\014HealthChecks\022\313\001\n\016Aggre" + + "gatedList\022:.google.cloud.compute.v1.Aggr" + + "egatedListHealthChecksRequest\0323.google.c" + + "loud.compute.v1.HealthChecksAggregatedLi" + + "st\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/projec" + + "ts/{project}/aggregated/healthChecks\022\324\001\n" + + "\006Delete\0221.google.cloud.compute.v1.Delete" + + "HealthCheckRequest\032\".google.cloud.comput" + + "e.v1.Operation\"s\332A\024project,health_check\212" + + "N\020GlobalOperations\202\323\344\223\002C*A/compute/v1/pr" + + "ojects/{project}/global/healthChecks/{he" + + "alth_check}\022\275\001\n\003Get\022..google.cloud.compu" + + "te.v1.GetHealthCheckRequest\032$.google.clo" + + "ud.compute.v1.HealthCheck\"`\332A\024project,he" + + "alth_check\202\323\344\223\002C\022A/compute/v1/projects/{" + + "project}/global/healthChecks/{health_che" + + "ck}\022\346\001\n\006Insert\0221.google.cloud.compute.v1" + + ".InsertHealthCheckRequest\032\".google.cloud" + + ".compute.v1.Operation\"\204\001\332A\035project,healt" + + "h_check_resource\212N\020GlobalOperations\202\323\344\223\002" + + "K\"2/compute/v1/projects/{project}/global" + + "/healthChecks:\025health_check_resource\022\250\001\n" + + "\004List\0220.google.cloud.compute.v1.ListHeal" + + "thChecksRequest\032(.google.cloud.compute.v" + + "1.HealthCheckList\"D\332A\007project\202\323\344\223\0024\0222/co" + + "mpute/v1/projects/{project}/global/healt" + + "hChecks\022\200\002\n\005Patch\0220.google.cloud.compute" + + ".v1.PatchHealthCheckRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\240\001\332A*project,hea" + + "lth_check,health_check_resource\212N\020Global" + + "Operations\202\323\344\223\002Z2A/compute/v1/projects/{" + + "project}/global/healthChecks/{health_che" + + "ck}:\025health_check_resource\022\270\002\n\022TestIamPe" + + "rmissions\022=.google.cloud.compute.v1.Test" + + "IamPermissionsHealthCheckRequest\0320.googl" + + "e.cloud.compute.v1.TestPermissionsRespon" + + "se\"\260\001\332A2project,resource,test_permission" + + "s_request_resource\202\323\344\223\002u\"P/compute/v1/pr" + + "ojects/{project}/global/healthChecks/{re" + + "source}/testIamPermissions:!test_permiss" + + "ions_request_resource\022\202\002\n\006Update\0221.googl" + + "e.cloud.compute.v1.UpdateHealthCheckRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\240\001\332A*project,health_check,health_check_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002Z\032A/compu" + "te/v1/projects/{project}/global/healthCh" - + "ecks\022\200\002\n\005Patch\0220.google.cloud.compute.v1" - + ".PatchHealthCheckRequest\032\".google.cloud." - + "compute.v1.Operation\"\240\001\332A*project,health" - + "_check,health_check_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002Z2A/compute/v1/projects/{pro" - + "ject}/global/healthChecks/{health_check}" - + ":\025health_check_resource\022\270\002\n\022TestIamPermi" - + "ssions\022=.google.cloud.compute.v1.TestIam" - + "PermissionsHealthCheckRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\260\001\332A2project,resource,test_permissions_r" - + "equest_resource\202\323\344\223\002u\"P/compute/v1/proje" - + "cts/{project}/global/healthChecks/{resou" - + "rce}/testIamPermissions:!test_permission" - + "s_request_resource\022\202\002\n\006Update\0221.google.c" - + "loud.compute.v1.UpdateHealthCheckRequest" - + "\032\".google.cloud.compute.v1.Operation\"\240\001\332" - + "A*project,health_check,health_check_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002Z\032A/compute/" - + "v1/projects/{project}/global/healthCheck" - + "s/{health_check}:\025health_check_resource\032" - + "r\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform2\204\003\n\020" - + "ImageFamilyViews\022\310\001\n\003Get\0222.google.cloud." - + "compute.v1.GetImageFamilyViewRequest\032(.g" - + "oogle.cloud.compute.v1.ImageFamilyView\"c" - + "\332A\023project,zone,family\202\323\344\223\002G\022E/compute/v" - + "1/projects/{project}/zones/{zone}/imageF" - + "amilyViews/{family}\032\244\001\312A\026compute.googlea" - + "pis.com\322A\207\001https://www.googleapis.com/au" - + "th/compute.readonly,https://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform2\374\023\n\006Images\022\272\001" - + "\n\006Delete\022+.google.cloud.compute.v1.Delet" - + "eImageRequest\032\".google.cloud.compute.v1." - + "Operation\"_\332A\rproject,image\212N\020GlobalOper" - + "ations\202\323\344\223\0026*4/compute/v1/projects/{proj" - + "ect}/global/images/{image}\022\204\002\n\tDeprecate" - + "\022..google.cloud.compute.v1.DeprecateImag" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\242\001\332A)project,image,deprecation_stat" - + "us_resource\212N\020GlobalOperations\202\323\344\223\002]\">/c" - + "ompute/v1/projects/{project}/global/imag" - + "es/{image}/deprecate:\033deprecation_status" - + "_resource\022\235\001\n\003Get\022(.google.cloud.compute" - + ".v1.GetImageRequest\032\036.google.cloud.compu" - + "te.v1.Image\"L\332A\rproject,image\202\323\344\223\0026\0224/co" - + "mpute/v1/projects/{project}/global/image" - + "s/{image}\022\272\001\n\rGetFromFamily\0222.google.clo" - + "ud.compute.v1.GetFromFamilyImageRequest\032" - + "\036.google.cloud.compute.v1.Image\"U\332A\016proj" - + "ect,family\202\323\344\223\002>\022\",/compute/v1/projec" - + "ts/{project}/global/images:\016image_resour" - + "ce\022\226\001\n\004List\022*.google.cloud.compute.v1.Li" - + "stImagesRequest\032\".google.cloud.compute.v" - + "1.ImageList\">\332A\007project\202\323\344\223\002.\022,/compute/" - + "v1/projects/{project}/global/images\022\327\001\n\005" - + "Patch\022*.google.cloud.compute.v1.PatchIma" - + "geRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"~\332A\034project,image,image_resource\212N" - + "\020GlobalOperations\202\323\344\223\002F24/compute/v1/pro" - + "jects/{project}/global/images/{image}:\016i" - + "mage_resource\022\213\002\n\014SetIamPolicy\0221.google." - + "cloud.compute.v1.SetIamPolicyImageReques" - + "t\032\037.google.cloud.compute.v1.Policy\"\246\001\332A3" - + "project,resource,global_set_policy_reque" - + "st_resource\202\323\344\223\002j\"D/compute/v1/projects/" - + "{project}/global/images/{resource}/setIa" - + "mPolicy:\"global_set_policy_request_resou" - + "rce\022\230\002\n\tSetLabels\022..google.cloud.compute" - + ".v1.SetLabelsImageRequest\032\".google.cloud" - + ".compute.v1.Operation\"\266\001\332A3project,resou" - + "rce,global_set_labels_request_resource\212N" - + "\020GlobalOperations\202\323\344\223\002g\"A/compute/v1/pro" - + "jects/{project}/global/images/{resource}" - + "/setLabels:\"global_set_labels_request_re" - + "source\022\254\002\n\022TestIamPermissions\0227.google.c" - + "loud.compute.v1.TestIamPermissionsImageR" - + "equest\0320.google.cloud.compute.v1.TestPer" - + "missionsResponse\"\252\001\332A2project,resource,t" - + "est_permissions_request_resource\202\323\344\223\002o\"J" + + "ecks/{health_check}:\025health_check_resour" + + "ce\032r\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform2\204" + + "\003\n\020ImageFamilyViews\022\310\001\n\003Get\0222.google.clo" + + "ud.compute.v1.GetImageFamilyViewRequest\032" + + "(.google.cloud.compute.v1.ImageFamilyVie" + + "w\"c\332A\023project,zone,family\202\323\344\223\002G\022E/comput" + + "e/v1/projects/{project}/zones/{zone}/ima" + + "geFamilyViews/{family}\032\244\001\312A\026compute.goog" + + "leapis.com\322A\207\001https://www.googleapis.com" + + "/auth/compute.readonly,https://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\374\023\n\006Images" + + "\022\272\001\n\006Delete\022+.google.cloud.compute.v1.De" + + "leteImageRequest\032\".google.cloud.compute." + + "v1.Operation\"_\332A\rproject,image\212N\020GlobalO" + + "perations\202\323\344\223\0026*4/compute/v1/projects/{p" + + "roject}/global/images/{image}\022\204\002\n\tDeprec" + + "ate\022..google.cloud.compute.v1.DeprecateI" + + "mageRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\242\001\332A)project,image,deprecation_s" + + "tatus_resource\212N\020GlobalOperations\202\323\344\223\002]\"" + + ">/compute/v1/projects/{project}/global/i" + + "mages/{image}/deprecate:\033deprecation_sta" + + "tus_resource\022\235\001\n\003Get\022(.google.cloud.comp" + + "ute.v1.GetImageRequest\032\036.google.cloud.co" + + "mpute.v1.Image\"L\332A\rproject,image\202\323\344\223\0026\0224" + "/compute/v1/projects/{project}/global/im" - + "ages/{resource}/testIamPermissions:!test" - + "_permissions_request_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\242\016\n\"InstanceGr" - + "oupManagerResizeRequests\022\311\002\n\006Cancel\022G.go" - + "ogle.cloud.compute.v1.CancelInstanceGrou" - + "pManagerResizeRequestRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\321\001\332A2project,zo" - + "ne,instance_group_manager,resize_request" - + "\212N\016ZoneOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/p" - + "rojects/{project}/zones/{zone}/instanceG" - + "roupManagers/{instance_group_manager}/re" - + "sizeRequests/{resize_request}/cancel\022\300\002\n" - + "\006Delete\022G.google.cloud.compute.v1.Delete" + + "ages/{image}\022\272\001\n\rGetFromFamily\0222.google." + + "cloud.compute.v1.GetFromFamilyImageReque" + + "st\032\036.google.cloud.compute.v1.Image\"U\332A\016p" + + "roject,family\202\323\344\223\002>\022\",/compute/v1/pro" + + "jects/{project}/global/images:\016image_res" + + "ource\022\226\001\n\004List\022*.google.cloud.compute.v1" + + ".ListImagesRequest\032\".google.cloud.comput" + + "e.v1.ImageList\">\332A\007project\202\323\344\223\002.\022,/compu" + + "te/v1/projects/{project}/global/images\022\327" + + "\001\n\005Patch\022*.google.cloud.compute.v1.Patch" + + "ImageRequest\032\".google.cloud.compute.v1.O" + + "peration\"~\332A\034project,image,image_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002F24/compute/v1/" + + "projects/{project}/global/images/{image}" + + ":\016image_resource\022\213\002\n\014SetIamPolicy\0221.goog" + + "le.cloud.compute.v1.SetIamPolicyImageReq" + + "uest\032\037.google.cloud.compute.v1.Policy\"\246\001" + + "\332A3project,resource,global_set_policy_re" + + "quest_resource\202\323\344\223\002j\"D/compute/v1/projec" + + "ts/{project}/global/images/{resource}/se" + + "tIamPolicy:\"global_set_policy_request_re" + + "source\022\230\002\n\tSetLabels\022..google.cloud.comp" + + "ute.v1.SetLabelsImageRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\266\001\332A3project,re" + + "source,global_set_labels_request_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002g\"A/compute/v1/" + + "projects/{project}/global/images/{resour" + + "ce}/setLabels:\"global_set_labels_request" + + "_resource\022\254\002\n\022TestIamPermissions\0227.googl" + + "e.cloud.compute.v1.TestIamPermissionsIma" + + "geRequest\0320.google.cloud.compute.v1.Test" + + "PermissionsResponse\"\252\001\332A2project,resourc" + + "e,test_permissions_request_resource\202\323\344\223\002" + + "o\"J/compute/v1/projects/{project}/global" + + "/images/{resource}/testIamPermissions:!t" + + "est_permissions_request_resource\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\242\016\n\"Instanc" + + "eGroupManagerResizeRequests\022\311\002\n\006Cancel\022G" + + ".google.cloud.compute.v1.CancelInstanceG" + + "roupManagerResizeRequestRequest\032\".google" + + ".cloud.compute.v1.Operation\"\321\001\332A2project" + + ",zone,instance_group_manager,resize_requ" + + "est\212N\016ZoneOperations\202\323\344\223\002\204\001\"\201\001/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers/{instance_group_manager}" + + "/resizeRequests/{resize_request}/cancel\022" + + "\300\002\n\006Delete\022G.google.cloud.compute.v1.Del" + + "eteInstanceGroupManagerResizeRequestRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\310\001\332A2project,zone,instance_group_manager" + + ",resize_request\212N\016ZoneOperations\202\323\344\223\002|*z" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instanceGroupManagers/{instance_grou" + + "p_manager}/resizeRequests/{resize_reques" + + "t}\022\301\002\n\003Get\022D.google.cloud.compute.v1.Get" + "InstanceGroupManagerResizeRequestRequest" - + "\032\".google.cloud.compute.v1.Operation\"\310\001\332" - + "A2project,zone,instance_group_manager,re" - + "size_request\212N\016ZoneOperations\202\323\344\223\002|*z/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/resizeRequests/{resize_request}\022" - + "\301\002\n\003Get\022D.google.cloud.compute.v1.GetIns" - + "tanceGroupManagerResizeRequestRequest\032:." - + "google.cloud.compute.v1.InstanceGroupMan" - + "agerResizeRequest\"\267\001\332A2project,zone,inst" - + "ance_group_manager,resize_request\202\323\344\223\002|\022" - + "z/compute/v1/projects/{project}/zones/{z" - + "one}/instanceGroupManagers/{instance_gro" - + "up_manager}/resizeRequests/{resize_reque" - + "st}\022\200\003\n\006Insert\022G.google.cloud.compute.v1" - + ".InsertInstanceGroupManagerResizeRequest" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\210\002\332ARproject,zone,instance_group_man" - + "ager,instance_group_manager_resize_reque" - + "st_resource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/resizeRequests:.instance_group_m" - + "anager_resize_request_resource\022\261\002\n\004List\022" - + "F.google.cloud.compute.v1.ListInstanceGr" - + "oupManagerResizeRequestsRequest\032G.google" - + ".cloud.compute.v1.InstanceGroupManagerRe" - + "sizeRequestsListResponse\"\227\001\332A#project,zo" - + "ne,instance_group_manager\202\323\344\223\002k\022i/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}/resizeRequests\032r\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\325E\n\025InstanceGroupManagers" - + "\022\241\003\n\020AbandonInstances\022D.google.cloud.com" - + "pute.v1.AbandonInstancesInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\242\002\332A^project,zone,instance_group" - + "_manager,instance_group_managers_abandon" - + "_instances_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\251\001\"k/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}/abandonInstances" - + "::instance_group_managers_abandon_instan" - + "ces_request_resource\022\345\001\n\016AggregatedList\022" - + "C.google.cloud.compute.v1.AggregatedList" - + "InstanceGroupManagersRequest\032;.google.cl" - + "oud.compute.v1.InstanceGroupManagerAggre" - + "gatedList\"Q\332A\007project\202\323\344\223\002A\022?/compute/v1" - + "/projects/{project}/aggregated/instanceG" - + "roupManagers\022\256\003\n\027ApplyUpdatesToInstances" - + "\022K.google.cloud.compute.v1.ApplyUpdatesT" - + "oInstancesInstanceGroupManagerRequest\032\"." - + "google.cloud.compute.v1.Operation\"\241\002\332AZp" - + "roject,zone,instance_group_manager,insta" - + "nce_group_managers_apply_updates_request" - + "_resource\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstanceGroupManagers/{instance_group_man" - + "ager}/applyUpdatesToInstances:6instance_" - + "group_managers_apply_updates_request_res" - + "ource\022\234\003\n\017CreateInstances\022C.google.cloud" - + ".compute.v1.CreateInstancesInstanceGroup" + + "\032:.google.cloud.compute.v1.InstanceGroup" + + "ManagerResizeRequest\"\267\001\332A2project,zone,i" + + "nstance_group_manager,resize_request\202\323\344\223" + + "\002|\022z/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/resizeRequests/{resize_re" + + "quest}\022\200\003\n\006Insert\022G.google.cloud.compute" + + ".v1.InsertInstanceGroupManagerResizeRequ" + + "estRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\210\002\332ARproject,zone,instance_group_" + + "manager,instance_group_manager_resize_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instanceGroupManagers/{instance_grou" + + "p_manager}/resizeRequests:.instance_grou" + + "p_manager_resize_request_resource\022\261\002\n\004Li" + + "st\022F.google.cloud.compute.v1.ListInstanc" + + "eGroupManagerResizeRequestsRequest\032G.goo" + + "gle.cloud.compute.v1.InstanceGroupManage" + + "rResizeRequestsListResponse\"\227\001\332A#project" + + ",zone,instance_group_manager\202\323\344\223\002k\022i/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}/resizeRequests\032r\312A\026compute.google" + + "apis.com\322AVhttps://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform2\325E\n\025InstanceGroupManag" + + "ers\022\241\003\n\020AbandonInstances\022D.google.cloud." + + "compute.v1.AbandonInstancesInstanceGroup" + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\237\002\332A]project,zone,instance_gr" - + "oup_manager,instance_group_managers_crea" - + "te_instances_request_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002\247\001\"j/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instanceGroupManagers" - + "/{instance_group_manager}/createInstance" - + "s:9instance_group_managers_create_instan" - + "ces_request_resource\022\204\002\n\006Delete\022:.google" - + ".cloud.compute.v1.DeleteInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\231\001\332A#project,zone,instance_group" - + "_manager\212N\016ZoneOperations\202\323\344\223\002\\*Z/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}\022\234\003\n\017DeleteInstances\022C.google.cloud.c" - + "ompute.v1.DeleteInstancesInstanceGroupMa" - + "nagerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\237\002\332A]project,zone,instance_grou" - + "p_manager,instance_group_managers_delete" - + "_instances_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\247\001\"j/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}/deleteInstances:" - + "9instance_group_managers_delete_instance" - + "s_request_resource\022\305\003\n\030DeletePerInstance" - + "Configs\022L.google.cloud.compute.v1.Delete" - + "PerInstanceConfigsInstanceGroupManagerRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\266\002\332Adproject,zone,instance_group_manag" - + "er,instance_group_managers_delete_per_in" - + "stance_configs_req_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\267\001\"s/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}/deletePerInstanc" - + "eConfigs:@instance_group_managers_delete" - + "_per_instance_configs_req_resource\022\370\001\n\003G" - + "et\0227.google.cloud.compute.v1.GetInstance" - + "GroupManagerRequest\032-.google.cloud.compu" - + "te.v1.InstanceGroupManager\"\210\001\332A#project," - + "zone,instance_group_manager\202\323\344\223\002\\\022Z/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstanceGroupManagers/{instance_group_man" - + "ager}\022\225\002\n\006Insert\022:.google.cloud.compute." - + "v1.InsertInstanceGroupManagerRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\252\001\332A,pr" - + "oject,zone,instance_group_manager_resour" - + "ce\212N\016ZoneOperations\202\323\344\223\002d\"A/compute/v1/p" - + "rojects/{project}/zones/{zone}/instanceG" - + "roupManagers:\037instance_group_manager_res" - + "ource\022\316\001\n\004List\0229.google.cloud.compute.v1" - + ".ListInstanceGroupManagersRequest\0321.goog" + + ".Operation\"\242\002\332A^project,zone,instance_gr" + + "oup_manager,instance_group_managers_aban" + + "don_instances_request_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002\251\001\"k/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroupManager" + + "s/{instance_group_manager}/abandonInstan" + + "ces::instance_group_managers_abandon_ins" + + "tances_request_resource\022\345\001\n\016AggregatedLi" + + "st\022C.google.cloud.compute.v1.AggregatedL" + + "istInstanceGroupManagersRequest\032;.google" + + ".cloud.compute.v1.InstanceGroupManagerAg" + + "gregatedList\"Q\332A\007project\202\323\344\223\002A\022?/compute" + + "/v1/projects/{project}/aggregated/instan" + + "ceGroupManagers\022\256\003\n\027ApplyUpdatesToInstan" + + "ces\022K.google.cloud.compute.v1.ApplyUpdat" + + "esToInstancesInstanceGroupManagerRequest" + + "\032\".google.cloud.compute.v1.Operation\"\241\002\332" + + "AZproject,zone,instance_group_manager,in" + + "stance_group_managers_apply_updates_requ" + + "est_resource\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroupManagers/{instance_group_" + + "manager}/applyUpdatesToInstances:6instan" + + "ce_group_managers_apply_updates_request_" + + "resource\022\234\003\n\017CreateInstances\022C.google.cl" + + "oud.compute.v1.CreateInstancesInstanceGr" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\237\002\332A]project,zone,instance" + + "_group_manager,instance_group_managers_c" + + "reate_instances_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002\247\001\"j/compute/v1/projects/{" + + "project}/zones/{zone}/instanceGroupManag" + + "ers/{instance_group_manager}/createInsta" + + "nces:9instance_group_managers_create_ins" + + "tances_request_resource\022\204\002\n\006Delete\022:.goo" + + "gle.cloud.compute.v1.DeleteInstanceGroup", + "ManagerRequest\032\".google.cloud.compute.v1" + + ".Operation\"\231\001\332A#project,zone,instance_gr" + + "oup_manager\212N\016ZoneOperations\202\323\344\223\002\\*Z/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}\022\234\003\n\017DeleteInstances\022C.google.clou" + + "d.compute.v1.DeleteInstancesInstanceGrou" + + "pManagerRequest\032\".google.cloud.compute.v" + + "1.Operation\"\237\002\332A]project,zone,instance_g" + + "roup_manager,instance_group_managers_del" + + "ete_instances_request_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002\247\001\"j/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroupManager" + + "s/{instance_group_manager}/deleteInstanc" + + "es:9instance_group_managers_delete_insta" + + "nces_request_resource\022\305\003\n\030DeletePerInsta" + + "nceConfigs\022L.google.cloud.compute.v1.Del" + + "etePerInstanceConfigsInstanceGroupManage" + + "rRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\266\002\332Adproject,zone,instance_group_ma" + + "nager,instance_group_managers_delete_per" + + "_instance_configs_req_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002\267\001\"s/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroupManager" + + "s/{instance_group_manager}/deletePerInst" + + "anceConfigs:@instance_group_managers_del" + + "ete_per_instance_configs_req_resource\022\370\001" + + "\n\003Get\0227.google.cloud.compute.v1.GetInsta" + + "nceGroupManagerRequest\032-.google.cloud.co" + + "mpute.v1.InstanceGroupManager\"\210\001\332A#proje" + + "ct,zone,instance_group_manager\202\323\344\223\002\\\022Z/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroupManagers/{instance_group_" + + "manager}\022\225\002\n\006Insert\022:.google.cloud.compu" + + "te.v1.InsertInstanceGroupManagerRequest\032" + + "\".google.cloud.compute.v1.Operation\"\252\001\332A" + + ",project,zone,instance_group_manager_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002d\"A/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers:\037instance_group_manager_" + + "resource\022\316\001\n\004List\0229.google.cloud.compute" + + ".v1.ListInstanceGroupManagersRequest\0321.g" + + "oogle.cloud.compute.v1.InstanceGroupMana" + + "gerList\"X\332A\014project,zone\202\323\344\223\002C\022A/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "anceGroupManagers\022\245\002\n\nListErrors\022?.googl" + + "e.cloud.compute.v1.ListErrorsInstanceGro" + + "upManagersRequest\032@.google.cloud.compute" + + ".v1.InstanceGroupManagersListErrorsRespo" + + "nse\"\223\001\332A#project,zone,instance_group_man" + + "ager\202\323\344\223\002g\022e/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroupManagers/{i" + + "nstance_group_manager}/listErrors\022\315\002\n\024Li" + + "stManagedInstances\022I.google.cloud.comput" + + "e.v1.ListManagedInstancesInstanceGroupMa" + + "nagersRequest\032J.google.cloud.compute.v1." + + "InstanceGroupManagersListManagedInstance" + + "sResponse\"\235\001\332A#project,zone,instance_gro" + + "up_manager\202\323\344\223\002q\"o/compute/v1/projects/{" + + "project}/zones/{zone}/instanceGroupManag" + + "ers/{instance_group_manager}/listManaged" + + "Instances\022\321\002\n\026ListPerInstanceConfigs\022K.g" + + "oogle.cloud.compute.v1.ListPerInstanceCo" + + "nfigsInstanceGroupManagersRequest\032H.goog" + "le.cloud.compute.v1.InstanceGroupManager" - + "List\"X\332A\014project,zone\202\323\344\223\002C\022A/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers\022\245\002\n\nListErrors\022?.google.c" - + "loud.compute.v1.ListErrorsInstanceGroupM" - + "anagersRequest\032@.google.cloud.compute.v1" - + ".InstanceGroupManagersListErrorsResponse" - + "\"\223\001\332A#project,zone,instance_group_manage" - + "r\202\323\344\223\002g\022e/compute/v1/projects/{project}/" + + "sListPerInstanceConfigsResp\"\237\001\332A#project" + + ",zone,instance_group_manager\202\323\344\223\002s\"q/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}/listPerInstanceConfigs\022\303\002\n\005Patch\022" + + "9.google.cloud.compute.v1.PatchInstanceG" + + "roupManagerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\332\001\332ACproject,zone,instanc" + + "e_group_manager,instance_group_manager_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002}2Z/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "anceGroupManagers/{instance_group_manage" + + "r}:\037instance_group_manager_resource\022\300\003\n\027" + + "PatchPerInstanceConfigs\022K.google.cloud.c" + + "ompute.v1.PatchPerInstanceConfigsInstanc" + + "eGroupManagerRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\263\002\332Acproject,zone,insta" + + "nce_group_manager,instance_group_manager" + + "s_patch_per_instance_configs_req_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002\265\001\"r/compute/v1/p" + + "rojects/{project}/zones/{zone}/instanceG" + + "roupManagers/{instance_group_manager}/pa" + + "tchPerInstanceConfigs:?instance_group_ma" + + "nagers_patch_per_instance_configs_req_re" + + "source\022\246\003\n\021RecreateInstances\022E.google.cl" + + "oud.compute.v1.RecreateInstancesInstance" + + "GroupManagerRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\245\002\332A_project,zone,instan" + + "ce_group_manager,instance_group_managers" + + "_recreate_instances_request_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\253\001\"l/compute/v1/projec" + + "ts/{project}/zones/{zone}/instanceGroupM" + + "anagers/{instance_group_manager}/recreat" + + "eInstances:;instance_group_managers_recr" + + "eate_instances_request_resource\022\220\002\n\006Resi" + + "ze\022:.google.cloud.compute.v1.ResizeInsta" + + "nceGroupManagerRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\245\001\332A(project,zone,ins" + + "tance_group_manager,size\212N\016ZoneOperation" + + "s\202\323\344\223\002c\"a/compute/v1/projects/{project}/" + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/listErrors\022\315\002\n\024ListM" - + "anagedInstances\022I.google.cloud.compute.v" - + "1.ListManagedInstancesInstanceGroupManag" - + "ersRequest\032J.google.cloud.compute.v1.Ins" - + "tanceGroupManagersListManagedInstancesRe" - + "sponse\"\235\001\332A#project,zone,instance_group_" - + "manager\202\323\344\223\002q\"o/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instanceGroupManagers" - + "/{instance_group_manager}/listManagedIns" - + "tances\022\321\002\n\026ListPerInstanceConfigs\022K.goog" - + "le.cloud.compute.v1.ListPerInstanceConfi" - + "gsInstanceGroupManagersRequest\032H.google." - + "cloud.compute.v1.InstanceGroupManagersLi" - + "stPerInstanceConfigsResp\"\237\001\332A#project,zo" - + "ne,instance_group_manager\202\323\344\223\002s\"q/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}/listPerInstanceConfigs\022\303\002\n\005Patch\0229.g" - + "oogle.cloud.compute.v1.PatchInstanceGrou" - + "pManagerRequest\032\".google.cloud.compute.v" - + "1.Operation\"\332\001\332ACproject,zone,instance_g" - + "roup_manager,instance_group_manager_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002}2Z/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}:" - + "\037instance_group_manager_resource\022\300\003\n\027Pat" - + "chPerInstanceConfigs\022K.google.cloud.comp" - + "ute.v1.PatchPerInstanceConfigsInstanceGr" - + "oupManagerRequest\032\".google.cloud.compute" - + ".v1.Operation\"\263\002\332Acproject,zone,instance" - + "_group_manager,instance_group_managers_p" - + "atch_per_instance_configs_req_resource\212N" - + "\016ZoneOperations\202\323\344\223\002\265\001\"r/compute/v1/proj" + + "ance_group_manager}/resize\022\234\003\n\017ResumeIns" + + "tances\022C.google.cloud.compute.v1.ResumeI" + + "nstancesInstanceGroupManagerRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\237\002\332A]pro" + + "ject,zone,instance_group_manager,instanc" + + "e_group_managers_resume_instances_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}/resumeInstances:9instance_group_m" + + "anagers_resume_instances_request_resourc" + + "e\022\262\003\n\023SetInstanceTemplate\022G.google.cloud" + + ".compute.v1.SetInstanceTemplateInstanceG" + + "roupManagerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\255\002\332Abproject,zone,instanc" + + "e_group_manager,instance_group_managers_" + + "set_instance_template_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\260\001\"n/compute/v1/proj" + "ects/{project}/zones/{zone}/instanceGrou" - + "pManagers/{instance_group_manager}/patch" - + "PerInstanceConfigs:?instance_group_manag" - + "ers_patch_per_instance_configs_req_resou" - + "rce\022\246\003\n\021RecreateInstances\022E.google.cloud" - + ".compute.v1.RecreateInstancesInstanceGro" - + "upManagerRequest\032\".google.cloud.compute." - + "v1.Operation\"\245\002\332A_project,zone,instance_" - + "group_manager,instance_group_managers_re" - + "create_instances_request_resource\212N\016Zone" - + "Operations\202\323\344\223\002\253\001\"l/compute/v1/projects/" - + "{project}/zones/{zone}/instanceGroupMana" - + "gers/{instance_group_manager}/recreateIn" - + "stances:;instance_group_managers_recreat" - + "e_instances_request_resource\022\220\002\n\006Resize\022" - + ":.google.cloud.compute.v1.ResizeInstance" - + "GroupManagerRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\245\001\332A(project,zone,instan" - + "ce_group_manager,size\212N\016ZoneOperations\202\323" - + "\344\223\002c\"a/compute/v1/projects/{project}/zon" + + "pManagers/{instance_group_manager}/setIn" + + "stanceTemplate:>instance_group_managers_" + + "set_instance_template_request_resource\022\231" + + "\003\n\016SetTargetPools\022B.google.cloud.compute" + + ".v1.SetTargetPoolsInstanceGroupManagerRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\236\002\332A]project,zone,instance_group_manag" + + "er,instance_group_managers_set_target_po" + + "ols_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\246\001\"i/compute/v1/projects/{project}/zon" + "es/{zone}/instanceGroupManagers/{instanc" - + "e_group_manager}/resize\022\234\003\n\017ResumeInstan" - + "ces\022C.google.cloud.compute.v1.ResumeInst" - + "ancesInstanceGroupManagerRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\237\002\332A]projec" + + "e_group_manager}/setTargetPools:9instanc" + + "e_group_managers_set_target_pools_reques" + + "t_resource\022\227\003\n\016StartInstances\022B.google.c" + + "loud.compute.v1.StartInstancesInstanceGr" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\234\002\332A\\project,zone,instance" + + "_group_manager,instance_group_managers_s" + + "tart_instances_request_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002\245\001\"i/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroupManage" + + "rs/{instance_group_manager}/startInstanc" + + "es:8instance_group_managers_start_instan" + + "ces_request_resource\022\222\003\n\rStopInstances\022A" + + ".google.cloud.compute.v1.StopInstancesIn" + + "stanceGroupManagerRequest\032\".google.cloud" + + ".compute.v1.Operation\"\231\002\332A[project,zone," + + "instance_group_manager,instance_group_ma" + + "nagers_stop_instances_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\243\001\"h/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/stopI" + + "nstances:7instance_group_managers_stop_i" + + "nstances_request_resource\022\241\003\n\020SuspendIns" + + "tances\022D.google.cloud.compute.v1.Suspend" + + "InstancesInstanceGroupManagerRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\242\002\332A^pr" + + "oject,zone,instance_group_manager,instan" + + "ce_group_managers_suspend_instances_requ" + + "est_resource\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroupManagers/{instance_group_" + + "manager}/suspendInstances::instance_grou" + + "p_managers_suspend_instances_request_res" + + "ource\022\305\003\n\030UpdatePerInstanceConfigs\022L.goo" + + "gle.cloud.compute.v1.UpdatePerInstanceCo" + + "nfigsInstanceGroupManagerRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\266\002\332Adprojec" + "t,zone,instance_group_manager,instance_g" - + "roup_managers_resume_instances_request_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/comput" + + "roup_managers_update_per_instance_config" + + "s_req_resource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instanceGroupManagers/{instance_grou" + + "p_manager}/updatePerInstanceConfigs:@ins" + + "tance_group_managers_update_per_instance" + + "_configs_req_resource\032r\312A\026compute.google" + + "apis.com\322AVhttps://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform2\272\027\n\016InstanceGroups\022\337\002\n" + + "\014AddInstances\0229.google.cloud.compute.v1." + + "AddInstancesInstanceGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\357\001\332AJprojec" + + "t,zone,instance_group,instance_groups_ad" + + "d_instances_request_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\212\001\"X/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroups/{instan" + + "ce_group}/addInstances:.instance_groups_" + + "add_instances_request_resource\022\320\001\n\016Aggre" + + "gatedList\022<.google.cloud.compute.v1.Aggr" + + "egatedListInstanceGroupsRequest\0324.google" + + ".cloud.compute.v1.InstanceGroupAggregate" + + "dList\"J\332A\007project\202\323\344\223\002:\0228/compute/v1/pro" + + "jects/{project}/aggregated/instanceGroup" + + "s\022\346\001\n\006Delete\0223.google.cloud.compute.v1.D" + + "eleteInstanceGroupRequest\032\".google.cloud" + + ".compute.v1.Operation\"\202\001\332A\033project,zone," + + "instance_group\212N\016ZoneOperations\202\323\344\223\002M*K/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroups/{instance_group}\022\322\001\n\003G" + + "et\0220.google.cloud.compute.v1.GetInstance" + + "GroupRequest\032&.google.cloud.compute.v1.I" + + "nstanceGroup\"q\332A\033project,zone,instance_g" + + "roup\202\323\344\223\002M\022K/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroups/{instance" + + "_group}\022\367\001\n\006Insert\0223.google.cloud.comput" + + "e.v1.InsertInstanceGroupRequest\032\".google" + + ".cloud.compute.v1.Operation\"\223\001\332A$project" + + ",zone,instance_group_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002U\":/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroups:\027instan" + + "ce_group_resource\022\271\001\n\004List\0222.google.clou" + + "d.compute.v1.ListInstanceGroupsRequest\032*" + + ".google.cloud.compute.v1.InstanceGroupLi" + + "st\"Q\332A\014project,zone\202\323\344\223\002<\022:/compute/v1/p" + + "rojects/{project}/zones/{zone}/instanceG" + + "roups\022\346\002\n\rListInstances\022;.google.cloud.c" + + "ompute.v1.ListInstancesInstanceGroupsReq" + + "uest\0324.google.cloud.compute.v1.InstanceG" + + "roupsListInstances\"\341\001\332AKproject,zone,ins" + + "tance_group,instance_groups_list_instanc" + + "es_request_resource\202\323\344\223\002\214\001\"Y/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "Groups/{instance_group}/listInstances:/i" + + "nstance_groups_list_instances_request_re" + + "source\022\356\002\n\017RemoveInstances\022<.google.clou" + + "d.compute.v1.RemoveInstancesInstanceGrou" + + "pRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\370\001\332AMproject,zone,instance_group,in" + + "stance_groups_remove_instances_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002\220\001\"[/comput" + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}/resumeInstances:9instance_group_mana" - + "gers_resume_instances_request_resource\022\262" - + "\003\n\023SetInstanceTemplate\022G.google.cloud.co" - + "mpute.v1.SetInstanceTemplateInstanceGrou" - + "pManagerRequest\032\".google.cloud.compute.v" - + "1.Operation\"\255\002\332Abproject,zone,instance_g" - + "roup_manager,instance_group_managers_set" - + "_instance_template_request_resource\212N\016Zo" - + "neOperations\202\323\344\223\002\260\001\"n/compute/v1/project" - + "s/{project}/zones/{zone}/instanceGroupMa" - + "nagers/{instance_group_manager}/setInsta" - + "nceTemplate:>instance_group_managers_set" - + "_instance_template_request_resource\022\231\003\n\016" - + "SetTargetPools\022B.google.cloud.compute.v1" - + ".SetTargetPoolsInstanceGroupManagerReque" - + "st\032\".google.cloud.compute.v1.Operation\"\236" - + "\002\332A]project,zone,instance_group_manager," - + "instance_group_managers_set_target_pools" - + "_request_resource\212N\016ZoneOperations\202\323\344\223\002\246" - + "\001\"i/compute/v1/projects/{project}/zones/" - + "{zone}/instanceGroupManagers/{instance_g" - + "roup_manager}/setTargetPools:9instance_g" - + "roup_managers_set_target_pools_request_r" - + "esource\022\227\003\n\016StartInstances\022B.google.clou" - + "d.compute.v1.StartInstancesInstanceGroup" - + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\234\002\332A\\project,zone,instance_gr" - + "oup_manager,instance_group_managers_star" - + "t_instances_request_resource\212N\016ZoneOpera" - + "tions\202\323\344\223\002\245\001\"i/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instanceGroupManagers/" - + "{instance_group_manager}/startInstances:" - + "8instance_group_managers_start_instances" - + "_request_resource\022\222\003\n\rStopInstances\022A.go" - + "ogle.cloud.compute.v1.StopInstancesInsta" - + "nceGroupManagerRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\231\002\332A[project,zone,ins" - + "tance_group_manager,instance_group_manag" - + "ers_stop_instances_request_resource\212N\016Zo" - + "neOperations\202\323\344\223\002\243\001\"h/compute/v1/project" - + "s/{project}/zones/{zone}/instanceGroupMa" - + "nagers/{instance_group_manager}/stopInst" - + "ances:7instance_group_managers_stop_inst" - + "ances_request_resource\022\241\003\n\020SuspendInstan" - + "ces\022D.google.cloud.compute.v1.SuspendIns" - + "tancesInstanceGroupManagerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\242\002\332A^proje" - + "ct,zone,instance_group_manager,instance_" - + "group_managers_suspend_instances_request" - + "_resource\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstanceGroupManagers/{instance_group_man" - + "ager}/suspendInstances::instance_group_m" - + "anagers_suspend_instances_request_resour", - "ce\022\305\003\n\030UpdatePerInstanceConfigs\022L.google" - + ".cloud.compute.v1.UpdatePerInstanceConfi" - + "gsInstanceGroupManagerRequest\032\".google.c" - + "loud.compute.v1.Operation\"\266\002\332Adproject,z" - + "one,instance_group_manager,instance_grou" - + "p_managers_update_per_instance_configs_r" - + "eq_resource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/co" + + "tanceGroups/{instance_group}/removeInsta" + + "nces:1instance_groups_remove_instances_r" + + "equest_resource\022\346\002\n\rSetNamedPorts\022:.goog" + + "le.cloud.compute.v1.SetNamedPortsInstanc" + + "eGroupRequest\032\".google.cloud.compute.v1." + + "Operation\"\364\001\332ALproject,zone,instance_gro" + + "up,instance_groups_set_named_ports_reque" + + "st_resource\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/co" + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/updatePerInstanceConfigs:@instan" - + "ce_group_managers_update_per_instance_co" - + "nfigs_req_resource\032r\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\272\027\n\016InstanceGroups\022\337\002\n\014Ad" - + "dInstances\0229.google.cloud.compute.v1.Add" - + "InstancesInstanceGroupRequest\032\".google.c" - + "loud.compute.v1.Operation\"\357\001\332AJproject,z" - + "one,instance_group,instance_groups_add_i" - + "nstances_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\212\001\"X/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroups/{instance_" - + "group}/addInstances:.instance_groups_add" - + "_instances_request_resource\022\320\001\n\016Aggregat" - + "edList\022<.google.cloud.compute.v1.Aggrega" - + "tedListInstanceGroupsRequest\0324.google.cl" - + "oud.compute.v1.InstanceGroupAggregatedLi" - + "st\"J\332A\007project\202\323\344\223\002:\0228/compute/v1/projec" - + "ts/{project}/aggregated/instanceGroups\022\346" - + "\001\n\006Delete\0223.google.cloud.compute.v1.Dele" - + "teInstanceGroupRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\202\001\332A\033project,zone,ins" - + "tance_group\212N\016ZoneOperations\202\323\344\223\002M*K/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instanceGroups/{instance_group}\022\322\001\n\003Get\022" - + "0.google.cloud.compute.v1.GetInstanceGro" - + "upRequest\032&.google.cloud.compute.v1.Inst" - + "anceGroup\"q\332A\033project,zone,instance_grou" - + "p\202\323\344\223\002M\022K/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroups/{instance_gr" - + "oup}\022\367\001\n\006Insert\0223.google.cloud.compute.v" - + "1.InsertInstanceGroupRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\223\001\332A$project,zo" - + "ne,instance_group_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002U\":/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroups:\027instance_" - + "group_resource\022\271\001\n\004List\0222.google.cloud.c" - + "ompute.v1.ListInstanceGroupsRequest\032*.go" - + "ogle.cloud.compute.v1.InstanceGroupList\"" - + "Q\332A\014project,zone\202\323\344\223\002<\022:/compute/v1/proj" - + "ects/{project}/zones/{zone}/instanceGrou" - + "ps\022\346\002\n\rListInstances\022;.google.cloud.comp" - + "ute.v1.ListInstancesInstanceGroupsReques" - + "t\0324.google.cloud.compute.v1.InstanceGrou" - + "psListInstances\"\341\001\332AKproject,zone,instan" - + "ce_group,instance_groups_list_instances_" - + "request_resource\202\323\344\223\002\214\001\"Y/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "ups/{instance_group}/listInstances:/inst" - + "ance_groups_list_instances_request_resou" - + "rce\022\356\002\n\017RemoveInstances\022<.google.cloud.c" - + "ompute.v1.RemoveInstancesInstanceGroupRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\370\001\332AMproject,zone,instance_group,insta" - + "nce_groups_remove_instances_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002\220\001\"[/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ceGroups/{instance_group}/removeInstance" - + "s:1instance_groups_remove_instances_requ" - + "est_resource\022\346\002\n\rSetNamedPorts\022:.google." - + "cloud.compute.v1.SetNamedPortsInstanceGr" - + "oupRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\364\001\332ALproject,zone,instance_group," - + "instance_groups_set_named_ports_request_" - + "resource\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stanceGroups/{instance_group}/setNamedPo" - + "rts:0instance_groups_set_named_ports_req" - + "uest_resource\022\307\002\n\022TestIamPermissions\022?.g" - + "oogle.cloud.compute.v1.TestIamPermission" - + "sInstanceGroupRequest\0320.google.cloud.com" - + "pute.v1.TestPermissionsResponse\"\275\001\332A7pro" - + "ject,zone,resource,test_permissions_requ" - + "est_resource\202\323\344\223\002}\"X/compute/v1/projects" - + "/{project}/zones/{zone}/instanceGroups/{" + + "/instanceGroups/{instance_group}/setName" + + "dPorts:0instance_groups_set_named_ports_" + + "request_resource\022\307\002\n\022TestIamPermissions\022" + + "?.google.cloud.compute.v1.TestIamPermiss" + + "ionsInstanceGroupRequest\0320.google.cloud." + + "compute.v1.TestPermissionsResponse\"\275\001\332A7" + + "project,zone,resource,test_permissions_r" + + "equest_resource\202\323\344\223\002}\"X/compute/v1/proje" + + "cts/{project}/zones/{zone}/instanceGroup" + + "s/{resource}/testIamPermissions:!test_pe" + + "rmissions_request_resource\032r\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c" + + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform2\313\004\n\027InstanceSetti" + + "ngsService\022\271\001\n\003Get\0222.google.cloud.comput" + + "e.v1.GetInstanceSettingRequest\032).google." + + "cloud.compute.v1.InstanceSettings\"S\332A\014pr" + + "oject,zone\202\323\344\223\002>\022\022project,zon" - + "e,instance,network_interface,access_conf" - + "ig_resource\212N\016ZoneOperations\202\323\344\223\002j\"P/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instances/{instance}/addAccessConfig:\026ac" - + "cess_config_resource\022\265\002\n\023AddNetworkInter" - + "face\022;.google.cloud.compute.v1.AddNetwor" - + "kInterfaceInstanceRequest\032\".google.cloud" - + ".compute.v1.Operation\"\274\001\332A0project,zone," - + "instance,network_interface_resource\212N\016Zo" - + "neOperations\202\323\344\223\002r\"T/compute/v1/projects" - + "/{project}/zones/{zone}/instances/{insta" - + "nce}/addNetworkInterface:\032network_interf" - + "ace_resource\022\342\002\n\023AddResourcePolicies\022;.g" - + "oogle.cloud.compute.v1.AddResourcePolici" - + "esInstanceRequest\032\".google.cloud.compute" - + ".v1.Operation\"\351\001\332AFproject,zone,instance" - + ",instances_add_resource_policies_request" - + "_resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstances/{instance}/addResourcePolicies:" - + "0instances_add_resource_policies_request" - + "_resource\022\301\001\n\016AggregatedList\0227.google.cl" - + "oud.compute.v1.AggregatedListInstancesRe" - + "quest\032/.google.cloud.compute.v1.Instance" - + "AggregatedList\"E\332A\007project\202\323\344\223\0025\0223/compu" - + "te/v1/projects/{project}/aggregated/inst" - + "ances\022\222\002\n\nAttachDisk\0222.google.cloud.comp" - + "ute.v1.AttachDiskInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\253\001\332A,projec" - + "t,zone,instance,attached_disk_resource\212N" - + "\016ZoneOperations\202\323\344\223\002e\"K/compute/v1/proje" + + "auth/cloud-platform2\307p\n\tInstances\022\263\002\n\017Ad" + + "dAccessConfig\0227.google.cloud.compute.v1." + + "AddAccessConfigInstanceRequest\032\".google." + + "cloud.compute.v1.Operation\"\302\001\332A>project," + + "zone,instance,network_interface,access_c" + + "onfig_resource\212N\016ZoneOperations\202\323\344\223\002j\"P/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/addAccessConfig:" + + "\026access_config_resource\022\265\002\n\023AddNetworkIn" + + "terface\022;.google.cloud.compute.v1.AddNet" + + "workInterfaceInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\274\001\332A0project,zo" + + "ne,instance,network_interface_resource\212N" + + "\016ZoneOperations\202\323\344\223\002r\"T/compute/v1/proje" + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/attachDisk:\026attached_disk_resour" - + "ce\022\236\002\n\nBulkInsert\0222.google.cloud.compute" - + ".v1.BulkInsertInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\267\001\332A3project,z" - + "one,bulk_insert_instance_resource_resour" - + "ce\212N\016ZoneOperations\202\323\344\223\002j\"@/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/bulkInsert:&bulk_insert_instance_resour" - + "ce_resource\022\317\001\n\006Delete\022..google.cloud.co" - + "mpute.v1.DeleteInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"q\332A\025project,z" - + "one,instance\212N\016ZoneOperations\202\323\344\223\002B*@/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instances/{instance}\022\233\002\n\022DeleteAccessCo" - + "nfig\022:.google.cloud.compute.v1.DeleteAcc" - + "essConfigInstanceRequest\032\".google.cloud." - + "compute.v1.Operation\"\244\001\332A5project,zone,i" - + "nstance,access_config,network_interface\212" - + "N\016ZoneOperations\202\323\344\223\002U\"S/compute/v1/proj" - + "ects/{project}/zones/{zone}/instances/{i" - + "nstance}/deleteAccessConfig\022\236\002\n\026DeleteNe" - + "tworkInterface\022>.google.cloud.compute.v1" - + ".DeleteNetworkInterfaceInstanceRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\237\001\332A," - + "project,zone,instance,network_interface_" - + "name\212N\016ZoneOperations\202\323\344\223\002Y\"W/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/deleteNetworkInterface\022\357\001\n" - + "\nDetachDisk\0222.google.cloud.compute.v1.De" - + "tachDiskInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\210\001\332A!project,zone,in" - + "stance,device_name\212N\016ZoneOperations\202\323\344\223\002" - + "M\"K/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{instance}/detachDisk\022\267" - + "\001\n\003Get\022+.google.cloud.compute.v1.GetInst" - + "anceRequest\032!.google.cloud.compute.v1.In" - + "stance\"`\332A\025project,zone,instance\202\323\344\223\002B\022@" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}\022\242\002\n\025GetEffectiv" - + "eFirewalls\022=.google.cloud.compute.v1.Get" - + "EffectiveFirewallsInstanceRequest\032?.goog" - + "le.cloud.compute.v1.InstancesGetEffectiv" - + "eFirewallsResponse\"\210\001\332A\'project,zone,ins" - + "tance,network_interface\202\323\344\223\002X\022V/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nces/{instance}/getEffectiveFirewalls\022\357\001" - + "\n\022GetGuestAttributes\022:.google.cloud.comp" - + "ute.v1.GetGuestAttributesInstanceRequest" - + "\032(.google.cloud.compute.v1.GuestAttribut" - + "es\"s\332A\025project,zone,instance\202\323\344\223\002U\022S/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instances/{instance}/getGuestAttributes\022" - + "\324\001\n\014GetIamPolicy\0224.google.cloud.compute." - + "v1.GetIamPolicyInstanceRequest\032\037.google." - + "cloud.compute.v1.Policy\"m\332A\025project,zone" - + ",resource\202\323\344\223\002O\022M/compute/v1/projects/{p" - + "roject}/zones/{zone}/instances/{resource" - + "}/getIamPolicy\022\330\001\n\rGetScreenshot\0225.googl" - + "e.cloud.compute.v1.GetScreenshotInstance" - + "Request\032#.google.cloud.compute.v1.Screen" - + "shot\"k\332A\025project,zone,instance\202\323\344\223\002M\022K/c" + + "stance}/addNetworkInterface:\032network_int" + + "erface_resource\022\342\002\n\023AddResourcePolicies\022" + + ";.google.cloud.compute.v1.AddResourcePol" + + "iciesInstanceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\351\001\332AFproject,zone,insta" + + "nce,instances_add_resource_policies_requ" + + "est_resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/c" + "ompute/v1/projects/{project}/zones/{zone" - + "}/instances/{instance}/screenshot\022\352\001\n\023Ge" - + "tSerialPortOutput\022;.google.cloud.compute" - + ".v1.GetSerialPortOutputInstanceRequest\032)" - + ".google.cloud.compute.v1.SerialPortOutpu" - + "t\"k\332A\025project,zone,instance\202\323\344\223\002M\022K/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstances/{instance}/serialPort\022\223\002\n\033GetSh" - + "ieldedInstanceIdentity\022C.google.cloud.co" - + "mpute.v1.GetShieldedInstanceIdentityInst" - + "anceRequest\0321.google.cloud.compute.v1.Sh" - + "ieldedInstanceIdentity\"|\332A\025project,zone," - + "instance\202\323\344\223\002^\022\\/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instances/{instance}" - + "/getShieldedInstanceIdentity\022\341\001\n\006Insert\022" - + "..google.cloud.compute.v1.InsertInstance" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\202\001\332A\036project,zone,instance_resource\212" - + "N\016ZoneOperations\202\323\344\223\002J\"5/compute/v1/proj" - + "ects/{project}/zones/{zone}/instances:\021i" - + "nstance_resource\022\252\001\n\004List\022-.google.cloud" - + ".compute.v1.ListInstancesRequest\032%.googl" - + "e.cloud.compute.v1.InstanceList\"L\332A\014proj" - + "ect,zone\202\323\344\223\0027\0225/compute/v1/projects/{pr" - + "oject}/zones/{zone}/instances\022\343\001\n\rListRe" - + "ferrers\0226.google.cloud.compute.v1.ListRe" - + "ferrersInstancesRequest\032..google.cloud.c" - + "ompute.v1.InstanceListReferrers\"j\332A\025proj" - + "ect,zone,instance\202\323\344\223\002L\022J/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances/{" - + "instance}/referrers\022\373\001\n\022PerformMaintenan" - + "ce\022:.google.cloud.compute.v1.PerformMain" - + "tenanceInstanceRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\204\001\332A\025project,zone,ins" - + "tance\212N\016ZoneOperations\202\323\344\223\002U\"S/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces/{instance}/performMaintenance\022\361\002\n\026Re" - + "moveResourcePolicies\022>.google.cloud.comp" - + "ute.v1.RemoveResourcePoliciesInstanceReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\362\001\332AIproject,zone,instance,instances_re" - + "move_resource_policies_request_resource\212" - + "N\016ZoneOperations\202\323\344\223\002\216\001\"W/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances/{" - + "instance}/removeResourcePolicies:3instan" - + "ces_remove_resource_policies_request_res" - + "ource\022\337\002\n\022ReportHostAsFaulty\022:.google.cl" - + "oud.compute.v1.ReportHostAsFaultyInstanc" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\350\001\332AFproject,zone,instance,instance" - + "s_report_host_as_faulty_request_resource" - + "\212N\016ZoneOperations\202\323\344\223\002\207\001\"S/compute/v1/pr" + + "}/instances/{instance}/addResourcePolici" + + "es:0instances_add_resource_policies_requ" + + "est_resource\022\301\001\n\016AggregatedList\0227.google" + + ".cloud.compute.v1.AggregatedListInstance" + + "sRequest\032/.google.cloud.compute.v1.Insta" + + "nceAggregatedList\"E\332A\007project\202\323\344\223\0025\0223/co" + + "mpute/v1/projects/{project}/aggregated/i" + + "nstances\022\222\002\n\nAttachDisk\0222.google.cloud.c" + + "ompute.v1.AttachDiskInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\253\001\332A,pro" + + "ject,zone,instance,attached_disk_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002e\"K/compute/v1/pr" + "ojects/{project}/zones/{zone}/instances/" - + "{instance}/reportHostAsFaulty:0instances" - + "_report_host_as_faulty_request_resource\022" - + "\323\001\n\005Reset\022-.google.cloud.compute.v1.Rese" - + "tInstanceRequest\032\".google.cloud.compute." - + "v1.Operation\"w\332A\025project,zone,instance\212N" - + "\016ZoneOperations\202\323\344\223\002H\"F/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/reset\022\326\001\n\006Resume\022..google.cloud." - + "compute.v1.ResumeInstanceRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"x\332A\025project" - + ",zone,instance\212N\016ZoneOperations\202\323\344\223\002I\"G/" + + "{instance}/attachDisk:\026attached_disk_res" + + "ource\022\236\002\n\nBulkInsert\0222.google.cloud.comp" + + "ute.v1.BulkInsertInstanceRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\267\001\332A3projec" + + "t,zone,bulk_insert_instance_resource_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002j\"@/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/bulkInsert:&bulk_insert_instance_res" + + "ource_resource\022\317\001\n\006Delete\022..google.cloud" + + ".compute.v1.DeleteInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"q\332A\025projec" + + "t,zone,instance\212N\016ZoneOperations\202\323\344\223\002B*@" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instances/{instance}\022\233\002\n\022DeleteAcces" + + "sConfig\022:.google.cloud.compute.v1.Delete" + + "AccessConfigInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\244\001\332A5project,zon" + + "e,instance,access_config,network_interfa" + + "ce\212N\016ZoneOperations\202\323\344\223\002U\"S/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + "/{instance}/deleteAccessConfig\022\236\002\n\026Delet" + + "eNetworkInterface\022>.google.cloud.compute" + + ".v1.DeleteNetworkInterfaceInstanceReques" + + "t\032\".google.cloud.compute.v1.Operation\"\237\001" + + "\332A,project,zone,instance,network_interfa" + + "ce_name\212N\016ZoneOperations\202\323\344\223\002Y\"W/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/deleteNetworkInterface\022" + + "\357\001\n\nDetachDisk\0222.google.cloud.compute.v1" + + ".DetachDiskInstanceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\210\001\332A!project,zone" + + ",instance,device_name\212N\016ZoneOperations\202\323" + + "\344\223\002M\"K/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{instance}/detachDis" + + "k\022\267\001\n\003Get\022+.google.cloud.compute.v1.GetI" + + "nstanceRequest\032!.google.cloud.compute.v1" + + ".Instance\"`\332A\025project,zone,instance\202\323\344\223\002" + + "B\022@/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{instance}\022\242\002\n\025GetEffec", + "tiveFirewalls\022=.google.cloud.compute.v1." + + "GetEffectiveFirewallsInstanceRequest\032?.g" + + "oogle.cloud.compute.v1.InstancesGetEffec" + + "tiveFirewallsResponse\"\210\001\332A\'project,zone," + + "instance,network_interface\202\323\344\223\002X\022V/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stances/{instance}/getEffectiveFirewalls" + + "\022\357\001\n\022GetGuestAttributes\022:.google.cloud.c" + + "ompute.v1.GetGuestAttributesInstanceRequ" + + "est\032(.google.cloud.compute.v1.GuestAttri" + + "butes\"s\332A\025project,zone,instance\202\323\344\223\002U\022S/" + "compute/v1/projects/{project}/zones/{zon" - + "e}/instances/{instance}/resume\022\226\002\n\027SendD" - + "iagnosticInterrupt\022?.google.cloud.comput" - + "e.v1.SendDiagnosticInterruptInstanceRequ" - + "est\032@.google.cloud.compute.v1.SendDiagno" - + "sticInterruptInstanceResponse\"x\332A\025projec" - + "t,zone,instance\202\323\344\223\002Z\"X/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{in" - + "stance}/sendDiagnosticInterrupt\022\204\002\n\025SetD" - + "eletionProtection\022=.google.cloud.compute" - + ".v1.SetDeletionProtectionInstanceRequest" - + "\032\".google.cloud.compute.v1.Operation\"\207\001\332" - + "A\025project,zone,resource\212N\016ZoneOperations" - + "\202\323\344\223\002X\"V/compute/v1/projects/{project}/z" - + "ones/{zone}/instances/{resource}/setDele" - + "tionProtection\022\220\002\n\021SetDiskAutoDelete\0229.g" - + "oogle.cloud.compute.v1.SetDiskAutoDelete" - + "InstanceRequest\032\".google.cloud.compute.v" - + "1.Operation\"\233\001\332A-project,zone,instance,a" - + "uto_delete,device_name\212N\016ZoneOperations\202" - + "\323\344\223\002T\"R/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/setDiskA" - + "utoDelete\022\230\002\n\014SetIamPolicy\0224.google.clou" - + "d.compute.v1.SetIamPolicyInstanceRequest" - + "\032\037.google.cloud.compute.v1.Policy\"\260\001\332A6p" - + "roject,zone,resource,zone_set_policy_req" - + "uest_resource\202\323\344\223\002q\"M/compute/v1/project" - + "s/{project}/zones/{zone}/instances/{reso" - + "urce}/setIamPolicy: zone_set_policy_requ" - + "est_resource\022\255\002\n\tSetLabels\0221.google.clou" - + "d.compute.v1.SetLabelsInstanceRequest\032\"." - + "google.cloud.compute.v1.Operation\"\310\001\332A;p" - + "roject,zone,instance,instances_set_label" - + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" - + "s\"J/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{instance}/setLabels:%i" - + "nstances_set_labels_request_resource\022\342\002\n" - + "\023SetMachineResources\022;.google.cloud.comp" - + "ute.v1.SetMachineResourcesInstanceReques" - + "t\032\".google.cloud.compute.v1.Operation\"\351\001" - + "\332AFproject,zone,instance,instances_set_m" - + "achine_resources_request_resource\212N\016Zone" - + "Operations\202\323\344\223\002\210\001\"T/compute/v1/projects/" + + "e}/instances/{instance}/getGuestAttribut" + + "es\022\324\001\n\014GetIamPolicy\0224.google.cloud.compu" + + "te.v1.GetIamPolicyInstanceRequest\032\037.goog" + + "le.cloud.compute.v1.Policy\"m\332A\025project,z" + + "one,resource\202\323\344\223\002O\022M/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{resou" + + "rce}/getIamPolicy\022\330\001\n\rGetScreenshot\0225.go" + + "ogle.cloud.compute.v1.GetScreenshotInsta" + + "nceRequest\032#.google.cloud.compute.v1.Scr" + + "eenshot\"k\332A\025project,zone,instance\202\323\344\223\002M\022" + + "K/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}/screenshot\022\352\001\n" + + "\023GetSerialPortOutput\022;.google.cloud.comp" + + "ute.v1.GetSerialPortOutputInstanceReques" + + "t\032).google.cloud.compute.v1.SerialPortOu" + + "tput\"k\332A\025project,zone,instance\202\323\344\223\002M\022K/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}/serialPort\022\223\002\n\033Ge" + + "tShieldedInstanceIdentity\022C.google.cloud" + + ".compute.v1.GetShieldedInstanceIdentityI" + + "nstanceRequest\0321.google.cloud.compute.v1" + + ".ShieldedInstanceIdentity\"|\332A\025project,zo" + + "ne,instance\202\323\344\223\002^\022\\/compute/v1/projects/" + "{project}/zones/{zone}/instances/{instan" - + "ce}/setMachineResources:0instances_set_m" - + "achine_resources_request_resource\022\310\002\n\016Se" - + "tMachineType\0226.google.cloud.compute.v1.S" - + "etMachineTypeInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\331\001\332AAproject,zo" - + "ne,instance,instances_set_machine_type_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002~\"O" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/setMachineType:" - + "+instances_set_machine_type_request_reso" - + "urce\022\213\002\n\013SetMetadata\0223.google.cloud.comp" - + "ute.v1.SetMetadataInstanceRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\242\001\332A\'proje" - + "ct,zone,instance,metadata_resource\212N\016Zon" - + "eOperations\202\323\344\223\002a\"L/compute/v1/projects/" - + "{project}/zones/{zone}/instances/{instan" - + "ce}/setMetadata:\021metadata_resource\022\332\002\n\021S" - + "etMinCpuPlatform\0229.google.cloud.compute." - + "v1.SetMinCpuPlatformInstanceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\345\001\332AEpro" - + "ject,zone,instance,instances_set_min_cpu" - + "_platform_request_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002\205\001\"R/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{instance}/set" - + "MinCpuPlatform:/instances_set_min_cpu_pl" - + "atform_request_resource\022\243\002\n\007SetName\022/.go" - + "ogle.cloud.compute.v1.SetNameInstanceReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\302\001\332A9project,zone,instance,instances_se" - + "t_name_request_resource\212N\016ZoneOperations" - + "\202\323\344\223\002o\"H/compute/v1/projects/{project}/z" - + "ones/{zone}/instances/{instance}/setName" - + ":#instances_set_name_request_resource\022\225\002" - + "\n\rSetScheduling\0225.google.cloud.compute.v" - + "1.SetSchedulingInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\250\001\332A)project," - + "zone,instance,scheduling_resource\212N\016Zone" - + "Operations\202\323\344\223\002e\"N/compute/v1/projects/{" - + "project}/zones/{zone}/instances/{instanc", - "e}/setScheduling:\023scheduling_resource\022\330\002" - + "\n\021SetSecurityPolicy\0229.google.cloud.compu" - + "te.v1.SetSecurityPolicyInstanceRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\343\001\332AD" - + "project,zone,instance,instances_set_secu" - + "rity_policy_request_resource\212N\016ZoneOpera" - + "tions\202\323\344\223\002\204\001\"R/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{instance}/s" - + "etSecurityPolicy:.instances_set_security" - + "_policy_request_resource\022\330\002\n\021SetServiceA" - + "ccount\0229.google.cloud.compute.v1.SetServ" - + "iceAccountInstanceRequest\032\".google.cloud" - + ".compute.v1.Operation\"\343\001\332ADproject,zone," - + "instance,instances_set_service_account_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\204\001\"" - + "R/compute/v1/projects/{project}/zones/{z" - + "one}/instances/{instance}/setServiceAcco" - + "unt:.instances_set_service_account_reque" - + "st_resource\022\205\003\n\"SetShieldedInstanceInteg" - + "rityPolicy\022J.google.cloud.compute.v1.Set" - + "ShieldedInstanceIntegrityPolicyInstanceR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\356\001\332AAproject,zone,instance,shielded_i" - + "nstance_integrity_policy_resource\212N\016Zone" - + "Operations\202\323\344\223\002\222\0012c/compute/v1/projects/" - + "{project}/zones/{zone}/instances/{instan" - + "ce}/setShieldedInstanceIntegrityPolicy:+" - + "shielded_instance_integrity_policy_resou" - + "rce\022\367\001\n\007SetTags\022/.google.cloud.compute.v" - + "1.SetTagsInstanceRequest\032\".google.cloud." - + "compute.v1.Operation\"\226\001\332A#project,zone,i" - + "nstance,tags_resource\212N\016ZoneOperations\202\323" - + "\344\223\002Y\"H/compute/v1/projects/{project}/zon" - + "es/{zone}/instances/{instance}/setTags:\r" - + "tags_resource\022\215\002\n\030SimulateMaintenanceEve" - + "nt\022@.google.cloud.compute.v1.SimulateMai" - + "ntenanceEventInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\212\001\332A\025project,zo" - + "ne,instance\212N\016ZoneOperations\202\323\344\223\002[\"Y/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instances/{instance}/simulateMaintenance" - + "Event\022\323\001\n\005Start\022-.google.cloud.compute.v" - + "1.StartInstanceRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"w\332A\025project,zone,inst" - + "ance\212N\016ZoneOperations\202\323\344\223\002H\"F/compute/v1" + + "ce}/getShieldedInstanceIdentity\022\341\001\n\006Inse" + + "rt\022..google.cloud.compute.v1.InsertInsta" + + "nceRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\202\001\332A\036project,zone,instance_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002J\"5/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + ":\021instance_resource\022\252\001\n\004List\022-.google.cl" + + "oud.compute.v1.ListInstancesRequest\032%.go" + + "ogle.cloud.compute.v1.InstanceList\"L\332A\014p" + + "roject,zone\202\323\344\223\0027\0225/compute/v1/projects/" + + "{project}/zones/{zone}/instances\022\343\001\n\rLis" + + "tReferrers\0226.google.cloud.compute.v1.Lis" + + "tReferrersInstancesRequest\032..google.clou" + + "d.compute.v1.InstanceListReferrers\"j\332A\025p" + + "roject,zone,instance\202\323\344\223\002L\022J/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/referrers\022\373\001\n\022PerformMainte" + + "nance\022:.google.cloud.compute.v1.PerformM" + + "aintenanceInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"\204\001\332A\025project,zone," + + "instance\212N\016ZoneOperations\202\323\344\223\002U\"S/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tances/{instance}/performMaintenance\022\361\002\n" + + "\026RemoveResourcePolicies\022>.google.cloud.c" + + "ompute.v1.RemoveResourcePoliciesInstance" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\362\001\332AIproject,zone,instance,instances" + + "_remove_resource_policies_request_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002\216\001\"W/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/removeResourcePolicies:3ins" + + "tances_remove_resource_policies_request_" + + "resource\022\337\002\n\022ReportHostAsFaulty\022:.google" + + ".cloud.compute.v1.ReportHostAsFaultyInst" + + "anceRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\350\001\332AFproject,zone,instance,insta" + + "nces_report_host_as_faulty_request_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002\207\001\"S/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/start\022\363\002\n\026StartWithEncrypt" - + "ionKey\022>.google.cloud.compute.v1.StartWi" - + "thEncryptionKeyInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\364\001\332AJproject," - + "zone,instance,instances_start_with_encry" - + "ption_key_request_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002\217\001\"W/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{instance}/sta" - + "rtWithEncryptionKey:4instances_start_wit" - + "h_encryption_key_request_resource\022\320\001\n\004St" - + "op\022,.google.cloud.compute.v1.StopInstanc" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"v\332A\025project,zone,instance\212N\016ZoneOpe" - + "rations\202\323\344\223\002G\"E/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instances/{instance}/" - + "stop\022\331\001\n\007Suspend\022/.google.cloud.compute." - + "v1.SuspendInstanceRequest\032\".google.cloud" - + ".compute.v1.Operation\"y\332A\025project,zone,i" - + "nstance\212N\016ZoneOperations\202\323\344\223\002J\"H/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{instance}/suspend\022\275\002\n\022TestIamPerm" - + "issions\022:.google.cloud.compute.v1.TestIa" - + "mPermissionsInstanceRequest\0320.google.clo" - + "ud.compute.v1.TestPermissionsResponse\"\270\001" - + "\332A7project,zone,resource,test_permission" - + "s_request_resource\202\323\344\223\002x\"S/compute/v1/pr" + + "es/{instance}/reportHostAsFaulty:0instan" + + "ces_report_host_as_faulty_request_resour" + + "ce\022\323\001\n\005Reset\022-.google.cloud.compute.v1.R" + + "esetInstanceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"w\332A\025project,zone,instanc" + + "e\212N\016ZoneOperations\202\323\344\223\002H\"F/compute/v1/pr" + "ojects/{project}/zones/{zone}/instances/" - + "{resource}/testIamPermissions:!test_perm" - + "issions_request_resource\022\365\001\n\006Update\022..go" - + "ogle.cloud.compute.v1.UpdateInstanceRequ" + + "{instance}/reset\022\326\001\n\006Resume\022..google.clo" + + "ud.compute.v1.ResumeInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"x\332A\025proj" + + "ect,zone,instance\212N\016ZoneOperations\202\323\344\223\002I" + + "\"G/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/resume\022\226\002\n\027Se" + + "ndDiagnosticInterrupt\022?.google.cloud.com" + + "pute.v1.SendDiagnosticInterruptInstanceR" + + "equest\032@.google.cloud.compute.v1.SendDia" + + "gnosticInterruptInstanceResponse\"x\332A\025pro" + + "ject,zone,instance\202\323\344\223\002Z\"X/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{instance}/sendDiagnosticInterrupt\022\204\002\n\025S" + + "etDeletionProtection\022=.google.cloud.comp" + + "ute.v1.SetDeletionProtectionInstanceRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\226\001\332A\'project,zone,instance,instance_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002U\032@/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}:\021instance_resource\022\274\002\n\022Upd" - + "ateAccessConfig\022:.google.cloud.compute.v" - + "1.UpdateAccessConfigInstanceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\305\001\332A>pro" - + "ject,zone,instance,network_interface,acc" - + "ess_config_resource\212N\016ZoneOperations\202\323\344\223" - + "\002m\"S/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/updateAcces" - + "sConfig:\026access_config_resource\022\257\002\n\023Upda" - + "teDisplayDevice\022;.google.cloud.compute.v" - + "1.UpdateDisplayDeviceInstanceRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\266\001\332A-pr" - + "oject,zone,instance,display_device_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002o2T/compute/v1/" - + "projects/{project}/zones/{zone}/instance" - + "s/{instance}/updateDisplayDevice:\027displa" - + "y_device_resource\022\320\002\n\026UpdateNetworkInter" - + "face\022>.google.cloud.compute.v1.UpdateNet" - + "workInterfaceInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\321\001\332ABproject,zo" - + "ne,instance,network_interface,network_in" - + "terface_resource\212N\016ZoneOperations\202\323\344\223\002u2" - + "W/compute/v1/projects/{project}/zones/{z" - + "one}/instances/{instance}/updateNetworkI" - + "nterface:\032network_interface_resource\022\337\002\n" - + "\034UpdateShieldedInstanceConfig\022D.google.c" - + "loud.compute.v1.UpdateShieldedInstanceCo" - + "nfigInstanceRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\324\001\332A7project,zone,instan" - + "ce,shielded_instance_config_resource\212N\016Z" - + "oneOperations\202\323\344\223\002\202\0012]/compute/v1/projec" + + "\207\001\332A\025project,zone,resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002X\"V/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{resource}/setD" + + "eletionProtection\022\220\002\n\021SetDiskAutoDelete\022" + + "9.google.cloud.compute.v1.SetDiskAutoDel" + + "eteInstanceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\233\001\332A-project,zone,instanc" + + "e,auto_delete,device_name\212N\016ZoneOperatio" + + "ns\202\323\344\223\002T\"R/compute/v1/projects/{project}" + + "/zones/{zone}/instances/{instance}/setDi" + + "skAutoDelete\022\230\002\n\014SetIamPolicy\0224.google.c" + + "loud.compute.v1.SetIamPolicyInstanceRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"\260\001\332" + + "A6project,zone,resource,zone_set_policy_" + + "request_resource\202\323\344\223\002q\"M/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{r" + + "esource}/setIamPolicy: zone_set_policy_r" + + "equest_resource\022\255\002\n\tSetLabels\0221.google.c" + + "loud.compute.v1.SetLabelsInstanceRequest" + + "\032\".google.cloud.compute.v1.Operation\"\310\001\332" + + "A;project,zone,instance,instances_set_la" + + "bels_request_resource\212N\016ZoneOperations\202\323" + + "\344\223\002s\"J/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{instance}/setLabels" + + ":%instances_set_labels_request_resource\022" + + "\342\002\n\023SetMachineResources\022;.google.cloud.c" + + "ompute.v1.SetMachineResourcesInstanceReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\351\001\332AFproject,zone,instance,instances_se" + + "t_machine_resources_request_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\210\001\"T/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/{ins" + + "tance}/setMachineResources:0instances_se" + + "t_machine_resources_request_resource\022\310\002\n" + + "\016SetMachineType\0226.google.cloud.compute.v" + + "1.SetMachineTypeInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\331\001\332AAproject" + + ",zone,instance,instances_set_machine_typ" + + "e_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "~\"O/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{instance}/setMachineTy" + + "pe:+instances_set_machine_type_request_r" + + "esource\022\213\002\n\013SetMetadata\0223.google.cloud.c" + + "ompute.v1.SetMetadataInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\242\001\332A\'pr" + + "oject,zone,instance,metadata_resource\212N\016" + + "ZoneOperations\202\323\344\223\002a\"L/compute/v1/projec" + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/updateShieldedInstanceConfig:!shi" - + "elded_instance_config_resource\032r\312A\026compu" + + "tance}/setMetadata:\021metadata_resource\022\332\002" + + "\n\021SetMinCpuPlatform\0229.google.cloud.compu" + + "te.v1.SetMinCpuPlatformInstanceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\345\001\332AE" + + "project,zone,instance,instances_set_min_" + + "cpu_platform_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\205\001\"R/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "setMinCpuPlatform:/instances_set_min_cpu" + + "_platform_request_resource\022\243\002\n\007SetName\022/" + + ".google.cloud.compute.v1.SetNameInstance" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\302\001\332A9project,zone,instance,instances" + + "_set_name_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002o\"H/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/setN" + + "ame:#instances_set_name_request_resource" + + "\022\225\002\n\rSetScheduling\0225.google.cloud.comput" + + "e.v1.SetSchedulingInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\250\001\332A)proje" + + "ct,zone,instance,scheduling_resource\212N\016Z" + + "oneOperations\202\323\344\223\002e\"N/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}/setScheduling:\023scheduling_resource" + + "\022\330\002\n\021SetSecurityPolicy\0229.google.cloud.co" + + "mpute.v1.SetSecurityPolicyInstanceReques" + + "t\032\".google.cloud.compute.v1.Operation\"\343\001" + + "\332ADproject,zone,instance,instances_set_s" + + "ecurity_policy_request_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002\204\001\"R/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{instance" + + "}/setSecurityPolicy:.instances_set_secur" + + "ity_policy_request_resource\022\330\002\n\021SetServi" + + "ceAccount\0229.google.cloud.compute.v1.SetS" + + "erviceAccountInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\343\001\332ADproject,zo" + + "ne,instance,instances_set_service_accoun" + + "t_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\204\001\"R/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/setServiceA" + + "ccount:.instances_set_service_account_re" + + "quest_resource\022\205\003\n\"SetShieldedInstanceIn" + + "tegrityPolicy\022J.google.cloud.compute.v1." + + "SetShieldedInstanceIntegrityPolicyInstan" + + "ceRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\356\001\332AAproject,zone,instance,shielde" + + "d_instance_integrity_policy_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\222\0012c/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/{ins" + + "tance}/setShieldedInstanceIntegrityPolic" + + "y:+shielded_instance_integrity_policy_re" + + "source\022\367\001\n\007SetTags\022/.google.cloud.comput" + + "e.v1.SetTagsInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\226\001\332A#project,zon" + + "e,instance,tags_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002Y\"H/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{instance}/setTag" + + "s:\rtags_resource\022\215\002\n\030SimulateMaintenance" + + "Event\022@.google.cloud.compute.v1.Simulate" + + "MaintenanceEventInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\212\001\332A\025project" + + ",zone,instance\212N\016ZoneOperations\202\323\344\223\002[\"Y/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/simulateMaintena" + + "nceEvent\022\323\001\n\005Start\022-.google.cloud.comput" + + "e.v1.StartInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"w\332A\025project,zone,i" + + "nstance\212N\016ZoneOperations\202\323\344\223\002H\"F/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/start\022\363\002\n\026StartWithEncr" + + "yptionKey\022>.google.cloud.compute.v1.Star" + + "tWithEncryptionKeyInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\364\001\332AJproje" + + "ct,zone,instance,instances_start_with_en" + + "cryption_key_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\217\001\"W/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "startWithEncryptionKey:4instances_start_" + + "with_encryption_key_request_resource\022\320\001\n" + + "\004Stop\022,.google.cloud.compute.v1.StopInst" + + "anceRequest\032\".google.cloud.compute.v1.Op" + + "eration\"v\332A\025project,zone,instance\212N\016Zone" + + "Operations\202\323\344\223\002G\"E/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}/stop\022\331\001\n\007Suspend\022/.google.cloud.compu" + + "te.v1.SuspendInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"y\332A\025project,zon" + + "e,instance\212N\016ZoneOperations\202\323\344\223\002J\"H/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}/suspend\022\275\002\n\022TestIamP" + + "ermissions\022:.google.cloud.compute.v1.Tes" + + "tIamPermissionsInstanceRequest\0320.google." + + "cloud.compute.v1.TestPermissionsResponse" + + "\"\270\001\332A7project,zone,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002x\"S/compute/v1" + + "/projects/{project}/zones/{zone}/instanc" + + "es/{resource}/testIamPermissions:!test_p" + + "ermissions_request_resource\022\365\001\n\006Update\022." + + ".google.cloud.compute.v1.UpdateInstanceR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\226\001\332A\'project,zone,instance,instance_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002U\032@/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}:\021instance_resource\022\274\002\n\022" + + "UpdateAccessConfig\022:.google.cloud.comput" + + "e.v1.UpdateAccessConfigInstanceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\305\001\332A>" + + "project,zone,instance,network_interface," + + "access_config_resource\212N\016ZoneOperations\202" + + "\323\344\223\002m\"S/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{instance}/updateAc" + + "cessConfig:\026access_config_resource\022\257\002\n\023U" + + "pdateDisplayDevice\022;.google.cloud.comput" + + "e.v1.UpdateDisplayDeviceInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\266\001\332A" + + "-project,zone,instance,display_device_re" + + "source\212N\016ZoneOperations\202\323\344\223\002o2T/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nces/{instance}/updateDisplayDevice:\027dis" + + "play_device_resource\022\320\002\n\026UpdateNetworkIn" + + "terface\022>.google.cloud.compute.v1.Update" + + "NetworkInterfaceInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\321\001\332ABproject" + + ",zone,instance,network_interface,network" + + "_interface_resource\212N\016ZoneOperations\202\323\344\223" + + "\002u2W/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/updateNetwo" + + "rkInterface:\032network_interface_resource\022" + + "\337\002\n\034UpdateShieldedInstanceConfig\022D.googl" + + "e.cloud.compute.v1.UpdateShieldedInstanc" + + "eConfigInstanceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\324\001\332A7project,zone,ins" + + "tance,shielded_instance_config_resource\212" + + "N\016ZoneOperations\202\323\344\223\002\202\0012]/compute/v1/pro" + + "jects/{project}/zones/{zone}/instances/{" + + "instance}/updateShieldedInstanceConfig:!" + + "shielded_instance_config_resource\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\362\017\n\025Instan" + + "tSnapshotGroups\022\204\002\n\006Delete\022:.google.clou" + + "d.compute.v1.DeleteInstantSnapshotGroupR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\231\001\332A#project,zone,instant_snapshot_gr" + + "oup\212N\016ZoneOperations\202\323\344\223\002\\*Z/compute/v1/" + + "projects/{project}/zones/{zone}/instantS" + + "napshotGroups/{instant_snapshot_group}\022\370" + + "\001\n\003Get\0227.google.cloud.compute.v1.GetInst" + + "antSnapshotGroupRequest\032-.google.cloud.c" + + "ompute.v1.InstantSnapshotGroup\"\210\001\332A#proj" + + "ect,zone,instant_snapshot_group\202\323\344\223\002\\\022Z/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instantSnapshotGroups/{instant_snapsh" + + "ot_group}\022\354\001\n\014GetIamPolicy\022@.google.clou" + + "d.compute.v1.GetIamPolicyInstantSnapshot" + + "GroupRequest\032\037.google.cloud.compute.v1.P" + + "olicy\"y\332A\025project,zone,resource\202\323\344\223\002[\022Y/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instantSnapshotGroups/{resource}/getI" + + "amPolicy\022\225\002\n\006Insert\022:.google.cloud.compu" + + "te.v1.InsertInstantSnapshotGroupRequest\032" + + "\".google.cloud.compute.v1.Operation\"\252\001\332A" + + ",project,zone,instant_snapshot_group_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002d\"A/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "tSnapshotGroups:\037instant_snapshot_group_" + + "resource\022\317\001\n\004List\0229.google.cloud.compute" + + ".v1.ListInstantSnapshotGroupsRequest\0322.g" + + "oogle.cloud.compute.v1.ListInstantSnapsh" + + "otGroups\"X\332A\014project,zone\202\323\344\223\002C\022A/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tantSnapshotGroups\022\260\002\n\014SetIamPolicy\022@.go" + + "ogle.cloud.compute.v1.SetIamPolicyInstan" + + "tSnapshotGroupRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"\274\001\332A6project,zone,resourc" + + "e,zone_set_policy_request_resource\202\323\344\223\002}" + + "\"Y/compute/v1/projects/{project}/zones/{" + + "zone}/instantSnapshotGroups/{resource}/s" + + "etIamPolicy: zone_set_policy_request_res" + + "ource\022\326\002\n\022TestIamPermissions\022F.google.cl" + + "oud.compute.v1.TestIamPermissionsInstant" + + "SnapshotGroupRequest\0320.google.cloud.comp" + + "ute.v1.TestPermissionsResponse\"\305\001\332A7proj" + + "ect,zone,resource,test_permissions_reque" + + "st_resource\202\323\344\223\002\204\001\"_/compute/v1/projects" + + "/{project}/zones/{zone}/instantSnapshotG" + + "roups/{resource}/testIamPermissions:!tes" + + "t_permissions_request_resource\032r\312A\026compu" + "te.googleapis.com\322AVhttps://www.googleap" + "is.com/auth/compute,https://www.googleap" + "is.com/auth/cloud-platform2\203\023\n\020InstantSn" @@ -32466,8 +33713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".com/auth/compute,https://www.googleapis" + ".com/auth/cloud-platform2\246\026\n\034Interconnec" + "tAttachmentGroups\022\227\002\n\006Delete\022A.google.cl" - + "oud.compute.v1.DeleteInterconnectAttachm" - + "entGroupRequest\032\".google.cloud.compute.v" + + "oud.compute.v1.DeleteInterconnectAttachm", + "entGroupRequest\032\".google.cloud.compute.v" + "1.Operation\"\245\001\332A%project,interconnect_at" + "tachment_group\212N\020GlobalOperations\202\323\344\223\002d*" + "b/compute/v1/projects/{project}/global/i" @@ -32686,8 +33933,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oteLocations/{interconnect_remote_locati" + "on}\022\325\001\n\004List\022?.google.cloud.compute.v1.L" + "istInterconnectRemoteLocationsRequest\0327." - + "google.cloud.compute.v1.InterconnectRemo", - "teLocationList\"S\332A\007project\202\323\344\223\002C\022A/compu" + + "google.cloud.compute.v1.InterconnectRemo" + + "teLocationList\"S\332A\007project\202\323\344\223\002C\022A/compu" + "te/v1/projects/{project}/global/intercon" + "nectRemoteLocations\032\244\001\312A\026compute.googlea" + "pis.com\322A\207\001https://www.googleapis.com/au" @@ -32866,8 +34113,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "quest\0322.google.cloud.compute.v1.MachineT" + "ypeAggregatedList\"H\332A\007project\202\323\344\223\0028\0226/co" + "mpute/v1/projects/{project}/aggregated/m" - + "achineTypes\022\310\001\n\003Get\022..google.cloud.compu" - + "te.v1.GetMachineTypeRequest\032$.google.clo" + + "achineTypes\022\310\001\n\003Get\022..google.cloud.compu", + "te.v1.GetMachineTypeRequest\032$.google.clo" + "ud.compute.v1.MachineType\"k\332A\031project,zo" + "ne,machine_type\202\323\344\223\002I\022G/compute/v1/proje" + "cts/{project}/zones/{zone}/machineTypes/" @@ -33086,8 +34333,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "y,firewall_policy_rule_resource\212N\020Global" + "Operations\202\323\344\223\002q\"P/compute/v1/projects/{" + "project}/global/firewallPolicies/{firewa" - + "ll_policy}/addRule:\035firewall_policy_rule", - "_resource\022\343\001\n\016AggregatedList\022E.google.cl" + + "ll_policy}/addRule:\035firewall_policy_rule" + + "_resource\022\343\001\n\016AggregatedList\022E.google.cl" + "oud.compute.v1.AggregatedListNetworkFire" + "wallPoliciesRequest\032<.google.cloud.compu" + "te.v1.NetworkFirewallPolicyAggregatedLis" @@ -33266,8 +34513,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "es\022\344\001\n\005Patch\022,.google.cloud.compute.v1.P" + "atchNetworkRequest\032\".google.cloud.comput" + "e.v1.Operation\"\210\001\332A project,network,netw" - + "ork_resource\212N\020GlobalOperations\202\323\344\223\002L28/" - + "compute/v1/projects/{project}/global/net" + + "ork_resource\212N\020GlobalOperations\202\323\344\223\002L28/", + "compute/v1/projects/{project}/global/net" + "works/{network}:\020network_resource\022\262\002\n\rRe" + "movePeering\0224.google.cloud.compute.v1.Re" + "movePeeringNetworkRequest\032\".google.cloud" @@ -33486,8 +34733,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_association_resource\212N\034GlobalOrganizati" + "onOperations\202\323\344\223\002v\"N/compute/v1/location" + "s/global/securityPolicies/{security_poli" - + "cy}/addAssociation:$security_policy_asso", - "ciation_resource\022\260\002\n\007AddRule\022A.google.cl" + + "cy}/addAssociation:$security_policy_asso" + + "ciation_resource\022\260\002\n\007AddRule\022A.google.cl" + "oud.compute.v1.AddRuleOrganizationSecuri" + "tyPolicyRequest\032\".google.cloud.compute.v" + "1.Operation\"\275\001\332A-security_policy,securit" @@ -33666,8 +34913,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "disable_xpn_resource_request_resource\212N\020" + "GlobalOperations\202\323\344\223\002c\"1/compute/v1/proj" + "ects/{project}/disableXpnResource:.proje" - + "cts_disable_xpn_resource_request_resourc" - + "e\022\274\001\n\rEnableXpnHost\0224.google.cloud.compu" + + "cts_disable_xpn_resource_request_resourc", + "e\022\274\001\n\rEnableXpnHost\0224.google.cloud.compu" + "te.v1.EnableXpnHostProjectRequest\032\".goog" + "le.cloud.compute.v1.Operation\"Q\332A\007projec" + "t\212N\020GlobalOperations\202\323\344\223\002.\",/compute/v1/" @@ -33886,8 +35133,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.compute.v1.TestPermissionsResp" + "onse\"\300\001\332A9project,region,resource,test_p" + "ermissions_request_resource\202\323\344\223\002~\"Y/comp" - + "ute/v1/projects/{project}/regions/{regio", - "n}/autoscalers/{resource}/testIamPermiss" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/autoscalers/{resource}/testIamPermiss" + "ions:!test_permissions_request_resource\022" + "\367\001\n\006Update\0226.google.cloud.compute.v1.Upd" + "ateRegionAutoscalerRequest\032\".google.clou" @@ -33898,3063 +35145,3370 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_resource\032r\312A\026compute.googleapis.com\322AVh" + "ttps://www.googleapis.com/auth/compute,h" + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\275\033\n\025RegionBackendServices\022\370\001\n\006Dele" - + "te\022:.google.cloud.compute.v1.DeleteRegio" - + "nBackendServiceRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\215\001\332A\036project,region,b" - + "ackend_service\212N\020RegionOperations\202\323\344\223\002S*" - + "Q/compute/v1/projects/{project}/regions/" - + "{region}/backendServices/{backend_servic" - + "e}\022\343\001\n\003Get\0227.google.cloud.compute.v1.Get" - + "RegionBackendServiceRequest\032\'.google.clo" - + "ud.compute.v1.BackendService\"z\332A\036project" - + ",region,backend_service\202\323\344\223\002S\022Q/compute/" - + "v1/projects/{project}/regions/{region}/b" - + "ackendServices/{backend_service}\022\313\002\n\tGet" - + "Health\022=.google.cloud.compute.v1.GetHeal" - + "thRegionBackendServiceRequest\0322.google.c" - + "loud.compute.v1.BackendServiceGroupHealt" - + "h\"\312\001\332A@project,region,backend_service,re" - + "source_group_reference_resource\202\323\344\223\002\200\001\"[" - + "/compute/v1/projects/{project}/regions/{" - + "region}/backendServices/{backend_service" - + "}/getHealth:!resource_group_reference_re" - + "source\022\354\001\n\014GetIamPolicy\022@.google.cloud.c" - + "ompute.v1.GetIamPolicyRegionBackendServi" - + "ceRequest\032\037.google.cloud.compute.v1.Poli" - + "cy\"y\332A\027project,region,resource\202\323\344\223\002Y\022W/c" + + "tform2\266\023\n\024RegionBackendBuckets\022\364\001\n\006Delet" + + "e\0229.google.cloud.compute.v1.DeleteRegion" + + "BackendBucketRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\212\001\332A\035project,region,bac" + + "kend_bucket\212N\020RegionOperations\202\323\344\223\002Q*O/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/backendServices/{resource}/getIamP" - + "olicy\022\211\002\n\006Insert\022:.google.cloud.compute." - + "v1.InsertRegionBackendServiceRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\236\001\332A\'pr" - + "oject,region,backend_service_resource\212N\020" - + "RegionOperations\202\323\344\223\002[\"?/compute/v1/proj" - + "ects/{project}/regions/{region}/backendS" - + "ervices:\030backend_service_resource\022\310\001\n\004Li" - + "st\0229.google.cloud.compute.v1.ListRegionB" - + "ackendServicesRequest\032+.google.cloud.com" - + "pute.v1.BackendServiceList\"X\332A\016project,r" - + "egion\202\323\344\223\002A\022?/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendServices\022\345\001\n" - + "\nListUsable\022?.google.cloud.compute.v1.Li" - + "stUsableRegionBackendServicesRequest\0321.g" - + "oogle.cloud.compute.v1.BackendServiceLis" - + "tUsable\"c\332A\016project,region\202\323\344\223\002L\022J/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/backendServices/listUsable\022\251\002\n\005Patch\0229" - + ".google.cloud.compute.v1.PatchRegionBack" - + "endServiceRequest\032\".google.cloud.compute" - + ".v1.Operation\"\300\001\332A7project,region,backen" - + "d_service,backend_service_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002m2Q/compute/v1/project" - + "s/{project}/regions/{region}/backendServ" - + "ices/{backend_service}:\030backend_service_" - + "resource\022\264\002\n\014SetIamPolicy\022@.google.cloud" - + ".compute.v1.SetIamPolicyRegionBackendSer" - + "viceRequest\032\037.google.cloud.compute.v1.Po" - + "licy\"\300\001\332A:project,region,resource,region" - + "_set_policy_request_resource\202\323\344\223\002}\"W/com" + + "gion}/backendBuckets/{backend_bucket}\022\336\001" + + "\n\003Get\0226.google.cloud.compute.v1.GetRegio" + + "nBackendBucketRequest\032&.google.cloud.com" + + "pute.v1.BackendBucket\"w\332A\035project,region" + + ",backend_bucket\202\323\344\223\002Q\022O/compute/v1/proje" + + "cts/{project}/regions/{region}/backendBu" + + "ckets/{backend_bucket}\022\352\001\n\014GetIamPolicy\022" + + "?.google.cloud.compute.v1.GetIamPolicyRe" + + "gionBackendBucketRequest\032\037.google.cloud." + + "compute.v1.Policy\"x\332A\027project,region,res" + + "ource\202\323\344\223\002X\022V/compute/v1/projects/{proje" + + "ct}/regions/{region}/backendBuckets/{res" + + "ource}/getIamPolicy\022\205\002\n\006Insert\0229.google." + + "cloud.compute.v1.InsertRegionBackendBuck" + + "etRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\233\001\332A&project,region,backend_bucket" + + "_resource\212N\020RegionOperations\202\323\344\223\002Y\">/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/backendServices/{resource}/setIamPol" - + "icy:\"region_set_policy_request_resource\022" - + "\350\002\n\021SetSecurityPolicy\022E.google.cloud.com" - + "pute.v1.SetSecurityPolicyRegionBackendSe" - + "rviceRequest\032\".google.cloud.compute.v1.O" - + "peration\"\347\001\332AAproject,region,backend_ser" - + "vice,security_policy_reference_resource\212" - + "N\020RegionOperations\202\323\344\223\002\211\001\"c/compute/v1/p" - + "rojects/{project}/regions/{region}/backe" - + "ndServices/{backend_service}/setSecurity" - + "Policy:\"security_policy_reference_resour" - + "ce\022\326\002\n\022TestIamPermissions\022F.google.cloud" - + ".compute.v1.TestIamPermissionsRegionBack" - + "endServiceRequest\0320.google.cloud.compute" - + ".v1.TestPermissionsResponse\"\305\001\332A9project" - + ",region,resource,test_permissions_reques" - + "t_resource\202\323\344\223\002\202\001\"]/compute/v1/projects/" - + "{project}/regions/{region}/backendServic" - + "es/{resource}/testIamPermissions:!test_p" - + "ermissions_request_resource\022\253\002\n\006Update\022:" - + ".google.cloud.compute.v1.UpdateRegionBac" - + "kendServiceRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\300\001\332A7project,region,backe" - + "nd_service,backend_service_resource\212N\020Re" - + "gionOperations\202\323\344\223\002m\032Q/compute/v1/projec" + + "on}/backendBuckets:\027backend_bucket_resou" + + "rce\022\305\001\n\004List\0228.google.cloud.compute.v1.L" + + "istRegionBackendBucketsRequest\032*.google." + + "cloud.compute.v1.BackendBucketList\"W\332A\016p" + + "roject,region\202\323\344\223\002@\022>/compute/v1/project" + + "s/{project}/regions/{region}/backendBuck" + + "ets\022\342\001\n\nListUsable\022>.google.cloud.comput" + + "e.v1.ListUsableRegionBackendBucketsReque" + + "st\0320.google.cloud.compute.v1.BackendBuck" + + "etListUsable\"b\332A\016project,region\202\323\344\223\002K\022I/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/backendBuckets/listUsable\022\243\002\n\005Pat" + + "ch\0228.google.cloud.compute.v1.PatchRegion" + + "BackendBucketRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\273\001\332A5project,region,bac" + + "kend_bucket,backend_bucket_resource\212N\020Re" + + "gionOperations\202\323\344\223\002j2O/compute/v1/projec" + + "ts/{project}/regions/{region}/backendBuc" + + "kets/{backend_bucket}:\027backend_bucket_re" + + "source\022\262\002\n\014SetIamPolicy\022?.google.cloud.c" + + "ompute.v1.SetIamPolicyRegionBackendBucke" + + "tRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"\277\001\332A:project,region,resource,region_se" + + "t_policy_request_resource\202\323\344\223\002|\"V/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/backendBuckets/{resource}/setIamPolicy:" + + "\"region_set_policy_request_resource\022\324\002\n\022" + + "TestIamPermissions\022E.google.cloud.comput" + + "e.v1.TestIamPermissionsRegionBackendBuck" + + "etRequest\0320.google.cloud.compute.v1.Test" + + "PermissionsResponse\"\304\001\332A9project,region," + + "resource,test_permissions_request_resour" + + "ce\202\323\344\223\002\201\001\"\\/compute/v1/projects/{project" + + "}/regions/{region}/backendBuckets/{resou" + + "rce}/testIamPermissions:!test_permission" + + "s_request_resource\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\275\033\n\025RegionBackendServices" + + "\022\370\001\n\006Delete\022:.google.cloud.compute.v1.De" + + "leteRegionBackendServiceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\215\001\332A\036project" + + ",region,backend_service\212N\020RegionOperatio" + + "ns\202\323\344\223\002S*Q/compute/v1/projects/{project}" + + "/regions/{region}/backendServices/{backe" + + "nd_service}\022\343\001\n\003Get\0227.google.cloud.compu" + + "te.v1.GetRegionBackendServiceRequest\032\'.g" + + "oogle.cloud.compute.v1.BackendService\"z\332" + + "A\036project,region,backend_service\202\323\344\223\002S\022Q" + + "/compute/v1/projects/{project}/regions/{" + + "region}/backendServices/{backend_service" + + "}\022\313\002\n\tGetHealth\022=.google.cloud.compute.v" + + "1.GetHealthRegionBackendServiceRequest\0322" + + ".google.cloud.compute.v1.BackendServiceG" + + "roupHealth\"\312\001\332A@project,region,backend_s" + + "ervice,resource_group_reference_resource" + + "\202\323\344\223\002\200\001\"[/compute/v1/projects/{project}/" + + "regions/{region}/backendServices/{backen" + + "d_service}/getHealth:!resource_group_ref" + + "erence_resource\022\354\001\n\014GetIamPolicy\022@.googl" + + "e.cloud.compute.v1.GetIamPolicyRegionBac" + + "kendServiceRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"y\332A\027project,region,resource\202" + + "\323\344\223\002Y\022W/compute/v1/projects/{project}/re" + + "gions/{region}/backendServices/{resource" + + "}/getIamPolicy\022\211\002\n\006Insert\022:.google.cloud" + + ".compute.v1.InsertRegionBackendServiceRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\236\001\332A\'project,region,backend_service_re" + + "source\212N\020RegionOperations\202\323\344\223\002[\"?/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/backendServices:\030backend_service_resour" + + "ce\022\310\001\n\004List\0229.google.cloud.compute.v1.Li" + + "stRegionBackendServicesRequest\032+.google." + + "cloud.compute.v1.BackendServiceList\"X\332A\016" + + "project,region\202\323\344\223\002A\022?/compute/v1/projec" + "ts/{project}/regions/{region}/backendSer" - + "vices/{backend_service}:\030backend_service" - + "_resource\032r\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\362\t\n\021RegionCommitments\022\315\001\n\016Aggregat" - + "edList\022?.google.cloud.compute.v1.Aggrega" - + "tedListRegionCommitmentsRequest\0321.google" - + ".cloud.compute.v1.CommitmentAggregatedLi" - + "st\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/projec" - + "ts/{project}/aggregated/commitments\022\315\001\n\003" - + "Get\0223.google.cloud.compute.v1.GetRegionC" - + "ommitmentRequest\032#.google.cloud.compute." - + "v1.Commitment\"l\332A\031project,region,commitm" - + "ent\202\323\344\223\002J\022H/compute/v1/projects/{project" - + "}/regions/{region}/commitments/{commitme" - + "nt}\022\367\001\n\006Insert\0226.google.cloud.compute.v1" - + ".InsertRegionCommitmentRequest\032\".google." - + "cloud.compute.v1.Operation\"\220\001\332A\"project," - + "region,commitment_resource\212N\020RegionOpera" - + "tions\202\323\344\223\002R\";/compute/v1/projects/{proje" - + "ct}/regions/{region}/commitments:\023commit" - + "ment_resource\022\274\001\n\004List\0225.google.cloud.co" - + "mpute.v1.ListRegionCommitmentsRequest\032\'." - + "google.cloud.compute.v1.CommitmentList\"T" - + "\332A\016project,region\202\323\344\223\002=\022;/compute/v1/pro" - + "jects/{project}/regions/{region}/commitm" - + "ents\022\217\002\n\006Update\0226.google.cloud.compute.v" - + "1.UpdateRegionCommitmentRequest\032\".google" - + ".cloud.compute.v1.Operation\"\250\001\332A-project" - + ",region,commitment,commitment_resource\212N" - + "\020RegionOperations\202\323\344\223\002_2H/compute/v1/pro" - + "jects/{project}/regions/{region}/commitm" - + "ents/{commitment}:\023commitment_resource\032r" - + "\312A\026compute.googleapis.com\322AVhttps://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform2\330\020\n\033R" - + "egionCompositeHealthChecks\022\353\001\n\016Aggregate" - + "dList\022I.google.cloud.compute.v1.Aggregat" - + "edListRegionCompositeHealthChecksRequest" - + "\032;.google.cloud.compute.v1.CompositeHeal" - + "thCheckAggregatedList\"Q\332A\007project\202\323\344\223\002A\022" - + "?/compute/v1/projects/{project}/aggregat" - + "ed/compositeHealthChecks\022\222\002\n\006Delete\022@.go" - + "ogle.cloud.compute.v1.DeleteRegionCompos" + + "vices\022\345\001\n\nListUsable\022?.google.cloud.comp" + + "ute.v1.ListUsableRegionBackendServicesRe" + + "quest\0321.google.cloud.compute.v1.BackendS" + + "erviceListUsable\"c\332A\016project,region\202\323\344\223\002" + + "L\022J/compute/v1/projects/{project}/region" + + "s/{region}/backendServices/listUsable\022\251\002" + + "\n\005Patch\0229.google.cloud.compute.v1.PatchR" + + "egionBackendServiceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\300\001\332A7project,regi" + + "on,backend_service,backend_service_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002m2Q/compute/v" + + "1/projects/{project}/regions/{region}/ba" + + "ckendServices/{backend_service}:\030backend" + + "_service_resource\022\264\002\n\014SetIamPolicy\022@.goo" + + "gle.cloud.compute.v1.SetIamPolicyRegionB" + + "ackendServiceRequest\032\037.google.cloud.comp" + + "ute.v1.Policy\"\300\001\332A:project,region,resour" + + "ce,region_set_policy_request_resource\202\323\344" + + "\223\002}\"W/compute/v1/projects/{project}/regi" + + "ons/{region}/backendServices/{resource}/" + + "setIamPolicy:\"region_set_policy_request_" + + "resource\022\350\002\n\021SetSecurityPolicy\022E.google." + + "cloud.compute.v1.SetSecurityPolicyRegion" + + "BackendServiceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\347\001\332AAproject,region,ba" + + "ckend_service,security_policy_reference_" + + "resource\212N\020RegionOperations\202\323\344\223\002\211\001\"c/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/backendServices/{backend_service}/se" + + "tSecurityPolicy:\"security_policy_referen" + + "ce_resource\022\326\002\n\022TestIamPermissions\022F.goo" + + "gle.cloud.compute.v1.TestIamPermissionsR" + + "egionBackendServiceRequest\0320.google.clou" + + "d.compute.v1.TestPermissionsResponse\"\305\001\332" + + "A9project,region,resource,test_permissio" + + "ns_request_resource\202\323\344\223\002\202\001\"]/compute/v1/" + + "projects/{project}/regions/{region}/back" + + "endServices/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\022\253\002\n" + + "\006Update\022:.google.cloud.compute.v1.Update" + + "RegionBackendServiceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\300\001\332A7project,reg" + + "ion,backend_service,backend_service_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002m\032Q/compute/" + + "v1/projects/{project}/regions/{region}/b" + + "ackendServices/{backend_service}:\030backen" + + "d_service_resource\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\362\t\n\021RegionCommitments\022\315\001\n" + + "\016AggregatedList\022?.google.cloud.compute.v" + + "1.AggregatedListRegionCommitmentsRequest" + + "\0321.google.cloud.compute.v1.CommitmentAgg" + + "regatedList\"G\332A\007project\202\323\344\223\0027\0225/compute/" + + "v1/projects/{project}/aggregated/commitm" + + "ents\022\315\001\n\003Get\0223.google.cloud.compute.v1.G" + + "etRegionCommitmentRequest\032#.google.cloud" + + ".compute.v1.Commitment\"l\332A\031project,regio" + + "n,commitment\202\323\344\223\002J\022H/compute/v1/projects" + + "/{project}/regions/{region}/commitments/" + + "{commitment}\022\367\001\n\006Insert\0226.google.cloud.c" + + "ompute.v1.InsertRegionCommitmentRequest\032" + + "\".google.cloud.compute.v1.Operation\"\220\001\332A" + + "\"project,region,commitment_resource\212N\020Re" + + "gionOperations\202\323\344\223\002R\";/compute/v1/projec" + + "ts/{project}/regions/{region}/commitment" + + "s:\023commitment_resource\022\274\001\n\004List\0225.google" + + ".cloud.compute.v1.ListRegionCommitmentsR", + "equest\032\'.google.cloud.compute.v1.Commitm" + + "entList\"T\332A\016project,region\202\323\344\223\002=\022;/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/commitments\022\217\002\n\006Update\0226.google.cloud." + + "compute.v1.UpdateRegionCommitmentRequest" + + "\032\".google.cloud.compute.v1.Operation\"\250\001\332" + + "A-project,region,commitment,commitment_r" + + "esource\212N\020RegionOperations\202\323\344\223\002_2H/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/commitments/{commitment}:\023commitment_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\373\022\n\033RegionCompositeHealthChecks\022\353\001\n\016" + + "AggregatedList\022I.google.cloud.compute.v1" + + ".AggregatedListRegionCompositeHealthChec" + + "ksRequest\032;.google.cloud.compute.v1.Comp" + + "ositeHealthCheckAggregatedList\"Q\332A\007proje" + + "ct\202\323\344\223\002A\022?/compute/v1/projects/{project}" + + "/aggregated/compositeHealthChecks\022\222\002\n\006De" + + "lete\022@.google.cloud.compute.v1.DeleteReg" + + "ionCompositeHealthCheckRequest\032\".google." + + "cloud.compute.v1.Operation\"\241\001\332A%project," + + "region,composite_health_check\212N\020RegionOp" + + "erations\202\323\344\223\002`*^/compute/v1/projects/{pr" + + "oject}/regions/{region}/compositeHealthC" + + "hecks/{composite_health_check}\022\204\002\n\003Get\022=" + + ".google.cloud.compute.v1.GetRegionCompos" + + "iteHealthCheckRequest\032-.google.cloud.com" + + "pute.v1.CompositeHealthCheck\"\216\001\332A%projec" + + "t,region,composite_health_check\202\323\344\223\002`\022^/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/compositeHealthChecks/{composite_" + + "health_check}\022\240\002\n\tGetHealth\022C.google.clo" + + "ud.compute.v1.GetHealthRegionCompositeHe" + + "althCheckRequest\0323.google.cloud.compute." + + "v1.CompositeHealthCheckHealth\"\230\001\332A%proje" + + "ct,region,composite_health_check\202\323\344\223\002j\022h" + + "/compute/v1/projects/{project}/regions/{" + + "region}/compositeHealthChecks/{composite" + + "_health_check}/getHealth\022\243\002\n\006Insert\022@.go" + + "ogle.cloud.compute.v1.InsertRegionCompos" + "iteHealthCheckRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\241\001\332A%project,region,co" - + "mposite_health_check\212N\020RegionOperations\202" - + "\323\344\223\002`*^/compute/v1/projects/{project}/re" - + "gions/{region}/compositeHealthChecks/{co" - + "mposite_health_check}\022\204\002\n\003Get\022=.google.c" - + "loud.compute.v1.GetRegionCompositeHealth" - + "CheckRequest\032-.google.cloud.compute.v1.C" - + "ompositeHealthCheck\"\216\001\332A%project,region," - + "composite_health_check\202\323\344\223\002`\022^/compute/v" + + "pute.v1.Operation\"\262\001\332A.project,region,co" + + "mposite_health_check_resource\212N\020RegionOp" + + "erations\202\323\344\223\002h\"E/compute/v1/projects/{pr" + + "oject}/regions/{region}/compositeHealthC" + + "hecks:\037composite_health_check_resource\022\332" + + "\001\n\004List\022?.google.cloud.compute.v1.ListRe" + + "gionCompositeHealthChecksRequest\0321.googl" + + "e.cloud.compute.v1.CompositeHealthCheckL" + + "ist\"^\332A\016project,region\202\323\344\223\002G\022E/compute/v" + "1/projects/{project}/regions/{region}/co" - + "mpositeHealthChecks/{composite_health_ch" - + "eck}\022\243\002\n\006Insert\022@.google.cloud.compute.v" - + "1.InsertRegionCompositeHealthCheckReques" - + "t\032\".google.cloud.compute.v1.Operation\"\262\001" - + "\332A.project,region,composite_health_check" - + "_resource\212N\020RegionOperations\202\323\344\223\002h\"E/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/compositeHealthChecks:\037composite_hea" - + "lth_check_resource\022\332\001\n\004List\022?.google.clo" - + "ud.compute.v1.ListRegionCompositeHealthC" - + "hecksRequest\0321.google.cloud.compute.v1.C" - + "ompositeHealthCheckList\"^\332A\016project,regi" - + "on\202\323\344\223\002G\022E/compute/v1/projects/{project}" - + "/regions/{region}/compositeHealthChecks\022" - + "\322\002\n\005Patch\022?.google.cloud.compute.v1.Patc" - + "hRegionCompositeHealthCheckRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\343\001\332AEproj" - + "ect,region,composite_health_check,compos" - + "ite_health_check_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002\201\0012^/compute/v1/projects/{proje" - + "ct}/regions/{region}/compositeHealthChec" - + "ks/{composite_health_check}:\037composite_h" - + "ealth_check_resource\022\342\002\n\022TestIamPermissi" - + "ons\022L.google.cloud.compute.v1.TestIamPer" - + "missionsRegionCompositeHealthCheckReques" - + "t\0320.google.cloud.compute.v1.TestPermissi" - + "onsResponse\"\313\001\332A9project,region,resource" - + ",test_permissions_request_resource\202\323\344\223\002\210" - + "\001\"c/compute/v1/projects/{project}/region" - + "s/{region}/compositeHealthChecks/{resour" - + "ce}/testIamPermissions:!test_permissions" - + "_request_resource\032r\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform2\277\004\n\017RegionDiskTypes\022\305\001\n\003Ge" - + "t\0221.google.cloud.compute.v1.GetRegionDis" - + "kTypeRequest\032!.google.cloud.compute.v1.D" - + "iskType\"h\332A\030project,region,disk_type\202\323\344\223" - + "\002G\022E/compute/v1/projects/{project}/regio" - + "ns/{region}/diskTypes/{disk_type}\022\274\001\n\004Li" - + "st\0223.google.cloud.compute.v1.ListRegionD" - + "iskTypesRequest\032+.google.cloud.compute.v" - + "1.RegionDiskTypeList\"R\332A\016project,region\202" - + "\323\344\223\002;\0229/compute/v1/projects/{project}/re" - + "gions/{region}/diskTypes\032\244\001\312A\026compute.go" - + "ogleapis.com\322A\207\001https://www.googleapis.c" - + "om/auth/compute.readonly,https://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform2\217&\n\013Regi" - + "onDisks\022\346\002\n\023AddResourcePolicies\022=.google" - + ".cloud.compute.v1.AddResourcePoliciesReg" - + "ionDiskRequest\032\".google.cloud.compute.v1" - + ".Operation\"\353\001\332AGproject,region,disk,regi" - + "on_disks_add_resource_policies_request_r" - + "esource\212N\020RegionOperations\202\323\344\223\002\207\001\"P/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/disks/{disk}/addResourcePolicies:3reg" - + "ion_disks_add_resource_policies_request_" - + "resource\022\234\002\n\nBulkInsert\0224.google.cloud.c" - + "ompute.v1.BulkInsertRegionDiskRequest\032\"." - + "google.cloud.compute.v1.Operation\"\263\001\332A1p" - + "roject,region,bulk_insert_disk_resource_" - + "resource\212N\020RegionOperations\202\323\344\223\002f\"@/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/disks/bulkInsert:\"bulk_insert_disk_re" - + "source_resource\022\222\002\n\016CreateSnapshot\0228.goo" - + "gle.cloud.compute.v1.CreateSnapshotRegio" - + "nDiskRequest\032\".google.cloud.compute.v1.O" - + "peration\"\241\001\332A%project,region,disk,snapsh" - + "ot_resource\212N\020RegionOperations\202\323\344\223\002`\"K/c" + + "mpositeHealthChecks\022\322\002\n\005Patch\022?.google.c" + + "loud.compute.v1.PatchRegionCompositeHeal" + + "thCheckRequest\032\".google.cloud.compute.v1" + + ".Operation\"\343\001\332AEproject,region,composite" + + "_health_check,composite_health_check_res" + + "ource\212N\020RegionOperations\202\323\344\223\002\201\0012^/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/compositeHealthChecks/{composite_health" + + "_check}:\037composite_health_check_resource" + + "\022\342\002\n\022TestIamPermissions\022L.google.cloud.c" + + "ompute.v1.TestIamPermissionsRegionCompos" + + "iteHealthCheckRequest\0320.google.cloud.com" + + "pute.v1.TestPermissionsResponse\"\313\001\332A9pro" + + "ject,region,resource,test_permissions_re" + + "quest_resource\202\323\344\223\002\210\001\"c/compute/v1/proje" + + "cts/{project}/regions/{region}/composite" + + "HealthChecks/{resource}/testIamPermissio" + + "ns:!test_permissions_request_resource\032r\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\277\004\n\017Re" + + "gionDiskTypes\022\305\001\n\003Get\0221.google.cloud.com" + + "pute.v1.GetRegionDiskTypeRequest\032!.googl" + + "e.cloud.compute.v1.DiskType\"h\332A\030project," + + "region,disk_type\202\323\344\223\002G\022E/compute/v1/proj" + + "ects/{project}/regions/{region}/diskType" + + "s/{disk_type}\022\274\001\n\004List\0223.google.cloud.co" + + "mpute.v1.ListRegionDiskTypesRequest\032+.go" + + "ogle.cloud.compute.v1.RegionDiskTypeList" + + "\"R\332A\016project,region\202\323\344\223\002;\0229/compute/v1/p" + + "rojects/{project}/regions/{region}/diskT" + + "ypes\032\244\001\312A\026compute.googleapis.com\322A\207\001http" + + "s://www.googleapis.com/auth/compute.read" + + "only,https://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\322(\n\013RegionDisks\022\346\002\n\023AddResou" + + "rcePolicies\022=.google.cloud.compute.v1.Ad" + + "dResourcePoliciesRegionDiskRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\353\001\332AGproj" + + "ect,region,disk,region_disks_add_resourc" + + "e_policies_request_resource\212N\020RegionOper" + + "ations\202\323\344\223\002\207\001\"P/compute/v1/projects/{pro" + + "ject}/regions/{region}/disks/{disk}/addR" + + "esourcePolicies:3region_disks_add_resour" + + "ce_policies_request_resource\022\234\002\n\nBulkIns" + + "ert\0224.google.cloud.compute.v1.BulkInsert" + + "RegionDiskRequest\032\".google.cloud.compute" + + ".v1.Operation\"\263\001\332A1project,region,bulk_i" + + "nsert_disk_resource_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002f\"@/compute/v1/projects/{pro" + + "ject}/regions/{region}/disks/bulkInsert:" + + "\"bulk_insert_disk_resource_resource\022\222\002\n\016" + + "CreateSnapshot\0228.google.cloud.compute.v1" + + ".CreateSnapshotRegionDiskRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\241\001\332A%projec" + + "t,region,disk,snapshot_resource\212N\020Region" + + "Operations\202\323\344\223\002`\"K/compute/v1/projects/{" + + "project}/regions/{region}/disks/{disk}/c" + + "reateSnapshot:\021snapshot_resource\022\315\001\n\006Del" + + "ete\0220.google.cloud.compute.v1.DeleteRegi" + + "onDiskRequest\032\".google.cloud.compute.v1." + + "Operation\"m\332A\023project,region,disk\212N\020Regi" + + "onOperations\202\323\344\223\002>*\022*<" + + "gion}/disks/{disk}\022\330\001\n\014GetIamPolicy\0226.go" + + "ogle.cloud.compute.v1.GetIamPolicyRegion" + + "DiskRequest\032\037.google.cloud.compute.v1.Po" + + "licy\"o\332A\027project,region,resource\202\323\344\223\002O\022M" + "/compute/v1/projects/{project}/regions/{" - + "region}/disks/{disk}\022\257\001\n\003Get\022-.google.cl" - + "oud.compute.v1.GetRegionDiskRequest\032\035.go" - + "ogle.cloud.compute.v1.Disk\"Z\332A\023project,r" - + "egion,disk\202\323\344\223\002>\022.goog" - + "le.cloud.compute.v1.StopAsyncReplication" - + "RegionDiskRequest\032\".google.cloud.compute" - + ".v1.Operation\"\202\001\332A\023project,region,disk\212N" - + "\020RegionOperations\202\323\344\223\002S\"Q/compute/v1/pro" - + "jects/{project}/regions/{region}/disks/{" - + "disk}/stopAsyncReplication\022\356\002\n\031StopGroup" - + "AsyncReplication\022C.google.cloud.compute." - + "v1.StopGroupAsyncReplicationRegionDiskRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\347\001\332ACproject,region,disks_stop_group_a" - + "sync_replication_resource_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002\207\001\"O/compute/v1/projec" - + "ts/{project}/regions/{region}/disks/stop" - + "GroupAsyncReplication:4disks_stop_group_" - + "async_replication_resource_resource\022\301\002\n\022" - + "TestIamPermissions\022<.google.cloud.comput" - + "e.v1.TestIamPermissionsRegionDiskRequest" - + "\0320.google.cloud.compute.v1.TestPermissio" - + "nsResponse\"\272\001\332A9project,region,resource," - + "test_permissions_request_resource\202\323\344\223\002x\"" - + "S/compute/v1/projects/{project}/regions/" - + "{region}/disks/{resource}/testIamPermiss" - + "ions:!test_permissions_request_resource\022" - + "\353\001\n\006Update\0220.google.cloud.compute.v1.Upd" - + "ateRegionDiskRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\212\001\332A!project,region,dis" - + "k,disk_resource\212N\020RegionOperations\202\323\344\223\002M" - + "2.google.cloud.compute.v1.Health" - + "AggregationPolicyAggregatedList\"U\332A\007proj" - + "ect\202\323\344\223\002E\022C/compute/v1/projects/{project" - + "}/aggregated/healthAggregationPolicies\022\237" - + "\002\n\006Delete\022C.google.cloud.compute.v1.Dele" - + "teRegionHealthAggregationPolicyRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\253\001\332A(" - + "project,region,health_aggregation_policy" - + "\212N\020RegionOperations\202\323\344\223\002g*e/compute/v1/p" - + "rojects/{project}/regions/{region}/healt" - + "hAggregationPolicies/{health_aggregation" - + "_policy}\022\224\002\n\003Get\022@.google.cloud.compute." - + "v1.GetRegionHealthAggregationPolicyReque" - + "st\0320.google.cloud.compute.v1.HealthAggre" - + "gationPolicy\"\230\001\332A(project,region,health_" - + "aggregation_policy\202\323\344\223\002g\022e/compute/v1/pr" - + "ojects/{project}/regions/{region}/health" - + "AggregationPolicies/{health_aggregation_" - + "policy}\022\260\002\n\006Insert\022C.google.cloud.comput" - + "e.v1.InsertRegionHealthAggregationPolicy" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\274\001\332A1project,region,health_aggregati" - + "on_policy_resource\212N\020RegionOperations\202\323\344" - + "\223\002o\"I/compute/v1/projects/{project}/regi" - + "ons/{region}/healthAggregationPolicies:\"" - + "health_aggregation_policy_resource\022\345\001\n\004L" - + "ist\022C.google.cloud.compute.v1.ListRegion" - + "HealthAggregationPoliciesRequest\0324.googl" - + "e.cloud.compute.v1.HealthAggregationPoli" - + "cyList\"b\332A\016project,region\202\323\344\223\002K\022I/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/healthAggregationPolicies\022\345\002\n\005Patch\022B.g" - + "oogle.cloud.compute.v1.PatchRegionHealth" - + "AggregationPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\363\001\332AKproject,region" - + ",health_aggregation_policy,health_aggreg" - + "ation_policy_resource\212N\020RegionOperations" - + "\202\323\344\223\002\213\0012e/compute/v1/projects/{project}/" - + "regions/{region}/healthAggregationPolici" - + "es/{health_aggregation_policy}:\"health_a" - + "ggregation_policy_resource\022\351\002\n\022TestIamPe" - + "rmissions\022O.google.cloud.compute.v1.Test" - + "IamPermissionsRegionHealthAggregationPol" - + "icyRequest\0320.google.cloud.compute.v1.Tes" - + "tPermissionsResponse\"\317\001\332A9project,region" - + ",resource,test_permissions_request_resou" - + "rce\202\323\344\223\002\214\001\"g/compute/v1/projects/{projec" - + "t}/regions/{region}/healthAggregationPol" - + "icies/{resource}/testIamPermissions:!tes" - + "t_permissions_request_resource\032r\312A\026compu" - + "te.googleapis.com\322AVhttps://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform2\240\020\n\031RegionHea" - + "lthCheckServices\022\345\001\n\016AggregatedList\022G.go" - + "ogle.cloud.compute.v1.AggregatedListRegi" - + "onHealthCheckServicesRequest\0329.google.cl" - + "oud.compute.v1.HealthCheckServiceAggrega" - + "tedList\"O\332A\007project\202\323\344\223\002?\022=/compute/v1/p" - + "rojects/{project}/aggregated/healthCheck" - + "Services\022\212\002\n\006Delete\022>.google.cloud.compu" - + "te.v1.DeleteRegionHealthCheckServiceRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\233\001\332A#project,region,health_check_service" - + "\212N\020RegionOperations\202\323\344\223\002\\*Z/compute/v1/p" - + "rojects/{project}/regions/{region}/healt" - + "hCheckServices/{health_check_service}\022\372\001" - + "\n\003Get\022;.google.cloud.compute.v1.GetRegio" - + "nHealthCheckServiceRequest\032+.google.clou" - + "d.compute.v1.HealthCheckService\"\210\001\332A#pro" - + "ject,region,health_check_service\202\323\344\223\002\\\022Z" + + "tion\"\364\001\332AJproject,region,disk,region_dis" + + "ks_remove_resource_policies_request_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002\215\001\"S/compute" + + "/v1/projects/{project}/regions/{region}/" + + "disks/{disk}/removeResourcePolicies:6reg" + + "ion_disks_remove_resource_policies_reque" + + "st_resource\022\240\002\n\006Resize\0220.google.cloud.co" + + "mpute.v1.ResizeRegionDiskRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\277\001\332A8projec" + + "t,region,disk,region_disks_resize_reques" + + "t_resource\212N\020RegionOperations\202\323\344\223\002k\"C/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/disks/{disk}/resize:$region_disks_r" + + "esize_request_resource\022\240\002\n\014SetIamPolicy\022" + + "6.google.cloud.compute.v1.SetIamPolicyRe" + + "gionDiskRequest\032\037.google.cloud.compute.v" + + "1.Policy\"\266\001\332A:project,region,resource,re" + + "gion_set_policy_request_resource\202\323\344\223\002s\"M" + "/compute/v1/projects/{project}/regions/{" - + "region}/healthCheckServices/{health_chec" - + "k_service}\022\233\002\n\006Insert\022>.google.cloud.com" - + "pute.v1.InsertRegionHealthCheckServiceRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\254\001\332A,project,region,health_check_servi", - "ce_resource\212N\020RegionOperations\202\323\344\223\002d\"C/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/healthCheckServices:\035health_check_" - + "service_resource\022\325\001\n\004List\022=.google.cloud" - + ".compute.v1.ListRegionHealthCheckService" - + "sRequest\0320.google.cloud.compute.v1.Healt" - + "hCheckServicesList\"\\\332A\016project,region\202\323\344" - + "\223\002E\022C/compute/v1/projects/{project}/regi" - + "ons/{region}/healthCheckServices\022\305\002\n\005Pat" - + "ch\022=.google.cloud.compute.v1.PatchRegion" - + "HealthCheckServiceRequest\032\".google.cloud" - + ".compute.v1.Operation\"\330\001\332AAproject,regio" - + "n,health_check_service,health_check_serv" - + "ice_resource\212N\020RegionOperations\202\323\344\223\002{2Z/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/healthCheckServices/{health_check" - + "_service}:\035health_check_service_resource" - + "\022\336\002\n\022TestIamPermissions\022J.google.cloud.c" - + "ompute.v1.TestIamPermissionsRegionHealth" - + "CheckServiceRequest\0320.google.cloud.compu" - + "te.v1.TestPermissionsResponse\"\311\001\332A9proje" - + "ct,region,resource,test_permissions_requ" - + "est_resource\202\323\344\223\002\206\001\"a/compute/v1/project" - + "s/{project}/regions/{region}/healthCheck" - + "Services/{resource}/testIamPermissions:!" - + "test_permissions_request_resource\032r\312A\026co" - + "mpute.googleapis.com\322AVhttps://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platform2\230\017\n\022Region" - + "HealthChecks\022\354\001\n\006Delete\0227.google.cloud.c" - + "ompute.v1.DeleteRegionHealthCheckRequest" - + "\032\".google.cloud.compute.v1.Operation\"\204\001\332" - + "A\033project,region,health_check\212N\020RegionOp" - + "erations\202\323\344\223\002M*K/compute/v1/projects/{pr" - + "oject}/regions/{region}/healthChecks/{he" - + "alth_check}\022\324\001\n\003Get\0224.google.cloud.compu" - + "te.v1.GetRegionHealthCheckRequest\032$.goog" - + "le.cloud.compute.v1.HealthCheck\"q\332A\033proj" - + "ect,region,health_check\202\323\344\223\002M\022K/compute/" - + "v1/projects/{project}/regions/{region}/h" - + "ealthChecks/{health_check}\022\375\001\n\006Insert\0227." - + "google.cloud.compute.v1.InsertRegionHeal" - + "thCheckRequest\032\".google.cloud.compute.v1" - + ".Operation\"\225\001\332A$project,region,health_ch" - + "eck_resource\212N\020RegionOperations\202\323\344\223\002U\"\022.google.cloud.compute.v1." + + "StopAsyncReplicationRegionDiskRequest\032\"." + + "google.cloud.compute.v1.Operation\"\202\001\332A\023p" + + "roject,region,disk\212N\020RegionOperations\202\323\344" + + "\223\002S\"Q/compute/v1/projects/{project}/regi" + + "ons/{region}/disks/{disk}/stopAsyncRepli" + + "cation\022\356\002\n\031StopGroupAsyncReplication\022C.g" + + "oogle.cloud.compute.v1.StopGroupAsyncRep" + + "licationRegionDiskRequest\032\".google.cloud" + + ".compute.v1.Operation\"\347\001\332ACproject,regio" + + "n,disks_stop_group_async_replication_res" + + "ource_resource\212N\020RegionOperations\202\323\344\223\002\207\001" + + "\"O/compute/v1/projects/{project}/regions" + + "/{region}/disks/stopGroupAsyncReplicatio" + + "n:4disks_stop_group_async_replication_re" + + "source_resource\022\301\002\n\022TestIamPermissions\022<" + + ".google.cloud.compute.v1.TestIamPermissi" + + "onsRegionDiskRequest\0320.google.cloud.comp" + + "ute.v1.TestPermissionsResponse\"\272\001\332A9proj" + + "ect,region,resource,test_permissions_req" + + "uest_resource\202\323\344\223\002x\"S/compute/v1/project" + + "s/{project}/regions/{region}/disks/{reso" + + "urce}/testIamPermissions:!test_permissio" + + "ns_request_resource\022\353\001\n\006Update\0220.google." + + "cloud.compute.v1.UpdateRegionDiskRequest" + + "\032\".google.cloud.compute.v1.Operation\"\212\001\332" + + "A!project,region,disk,disk_resource\212N\020Re" + + "gionOperations\202\323\344\223\002M2.google." + + "cloud.compute.v1.HealthAggregationPolicy" + + "AggregatedList\"U\332A\007project\202\323\344\223\002E\022C/compu" + + "te/v1/projects/{project}/aggregated/heal" + + "thAggregationPolicies\022\237\002\n\006Delete\022C.googl" + + "e.cloud.compute.v1.DeleteRegionHealthAgg" + + "regationPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\253\001\332A(project,region,he" + + "alth_aggregation_policy\212N\020RegionOperatio" + + "ns\202\323\344\223\002g*e/compute/v1/projects/{project}" + + "/regions/{region}/healthAggregationPolic" + + "ies/{health_aggregation_policy}\022\224\002\n\003Get\022" + + "@.google.cloud.compute.v1.GetRegionHealt" + + "hAggregationPolicyRequest\0320.google.cloud" + + ".compute.v1.HealthAggregationPolicy\"\230\001\332A" + + "(project,region,health_aggregation_polic" + + "y\202\323\344\223\002g\022e/compute/v1/projects/{project}/" + + "regions/{region}/healthAggregationPolici" + + "es/{health_aggregation_policy}\022\260\002\n\006Inser" + + "t\022C.google.cloud.compute.v1.InsertRegion" + + "HealthAggregationPolicyRequest\032\".google." + + "cloud.compute.v1.Operation\"\274\001\332A1project," + + "region,health_aggregation_policy_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002o\"I/compute/v1/" + + "projects/{project}/regions/{region}/heal" + + "thAggregationPolicies:\"health_aggregatio" + + "n_policy_resource\022\345\001\n\004List\022C.google.clou" + + "d.compute.v1.ListRegionHealthAggregation" + + "PoliciesRequest\0324.google.cloud.compute.v" + + "1.HealthAggregationPolicyList\"b\332A\016projec" + + "t,region\202\323\344\223\002K\022I/compute/v1/projects/{pr" + + "oject}/regions/{region}/healthAggregatio" + + "nPolicies\022\345\002\n\005Patch\022B.google.cloud.compu" + + "te.v1.PatchRegionHealthAggregationPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\363\001\332AKproject,region,health_aggregati" + + "on_policy,health_aggregation_policy_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002\213\0012e/compute" + + "/v1/projects/{project}/regions/{region}/" + + "healthAggregationPolicies/{health_aggreg" + + "ation_policy}:\"health_aggregation_policy" + + "_resource\022\351\002\n\022TestIamPermissions\022O.googl" + + "e.cloud.compute.v1.TestIamPermissionsReg" + + "ionHealthAggregationPolicyRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\317\001\332A9project,region,resource,test_pe" + + "rmissions_request_resource\202\323\344\223\002\214\001\"g/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/healthAggregationPolicies/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\032r\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform2\240\020\n\031RegionHealthCheckServices\022" + + "\345\001\n\016AggregatedList\022G.google.cloud.comput" + + "e.v1.AggregatedListRegionHealthCheckServ" + + "icesRequest\0329.google.cloud.compute.v1.He" + + "althCheckServiceAggregatedList\"O\332A\007proje" + + "ct\202\323\344\223\002?\022=/compute/v1/projects/{project}" + + "/aggregated/healthCheckServices\022\212\002\n\006Dele" + + "te\022>.google.cloud.compute.v1.DeleteRegio" + + "nHealthCheckServiceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\233\001\332A#project,regi" + + "on,health_check_service\212N\020RegionOperatio" + + "ns\202\323\344\223\002\\*Z/compute/v1/projects/{project}" + + "/regions/{region}/healthCheckServices/{h" + + "ealth_check_service}\022\372\001\n\003Get\022;.google.cl" + + "oud.compute.v1.GetRegionHealthCheckServi" + + "ceRequest\032+.google.cloud.compute.v1.Heal" + + "thCheckService\"\210\001\332A#project,region,healt" + + "h_check_service\202\323\344\223\002\\\022Z/compute/v1/proje" + + "cts/{project}/regions/{region}/healthChe" + + "ckServices/{health_check_service}\022\233\002\n\006In" + + "sert\022>.google.cloud.compute.v1.InsertReg" + + "ionHealthCheckServiceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\254\001\332A,project,re" + + "gion,health_check_service_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002d\"C/compute/v1/project" + + "s/{project}/regions/{region}/healthCheck" + + "Services:\035health_check_service_resource\022" + + "\325\001\n\004List\022=.google.cloud.compute.v1.ListR" + + "egionHealthCheckServicesRequest\0320.google" + + ".cloud.compute.v1.HealthCheckServicesLis" + + "t\"\\\332A\016project,region\202\323\344\223\002E\022C/compute/v1/" + + "projects/{project}/regions/{region}/heal" + + "thCheckServices\022\305\002\n\005Patch\022=.google.cloud" + + ".compute.v1.PatchRegionHealthCheckServic" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\330\001\332AAproject,region,health_check_se" + + "rvice,health_check_service_resource\212N\020Re" + + "gionOperations\202\323\344\223\002{2Z/compute/v1/projec" + + "ts/{project}/regions/{region}/healthChec" + + "kServices/{health_check_service}:\035health" + + "_check_service_resource\022\336\002\n\022TestIamPermi" + + "ssions\022J.google.cloud.compute.v1.TestIam" + + "PermissionsRegionHealthCheckServiceReque" + + "st\0320.google.cloud.compute.v1.TestPermiss" + + "ionsResponse\"\311\001\332A9project,region,resourc" + + "e,test_permissions_request_resource\202\323\344\223\002" + + "\206\001\"a/compute/v1/projects/{project}/regio" + + "ns/{region}/healthCheckServices/{resourc" + + "e}/testIamPermissions:!test_permissions_" + + "request_resource\032r\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform2\230\017\n\022RegionHealthChecks\022\354\001\n\006" + + "Delete\0227.google.cloud.compute.v1.DeleteR" + + "egionHealthCheckRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\204\001\332A\033project,region," + + "health_check\212N\020RegionOperations\202\323\344\223\002M*K/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/healthChecks/{health_check}\022\324\001\n\003G" + + "et\0224.google.cloud.compute.v1.GetRegionHe" + + "althCheckRequest\032$.google.cloud.compute." + + "v1.HealthCheck\"q\332A\033project,region,health" + + "_check\202\323\344\223\002M\022K/compute/v1/projects/{proj" + + "ect}/regions/{region}/healthChecks/{heal" + + "th_check}\022\375\001\n\006Insert\0227.google.cloud.comp" + + "ute.v1.InsertRegionHealthCheckRequest\032\"." + + "google.cloud.compute.v1.Operation\"\225\001\332A$p" + + "roject,region,health_check_resource\212N\020Re" + + "gionOperations\202\323\344\223\002U\"\022region_instance_group_managers_stop_" - + "instances_request_resource\022\275\003\n\020SuspendIn" - + "stances\022J.google.cloud.compute.v1.Suspen" - + "dInstancesRegionInstanceGroupManagerRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\270\002\332Agproject,region,instance_group_manag" - + "er,region_instance_group_managers_suspen" - + "d_instances_request_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002\264\001\"o/compute/v1/projects/{pr" - + "oject}/regions/{region}/instanceGroupMan" - + "agers/{instance_group_manager}/suspendIn" - + "stances:Aregion_instance_group_managers_" - + "suspend_instances_request_resource\022\325\003\n\030U" - + "pdatePerInstanceConfigs\022R.google.cloud.c" - + "ompute.v1.UpdatePerInstanceConfigsRegion" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\300\002\332Agproject,reg" - + "ion,instance_group_manager,region_instan" - + "ce_group_manager_update_instance_config_" - + "req_resource\212N\020RegionOperations\202\323\344\223\002\274\001\"w" + + "Managers/{instance_group_manager}/patchP" + + "erInstanceConfigs:@region_instance_group" + + "_manager_patch_instance_config_req_resou" + + "rce\022\256\003\n\021RecreateInstances\022K.google.cloud" + + ".compute.v1.RecreateInstancesRegionInsta" + + "nceGroupManagerRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\247\002\332A^project,region,i" + + "nstance_group_manager,region_instance_gr" + + "oup_managers_recreate_request_resource\212N" + + "\020RegionOperations\202\323\344\223\002\254\001\"p/compute/v1/pr" + + "ojects/{project}/regions/{region}/instan" + + "ceGroupManagers/{instance_group_manager}" + + "/recreateInstances:8region_instance_grou" + + "p_managers_recreate_request_resource\022\236\002\n" + + "\006Resize\022@.google.cloud.compute.v1.Resize" + + "RegionInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\255\001\332A*proje" + + "ct,region,instance_group_manager,size\212N\020" + + "RegionOperations\202\323\344\223\002g\"e/compute/v1/proj" + + "ects/{project}/regions/{region}/instance" + + "GroupManagers/{instance_group_manager}/r" + + "esize\022\270\003\n\017ResumeInstances\022I.google.cloud" + + ".compute.v1.ResumeInstancesRegionInstanc" + + "eGroupManagerRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\265\002\332Afproject,region,ins" + + "tance_group_manager,region_instance_grou" + + "p_managers_resume_instances_request_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002\262\001\"n/compute" + + "/v1/projects/{project}/regions/{region}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}/resumeInstances:@region_instance_" + + "group_managers_resume_instances_request_" + + "resource\022\274\003\n\023SetInstanceTemplate\022M.googl" + + "e.cloud.compute.v1.SetInstanceTemplateRe" + + "gionInstanceGroupManagerRequest\032\".google" + + ".cloud.compute.v1.Operation\"\261\002\332Abproject" + + ",region,instance_group_manager,region_in" + + "stance_group_managers_set_template_reque" + + "st_resource\212N\020RegionOperations\202\323\344\223\002\262\001\"r/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instanceGroupManagers/{instance_g" + + "roup_manager}/setInstanceTemplate:/compute/v1/projects/{pr" - + "oject}/regions/{region}/instanceGroups\022\206" - + "\003\n\rListInstances\022A.google.cloud.compute." - + "v1.ListInstancesRegionInstanceGroupsRequ" - + "est\032:.google.cloud.compute.v1.RegionInst" - + "anceGroupsListInstances\"\365\001\332ATproject,reg" - + "ion,instance_group,region_instance_group" - + "s_list_instances_request_resource\202\323\344\223\002\227\001" - + "\"]/compute/v1/projects/{project}/regions" - + "/{region}/instanceGroups/{instance_group" - + "}/listInstances:6region_instance_groups_" - + "list_instances_request_resource\022\202\003\n\rSetN" - + "amedPorts\022@.google.cloud.compute.v1.SetN" - + "amedPortsRegionInstanceGroupRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\212\002\332AUpro" - + "ject,region,instance_group,region_instan" - + "ce_groups_set_named_ports_request_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002\230\001\"]/compute/v" - + "1/projects/{project}/regions/{region}/in" - + "stanceGroups/{instance_group}/setNamedPo" - + "rts:7region_instance_groups_set_named_po" - + "rts_request_resource\022\324\002\n\022TestIamPermissi" - + "ons\022E.google.cloud.compute.v1.TestIamPer" - + "missionsRegionInstanceGroupRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\304\001\332A9project,region,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002\201\001\"\\/com" + + "group_manager}/setTargetPools:@region_in" + + "stance_group_managers_set_target_pools_r" + + "equest_resource\022\263\003\n\016StartInstances\022H.goo" + + "gle.cloud.compute.v1.StartInstancesRegio" + + "nInstanceGroupManagerRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\262\002\332Aeproject,re" + + "gion,instance_group_manager,region_insta" + + "nce_group_managers_start_instances_reque" + + "st_resource\212N\020RegionOperations\202\323\344\223\002\260\001\"m/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instanceGroupManagers/{instance_g" + + "roup_manager}/startInstances:?region_ins" + + "tance_group_managers_start_instances_req" + + "uest_resource\022\256\003\n\rStopInstances\022G.google" + + ".cloud.compute.v1.StopInstancesRegionIns" + + "tanceGroupManagerRequest\032\".google.cloud." + + "compute.v1.Operation\"\257\002\332Adproject,region" + + ",instance_group_manager,region_instance_" + + "group_managers_stop_instances_request_re" + + "source\212N\020RegionOperations\202\323\344\223\002\256\001\"l/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/instanceGroupManagers/{instance_group_" + + "manager}/stopInstances:>region_instance_" + + "group_managers_stop_instances_request_re" + + "source\022\275\003\n\020SuspendInstances\022J.google.clo" + + "ud.compute.v1.SuspendInstancesRegionInst" + + "anceGroupManagerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\270\002\332Agproject,region," + + "instance_group_manager,region_instance_g" + + "roup_managers_suspend_instances_request_" + + "resource\212N\020RegionOperations\202\323\344\223\002\264\001\"o/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/instanceGroups/{resource}/testIamPer" - + "missions:!test_permissions_request_resou" - + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" - + "/www.googleapis.com/auth/compute,https:/" - + "/www.googleapis.com/auth/cloud-platform2" - + "\346\010\n\027RegionInstanceTemplates\022\200\002\n\006Delete\022<" - + ".google.cloud.compute.v1.DeleteRegionIns" + + "on}/instanceGroupManagers/{instance_grou" + + "p_manager}/suspendInstances:Aregion_inst" + + "ance_group_managers_suspend_instances_re" + + "quest_resource\022\325\003\n\030UpdatePerInstanceConf" + + "igs\022R.google.cloud.compute.v1.UpdatePerI" + + "nstanceConfigsRegionInstanceGroupManager" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\300\002\332Agproject,region,instance_group_m" + + "anager,region_instance_group_manager_upd" + + "ate_instance_config_req_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\274\001\"w/compute/v1/projects" + + "/{project}/regions/{region}/instanceGrou" + + "pManagers/{instance_group_manager}/updat" + + "ePerInstanceConfigs:Aregion_instance_gro" + + "up_manager_update_instance_config_req_re" + + "source\032r\312A\026compute.googleapis.com\322AVhttp" + + "s://www.googleapis.com/auth/compute,http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm2\236\r\n\024RegionInstanceGroups\022\336\001\n\003Get\0226.go" + + "ogle.cloud.compute.v1.GetRegionInstanceG" + + "roupRequest\032&.google.cloud.compute.v1.In" + + "stanceGroup\"w\332A\035project,region,instance_" + + "group\202\323\344\223\002Q\022O/compute/v1/projects/{proje" + + "ct}/regions/{region}/instanceGroups/{ins" + + "tance_group}\022\313\001\n\004List\0228.google.cloud.com" + + "pute.v1.ListRegionInstanceGroupsRequest\032" + + "0.google.cloud.compute.v1.RegionInstance" + + "GroupList\"W\332A\016project,region\202\323\344\223\002@\022>/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/instanceGroups\022\206\003\n\rListInstances\022A.g" + + "oogle.cloud.compute.v1.ListInstancesRegi" + + "onInstanceGroupsRequest\032:.google.cloud.c" + + "ompute.v1.RegionInstanceGroupsListInstan" + + "ces\"\365\001\332ATproject,region,instance_group,r" + + "egion_instance_groups_list_instances_req" + + "uest_resource\202\323\344\223\002\227\001\"]/compute/v1/projec" + + "ts/{project}/regions/{region}/instanceGr" + + "oups/{instance_group}/listInstances:6reg" + + "ion_instance_groups_list_instances_reque" + + "st_resource\022\202\003\n\rSetNamedPorts\022@.google.c" + + "loud.compute.v1.SetNamedPortsRegionInsta" + + "nceGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\212\002\332AUproject,region,instance" + + "_group,region_instance_groups_set_named_" + + "ports_request_resource\212N\020RegionOperation" + + "s\202\323\344\223\002\230\001\"]/compute/v1/projects/{project}" + + "/regions/{region}/instanceGroups/{instan" + + "ce_group}/setNamedPorts:7region_instance" + + "_groups_set_named_ports_request_resource" + + "\022\324\002\n\022TestIamPermissions\022E.google.cloud.c" + + "ompute.v1.TestIamPermissionsRegionInstan" + + "ceGroupRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\304\001\332A9project,re" + + "gion,resource,test_permissions_request_r" + + "esource\202\323\344\223\002\201\001\"\\/compute/v1/projects/{pr" + + "oject}/regions/{region}/instanceGroups/{" + + "resource}/testIamPermissions:!test_permi" + + "ssions_request_resource\032r\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform2\346\010\n\027RegionInstanceTe" + + "mplates\022\200\002\n\006Delete\022<.google.cloud.comput" + + "e.v1.DeleteRegionInstanceTemplateRequest" + + "\032\".google.cloud.compute.v1.Operation\"\223\001\332" + + "A project,region,instance_template\212N\020Reg" + + "ionOperations\202\323\344\223\002W*U/compute/v1/project" + + "s/{project}/regions/{region}/instanceTem" + + "plates/{instance_template}\022\356\001\n\003Get\0229.goo" + + "gle.cloud.compute.v1.GetRegionInstanceTe" + + "mplateRequest\032).google.cloud.compute.v1." + + "InstanceTemplate\"\200\001\332A project,region,ins" + + "tance_template\202\323\344\223\002W\022U/compute/v1/projec" + + "ts/{project}/regions/{region}/instanceTe" + + "mplates/{instance_template}\022\221\002\n\006Insert\022<" + + ".google.cloud.compute.v1.InsertRegionIns" + "tanceTemplateRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\223\001\332A project,region,ins", - "tance_template\212N\020RegionOperations\202\323\344\223\002W*" - + "U/compute/v1/projects/{project}/regions/" - + "{region}/instanceTemplates/{instance_tem" - + "plate}\022\356\001\n\003Get\0229.google.cloud.compute.v1" - + ".GetRegionInstanceTemplateRequest\032).goog" - + "le.cloud.compute.v1.InstanceTemplate\"\200\001\332" - + "A project,region,instance_template\202\323\344\223\002W" - + "\022U/compute/v1/projects/{project}/regions" - + "/{region}/instanceTemplates/{instance_te" - + "mplate}\022\221\002\n\006Insert\022<.google.cloud.comput" - + "e.v1.InsertRegionInstanceTemplateRequest" - + "\032\".google.cloud.compute.v1.Operation\"\244\001\332" - + "A)project,region,instance_template_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002_\"A/compute/v" - + "1/projects/{project}/regions/{region}/in" - + "stanceTemplates:\032instance_template_resou" - + "rce\022\316\001\n\004List\022;.google.cloud.compute.v1.L" - + "istRegionInstanceTemplatesRequest\032-.goog" - + "le.cloud.compute.v1.InstanceTemplateList" - + "\"Z\332A\016project,region\202\323\344\223\002C\022A/compute/v1/p" - + "rojects/{project}/regions/{region}/insta" - + "nceTemplates\032r\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\264\003\n\017RegionInstances\022\254\002\n\nBulkIns" - + "ert\0228.google.cloud.compute.v1.BulkInsert" - + "RegionInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\277\001\332A5project,region,bu" - + "lk_insert_instance_resource_resource\212N\020R" - + "egionOperations\202\323\344\223\002n\"D/compute/v1/proje" - + "cts/{project}/regions/{region}/instances" - + "/bulkInsert:&bulk_insert_instance_resour" - + "ce_resource\032r\312A\026compute.googleapis.com\322A" - + "Vhttps://www.googleapis.com/auth/compute" - + ",https://www.googleapis.com/auth/cloud-p" - + "latform2\237\022\n\026RegionInstantSnapshots\022\374\001\n\006D" - + "elete\022;.google.cloud.compute.v1.DeleteRe" - + "gionInstantSnapshotRequest\032\".google.clou" - + "d.compute.v1.Operation\"\220\001\332A\037project,regi" - + "on,instant_snapshot\212N\020RegionOperations\202\323" - + "\344\223\002U*S/compute/v1/projects/{project}/reg" - + "ions/{region}/instantSnapshots/{instant_" - + "snapshot}\022\350\001\n\003Get\0228.google.cloud.compute" - + ".v1.GetRegionInstantSnapshotRequest\032(.go" - + "ogle.cloud.compute.v1.InstantSnapshot\"}\332" - + "A\037project,region,instant_snapshot\202\323\344\223\002U\022" - + "S/compute/v1/projects/{project}/regions/" - + "{region}/instantSnapshots/{instant_snaps" - + "hot}\022\356\001\n\014GetIamPolicy\022A.google.cloud.com" - + "pute.v1.GetIamPolicyRegionInstantSnapsho" - + "tRequest\032\037.google.cloud.compute.v1.Polic" - + "y\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/co" + + "ute.v1.Operation\"\244\001\332A)project,region,ins" + + "tance_template_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002_\"A/compute/v1/projects/{project}" + + "/regions/{region}/instanceTemplates:\032ins" + + "tance_template_resource\022\316\001\n\004List\022;.googl" + + "e.cloud.compute.v1.ListRegionInstanceTem" + + "platesRequest\032-.google.cloud.compute.v1." + + "InstanceTemplateList\"Z\332A\016project,region\202" + + "\323\344\223\002C\022A/compute/v1/projects/{project}/re" + + "gions/{region}/instanceTemplates\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\264\003\n\017RegionI" + + "nstances\022\254\002\n\nBulkInsert\0228.google.cloud.c" + + "ompute.v1.BulkInsertRegionInstanceReques" + + "t\032\".google.cloud.compute.v1.Operation\"\277\001" + + "\332A5project,region,bulk_insert_instance_r" + + "esource_resource\212N\020RegionOperations\202\323\344\223\002" + + "n\"D/compute/v1/projects/{project}/region" + + "s/{region}/instances/bulkInsert:&bulk_in" + + "sert_instance_resource_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\325\020\n\033RegionIn" + + "stantSnapshotGroups\022\222\002\n\006Delete\022@.google." + + "cloud.compute.v1.DeleteRegionInstantSnap" + + "shotGroupRequest\032\".google.cloud.compute." + + "v1.Operation\"\241\001\332A%project,region,instant" + + "_snapshot_group\212N\020RegionOperations\202\323\344\223\002`" + + "*^/compute/v1/projects/{project}/regions" + + "/{region}/instantSnapshotGroups/{instant" + + "_snapshot_group}\022\204\002\n\003Get\022=.google.cloud." + + "compute.v1.GetRegionInstantSnapshotGroup" + + "Request\032-.google.cloud.compute.v1.Instan" + + "tSnapshotGroup\"\216\001\332A%project,region,insta" + + "nt_snapshot_group\202\323\344\223\002`\022^/compute/v1/pro" + + "jects/{project}/regions/{region}/instant", + "SnapshotGroups/{instant_snapshot_group}\022" + + "\370\001\n\014GetIamPolicy\022F.google.cloud.compute." + + "v1.GetIamPolicyRegionInstantSnapshotGrou" + + "pRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"\177\332A\027project,region,resource\202\323\344\223\002_\022]/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instantSnapshots/{resource}/getIamP" - + "olicy\022\215\002\n\006Insert\022;.google.cloud.compute." - + "v1.InsertRegionInstantSnapshotRequest\032\"." - + "google.cloud.compute.v1.Operation\"\241\001\332A(p" - + "roject,region,instant_snapshot_resource\212" - + "N\020RegionOperations\202\323\344\223\002]\"@/compute/v1/pr" - + "ojects/{project}/regions/{region}/instan" - + "tSnapshots:\031instant_snapshot_resource\022\313\001" - + "\n\004List\022:.google.cloud.compute.v1.ListReg" - + "ionInstantSnapshotsRequest\032,.google.clou" - + "d.compute.v1.InstantSnapshotList\"Y\332A\016pro" - + "ject,region\202\323\344\223\002B\022@/compute/v1/projects/" - + "{project}/regions/{region}/instantSnapsh" - + "ots\022\266\002\n\014SetIamPolicy\022A.google.cloud.comp" - + "ute.v1.SetIamPolicyRegionInstantSnapshot" - + "Request\032\037.google.cloud.compute.v1.Policy" - + "\"\301\001\332A:project,region,resource,region_set" - + "_policy_request_resource\202\323\344\223\002~\"X/compute" + + "ion}/instantSnapshotGroups/{resource}/ge" + + "tIamPolicy\022\243\002\n\006Insert\022@.google.cloud.com" + + "pute.v1.InsertRegionInstantSnapshotGroup" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\262\001\332A.project,region,instant_snapshot" + + "_group_resource\212N\020RegionOperations\202\323\344\223\002h" + + "\"E/compute/v1/projects/{project}/regions" + + "/{region}/instantSnapshotGroups:\037instant" + + "_snapshot_group_resource\022\333\001\n\004List\022?.goog" + + "le.cloud.compute.v1.ListRegionInstantSna" + + "pshotGroupsRequest\0322.google.cloud.comput" + + "e.v1.ListInstantSnapshotGroups\"^\332A\016proje" + + "ct,region\202\323\344\223\002G\022E/compute/v1/projects/{p" + + "roject}/regions/{region}/instantSnapshot" + + "Groups\022\301\002\n\014SetIamPolicy\022F.google.cloud.c" + + "ompute.v1.SetIamPolicyRegionInstantSnaps" + + "hotGroupRequest\032\037.google.cloud.compute.v" + + "1.Policy\"\307\001\332A:project,region,resource,re" + + "gion_set_policy_request_resource\202\323\344\223\002\203\001\"" + + "]/compute/v1/projects/{project}/regions/" + + "{region}/instantSnapshotGroups/{resource" + + "}/setIamPolicy:\"region_set_policy_reques" + + "t_resource\022\342\002\n\022TestIamPermissions\022L.goog" + + "le.cloud.compute.v1.TestIamPermissionsRe" + + "gionInstantSnapshotGroupRequest\0320.google" + + ".cloud.compute.v1.TestPermissionsRespons" + + "e\"\313\001\332A9project,region,resource,test_perm" + + "issions_request_resource\202\323\344\223\002\210\001\"c/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/instantSnapshotGroups/{resource}/testIa" + + "mPermissions:!test_permissions_request_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\237\022\n\026RegionInstantSnapshots\022\374\001\n\006Delet" + + "e\022;.google.cloud.compute.v1.DeleteRegion" + + "InstantSnapshotRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\220\001\332A\037project,region,i" + + "nstant_snapshot\212N\020RegionOperations\202\323\344\223\002U" + + "*S/compute/v1/projects/{project}/regions" + + "/{region}/instantSnapshots/{instant_snap" + + "shot}\022\350\001\n\003Get\0228.google.cloud.compute.v1." + + "GetRegionInstantSnapshotRequest\032(.google" + + ".cloud.compute.v1.InstantSnapshot\"}\332A\037pr" + + "oject,region,instant_snapshot\202\323\344\223\002U\022S/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/instantSnapshots/{instant_snapshot}" + + "\022\356\001\n\014GetIamPolicy\022A.google.cloud.compute" + + ".v1.GetIamPolicyRegionInstantSnapshotReq" + + "uest\032\037.google.cloud.compute.v1.Policy\"z\332" + + "A\027project,region,resource\202\323\344\223\002Z\022X/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/instantSnapshots/{resource}/getIamPolic" + + "y\022\215\002\n\006Insert\022;.google.cloud.compute.v1.I" + + "nsertRegionInstantSnapshotRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\241\001\332A(proje" + + "ct,region,instant_snapshot_resource\212N\020Re" + + "gionOperations\202\323\344\223\002]\"@/compute/v1/projec" + + "ts/{project}/regions/{region}/instantSna" + + "pshots:\031instant_snapshot_resource\022\313\001\n\004Li" + + "st\022:.google.cloud.compute.v1.ListRegionI" + + "nstantSnapshotsRequest\032,.google.cloud.co" + + "mpute.v1.InstantSnapshotList\"Y\332A\016project" + + ",region\202\323\344\223\002B\022@/compute/v1/projects/{pro" + + "ject}/regions/{region}/instantSnapshots\022" + + "\266\002\n\014SetIamPolicy\022A.google.cloud.compute." + + "v1.SetIamPolicyRegionInstantSnapshotRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"\301\001\332" + + "A:project,region,resource,region_set_pol" + + "icy_request_resource\202\323\344\223\002~\"X/compute/v1/" + + "projects/{project}/regions/{region}/inst" + + "antSnapshots/{resource}/setIamPolicy:\"re" + + "gion_set_policy_request_resource\022\303\002\n\tSet" + + "Labels\022>.google.cloud.compute.v1.SetLabe" + + "lsRegionInstantSnapshotRequest\032\".google." + + "cloud.compute.v1.Operation\"\321\001\332A:project," + + "region,resource,region_set_labels_reques" + + "t_resource\212N\020RegionOperations\202\323\344\223\002{\"U/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/instantSnapshots/{resource}/setLabe" + + "ls:\"region_set_labels_request_resource\022\330" + + "\002\n\022TestIamPermissions\022G.google.cloud.com" + + "pute.v1.TestIamPermissionsRegionInstantS" + + "napshotRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\306\001\332A9project,re" + + "gion,resource,test_permissions_request_r" + + "esource\202\323\344\223\002\203\001\"^/compute/v1/projects/{pr" + + "oject}/regions/{region}/instantSnapshots" + + "/{resource}/testIamPermissions:!test_per" + + "missions_request_resource\032r\312A\026compute.go" + + "ogleapis.com\322AVhttps://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform2\244\023\n\033RegionNetworkE" + + "ndpointGroups\022\315\003\n\026AttachNetworkEndpoints" + + "\022P.google.cloud.compute.v1.AttachNetwork" + + "EndpointsRegionNetworkEndpointGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\274" + + "\002\332Afproject,region,network_endpoint_grou" + + "p,region_network_endpoint_groups_attach_" + + "endpoints_request_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002\271\001\"u/compute/v1/projects/{proj" + + "ect}/regions/{region}/networkEndpointGro" + + "ups/{network_endpoint_group}/attachNetwo" + + "rkEndpoints:@region_network_endpoint_gro" + + "ups_attach_endpoints_request_resource\022\222\002" + + "\n\006Delete\022@.google.cloud.compute.v1.Delet" + + "eRegionNetworkEndpointGroupRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\241\001\332A%proj" + + "ect,region,network_endpoint_group\212N\020Regi" + + "onOperations\202\323\344\223\002`*^/compute/v1/projects" + + "/{project}/regions/{region}/networkEndpo" + + "intGroups/{network_endpoint_group}\022\315\003\n\026D" + + "etachNetworkEndpoints\022P.google.cloud.com" + + "pute.v1.DetachNetworkEndpointsRegionNetw" + + "orkEndpointGroupRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\274\002\332Afproject,region," + + "network_endpoint_group,region_network_en" + + "dpoint_groups_detach_endpoints_request_r" + + "esource\212N\020RegionOperations\202\323\344\223\002\271\001\"u/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/networkEndpointGroups/{network_endpoi" + + "nt_group}/detachNetworkEndpoints:@region" + + "_network_endpoint_groups_detach_endpoint" + + "s_request_resource\022\204\002\n\003Get\022=.google.clou" + + "d.compute.v1.GetRegionNetworkEndpointGro" + + "upRequest\032-.google.cloud.compute.v1.Netw" + + "orkEndpointGroup\"\216\001\332A%project,region,net" + + "work_endpoint_group\202\323\344\223\002`\022^/compute/v1/p" + + "rojects/{project}/regions/{region}/netwo" + + "rkEndpointGroups/{network_endpoint_group" + + "}\022\243\002\n\006Insert\022@.google.cloud.compute.v1.I" + + "nsertRegionNetworkEndpointGroupRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\262\001\332A." + + "project,region,network_endpoint_group_re" + + "source\212N\020RegionOperations\202\323\344\223\002h\"E/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/networkEndpointGroups:\037network_endpoint" + + "_group_resource\022\332\001\n\004List\022?.google.cloud." + + "compute.v1.ListRegionNetworkEndpointGrou" + + "psRequest\0321.google.cloud.compute.v1.Netw" + + "orkEndpointGroupList\"^\332A\016project,region\202" + + "\323\344\223\002G\022E/compute/v1/projects/{project}/re" + + "gions/{region}/networkEndpointGroups\022\321\002\n" + + "\024ListNetworkEndpoints\022O.google.cloud.com" + + "pute.v1.ListNetworkEndpointsRegionNetwor" + + "kEndpointGroupsRequest\032B.google.cloud.co" + + "mpute.v1.NetworkEndpointGroupsListNetwor" + + "kEndpoints\"\243\001\332A%project,region,network_e" + + "ndpoint_group\202\323\344\223\002u\"s/compute/v1/project" + + "s/{project}/regions/{region}/networkEndp" + + "ointGroups/{network_endpoint_group}/list" + + "NetworkEndpoints\032r\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform2\362\'\n\035RegionNetworkFirewallPo" + + "licies\022\353\002\n\016AddAssociation\022I.google.cloud" + + ".compute.v1.AddAssociationRegionNetworkF" + + "irewallPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\351\001\332ACproject,region,fir" + + "ewall_policy,firewall_policy_association" + + "_resource\212N\020RegionOperations\202\323\344\223\002\211\001\"a/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/firewallPolicies/{firewall_policy}/" + + "addAssociation:$firewall_policy_associat" + + "ion_resource\022\307\002\n\007AddRule\022B.google.cloud." + + "compute.v1.AddRuleRegionNetworkFirewallP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\323\001\332A.google.cloud.compute.v1.GetReg" + + "ionNetworkFirewallPolicyRequest\032\'.google" + + ".cloud.compute.v1.FirewallPolicy\"{\332A\036pro" + + "ject,region,firewall_policy\202\323\344\223\002T\022R/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/firewallPolicies/{firewall_policy}\022\234\002" + + "\n\016GetAssociation\022I.google.cloud.compute." + + "v1.GetAssociationRegionNetworkFirewallPo" + + "licyRequest\0322.google.cloud.compute.v1.Fi" + + "rewallPolicyAssociation\"\212\001\332A\036project,reg" + + "ion,firewall_policy\202\323\344\223\002c\022a/compute/v1/p" + + "rojects/{project}/regions/{region}/firew" + + "allPolicies/{firewall_policy}/getAssocia" + + "tion\022\267\002\n\025GetEffectiveFirewalls\022P.google." + + "cloud.compute.v1.GetEffectiveFirewallsRe" + + "gionNetworkFirewallPolicyRequest\032S.googl" + + "e.cloud.compute.v1.RegionNetworkFirewall" + + "PoliciesGetEffectiveFirewallsResponse\"w\332" + + "A\026project,region,network\202\323\344\223\002X\022V/compute" + "/v1/projects/{project}/regions/{region}/" - + "instantSnapshots/{resource}/setIamPolicy" - + ":\"region_set_policy_request_resource\022\303\002\n" - + "\tSetLabels\022>.google.cloud.compute.v1.Set" - + "LabelsRegionInstantSnapshotRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\321\001\332A:proj" - + "ect,region,resource,region_set_labels_re" - + "quest_resource\212N\020RegionOperations\202\323\344\223\002{\"" - + "U/compute/v1/projects/{project}/regions/" - + "{region}/instantSnapshots/{resource}/set" - + "Labels:\"region_set_labels_request_resour" - + "ce\022\330\002\n\022TestIamPermissions\022G.google.cloud" - + ".compute.v1.TestIamPermissionsRegionInst" - + "antSnapshotRequest\0320.google.cloud.comput" - + "e.v1.TestPermissionsResponse\"\306\001\332A9projec" - + "t,region,resource,test_permissions_reque" - + "st_resource\202\323\344\223\002\203\001\"^/compute/v1/projects" - + "/{project}/regions/{region}/instantSnaps" - + "hots/{resource}/testIamPermissions:!test" - + "_permissions_request_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\244\023\n\033RegionNetw" - + "orkEndpointGroups\022\315\003\n\026AttachNetworkEndpo" - + "ints\022P.google.cloud.compute.v1.AttachNet" - + "workEndpointsRegionNetworkEndpointGroupR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\274\002\332Afproject,region,network_endpoint_" - + "group,region_network_endpoint_groups_att" - + "ach_endpoints_request_resource\212N\020RegionO" - + "perations\202\323\344\223\002\271\001\"u/compute/v1/projects/{" - + "project}/regions/{region}/networkEndpoin" - + "tGroups/{network_endpoint_group}/attachN" - + "etworkEndpoints:@region_network_endpoint" - + "_groups_attach_endpoints_request_resourc" - + "e\022\222\002\n\006Delete\022@.google.cloud.compute.v1.D" - + "eleteRegionNetworkEndpointGroupRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\241\001\332A%" - + "project,region,network_endpoint_group\212N\020" - + "RegionOperations\202\323\344\223\002`*^/compute/v1/proj" - + "ects/{project}/regions/{region}/networkE" - + "ndpointGroups/{network_endpoint_group}\022\315" - + "\003\n\026DetachNetworkEndpoints\022P.google.cloud" - + ".compute.v1.DetachNetworkEndpointsRegion" - + "NetworkEndpointGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\274\002\332Afproject,reg" - + "ion,network_endpoint_group,region_networ" - + "k_endpoint_groups_detach_endpoints_reque" - + "st_resource\212N\020RegionOperations\202\323\344\223\002\271\001\"u/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/networkEndpointGroups/{network_en" - + "dpoint_group}/detachNetworkEndpoints:@re" - + "gion_network_endpoint_groups_detach_endp" - + "oints_request_resource\022\204\002\n\003Get\022=.google." - + "cloud.compute.v1.GetRegionNetworkEndpoin" - + "tGroupRequest\032-.google.cloud.compute.v1." - + "NetworkEndpointGroup\"\216\001\332A%project,region" - + ",network_endpoint_group\202\323\344\223\002`\022^/compute/" - + "v1/projects/{project}/regions/{region}/n" - + "etworkEndpointGroups/{network_endpoint_g" - + "roup}\022\243\002\n\006Insert\022@.google.cloud.compute." - + "v1.InsertRegionNetworkEndpointGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\262" - + "\001\332A.project,region,network_endpoint_grou" - + "p_resource\212N\020RegionOperations\202\323\344\223\002h\"E/co" + + "firewallPolicies/getEffectiveFirewalls\022\364" + + "\001\n\014GetIamPolicy\022G.google.cloud.compute.v" + + "1.GetIamPolicyRegionNetworkFirewallPolic" + + "yRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/networkEndpointGroups:\037network_endp" - + "oint_group_resource\022\332\001\n\004List\022?.google.cl" - + "oud.compute.v1.ListRegionNetworkEndpoint" - + "GroupsRequest\0321.google.cloud.compute.v1." - + "NetworkEndpointGroupList\"^\332A\016project,reg" - + "ion\202\323\344\223\002G\022E/compute/v1/projects/{project" - + "}/regions/{region}/networkEndpointGroups" - + "\022\321\002\n\024ListNetworkEndpoints\022O.google.cloud" - + ".compute.v1.ListNetworkEndpointsRegionNe" - + "tworkEndpointGroupsRequest\032B.google.clou" - + "d.compute.v1.NetworkEndpointGroupsListNe" - + "tworkEndpoints\"\243\001\332A%project,region,netwo" - + "rk_endpoint_group\202\323\344\223\002u\"s/compute/v1/pro" - + "jects/{project}/regions/{region}/network" - + "EndpointGroups/{network_endpoint_group}/" - + "listNetworkEndpoints\032r\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform2\362\'\n\035RegionNetworkFirewa" - + "llPolicies\022\353\002\n\016AddAssociation\022I.google.c" - + "loud.compute.v1.AddAssociationRegionNetw" - + "orkFirewallPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\351\001\332ACproject,region" - + ",firewall_policy,firewall_policy_associa" - + "tion_resource\212N\020RegionOperations\202\323\344\223\002\211\001\"" - + "a/compute/v1/projects/{project}/regions/" - + "{region}/firewallPolicies/{firewall_poli" - + "cy}/addAssociation:$firewall_policy_asso" - + "ciation_resource\022\307\002\n\007AddRule\022B.google.cl" - + "oud.compute.v1.AddRuleRegionNetworkFirew" - + "allPolicyRequest\032\".google.cloud.compute." - + "v1.Operation\"\323\001\332A.google.cloud.compute.v1.Ge" - + "tRegionNetworkFirewallPolicyRequest\032\'.go" - + "ogle.cloud.compute.v1.FirewallPolicy\"{\332A" - + "\036project,region,firewall_policy\202\323\344\223\002T\022R/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/firewallPolicies/{firewall_policy" - + "}\022\234\002\n\016GetAssociation\022I.google.cloud.comp" - + "ute.v1.GetAssociationRegionNetworkFirewa" - + "llPolicyRequest\0322.google.cloud.compute.v" - + "1.FirewallPolicyAssociation\"\212\001\332A\036project" - + ",region,firewall_policy\202\323\344\223\002c\022a/compute/" - + "v1/projects/{project}/regions/{region}/f" - + "irewallPolicies/{firewall_policy}/getAss" - + "ociation\022\267\002\n\025GetEffectiveFirewalls\022P.goo" - + "gle.cloud.compute.v1.GetEffectiveFirewal" - + "lsRegionNetworkFirewallPolicyRequest\032S.g" - + "oogle.cloud.compute.v1.RegionNetworkFire" - + "wallPoliciesGetEffectiveFirewallsRespons" - + "e\"w\332A\026project,region,network\202\323\344\223\002X\022V/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/firewallPolicies/getEffectiveFirewal" - + "ls\022\364\001\n\014GetIamPolicy\022G.google.cloud.compu" - + "te.v1.GetIamPolicyRegionNetworkFirewallP" - + "olicyRequest\032\037.google.cloud.compute.v1.P" - + "olicy\"z\332A\027project,region,resource\202\323\344\223\002Z\022" - + "X/compute/v1/projects/{project}/regions/" - + "{region}/firewallPolicies/{resource}/get" - + "IamPolicy\022\200\002\n\007GetRule\022B.google.cloud.com" - + "pute.v1.GetRuleRegionNetworkFirewallPoli" - + "cyRequest\032+.google.cloud.compute.v1.Fire" - + "wallPolicyRule\"\203\001\332A\036project,region,firew" - + "all_policy\202\323\344\223\002\\\022Z/compute/v1/projects/{" - + "project}/regions/{region}/firewallPolici" - + "es/{firewall_policy}/getRule\022\221\002\n\006Insert\022" - + "A.google.cloud.compute.v1.InsertRegionNe" - + "tworkFirewallPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\237\001\332A\'project,regi" - + "on,firewall_policy_resource\212N\020RegionOper" - + "ations\202\323\344\223\002\\\"@/compute/v1/projects/{proj" - + "ect}/regions/{region}/firewallPolicies:\030" - + "firewall_policy_resource\022\321\001\n\004List\022A.goog" - + "le.cloud.compute.v1.ListRegionNetworkFir" - + "ewallPoliciesRequest\032+.google.cloud.comp" - + "ute.v1.FirewallPolicyList\"Y\332A\016project,re" - + "gion\202\323\344\223\002B\022@/compute/v1/projects/{projec" - + "t}/regions/{region}/firewallPolicies\022\261\002\n" - + "\005Patch\022@.google.cloud.compute.v1.PatchRe" - + "gionNetworkFirewallPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\301\001\332A7projec" - + "t,region,firewall_policy,firewall_policy" - + "_resource\212N\020RegionOperations\202\323\344\223\002n2R/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/firewallPolicies/{firewall_policy}:\030" - + "firewall_policy_resource\022\315\002\n\tPatchRule\022D" - + ".google.cloud.compute.v1.PatchRuleRegion" + + "mpute.v1.Operation\"\237\001\332A\'project,region,f" + + "irewall_policy_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002\\\"@/compute/v1/projects/{project}" + + "/regions/{region}/firewallPolicies:\030fire" + + "wall_policy_resource\022\321\001\n\004List\022A.google.c" + + "loud.compute.v1.ListRegionNetworkFirewal" + + "lPoliciesRequest\032+.google.cloud.compute." + + "v1.FirewallPolicyList\"Y\332A\016project,region" + + "\202\323\344\223\002B\022@/compute/v1/projects/{project}/r" + + "egions/{region}/firewallPolicies\022\261\002\n\005Pat" + + "ch\022@.google.cloud.compute.v1.PatchRegion" + "NetworkFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\325\001\332A.google.cloud.compute.v1.Re" - + "moveRuleRegionSecurityPolicyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\231\001\332A\036pro" - + "ject,region,security_policy\212N\020RegionOper" - + "ations\202\323\344\223\002_\"]/compute/v1/projects/{proj" - + "ect}/regions/{region}/securityPolicies/{" - + "security_policy}/removeRule\022\302\002\n\tSetLabel" - + "s\022=.google.cloud.compute.v1.SetLabelsReg" - + "ionSecurityPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\321\001\332A:project,region" - + ",resource,region_set_labels_request_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002{\"U/compute/" + + "/getRule\022\212\002\n\006Insert\022:.google.cloud.compu" + + "te.v1.InsertRegionSecurityPolicyRequest\032" + + "\".google.cloud.compute.v1.Operation\"\237\001\332A" + + "\'project,region,security_policy_resource" + + "\212N\020RegionOperations\202\323\344\223\002\\\"@/compute/v1/p" + + "rojects/{project}/regions/{region}/secur" + + "ityPolicies:\030security_policy_resource\022\312\001" + + "\n\004List\022:.google.cloud.compute.v1.ListReg" + + "ionSecurityPoliciesRequest\032+.google.clou" + + "d.compute.v1.SecurityPolicyList\"Y\332A\016proj" + + "ect,region\202\323\344\223\002B\022@/compute/v1/projects/{" + + "project}/regions/{region}/securityPolici" + + "es\022\252\002\n\005Patch\0229.google.cloud.compute.v1.P" + + "atchRegionSecurityPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\301\001\332A7project" + + ",region,security_policy,security_policy_", + "resource\212N\020RegionOperations\202\323\344\223\002n2R/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/securityPolicies/{security_policy}:\030s" + + "ecurity_policy_resource\022\306\002\n\tPatchRule\022=." + + "google.cloud.compute.v1.PatchRuleRegionS" + + "ecurityPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\325\001\332A.google.cloud.compute.v1.Remove" + + "RuleRegionSecurityPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\231\001\332A\036project" + + ",region,security_policy\212N\020RegionOperatio" + + "ns\202\323\344\223\002_\"]/compute/v1/projects/{project}" + + "/regions/{region}/securityPolicies/{secu" + + "rity_policy}/removeRule\022\302\002\n\tSetLabels\022=." + + "google.cloud.compute.v1.SetLabelsRegionS" + + "ecurityPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\321\001\332A:project,region,res" + + "ource,region_set_labels_request_resource" + + "\212N\020RegionOperations\202\323\344\223\002{\"U/compute/v1/p" + + "rojects/{project}/regions/{region}/secur" + + "ityPolicies/{resource}/setLabels:\"region" + + "_set_labels_request_resource\032r\312A\026compute" + + ".googleapis.com\322AVhttps://www.googleapis" + + ".com/auth/compute,https://www.googleapis" + + ".com/auth/cloud-platform2\344\004\n\026RegionSnaps" + + "hotSettings\022\305\001\n\003Get\0228.google.cloud.compu" + + "te.v1.GetRegionSnapshotSettingRequest\032)." + + "google.cloud.compute.v1.SnapshotSettings" + + "\"Y\332A\016project,region\202\323\344\223\002B\022@/compute/v1/p" + + "rojects/{project}/regions/{region}/snaps" + + "hotSettings\022\215\002\n\005Patch\022:.google.cloud.com" + + "pute.v1.PatchRegionSnapshotSettingReques" + + "t\032\".google.cloud.compute.v1.Operation\"\243\001" + + "\332A)project,region,snapshot_settings_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002^2@/compute/" + "v1/projects/{project}/regions/{region}/s" - + "ecurityPolicies/{resource}/setLabels:\"re" - + "gion_set_labels_request_resource\032r\312A\026com" - + "pute.googleapis.com\322AVhttps://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform2\303\010\n\025RegionS" - + "slCertificates\022\370\001\n\006Delete\022:.google.cloud" - + ".compute.v1.DeleteRegionSslCertificateRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\215\001\332A\036project,region,ssl_certificate\212N\020" - + "RegionOperations\202\323\344\223\002S*Q/compute/v1/proj" - + "ects/{project}/regions/{region}/sslCerti" - + "ficates/{ssl_certificate}\022\343\001\n\003Get\0227.goog" - + "le.cloud.compute.v1.GetRegionSslCertific" - + "ateRequest\032\'.google.cloud.compute.v1.Ssl" - + "Certificate\"z\332A\036project,region,ssl_certi" - + "ficate\202\323\344\223\002S\022Q/compute/v1/projects/{proj" - + "ect}/regions/{region}/sslCertificates/{s" - + "sl_certificate}\022\211\002\n\006Insert\022:.google.clou" - + "d.compute.v1.InsertRegionSslCertificateR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\236\001\332A\'project,region,ssl_certificate_r" - + "esource\212N\020RegionOperations\202\323\344\223\002[\"?/compu" + + "napshotSettings:\032snapshot_settings_resou" + + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\304\023\n\017RegionSnapshots\022\335\001\n\006Delete\0224.google." + + "cloud.compute.v1.DeleteRegionSnapshotReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"y\332A\027project,region,snapshot\212N\020RegionOpe" + + "rations\202\323\344\223\002F*D/compute/v1/projects/{pro" + + "ject}/regions/{region}/snapshots/{snapsh" + + "ot}\022\303\001\n\003Get\0221.google.cloud.compute.v1.Ge" + + "tRegionSnapshotRequest\032!.google.cloud.co" + + "mpute.v1.Snapshot\"f\332A\027project,region,sna" + + "pshot\202\323\344\223\002F\022D/compute/v1/projects/{proje" + + "ct}/regions/{region}/snapshots/{snapshot" + + "}\022\340\001\n\014GetIamPolicy\022:.google.cloud.comput" + + "e.v1.GetIamPolicyRegionSnapshotRequest\032\037" + + ".google.cloud.compute.v1.Policy\"s\332A\027proj" + + "ect,region,resource\202\323\344\223\002S\022Q/compute/v1/p" + + "rojects/{project}/regions/{region}/snaps" + + "hots/{resource}/getIamPolicy\022\357\001\n\006Insert\022" + + "4.google.cloud.compute.v1.InsertRegionSn" + + "apshotRequest\032\".google.cloud.compute.v1." + + "Operation\"\212\001\332A project,region,snapshot_r" + + "esource\212N\020RegionOperations\202\323\344\223\002N\"9/compu" + "te/v1/projects/{project}/regions/{region" - + "}/sslCertificates:\030ssl_certificate_resou" - + "rce\022\310\001\n\004List\0229.google.cloud.compute.v1.L" - + "istRegionSslCertificatesRequest\032+.google" - + ".cloud.compute.v1.SslCertificateList\"X\332A" - + "\016project,region\202\323\344\223\002A\022?/compute/v1/proje" - + "cts/{project}/regions/{region}/sslCertif" - + "icates\032r\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm2\225\014\n\021RegionSslPolicies\022\344\001\n\006Delete\0225.go" - + "ogle.cloud.compute.v1.DeleteRegionSslPol" - + "icyRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\177\332A\031project,region,ssl_policy\212N\020R" - + "egionOperations\202\323\344\223\002J*H/compute/v1/proje" + + "}/snapshots:\021snapshot_resource\022\266\001\n\004List\022" + + "3.google.cloud.compute.v1.ListRegionSnap" + + "shotsRequest\032%.google.cloud.compute.v1.S" + + "napshotList\"R\332A\016project,region\202\323\344\223\002;\0229/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/snapshots\022\250\002\n\014SetIamPolicy\022:.googl" + + "e.cloud.compute.v1.SetIamPolicyRegionSna" + + "pshotRequest\032\037.google.cloud.compute.v1.P" + + "olicy\"\272\001\332A:project,region,resource,regio" + + "n_set_policy_request_resource\202\323\344\223\002w\"Q/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/snapshots/{resource}/setIamPolicy:\"" + + "region_set_policy_request_resource\022\265\002\n\tS" + + "etLabels\0227.google.cloud.compute.v1.SetLa" + + "belsRegionSnapshotRequest\032\".google.cloud" + + ".compute.v1.Operation\"\312\001\332A:project,regio" + + "n,resource,region_set_labels_request_res" + + "ource\212N\020RegionOperations\202\323\344\223\002t\"N/compute" + + "/v1/projects/{project}/regions/{region}/" + + "snapshots/{resource}/setLabels:\"region_s" + + "et_labels_request_resource\022\311\002\n\022TestIamPe" + + "rmissions\022@.google.cloud.compute.v1.Test" + + "IamPermissionsRegionSnapshotRequest\0320.go" + + "ogle.cloud.compute.v1.TestPermissionsRes" + + "ponse\"\276\001\332A9project,region,resource,test_" + + "permissions_request_resource\202\323\344\223\002|\"W/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/snapshots/{resource}/testIamPermissi" + + "ons:!test_permissions_request_resource\022\331" + + "\002\n\014UpdateKmsKey\022:.google.cloud.compute.v" + + "1.UpdateKmsKeyRegionSnapshotRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\350\001\332AGpro" + + "ject,region,snapshot,region_snapshot_upd" + + "ate_kms_key_request_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002\204\001\"Q/compute/v1/projects/{pr" + + "oject}/regions/{region}/snapshots/{snaps" + + "hot}/updateKmsKey:/region_snapshot_updat" + + "e_kms_key_request_resource\032r\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c" + + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform2\303\010\n\025RegionSslCert" + + "ificates\022\370\001\n\006Delete\022:.google.cloud.compu" + + "te.v1.DeleteRegionSslCertificateRequest\032" + + "\".google.cloud.compute.v1.Operation\"\215\001\332A" + + "\036project,region,ssl_certificate\212N\020Region" + + "Operations\202\323\344\223\002S*Q/compute/v1/projects/{" + + "project}/regions/{region}/sslCertificate" + + "s/{ssl_certificate}\022\343\001\n\003Get\0227.google.clo" + + "ud.compute.v1.GetRegionSslCertificateReq" + + "uest\032\'.google.cloud.compute.v1.SslCertif" + + "icate\"z\332A\036project,region,ssl_certificate" + + "\202\323\344\223\002S\022Q/compute/v1/projects/{project}/r" + + "egions/{region}/sslCertificates/{ssl_cer" + + "tificate}\022\211\002\n\006Insert\022:.google.cloud.comp" + + "ute.v1.InsertRegionSslCertificateRequest" + + "\032\".google.cloud.compute.v1.Operation\"\236\001\332" + + "A\'project,region,ssl_certificate_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002[\"?/compute/v1/" + + "projects/{project}/regions/{region}/sslC" + + "ertificates:\030ssl_certificate_resource\022\310\001" + + "\n\004List\0229.google.cloud.compute.v1.ListReg" + + "ionSslCertificatesRequest\032+.google.cloud" + + ".compute.v1.SslCertificateList\"X\332A\016proje" + + "ct,region\202\323\344\223\002A\022?/compute/v1/projects/{p" + + "roject}/regions/{region}/sslCertificates" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\225\014\n" + + "\021RegionSslPolicies\022\344\001\n\006Delete\0225.google.c" + + "loud.compute.v1.DeleteRegionSslPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\177\332A\031project,region,ssl_policy\212N\020RegionO" + + "perations\202\323\344\223\002J*H/compute/v1/projects/{p" + + "roject}/regions/{region}/sslPolicies/{ss" + + "l_policy}\022\313\001\n\003Get\0222.google.cloud.compute" + + ".v1.GetRegionSslPolicyRequest\032\".google.c" + + "loud.compute.v1.SslPolicy\"l\332A\031project,re" + + "gion,ssl_policy\202\323\344\223\002J\022H/compute/v1/proje" + "cts/{project}/regions/{region}/sslPolici" - + "es/{ssl_policy}\022\313\001\n\003Get\0222.google.cloud.c" - + "ompute.v1.GetRegionSslPolicyRequest\032\".go" - + "ogle.cloud.compute.v1.SslPolicy\"l\332A\031proj" - + "ect,region,ssl_policy\202\323\344\223\002J\022H/compute/v1" - + "/projects/{project}/regions/{region}/ssl" - + "Policies/{ssl_policy}\022\366\001\n\006Insert\0225.googl" - + "e.cloud.compute.v1.InsertRegionSslPolicy" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\220\001\332A\"project,region,ssl_policy_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002R\";/compute/v" - + "1/projects/{project}/regions/{region}/ss" - + "lPolicies:\023ssl_policy_resource\022\275\001\n\004List\022" - + "5.google.cloud.compute.v1.ListRegionSslP" - + "oliciesRequest\032(.google.cloud.compute.v1" - + ".SslPoliciesList\"T\332A\016project,region\202\323\344\223\002" - + "=\022;/compute/v1/projects/{project}/region" - + "s/{region}/sslPolicies\022\216\002\n\025ListAvailable" - + "Features\022F.google.cloud.compute.v1.ListA" - + "vailableFeaturesRegionSslPoliciesRequest" - + "\032A.google.cloud.compute.v1.SslPoliciesLi" - + "stAvailableFeaturesResponse\"j\332A\016project," - + "region\202\323\344\223\002S\022Q/compute/v1/projects/{proj" - + "ect}/regions/{region}/sslPolicies/listAv" - + "ailableFeatures\022\214\002\n\005Patch\0224.google.cloud" - + ".compute.v1.PatchRegionSslPolicyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\250\001\332A" - + "-project,region,ssl_policy,ssl_policy_re" - + "source\212N\020RegionOperations\202\323\344\223\002_2H/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/sslPolicies/{ssl_policy}:\023ssl_policy_re" - + "source\032r\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm2\252\013\n\027RegionTargetHttpProxies\022\377\001\n\006Delet" - + "e\022;.google.cloud.compute.v1.DeleteRegion" - + "TargetHttpProxyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\223\001\332A project,region,t" - + "arget_http_proxy\212N\020RegionOperations\202\323\344\223\002" - + "W*U/compute/v1/projects/{project}/region" - + "s/{region}/targetHttpProxies/{target_htt" - + "p_proxy}\022\354\001\n\003Get\0228.google.cloud.compute." - + "v1.GetRegionTargetHttpProxyRequest\032(.goo" - + "gle.cloud.compute.v1.TargetHttpProxy\"\200\001\332" - + "A project,region,target_http_proxy\202\323\344\223\002W" - + "\022U/compute/v1/projects/{project}/regions" - + "/{region}/targetHttpProxies/{target_http" - + "_proxy}\022\220\002\n\006Insert\022;.google.cloud.comput" - + "e.v1.InsertRegionTargetHttpProxyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\244\001\332A" - + ")project,region,target_http_proxy_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002_\"A/compute/v1" - + "/projects/{project}/regions/{region}/tar" - + "getHttpProxies:\032target_http_proxy_resour" - + "ce\022\315\001\n\004List\022;.google.cloud.compute.v1.Li" - + "stRegionTargetHttpProxiesRequest\032,.googl" - + "e.cloud.compute.v1.TargetHttpProxyList\"Z" - + "\332A\016project,region\202\323\344\223\002C\022A/compute/v1/pro" - + "jects/{project}/regions/{region}/targetH" - + "ttpProxies\022\306\002\n\tSetUrlMap\022>.google.cloud." - + "compute.v1.SetUrlMapRegionTargetHttpProx" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\324\001\332A;project,region,target_http_pro" - + "xy,url_map_reference_resource\212N\020RegionOp" - + "erations\202\323\344\223\002}\"_/compute/v1/projects/{pr" - + "oject}/regions/{region}/targetHttpProxie" - + "s/{target_http_proxy}/setUrlMap:\032url_map" - + "_reference_resource\032r\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform2\263\021\n\030RegionTargetHttpsPro" - + "xies\022\203\002\n\006Delete\022<.google.cloud.compute.v" - + "1.DeleteRegionTargetHttpsProxyRequest\032\"." - + "google.cloud.compute.v1.Operation\"\226\001\332A!p" - + "roject,region,target_https_proxy\212N\020Regio" - + "nOperations\202\323\344\223\002Y*W/compute/v1/projects/" - + "{project}/regions/{region}/targetHttpsPr" - + "oxies/{target_https_proxy}\022\361\001\n\003Get\0229.goo" - + "gle.cloud.compute.v1.GetRegionTargetHttp" - + "sProxyRequest\032).google.cloud.compute.v1." - + "TargetHttpsProxy\"\203\001\332A!project,region,tar" - + "get_https_proxy\202\323\344\223\002Y\022W/compute/v1/proje" - + "cts/{project}/regions/{region}/targetHtt" - + "psProxies/{target_https_proxy}\022\224\002\n\006Inser" - + "t\022<.google.cloud.compute.v1.InsertRegion" - + "TargetHttpsProxyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\247\001\332A*project,region," - + "target_https_proxy_resource\212N\020RegionOper" - + "ations\202\323\344\223\002a\"B/compute/v1/projects/{proj" - + "ect}/regions/{region}/targetHttpsProxies" - + ":\033target_https_proxy_resource\022\320\001\n\004List\022<" - + ".google.cloud.compute.v1.ListRegionTarge" - + "tHttpsProxiesRequest\032-.google.cloud.comp" - + "ute.v1.TargetHttpsProxyList\"[\332A\016project," - + "region\202\323\344\223\002D\022B/compute/v1/projects/{proj" - + "ect}/regions/{region}/targetHttpsProxies" - + "\022\272\002\n\005Patch\022;.google.cloud.compute.v1.Pat" - + "chRegionTargetHttpsProxyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\317\001\332A=project" - + ",region,target_https_proxy,target_https_" - + "proxy_resource\212N\020RegionOperations\202\323\344\223\002v2" - + "W/compute/v1/projects/{project}/regions/" - + "{region}/targetHttpsProxies/{target_http" - + "s_proxy}:\033target_https_proxy_resource\022\264\003" - + "\n\022SetSslCertificates\022H.google.cloud.comp" - + "ute.v1.SetSslCertificatesRegionTargetHtt" - + "psProxyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\257\002\332Acproject,region,target_ht" - + "tps_proxy,region_target_https_proxies_se" - + "t_ssl_certificates_request_resource\212N\020Re" - + "gionOperations\202\323\344\223\002\257\001\"j/compute/v1/proje" + + "es/{ssl_policy}\022\366\001\n\006Insert\0225.google.clou" + + "d.compute.v1.InsertRegionSslPolicyReques" + + "t\032\".google.cloud.compute.v1.Operation\"\220\001" + + "\332A\"project,region,ssl_policy_resource\212N\020" + + "RegionOperations\202\323\344\223\002R\";/compute/v1/proj" + + "ects/{project}/regions/{region}/sslPolic" + + "ies:\023ssl_policy_resource\022\275\001\n\004List\0225.goog" + + "le.cloud.compute.v1.ListRegionSslPolicie" + + "sRequest\032(.google.cloud.compute.v1.SslPo" + + "liciesList\"T\332A\016project,region\202\323\344\223\002=\022;/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/sslPolicies\022\216\002\n\025ListAvailableFeatur" + + "es\022F.google.cloud.compute.v1.ListAvailab" + + "leFeaturesRegionSslPoliciesRequest\032A.goo" + + "gle.cloud.compute.v1.SslPoliciesListAvai" + + "lableFeaturesResponse\"j\332A\016project,region" + + "\202\323\344\223\002S\022Q/compute/v1/projects/{project}/r" + + "egions/{region}/sslPolicies/listAvailabl" + + "eFeatures\022\214\002\n\005Patch\0224.google.cloud.compu" + + "te.v1.PatchRegionSslPolicyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\250\001\332A-proje" + + "ct,region,ssl_policy,ssl_policy_resource" + + "\212N\020RegionOperations\202\323\344\223\002_2H/compute/v1/p" + + "rojects/{project}/regions/{region}/sslPo" + + "licies/{ssl_policy}:\023ssl_policy_resource" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\252\013\n" + + "\027RegionTargetHttpProxies\022\377\001\n\006Delete\022;.go" + + "ogle.cloud.compute.v1.DeleteRegionTarget" + + "HttpProxyRequest\032\".google.cloud.compute." + + "v1.Operation\"\223\001\332A project,region,target_" + + "http_proxy\212N\020RegionOperations\202\323\344\223\002W*U/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/targetHttpProxies/{target_http_prox" + + "y}\022\354\001\n\003Get\0228.google.cloud.compute.v1.Get" + + "RegionTargetHttpProxyRequest\032(.google.cl" + + "oud.compute.v1.TargetHttpProxy\"\200\001\332A proj" + + "ect,region,target_http_proxy\202\323\344\223\002W\022U/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/targetHttpProxies/{target_http_proxy" + + "}\022\220\002\n\006Insert\022;.google.cloud.compute.v1.I" + + "nsertRegionTargetHttpProxyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\244\001\332A)proje" + + "ct,region,target_http_proxy_resource\212N\020R" + + "egionOperations\202\323\344\223\002_\"A/compute/v1/proje" + "cts/{project}/regions/{region}/targetHtt" - + "psProxies/{target_https_proxy}/setSslCer" - + "tificates:Aregion_target_https_proxies_s" - + "et_ssl_certificates_request_resource\022\312\002\n" - + "\tSetUrlMap\022?.google.cloud.compute.v1.Set" - + "UrlMapRegionTargetHttpsProxyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\327\001\332A.google.cloud.comput" + + "e.v1.SetUrlMapRegionTargetHttpProxyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\324" + + "\001\332A;project,region,target_http_proxy,url" + + "_map_reference_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002}\"_/compute/v1/projects/{project}" + + "/regions/{region}/targetHttpProxies/{tar" + + "get_http_proxy}/setUrlMap:\032url_map_refer" + + "ence_resource\032r\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform2\263\021\n\030RegionTargetHttpsProxies\022\203" + + "\002\n\006Delete\022<.google.cloud.compute.v1.Dele" + + "teRegionTargetHttpsProxyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\226\001\332A!project" + + ",region,target_https_proxy\212N\020RegionOpera" + + "tions\202\323\344\223\002Y*W/compute/v1/projects/{proje" + + "ct}/regions/{region}/targetHttpsProxies/" + + "{target_https_proxy}\022\361\001\n\003Get\0229.google.cl" + + "oud.compute.v1.GetRegionTargetHttpsProxy" + + "Request\032).google.cloud.compute.v1.Target" + + "HttpsProxy\"\203\001\332A!project,region,target_ht" + + "tps_proxy\202\323\344\223\002Y\022W/compute/v1/projects/{p" + + "roject}/regions/{region}/targetHttpsProx" + + "ies/{target_https_proxy}\022\224\002\n\006Insert\022<.go" + + "ogle.cloud.compute.v1.InsertRegionTarget" + + "HttpsProxyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\247\001\332A*project,region,target" + + "_https_proxy_resource\212N\020RegionOperations" + + "\202\323\344\223\002a\"B/compute/v1/projects/{project}/r" + + "egions/{region}/targetHttpsProxies:\033targ" + + "et_https_proxy_resource\022\320\001\n\004List\022<.googl" + + "e.cloud.compute.v1.ListRegionTargetHttps" + + "ProxiesRequest\032-.google.cloud.compute.v1" + + ".TargetHttpsProxyList\"[\332A\016project,region" + + "\202\323\344\223\002D\022B/compute/v1/projects/{project}/r" + + "egions/{region}/targetHttpsProxies\022\272\002\n\005P" + + "atch\022;.google.cloud.compute.v1.PatchRegi" + + "onTargetHttpsProxyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\317\001\332A=project,regio" + + "n,target_https_proxy,target_https_proxy_" + + "resource\212N\020RegionOperations\202\323\344\223\002v2W/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/targetHttpsProxies/{target_https_prox" + + "y}:\033target_https_proxy_resource\022\264\003\n\022SetS" + + "slCertificates\022H.google.cloud.compute.v1" + + ".SetSslCertificatesRegionTargetHttpsProx" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\257\002\332Acproject,region,target_https_pr" + + "oxy,region_target_https_proxies_set_ssl_" + + "certificates_request_resource\212N\020RegionOp" + + "erations\202\323\344\223\002\257\001\"j/compute/v1/projects/{p" + + "roject}/regions/{region}/targetHttpsProx" + + "ies/{target_https_proxy}/setSslCertifica" + + "tes:Aregion_target_https_proxies_set_ssl" + + "_certificates_request_resource\022\312\002\n\tSetUr" + + "lMap\022?.google.cloud.compute.v1.SetUrlMap" + + "RegionTargetHttpsProxyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\327\001\332A.google.cloud." - + "compute.v1.AggregatedListResourcePolicie" - + "sRequest\0325.google.cloud.compute.v1.Resou" - + "rcePolicyAggregatedList\"L\332A\007project\202\323\344\223\002" - + "<\022:/compute/v1/projects/{project}/aggreg" - + "ated/resourcePolicies\022\363\001\n\006Delete\0224.googl" - + "e.cloud.compute.v1.DeleteResourcePolicyR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\216\001\332A\036project,region,resource_policy\212N" - + "\020RegionOperations\202\323\344\223\002T*R/compute/v1/pro" - + "jects/{project}/regions/{region}/resourc" - + "ePolicies/{resource_policy}\022\336\001\n\003Get\0221.go" - + "ogle.cloud.compute.v1.GetResourcePolicyR" - + "equest\032\'.google.cloud.compute.v1.Resourc" - + "ePolicy\"{\332A\036project,region,resource_poli" - + "cy\202\323\344\223\002T\022R/compute/v1/projects/{project}" - + "/regions/{region}/resourcePolicies/{reso" - + "urce_policy}\022\347\001\n\014GetIamPolicy\022:.google.c" - + "loud.compute.v1.GetIamPolicyResourcePoli" - + "cyRequest\032\037.google.cloud.compute.v1.Poli" - + "cy\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/c" + + "uth/cloud-platform2\232\023\n\020ResourcePolicies\022" + + "\325\001\n\016AggregatedList\022>.google.cloud.comput" + + "e.v1.AggregatedListResourcePoliciesReque" + + "st\0325.google.cloud.compute.v1.ResourcePol" + + "icyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/co" + + "mpute/v1/projects/{project}/aggregated/r" + + "esourcePolicies\022\363\001\n\006Delete\0224.google.clou" + + "d.compute.v1.DeleteResourcePolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\216\001\332" + + "A\036project,region,resource_policy\212N\020Regio" + + "nOperations\202\323\344\223\002T*R/compute/v1/projects/" + + "{project}/regions/{region}/resourcePolic" + + "ies/{resource_policy}\022\336\001\n\003Get\0221.google.c" + + "loud.compute.v1.GetResourcePolicyRequest" + + "\032\'.google.cloud.compute.v1.ResourcePolic" + + "y\"{\332A\036project,region,resource_policy\202\323\344\223" + + "\002T\022R/compute/v1/projects/{project}/regio" + + "ns/{region}/resourcePolicies/{resource_p" + + "olicy}\022\347\001\n\014GetIamPolicy\022:.google.cloud.c" + + "ompute.v1.GetIamPolicyResourcePolicyRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"z\332A" + + "\027project,region,resource\202\323\344\223\002Z\022X/compute" + + "/v1/projects/{project}/regions/{region}/" + + "resourcePolicies/{resource}/getIamPolicy" + + "\022\204\002\n\006Insert\0224.google.cloud.compute.v1.In" + + "sertResourcePolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\237\001\332A\'project,regio" + + "n,resource_policy_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002\\\"@/compute/v1/projects/{proje" + + "ct}/regions/{region}/resourcePolicies:\030r" + + "esource_policy_resource\022\304\001\n\004List\0224.googl" + + "e.cloud.compute.v1.ListResourcePoliciesR" + + "equest\032+.google.cloud.compute.v1.Resourc" + + "ePolicyList\"Y\332A\016project,region\202\323\344\223\002B\022@/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/resourcePolicies/{resource}/getIam" - + "Policy\022\204\002\n\006Insert\0224.google.cloud.compute" - + ".v1.InsertResourcePolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\237\001\332A\'project" - + ",region,resource_policy_resource\212N\020Regio" - + "nOperations\202\323\344\223\002\\\"@/compute/v1/projects/" + + "gion}/resourcePolicies\022\244\002\n\005Patch\0223.googl" + + "e.cloud.compute.v1.PatchResourcePolicyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\301\001\332A7project,region,resource_policy,re" + + "source_policy_resource\212N\020RegionOperation" + + "s\202\323\344\223\002n2R/compute/v1/projects/{project}/" + + "regions/{region}/resourcePolicies/{resou" + + "rce_policy}:\030resource_policy_resource\022\257\002" + + "\n\014SetIamPolicy\022:.google.cloud.compute.v1" + + ".SetIamPolicyResourcePolicyRequest\032\037.goo" + + "gle.cloud.compute.v1.Policy\"\301\001\332A:project" + + ",region,resource,region_set_policy_reque" + + "st_resource\202\323\344\223\002~\"X/compute/v1/projects/" + "{project}/regions/{region}/resourcePolic" - + "ies:\030resource_policy_resource\022\304\001\n\004List\0224" - + ".google.cloud.compute.v1.ListResourcePol" - + "iciesRequest\032+.google.cloud.compute.v1.R" - + "esourcePolicyList\"Y\332A\016project,region\202\323\344\223" - + "\002B\022@/compute/v1/projects/{project}/regio" - + "ns/{region}/resourcePolicies\022\244\002\n\005Patch\0223" - + ".google.cloud.compute.v1.PatchResourcePo" - + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\301\001\332A7project,region,resource_pol" - + "icy,resource_policy_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002n2R/compute/v1/projects/{pro" - + "ject}/regions/{region}/resourcePolicies/" - + "{resource_policy}:\030resource_policy_resou" - + "rce\022\257\002\n\014SetIamPolicy\022:.google.cloud.comp" - + "ute.v1.SetIamPolicyResourcePolicyRequest" - + "\032\037.google.cloud.compute.v1.Policy\"\301\001\332A:p" - + "roject,region,resource,region_set_policy" - + "_request_resource\202\323\344\223\002~\"X/compute/v1/pro" - + "jects/{project}/regions/{region}/resourc" - + "ePolicies/{resource}/setIamPolicy:\"regio" - + "n_set_policy_request_resource\022\321\002\n\022TestIa" - + "mPermissions\022@.google.cloud.compute.v1.T" - + "estIamPermissionsResourcePolicyRequest\0320" - + ".google.cloud.compute.v1.TestPermissions" - + "Response\"\306\001\332A9project,region,resource,te" - + "st_permissions_request_resource\202\323\344\223\002\203\001\"^" - + "/compute/v1/projects/{project}/regions/{" - + "region}/resourcePolicies/{resource}/test" - + "IamPermissions:!test_permissions_request" - + "_resource\032r\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\216 \n\007Routers\022\273\001\n\016AggregatedList\0225.g" - + "oogle.cloud.compute.v1.AggregatedListRou" - + "tersRequest\032-.google.cloud.compute.v1.Ro" - + "uterAggregatedList\"C\332A\007project\202\323\344\223\0023\0221/c" - + "ompute/v1/projects/{project}/aggregated/" - + "routers\022\317\001\n\006Delete\022,.google.cloud.comput" - + "e.v1.DeleteRouterRequest\032\".google.cloud." - + "compute.v1.Operation\"s\332A\025project,region," - + "router\212N\020RegionOperations\202\323\344\223\002B*@/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/routers/{router}\022\370\001\n\021DeleteRoutePolicy\022" - + "7.google.cloud.compute.v1.DeleteRoutePol" - + "icyRouterRequest\032\".google.cloud.compute." - + "v1.Operation\"\205\001\332A\025project,region,router\212" - + "N\020RegionOperations\202\323\344\223\002T\"R/compute/v1/pr" - + "ojects/{project}/regions/{region}/router" - + "s/{router}/deleteRoutePolicy\022\263\001\n\003Get\022).g" - + "oogle.cloud.compute.v1.GetRouterRequest\032" - + "\037.google.cloud.compute.v1.Router\"`\332A\025pro" - + "ject,region,router\202\323\344\223\002B\022@/compute/v1/pr" - + "ojects/{project}/regions/{region}/router" - + "s/{router}\022\335\001\n\014GetNatIpInfo\0222.google.clo" - + "ud.compute.v1.GetNatIpInfoRouterRequest\032" - + "*.google.cloud.compute.v1.NatIpInfoRespo" - + "nse\"m\332A\025project,region,router\202\323\344\223\002O\022M/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/routers/{router}/getNatIpInfo\022\365\001\n\021G" - + "etNatMappingInfo\0228.google.cloud.compute." - + "v1.GetNatMappingInfoRoutersRequest\0322.goo" - + "gle.cloud.compute.v1.VmEndpointNatMappin" - + "gsList\"r\332A\025project,region,router\202\323\344\223\002T\022R" - + "/compute/v1/projects/{project}/regions/{" - + "region}/routers/{router}/getNatMappingIn" - + "fo\022\357\001\n\016GetRoutePolicy\0224.google.cloud.com" - + "pute.v1.GetRoutePolicyRouterRequest\0326.go" - + "ogle.cloud.compute.v1.RoutersGetRoutePol" - + "icyResponse\"o\332A\025project,region,router\202\323\344" - + "\223\002Q\022O/compute/v1/projects/{project}/regi" - + "ons/{region}/routers/{router}/getRoutePo" - + "licy\022\351\001\n\017GetRouterStatus\0225.google.cloud." - + "compute.v1.GetRouterStatusRouterRequest\032" - + "-.google.cloud.compute.v1.RouterStatusRe" - + "sponse\"p\332A\025project,region,router\202\323\344\223\002R\022P" - + "/compute/v1/projects/{project}/regions/{" - + "region}/routers/{router}/getRouterStatus" - + "\022\341\001\n\006Insert\022,.google.cloud.compute.v1.In" - + "sertRouterRequest\032\".google.cloud.compute" - + ".v1.Operation\"\204\001\332A\036project,region,router" - + "_resource\212N\020RegionOperations\202\323\344\223\002J\"7/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/routers:\017router_resource\022\252\001\n\004List\022+." - + "google.cloud.compute.v1.ListRoutersReque" - + "st\032#.google.cloud.compute.v1.RouterList\"" - + "P\332A\016project,region\202\323\344\223\0029\0227/compute/v1/pr" - + "ojects/{project}/regions/{region}/router" - + "s\022\344\001\n\rListBgpRoutes\0224.google.cloud.compu" - + "te.v1.ListBgpRoutesRoutersRequest\032-.goog" - + "le.cloud.compute.v1.RoutersListBgpRoutes" - + "\"n\332A\025project,region,router\202\323\344\223\002P\022N/compu" + + "ies/{resource}/setIamPolicy:\"region_set_" + + "policy_request_resource\022\321\002\n\022TestIamPermi" + + "ssions\022@.google.cloud.compute.v1.TestIam" + + "PermissionsResourcePolicyRequest\0320.googl" + + "e.cloud.compute.v1.TestPermissionsRespon" + + "se\"\306\001\332A9project,region,resource,test_per" + + "missions_request_resource\202\323\344\223\002\203\001\"^/compu" + "te/v1/projects/{project}/regions/{region" - + "}/routers/{router}/listBgpRoutes\022\364\001\n\021Lis" - + "tRoutePolicies\0228.google.cloud.compute.v1" - + ".ListRoutePoliciesRoutersRequest\0321.googl" - + "e.cloud.compute.v1.RoutersListRoutePolic" - + "ies\"r\332A\025project,region,router\202\323\344\223\002T\022R/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/routers/{router}/listRoutePolicies\022" - + "\357\001\n\005Patch\022+.google.cloud.compute.v1.Patc" - + "hRouterRequest\032\".google.cloud.compute.v1" - + ".Operation\"\224\001\332A%project,region,router,ro" - + "uter_resource\212N\020RegionOperations\202\323\344\223\002S2@" - + "/compute/v1/projects/{project}/regions/{" - + "region}/routers/{router}:\017router_resourc" - + "e\022\242\002\n\020PatchRoutePolicy\0226.google.cloud.co" - + "mpute.v1.PatchRoutePolicyRouterRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\261\001\332A+" - + "project,region,router,route_policy_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002j\"Q/compute/v" + + "}/resourcePolicies/{resource}/testIamPer" + + "missions:!test_permissions_request_resou" + + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\216 \n\007Routers\022\273\001\n\016AggregatedList\0225.google." + + "cloud.compute.v1.AggregatedListRoutersRe" + + "quest\032-.google.cloud.compute.v1.RouterAg" + + "gregatedList\"C\332A\007project\202\323\344\223\0023\0221/compute" + + "/v1/projects/{project}/aggregated/router" + + "s\022\317\001\n\006Delete\022,.google.cloud.compute.v1.D" + + "eleteRouterRequest\032\".google.cloud.comput" + + "e.v1.Operation\"s\332A\025project,region,router" + + "\212N\020RegionOperations\202\323\344\223\002B*@/compute/v1/p" + + "rojects/{project}/regions/{region}/route" + + "rs/{router}\022\370\001\n\021DeleteRoutePolicy\0227.goog" + + "le.cloud.compute.v1.DeleteRoutePolicyRou" + + "terRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\205\001\332A\025project,region,router\212N\020Regi" + + "onOperations\202\323\344\223\002T\"R/compute/v1/projects" + + "/{project}/regions/{region}/routers/{rou" + + "ter}/deleteRoutePolicy\022\263\001\n\003Get\022).google." + + "cloud.compute.v1.GetRouterRequest\032\037.goog" + + "le.cloud.compute.v1.Router\"`\332A\025project,r" + + "egion,router\202\323\344\223\002B\022@/compute/v1/projects" + + "/{project}/regions/{region}/routers/{rou" + + "ter}\022\335\001\n\014GetNatIpInfo\0222.google.cloud.com" + + "pute.v1.GetNatIpInfoRouterRequest\032*.goog" + + "le.cloud.compute.v1.NatIpInfoResponse\"m\332" + + "A\025project,region,router\202\323\344\223\002O\022M/compute/" + + "v1/projects/{project}/regions/{region}/r" + + "outers/{router}/getNatIpInfo\022\365\001\n\021GetNatM" + + "appingInfo\0228.google.cloud.compute.v1.Get" + + "NatMappingInfoRoutersRequest\0322.google.cl" + + "oud.compute.v1.VmEndpointNatMappingsList" + + "\"r\332A\025project,region,router\202\323\344\223\002T\022R/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/routers/{router}/getNatMappingInfo\022\357\001\n" + + "\016GetRoutePolicy\0224.google.cloud.compute.v" + + "1.GetRoutePolicyRouterRequest\0326.google.c" + + "loud.compute.v1.RoutersGetRoutePolicyRes" + + "ponse\"o\332A\025project,region,router\202\323\344\223\002Q\022O/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/routers/{router}/getRoutePolicy\022\351" + + "\001\n\017GetRouterStatus\0225.google.cloud.comput" + + "e.v1.GetRouterStatusRouterRequest\032-.goog" + + "le.cloud.compute.v1.RouterStatusResponse" + + "\"p\332A\025project,region,router\202\323\344\223\002R\022P/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/routers/{router}/getRouterStatus\022\341\001\n\006I" + + "nsert\022,.google.cloud.compute.v1.InsertRo" + + "uterRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\204\001\332A\036project,region,router_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002J\"7/compute/v" + "1/projects/{project}/regions/{region}/ro" - + "uters/{router}/patchRoutePolicy:\025route_p" - + "olicy_resource\022\365\001\n\007Preview\022-.google.clou" - + "d.compute.v1.PreviewRouterRequest\032/.goog" - + "le.cloud.compute.v1.RoutersPreviewRespon" - + "se\"\211\001\332A%project,region,router,router_res" - + "ource\202\323\344\223\002[\"H/compute/v1/projects/{proje" - + "ct}/regions/{region}/routers/{router}/pr" - + "eview:\017router_resource\022\361\001\n\006Update\022,.goog" - + "le.cloud.compute.v1.UpdateRouterRequest\032" - + "\".google.cloud.compute.v1.Operation\"\224\001\332A" - + "%project,region,router,router_resource\212N" - + "\020RegionOperations\202\323\344\223\002S\032@/compute/v1/pro" - + "jects/{project}/regions/{region}/routers" - + "/{router}:\017router_resource\022\245\002\n\021UpdateRou" - + "tePolicy\0227.google.cloud.compute.v1.Updat" - + "eRoutePolicyRouterRequest\032\".google.cloud" - + ".compute.v1.Operation\"\262\001\332A+project,regio" - + "n,router,route_policy_resource\212N\020RegionO" - + "perations\202\323\344\223\002k\"R/compute/v1/projects/{p" - + "roject}/regions/{region}/routers/{router" - + "}/updateRoutePolicy:\025route_policy_resour" - + "ce\032r\312A\026compute.googleapis.com\322AVhttps://" - + "www.googleapis.com/auth/compute,https://" - + "www.googleapis.com/auth/cloud-platform2\357" - + "\010\n\006Routes\022\272\001\n\006Delete\022+.google.cloud.comp" - + "ute.v1.DeleteRouteRequest\032\".google.cloud" - + ".compute.v1.Operation\"_\332A\rproject,route\212" - + "N\020GlobalOperations\202\323\344\223\0026*4/compute/v1/pr" - + "ojects/{project}/global/routes/{route}\022\235" - + "\001\n\003Get\022(.google.cloud.compute.v1.GetRout" - + "eRequest\032\036.google.cloud.compute.v1.Route" - + "\"L\332A\rproject,route\202\323\344\223\0026\0224/compute/v1/pr" - + "ojects/{project}/global/routes/{route}\022\313" - + "\001\n\006Insert\022+.google.cloud.compute.v1.Inse" - + "rtRouteRequest\032\".google.cloud.compute.v1" - + ".Operation\"p\332A\026project,route_resource\212N\020" - + "GlobalOperations\202\323\344\223\002>\",/compute/v1/proj" - + "ects/{project}/global/routes:\016route_reso" - + "urce\022\226\001\n\004List\022*.google.cloud.compute.v1." - + "ListRoutesRequest\032\".google.cloud.compute" - + ".v1.RouteList\">\332A\007project\202\323\344\223\002.\022,/comput" - + "e/v1/projects/{project}/global/routes\022\254\002" - + "\n\022TestIamPermissions\0227.google.cloud.comp" - + "ute.v1.TestIamPermissionsRouteRequest\0320." - + "google.cloud.compute.v1.TestPermissionsR" - + "esponse\"\252\001\332A2project,resource,test_permi" - + "ssions_request_resource\202\323\344\223\002o\"J/compute/" - + "v1/projects/{project}/global/routes/{res" - + "ource}/testIamPermissions:!test_permissi" - + "ons_request_resource\032r\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform2\357\030\n\020SecurityPolicies\022\251\002" - + "\n\007AddRule\0225.google.cloud.compute.v1.AddR" - + "uleSecurityPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\302\001\332A5project,securi" - + "ty_policy,security_policy_rule_resource\212" - + "N\020GlobalOperations\202\323\344\223\002q\"P/compute/v1/pr" - + "ojects/{project}/global/securityPolicies" - + "/{security_policy}/addRule:\035security_pol" - + "icy_rule_resource\022\327\001\n\016AggregatedList\022>.g" - + "oogle.cloud.compute.v1.AggregatedListSec" - + "urityPoliciesRequest\0327.google.cloud.comp" - + "ute.v1.SecurityPoliciesAggregatedList\"L\332" - + "A\007project\202\323\344\223\002<\022:/compute/v1/projects/{p" - + "roject}/aggregated/securityPolicies\022\341\001\n\006" - + "Delete\0224.google.cloud.compute.v1.DeleteS" - + "ecurityPolicyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"}\332A\027project,security_po" - + "licy\212N\020GlobalOperations\202\323\344\223\002J*H/compute/" - + "v1/projects/{project}/global/securityPol" - + "icies/{security_policy}\022\315\001\n\003Get\0221.google" - + ".cloud.compute.v1.GetSecurityPolicyReque" - + "st\032\'.google.cloud.compute.v1.SecurityPol" - + "icy\"j\332A\027project,security_policy\202\323\344\223\002J\022H/" - + "compute/v1/projects/{project}/global/sec" - + "urityPolicies/{security_policy}\022\341\001\n\007GetR" - + "ule\0225.google.cloud.compute.v1.GetRuleSec" - + "urityPolicyRequest\032+.google.cloud.comput" - + "e.v1.SecurityPolicyRule\"r\332A\027project,secu" - + "rity_policy\202\323\344\223\002R\022P/compute/v1/projects/" - + "{project}/global/securityPolicies/{secur" - + "ity_policy}/getRule\022\363\001\n\006Insert\0224.google." - + "cloud.compute.v1.InsertSecurityPolicyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\216\001\332A project,security_policy_resource\212N" - + "\020GlobalOperations\202\323\344\223\002R\"6/compute/v1/pro" - + "jects/{project}/global/securityPolicies:" - + "\030security_policy_resource\022\263\001\n\004List\0224.goo" - + "gle.cloud.compute.v1.ListSecurityPolicie" - + "sRequest\032+.google.cloud.compute.v1.Secur" - + "ityPolicyList\"H\332A\007project\202\323\344\223\0028\0226/comput" + + "uters:\017router_resource\022\252\001\n\004List\022+.google" + + ".cloud.compute.v1.ListRoutersRequest\032#.g" + + "oogle.cloud.compute.v1.RouterList\"P\332A\016pr" + + "oject,region\202\323\344\223\0029\0227/compute/v1/projects" + + "/{project}/regions/{region}/routers\022\344\001\n\r" + + "ListBgpRoutes\0224.google.cloud.compute.v1." + + "ListBgpRoutesRoutersRequest\032-.google.clo" + + "ud.compute.v1.RoutersListBgpRoutes\"n\332A\025p" + + "roject,region,router\202\323\344\223\002P\022N/compute/v1/" + + "projects/{project}/regions/{region}/rout" + + "ers/{router}/listBgpRoutes\022\364\001\n\021ListRoute" + + "Policies\0228.google.cloud.compute.v1.ListR" + + "outePoliciesRoutersRequest\0321.google.clou" + + "d.compute.v1.RoutersListRoutePolicies\"r\332" + + "A\025project,region,router\202\323\344\223\002T\022R/compute/" + + "v1/projects/{project}/regions/{region}/r" + + "outers/{router}/listRoutePolicies\022\357\001\n\005Pa" + + "tch\022+.google.cloud.compute.v1.PatchRoute" + + "rRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\224\001\332A%project,region,router,router_r" + + "esource\212N\020RegionOperations\202\323\344\223\002S2@/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/routers/{router}:\017router_resource\022\242\002\n\020" + + "PatchRoutePolicy\0226.google.cloud.compute." + + "v1.PatchRoutePolicyRouterRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\261\001\332A+projec" + + "t,region,router,route_policy_resource\212N\020" + + "RegionOperations\202\323\344\223\002j\"Q/compute/v1/proj" + + "ects/{project}/regions/{region}/routers/" + + "{router}/patchRoutePolicy:\025route_policy_" + + "resource\022\365\001\n\007Preview\022-.google.cloud.comp" + + "ute.v1.PreviewRouterRequest\032/.google.clo" + + "ud.compute.v1.RoutersPreviewResponse\"\211\001\332" + + "A%project,region,router,router_resource\202" + + "\323\344\223\002[\"H/compute/v1/projects/{project}/re" + + "gions/{region}/routers/{router}/preview:" + + "\017router_resource\022\361\001\n\006Update\022,.google.clo" + + "ud.compute.v1.UpdateRouterRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\224\001\332A%proje" + + "ct,region,router,router_resource\212N\020Regio" + + "nOperations\202\323\344\223\002S\032@/compute/v1/projects/" + + "{project}/regions/{region}/routers/{rout" + + "er}:\017router_resource\022\245\002\n\021UpdateRoutePoli" + + "cy\0227.google.cloud.compute.v1.UpdateRoute" + + "PolicyRouterRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\262\001\332A+project,region,rout" + + "er,route_policy_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002k\"R/compute/v1/projects/{project" + + "}/regions/{region}/routers/{router}/upda" + + "teRoutePolicy:\025route_policy_resource\032r\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\357\010\n\006Rou" + + "tes\022\272\001\n\006Delete\022+.google.cloud.compute.v1" + + ".DeleteRouteRequest\032\".google.cloud.compu" + + "te.v1.Operation\"_\332A\rproject,route\212N\020Glob" + + "alOperations\202\323\344\223\0026*4/compute/v1/projects" + + "/{project}/global/routes/{route}\022\235\001\n\003Get" + + "\022(.google.cloud.compute.v1.GetRouteReque" + + "st\032\036.google.cloud.compute.v1.Route\"L\332A\rp" + + "roject,route\202\323\344\223\0026\0224/compute/v1/projects" + + "/{project}/global/routes/{route}\022\313\001\n\006Ins" + + "ert\022+.google.cloud.compute.v1.InsertRout" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"p\332A\026project,route_resource\212N\020Global" + + "Operations\202\323\344\223\002>\",/compute/v1/projects/{" + + "project}/global/routes:\016route_resource\022\226" + + "\001\n\004List\022*.google.cloud.compute.v1.ListRo" + + "utesRequest\032\".google.cloud.compute.v1.Ro" + + "uteList\">\332A\007project\202\323\344\223\002.\022,/compute/v1/p" + + "rojects/{project}/global/routes\022\254\002\n\022Test" + + "IamPermissions\0227.google.cloud.compute.v1" + + ".TestIamPermissionsRouteRequest\0320.google" + + ".cloud.compute.v1.TestPermissionsRespons" + + "e\"\252\001\332A2project,resource,test_permissions" + + "_request_resource\202\323\344\223\002o\"J/compute/v1/pro" + + "jects/{project}/global/routes/{resource}" + + "/testIamPermissions:!test_permissions_re" + + "quest_resource\032r\312A\026compute.googleapis.co" + + "m\322AVhttps://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform2\357\030\n\020SecurityPolicies\022\251\002\n\007AddR" + + "ule\0225.google.cloud.compute.v1.AddRuleSec" + + "urityPolicyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\302\001\332A5project,security_pol", + "icy,security_policy_rule_resource\212N\020Glob" + + "alOperations\202\323\344\223\002q\"P/compute/v1/projects" + + "/{project}/global/securityPolicies/{secu" + + "rity_policy}/addRule:\035security_policy_ru" + + "le_resource\022\327\001\n\016AggregatedList\022>.google." + + "cloud.compute.v1.AggregatedListSecurityP" + + "oliciesRequest\0327.google.cloud.compute.v1" + + ".SecurityPoliciesAggregatedList\"L\332A\007proj" + + "ect\202\323\344\223\002<\022:/compute/v1/projects/{project" + + "}/aggregated/securityPolicies\022\341\001\n\006Delete" + + "\0224.google.cloud.compute.v1.DeleteSecurit" + + "yPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"}\332A\027project,security_policy\212N" + + "\020GlobalOperations\202\323\344\223\002J*H/compute/v1/pro" + + "jects/{project}/global/securityPolicies/" + + "{security_policy}\022\315\001\n\003Get\0221.google.cloud" + + ".compute.v1.GetSecurityPolicyRequest\032\'.g" + + "oogle.cloud.compute.v1.SecurityPolicy\"j\332" + + "A\027project,security_policy\202\323\344\223\002J\022H/comput" + "e/v1/projects/{project}/global/securityP" - + "olicies\022\256\002\n\037ListPreconfiguredExpressionS" - + "ets\022O.google.cloud.compute.v1.ListPrecon" - + "figuredExpressionSetsSecurityPoliciesReq" - + "uest\032P.google.cloud.compute.v1.SecurityP" - + "oliciesListPreconfiguredExpressionSetsRe" - + "sponse\"h\332A\007project\202\323\344\223\002X\022V/compute/v1/pr" - + "ojects/{project}/global/securityPolicies" - + "/listPreconfiguredExpressionSets\022\223\002\n\005Pat" - + "ch\0223.google.cloud.compute.v1.PatchSecuri" - + "tyPolicyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\260\001\332A0project,security_policy" - + ",security_policy_resource\212N\020GlobalOperat" - + "ions\202\323\344\223\002d2H/compute/v1/projects/{projec" - + "t}/global/securityPolicies/{security_pol" - + "icy}:\030security_policy_resource\022\257\002\n\tPatch" - + "Rule\0227.google.cloud.compute.v1.PatchRule" - + "SecurityPolicyRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\304\001\332A5project,security_" - + "policy,security_policy_rule_resource\212N\020G" - + "lobalOperations\202\323\344\223\002s\"R/compute/v1/proje" - + "cts/{project}/global/securityPolicies/{s" - + "ecurity_policy}/patchRule:\035security_poli" - + "cy_rule_resource\022\365\001\n\nRemoveRule\0228.google" - + ".cloud.compute.v1.RemoveRuleSecurityPoli" + + "olicies/{security_policy}\022\341\001\n\007GetRule\0225." + + "google.cloud.compute.v1.GetRuleSecurityP" + + "olicyRequest\032+.google.cloud.compute.v1.S" + + "ecurityPolicyRule\"r\332A\027project,security_p" + + "olicy\202\323\344\223\002R\022P/compute/v1/projects/{proje" + + "ct}/global/securityPolicies/{security_po" + + "licy}/getRule\022\363\001\n\006Insert\0224.google.cloud." + + "compute.v1.InsertSecurityPolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\216\001\332A " + + "project,security_policy_resource\212N\020Globa" + + "lOperations\202\323\344\223\002R\"6/compute/v1/projects/" + + "{project}/global/securityPolicies:\030secur" + + "ity_policy_resource\022\263\001\n\004List\0224.google.cl" + + "oud.compute.v1.ListSecurityPoliciesReque" + + "st\032+.google.cloud.compute.v1.SecurityPol" + + "icyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/p" + + "rojects/{project}/global/securityPolicie" + + "s\022\256\002\n\037ListPreconfiguredExpressionSets\022O." + + "google.cloud.compute.v1.ListPreconfigure" + + "dExpressionSetsSecurityPoliciesRequest\032P" + + ".google.cloud.compute.v1.SecurityPolicie" + + "sListPreconfiguredExpressionSetsResponse" + + "\"h\332A\007project\202\323\344\223\002X\022V/compute/v1/projects" + + "/{project}/global/securityPolicies/listP" + + "reconfiguredExpressionSets\022\223\002\n\005Patch\0223.g" + + "oogle.cloud.compute.v1.PatchSecurityPoli" + "cyRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\210\001\332A\027project,security_policy\212N\020Glo" - + "balOperations\202\323\344\223\002U\"S/compute/v1/project" - + "s/{project}/global/securityPolicies/{sec" - + "urity_policy}/removeRule\022\253\002\n\tSetLabels\0227" - + ".google.cloud.compute.v1.SetLabelsSecuri" + + "ation\"\260\001\332A0project,security_policy,secur" + + "ity_policy_resource\212N\020GlobalOperations\202\323" + + "\344\223\002d2H/compute/v1/projects/{project}/glo" + + "bal/securityPolicies/{security_policy}:\030" + + "security_policy_resource\022\257\002\n\tPatchRule\0227" + + ".google.cloud.compute.v1.PatchRuleSecuri" + "tyPolicyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\300\001\332A3project,resource,global" - + "_set_labels_request_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002q\"K/compute/v1/projects/{pro" - + "ject}/global/securityPolicies/{resource}" - + "/setLabels:\"global_set_labels_request_re" - + "source\032r\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm2\360\023\n\022ServiceAttachments\022\334\001\n\016Aggregated" - + "List\022@.google.cloud.compute.v1.Aggregate" - + "dListServiceAttachmentsRequest\0328.google." - + "cloud.compute.v1.ServiceAttachmentAggreg" - + "atedList\"N\332A\007project\202\323\344\223\002>\022\022/compute/v1/projects/{p" - + "roject}/global/sslPolicies/{ssl_policy}\022" - + "\264\001\n\003Get\022,.google.cloud.compute.v1.GetSsl" - + "PolicyRequest\032\".google.cloud.compute.v1." - + "SslPolicy\"[\332A\022project,ssl_policy\202\323\344\223\002@\022>" - + "/compute/v1/projects/{project}/global/ss" - + "lPolicies/{ssl_policy}\022\336\001\n\006Insert\022/.goog" - + "le.cloud.compute.v1.InsertSslPolicyReque" - + "st\032\".google.cloud.compute.v1.Operation\"\177" - + "\332A\033project,ssl_policy_resource\212N\020GlobalO" - + "perations\202\323\344\223\002H\"1/compute/v1/projects/{p" - + "roject}/global/sslPolicies:\023ssl_policy_r" - + "esource\022\246\001\n\004List\022/.google.cloud.compute." - + "v1.ListSslPoliciesRequest\032(.google.cloud" - + ".compute.v1.SslPoliciesList\"C\332A\007project\202" - + "\323\344\223\0023\0221/compute/v1/projects/{project}/gl" - + "obal/sslPolicies\022\367\001\n\025ListAvailableFeatur" - + "es\022@.google.cloud.compute.v1.ListAvailab" - + "leFeaturesSslPoliciesRequest\032A.google.cl" - + "oud.compute.v1.SslPoliciesListAvailableF" - + "eaturesResponse\"Y\332A\007project\202\323\344\223\002I\022G/comp" - + "ute/v1/projects/{project}/global/sslPoli" - + "cies/listAvailableFeatures\022\365\001\n\005Patch\022..g" - + "oogle.cloud.compute.v1.PatchSslPolicyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\227\001\332A&project,ssl_policy,ssl_policy_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002U2>/compute/" + + "ots/{resource}/getIamPolicy\022\327\001\n\006Insert\022." + + ".google.cloud.compute.v1.InsertSnapshotR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"y\332A\031project,snapshot_resource\212N\020Globa" + + "lOperations\202\323\344\223\002D\"//compute/v1/projects/" + + "{project}/global/snapshots:\021snapshot_res" + + "ource\022\237\001\n\004List\022-.google.cloud.compute.v1" + + ".ListSnapshotsRequest\032%.google.cloud.com" + + "pute.v1.SnapshotList\"A\332A\007project\202\323\344\223\0021\022/" + + "/compute/v1/projects/{project}/global/sn" + + "apshots\022\221\002\n\014SetIamPolicy\0224.google.cloud." + + "compute.v1.SetIamPolicySnapshotRequest\032\037" + + ".google.cloud.compute.v1.Policy\"\251\001\332A3pro" + + "ject,resource,global_set_policy_request_" + + "resource\202\323\344\223\002m\"G/compute/v1/projects/{pr" + + "oject}/global/snapshots/{resource}/setIa" + + "mPolicy:\"global_set_policy_request_resou" + + "rce\022\236\002\n\tSetLabels\0221.google.cloud.compute" + + ".v1.SetLabelsSnapshotRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\271\001\332A3project,re" + + "source,global_set_labels_request_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002j\"D/compute/v1/" + + "projects/{project}/global/snapshots/{res" + + "ource}/setLabels:\"global_set_labels_requ" + + "est_resource\022\262\002\n\022TestIamPermissions\022:.go" + + "ogle.cloud.compute.v1.TestIamPermissions" + + "SnapshotRequest\0320.google.cloud.compute.v" + + "1.TestPermissionsResponse\"\255\001\332A2project,r" + + "esource,test_permissions_request_resourc" + + "e\202\323\344\223\002r\"M/compute/v1/projects/{project}/" + + "global/snapshots/{resource}/testIamPermi" + + "ssions:!test_permissions_request_resourc" + + "e\022\263\002\n\014UpdateKmsKey\0224.google.cloud.comput" + + "e.v1.UpdateKmsKeySnapshotRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\310\001\332A9projec" + + "t,snapshot,snapshot_update_kms_key_reque" + + "st_resource\212N\020GlobalOperations\202\323\344\223\002s\"G/c" + + "ompute/v1/projects/{project}/global/snap" + + "shots/{snapshot}/updateKmsKey:(snapshot_" + + "update_kms_key_request_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\266\t\n\017SslCerti" + + "ficates\022\323\001\n\016AggregatedList\022=.google.clou" + + "d.compute.v1.AggregatedListSslCertificat" + + "esRequest\0325.google.cloud.compute.v1.SslC" + + "ertificateAggregatedList\"K\332A\007project\202\323\344\223" + + "\002;\0229/compute/v1/projects/{project}/aggre" + + "gated/sslCertificates\022\340\001\n\006Delete\0224.googl" + + "e.cloud.compute.v1.DeleteSslCertificateR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"|\332A\027project,ssl_certificate\212N\020GlobalO" + + "perations\202\323\344\223\002I*G/compute/v1/projects/{p" + + "roject}/global/sslCertificates/{ssl_cert" + + "ificate}\022\314\001\n\003Get\0221.google.cloud.compute." + + "v1.GetSslCertificateRequest\032\'.google.clo" + + "ud.compute.v1.SslCertificate\"i\332A\027project" + + ",ssl_certificate\202\323\344\223\002I\022G/compute/v1/proj" + + "ects/{project}/global/sslCertificates/{s" + + "sl_certificate}\022\362\001\n\006Insert\0224.google.clou" + + "d.compute.v1.InsertSslCertificateRequest" + + "\032\".google.cloud.compute.v1.Operation\"\215\001\332" + + "A project,ssl_certificate_resource\212N\020Glo" + + "balOperations\202\323\344\223\002Q\"5/compute/v1/project" + + "s/{project}/global/sslCertificates:\030ssl_" + + "certificate_resource\022\261\001\n\004List\0223.google.c" + + "loud.compute.v1.ListSslCertificatesReque" + + "st\032+.google.cloud.compute.v1.SslCertific" + + "ateList\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/p" + + "rojects/{project}/global/sslCertificates" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\317\014\n" + + "\013SslPolicies\022\310\001\n\016AggregatedList\0229.google" + + ".cloud.compute.v1.AggregatedListSslPolic" + + "iesRequest\0322.google.cloud.compute.v1.Ssl" + + "PoliciesAggregatedList\"G\332A\007project\202\323\344\223\0027" + + "\0225/compute/v1/projects/{project}/aggrega" + + "ted/sslPolicies\022\315\001\n\006Delete\022/.google.clou" + + "d.compute.v1.DeleteSslPolicyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"n\332A\022proj" + + "ect,ssl_policy\212N\020GlobalOperations\202\323\344\223\002@*" + + ">/compute/v1/projects/{project}/global/s" + + "slPolicies/{ssl_policy}\022\264\001\n\003Get\022,.google" + + ".cloud.compute.v1.GetSslPolicyRequest\032\"." + + "google.cloud.compute.v1.SslPolicy\"[\332A\022pr" + + "oject,ssl_policy\202\323\344\223\002@\022>/compute/v1/proj" + + "ects/{project}/global/sslPolicies/{ssl_p" + + "olicy}\022\336\001\n\006Insert\022/.google.cloud.compute" + + ".v1.InsertSslPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\177\332A\033project,ssl_p" + + "olicy_resource\212N\020GlobalOperations\202\323\344\223\002H\"" + + "1/compute/v1/projects/{project}/global/s" + + "slPolicies:\023ssl_policy_resource\022\246\001\n\004List" + + "\022/.google.cloud.compute.v1.ListSslPolici" + + "esRequest\032(.google.cloud.compute.v1.SslP" + + "oliciesList\"C\332A\007project\202\323\344\223\0023\0221/compute/" + "v1/projects/{project}/global/sslPolicies" - + "/{ssl_policy}:\023ssl_policy_resource\032r\312A\026c" - + "ompute.googleapis.com\322AVhttps://www.goog" - + "leapis.com/auth/compute,https://www.goog" - + "leapis.com/auth/cloud-platform2\265\006\n\020Stora" - + "gePoolTypes\022\326\001\n\016AggregatedList\022>.google." - + "cloud.compute.v1.AggregatedListStoragePo" - + "olTypesRequest\0326.google.cloud.compute.v1" - + ".StoragePoolTypeAggregatedList\"L\332A\007proje" - + "ct\202\323\344\223\002<\022:/compute/v1/projects/{project}" - + "/aggregated/storagePoolTypes\022\336\001\n\003Get\0222.g" - + "oogle.cloud.compute.v1.GetStoragePoolTyp" - + "eRequest\032(.google.cloud.compute.v1.Stora" - + "gePoolType\"y\332A\036project,zone,storage_pool" - + "_type\202\323\344\223\002R\022P/compute/v1/projects/{proje" - + "ct}/zones/{zone}/storagePoolTypes/{stora" - + "ge_pool_type}\022\277\001\n\004List\0224.google.cloud.co" - + "mpute.v1.ListStoragePoolTypesRequest\032,.g" - + "oogle.cloud.compute.v1.StoragePoolTypeLi" - + "st\"S\332A\014project,zone\202\323\344\223\002>\022/compute/v1/projects/{pro" + + "ject}/global/sslPolicies/{ssl_policy}:\023s" + + "sl_policy_resource\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\337\023\n\014StoragePools\022\312\001\n\016Aggr" - + "egatedList\022:.google.cloud.compute.v1.Agg" - + "regatedListStoragePoolsRequest\0322.google." - + "cloud.compute.v1.StoragePoolAggregatedLi" - + "st\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/projec" - + "ts/{project}/aggregated/storagePools\022\335\001\n" - + "\006Delete\0221.google.cloud.compute.v1.Delete" - + "StoragePoolRequest\032\".google.cloud.comput" - + "e.v1.Operation\"|\332A\031project,zone,storage_" - + "pool\212N\016ZoneOperations\202\323\344\223\002I*G/compute/v1" - + "/projects/{project}/zones/{zone}/storage" - + "Pools/{storage_pool}\022\310\001\n\003Get\022..google.cl" - + "oud.compute.v1.GetStoragePoolRequest\032$.g" - + "oogle.cloud.compute.v1.StoragePool\"k\332A\031p" - + "roject,zone,storage_pool\202\323\344\223\002I\022G/compute" - + "/v1/projects/{project}/zones/{zone}/stor" - + "agePools/{storage_pool}\022\332\001\n\014GetIamPolicy" - + "\0227.google.cloud.compute.v1.GetIamPolicyS" - + "toragePoolRequest\032\037.google.cloud.compute" - + ".v1.Policy\"p\332A\025project,zone,resource\202\323\344\223" - + "\002R\022P/compute/v1/projects/{project}/zones" - + "/{zone}/storagePools/{resource}/getIamPo" - + "licy\022\357\001\n\006Insert\0221.google.cloud.compute.v" - + "1.InsertStoragePoolRequest\032\".google.clou" - + "d.compute.v1.Operation\"\215\001\332A\"project,zone" - + ",storage_pool_resource\212N\016ZoneOperations\202" - + "\323\344\223\002Q\"8/compute/v1/projects/{project}/zo" - + "nes/{zone}/storagePools:\025storage_pool_re" - + "source\022\263\001\n\004List\0220.google.cloud.compute.v" - + "1.ListStoragePoolsRequest\032(.google.cloud" - + ".compute.v1.StoragePoolList\"O\332A\014project," - + "zone\202\323\344\223\002:\0228/compute/v1/projects/{projec" - + "t}/zones/{zone}/storagePools\022\350\001\n\tListDis" - + "ks\0225.google.cloud.compute.v1.ListDisksSt" - + "oragePoolsRequest\032-.google.cloud.compute" - + ".v1.StoragePoolListDisks\"u\332A\031project,zon" - + "e,storage_pool\202\323\344\223\002S\022Q/compute/v1/projec" + + "cloud-platform2\265\006\n\020StoragePoolTypes\022\326\001\n\016" + + "AggregatedList\022>.google.cloud.compute.v1" + + ".AggregatedListStoragePoolTypesRequest\0326" + + ".google.cloud.compute.v1.StoragePoolType" + + "AggregatedList\"L\332A\007project\202\323\344\223\002<\022:/compu" + + "te/v1/projects/{project}/aggregated/stor" + + "agePoolTypes\022\336\001\n\003Get\0222.google.cloud.comp" + + "ute.v1.GetStoragePoolTypeRequest\032(.googl" + + "e.cloud.compute.v1.StoragePoolType\"y\332A\036p" + + "roject,zone,storage_pool_type\202\323\344\223\002R\022P/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/storagePoolTypes/{storage_pool_type}\022\277\001" + + "\n\004List\0224.google.cloud.compute.v1.ListSto" + + "ragePoolTypesRequest\032,.google.cloud.comp" + + "ute.v1.StoragePoolTypeList\"S\332A\014project,z" + + "one\202\323\344\223\002>\022\022\022.google.cloud.compute.v1.Aggregat" + + "edListTargetTcpProxiesRequest\0325.google.c" + + "loud.compute.v1.TargetTcpProxyAggregated" + + "List\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/proj" + + "ects/{project}/aggregated/targetTcpProxi" + + "es\022\343\001\n\006Delete\0224.google.cloud.compute.v1." + + "DeleteTargetTcpProxyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\177\332A\030project,targ" + + "et_tcp_proxy\212N\020GlobalOperations\202\323\344\223\002K*I/" + + "compute/v1/projects/{project}/global/tar" + + "getTcpProxies/{target_tcp_proxy}\022\317\001\n\003Get" + + "\0221.google.cloud.compute.v1.GetTargetTcpP" + + "roxyRequest\032\'.google.cloud.compute.v1.Ta" + + "rgetTcpProxy\"l\332A\030project,target_tcp_prox" + + "y\202\323\344\223\002K\022I/compute/v1/projects/{project}/" + + "global/targetTcpProxies/{target_tcp_prox" + + "y}\022\365\001\n\006Insert\0224.google.cloud.compute.v1." + + "InsertTargetTcpProxyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\220\001\332A!project,tar" + + "get_tcp_proxy_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002S\"6/compute/v1/projects/{project}/" + + "global/targetTcpProxies:\031target_tcp_prox" + + "y_resource\022\263\001\n\004List\0224.google.cloud.compu" + + "te.v1.ListTargetTcpProxiesRequest\032+.goog" + + "le.cloud.compute.v1.TargetTcpProxyList\"H" + + "\332A\007project\202\323\344\223\0028\0226/compute/v1/projects/{" + + "project}/global/targetTcpProxies\022\376\002\n\021Set" + + "BackendService\022?.google.cloud.compute.v1" + + ".SetBackendServiceTargetTcpProxyRequest\032" + + "\".google.cloud.compute.v1.Operation\"\203\002\332A" + + "Pproject,target_tcp_proxy,target_tcp_pro" + "xies_set_backend_service_request_resourc" - + "e\022\376\002\n\021SetCertificateMap\022?.google.cloud.c" - + "ompute.v1.SetCertificateMapTargetSslProx" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\203\002\332APproject,target_ssl_proxy,targe" - + "t_ssl_proxies_set_certificate_map_reques" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002\226\001\"[/c" - + "ompute/v1/projects/{project}/global/targ" - + "etSslProxies/{target_ssl_proxy}/setCerti" - + "ficateMap:7target_ssl_proxies_set_certif" - + "icate_map_request_resource\022\357\002\n\016SetProxyH" - + "eader\022<.google.cloud.compute.v1.SetProxy" - + "HeaderTargetSslProxyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\372\001\332AMproject,tar" - + "get_ssl_proxy,target_ssl_proxies_set_pro" - + "xy_header_request_resource\212N\020GlobalOpera" - + "tions\202\323\344\223\002\220\001\"X/compute/v1/projects/{proj" - + "ect}/global/targetSslProxies/{target_ssl" - + "_proxy}/setProxyHeader:4target_ssl_proxi" - + "es_set_proxy_header_request_resource\022\203\003\n" - + "\022SetSslCertificates\022@.google.cloud.compu" - + "te.v1.SetSslCertificatesTargetSslProxyRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\206\002\332AQproject,target_ssl_proxy,target_s" - + "sl_proxies_set_ssl_certificates_request_" - + "resource\212N\020GlobalOperations\202\323\344\223\002\230\001\"\\/com" - + "pute/v1/projects/{project}/global/target" - + "SslProxies/{target_ssl_proxy}/setSslCert" - + "ificates:8target_ssl_proxies_set_ssl_cer" - + "tificates_request_resource\022\272\002\n\014SetSslPol" - + "icy\022:.google.cloud.compute.v1.SetSslPoli" - + "cyTargetSslProxyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\311\001\332A6project,target_" - + "ssl_proxy,ssl_policy_reference_resource\212" - + "N\020GlobalOperations\202\323\344\223\002w\"V/compute/v1/pr" - + "ojects/{project}/global/targetSslProxies" - + "/{target_ssl_proxy}/setSslPolicy:\035ssl_po" - + "licy_reference_resource\022\277\002\n\022TestIamPermi" - + "ssions\022@.google.cloud.compute.v1.TestIam" - + "PermissionsTargetSslProxyRequest\0320.googl" - + "e.cloud.compute.v1.TestPermissionsRespon" - + "se\"\264\001\332A2project,resource,test_permission" - + "s_request_resource\202\323\344\223\002y\"T/compute/v1/pr" - + "ojects/{project}/global/targetSslProxies" - + "/{resource}/testIamPermissions:!test_per" - + "missions_request_resource\032r\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform2\371\021\n\020TargetTcpProxi" - + "es\022\325\001\n\016AggregatedList\022>.google.cloud.com" - + "pute.v1.AggregatedListTargetTcpProxiesRe" - + "quest\0325.google.cloud.compute.v1.TargetTc" - + "pProxyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:" - + "/compute/v1/projects/{project}/aggregate" - + "d/targetTcpProxies\022\343\001\n\006Delete\0224.google.c" - + "loud.compute.v1.DeleteTargetTcpProxyRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\177\332A\030project,target_tcp_proxy\212N\020GlobalOpe" - + "rations\202\323\344\223\002K*I/compute/v1/projects/{pro" - + "ject}/global/targetTcpProxies/{target_tc" - + "p_proxy}\022\317\001\n\003Get\0221.google.cloud.compute." - + "v1.GetTargetTcpProxyRequest\032\'.google.clo" - + "ud.compute.v1.TargetTcpProxy\"l\332A\030project" - + ",target_tcp_proxy\202\323\344\223\002K\022I/compute/v1/pro" - + "jects/{project}/global/targetTcpProxies/" - + "{target_tcp_proxy}\022\365\001\n\006Insert\0224.google.c" - + "loud.compute.v1.InsertTargetTcpProxyRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\220\001\332A!project,target_tcp_proxy_resource\212N" - + "\020GlobalOperations\202\323\344\223\002S\"6/compute/v1/pro" - + "jects/{project}/global/targetTcpProxies:" - + "\031target_tcp_proxy_resource\022\263\001\n\004List\0224.go" - + "ogle.cloud.compute.v1.ListTargetTcpProxi" - + "esRequest\032+.google.cloud.compute.v1.Targ" - + "etTcpProxyList\"H\332A\007project\202\323\344\223\0028\0226/compu" - + "te/v1/projects/{project}/global/targetTc" - + "pProxies\022\376\002\n\021SetBackendService\022?.google." - + "cloud.compute.v1.SetBackendServiceTarget" - + "TcpProxyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\203\002\332APproject,target_tcp_prox" - + "y,target_tcp_proxies_set_backend_service" + + "e\212N\020GlobalOperations\202\323\344\223\002\226\001\"[/compute/v1" + + "/projects/{project}/global/targetTcpProx" + + "ies/{target_tcp_proxy}/setBackendService" + + ":7target_tcp_proxies_set_backend_service" + + "_request_resource\022\357\002\n\016SetProxyHeader\022<.g" + + "oogle.cloud.compute.v1.SetProxyHeaderTar" + + "getTcpProxyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\372\001\332AMproject,target_tcp_p" + + "roxy,target_tcp_proxies_set_proxy_header" + "_request_resource\212N\020GlobalOperations\202\323\344\223" - + "\002\226\001\"[/compute/v1/projects/{project}/glob" + + "\002\220\001\"X/compute/v1/projects/{project}/glob" + "al/targetTcpProxies/{target_tcp_proxy}/s" - + "etBackendService:7target_tcp_proxies_set" - + "_backend_service_request_resource\022\357\002\n\016Se" - + "tProxyHeader\022<.google.cloud.compute.v1.S" - + "etProxyHeaderTargetTcpProxyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\372\001\332AMproj" - + "ect,target_tcp_proxy,target_tcp_proxies_" - + "set_proxy_header_request_resource\212N\020Glob" - + "alOperations\202\323\344\223\002\220\001\"X/compute/v1/project" - + "s/{project}/global/targetTcpProxies/{tar" - + "get_tcp_proxy}/setProxyHeader:4target_tc" - + "p_proxies_set_proxy_header_request_resou" - + "rce\022\277\002\n\022TestIamPermissions\022@.google.clou" - + "d.compute.v1.TestIamPermissionsTargetTcp" - + "ProxyRequest\0320.google.cloud.compute.v1.T" - + "estPermissionsResponse\"\264\001\332A2project,reso" - + "urce,test_permissions_request_resource\202\323" - + "\344\223\002y\"T/compute/v1/projects/{project}/glo" - + "bal/targetTcpProxies/{resource}/testIamP" - + "ermissions:!test_permissions_request_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps", - "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\354\014\n\021TargetVpnGateways\022\331\001\n\016AggregatedLi" - + "st\022?.google.cloud.compute.v1.AggregatedL" - + "istTargetVpnGatewaysRequest\0327.google.clo" - + "ud.compute.v1.TargetVpnGatewayAggregated" - + "List\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/proj" - + "ects/{project}/aggregated/targetVpnGatew" - + "ays\022\374\001\n\006Delete\0226.google.cloud.compute.v1" - + ".DeleteTargetVpnGatewayRequest\032\".google." - + "cloud.compute.v1.Operation\"\225\001\332A!project," - + "region,target_vpn_gateway\212N\020RegionOperat" - + "ions\202\323\344\223\002X*V/compute/v1/projects/{projec" - + "t}/regions/{region}/targetVpnGateways/{t" - + "arget_vpn_gateway}\022\352\001\n\003Get\0223.google.clou" - + "d.compute.v1.GetTargetVpnGatewayRequest\032" - + ").google.cloud.compute.v1.TargetVpnGatew" - + "ay\"\202\001\332A!project,region,target_vpn_gatewa" - + "y\202\323\344\223\002X\022V/compute/v1/projects/{project}/" - + "regions/{region}/targetVpnGateways/{targ" - + "et_vpn_gateway}\022\215\002\n\006Insert\0226.google.clou" - + "d.compute.v1.InsertTargetVpnGatewayReque" - + "st\032\".google.cloud.compute.v1.Operation\"\246" - + "\001\332A*project,region,target_vpn_gateway_re" - + "source\212N\020RegionOperations\202\323\344\223\002`\"A/comput" + + "etProxyHeader:4target_tcp_proxies_set_pr" + + "oxy_header_request_resource\022\277\002\n\022TestIamP" + + "ermissions\022@.google.cloud.compute.v1.Tes" + + "tIamPermissionsTargetTcpProxyRequest\0320.g" + + "oogle.cloud.compute.v1.TestPermissionsRe" + + "sponse\"\264\001\332A2project,resource,test_permis" + + "sions_request_resource\202\323\344\223\002y\"T/compute/v" + + "1/projects/{project}/global/targetTcpPro" + + "xies/{resource}/testIamPermissions:!test" + + "_permissions_request_resource\032r\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform2\354\014\n\021TargetVpnG" + + "ateways\022\331\001\n\016AggregatedList\022?.google.clou" + + "d.compute.v1.AggregatedListTargetVpnGate" + + "waysRequest\0327.google.cloud.compute.v1.Ta" + + "rgetVpnGatewayAggregatedList\"M\332A\007project" + + "\202\323\344\223\002=\022;/compute/v1/projects/{project}/a" + + "ggregated/targetVpnGateways\022\374\001\n\006Delete\0226" + + ".google.cloud.compute.v1.DeleteTargetVpn" + + "GatewayRequest\032\".google.cloud.compute.v1" + + ".Operation\"\225\001\332A!project,region,target_vp" + + "n_gateway\212N\020RegionOperations\202\323\344\223\002X*V/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/targetVpnGateways/{target_vpn_gatewa" + + "y}\022\352\001\n\003Get\0223.google.cloud.compute.v1.Get" + + "TargetVpnGatewayRequest\032).google.cloud.c" + + "ompute.v1.TargetVpnGateway\"\202\001\332A!project," + + "region,target_vpn_gateway\202\323\344\223\002X\022V/comput" + "e/v1/projects/{project}/regions/{region}" - + "/targetVpnGateways:\033target_vpn_gateway_r" - + "esource\022\310\001\n\004List\0225.google.cloud.compute." - + "v1.ListTargetVpnGatewaysRequest\032-.google" - + ".cloud.compute.v1.TargetVpnGatewayList\"Z" - + "\332A\016project,region\202\323\344\223\002C\022A/compute/v1/pro" - + "jects/{project}/regions/{region}/targetV" - + "pnGateways\022\277\002\n\tSetLabels\0229.google.cloud." - + "compute.v1.SetLabelsTargetVpnGatewayRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\322\001\332A:project,region,resource,region_set_" - + "labels_request_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002|\"V/compute/v1/projects/{project}" - + "/regions/{region}/targetVpnGateways/{res" - + "ource}/setLabels:\"region_set_labels_requ" - + "est_resource\032r\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\317\022\n\007UrlMaps\022\274\001\n\016AggregatedList\022" - + "5.google.cloud.compute.v1.AggregatedList" - + "UrlMapsRequest\032..google.cloud.compute.v1" - + ".UrlMapsAggregatedList\"C\332A\007project\202\323\344\223\0023" - + "\0221/compute/v1/projects/{project}/aggrega" - + "ted/urlMaps\022\300\001\n\006Delete\022,.google.cloud.co" - + "mpute.v1.DeleteUrlMapRequest\032\".google.cl" - + "oud.compute.v1.Operation\"d\332A\017project,url" - + "_map\212N\020GlobalOperations\202\323\344\223\0029*7/compute/" - + "v1/projects/{project}/global/urlMaps/{ur" - + "l_map}\022\244\001\n\003Get\022).google.cloud.compute.v1" - + ".GetUrlMapRequest\032\037.google.cloud.compute" - + ".v1.UrlMap\"Q\332A\017project,url_map\202\323\344\223\0029\0227/c" - + "ompute/v1/projects/{project}/global/urlM" - + "aps/{url_map}\022\321\001\n\006Insert\022,.google.cloud." - + "compute.v1.InsertUrlMapRequest\032\".google." - + "cloud.compute.v1.Operation\"u\332A\030project,u" - + "rl_map_resource\212N\020GlobalOperations\202\323\344\223\002A" - + "\"-/compute/v1/projects/{project}/global/" - + "urlMaps:\020url_map_resource\022\246\002\n\017Invalidate" - + "Cache\0225.google.cloud.compute.v1.Invalida" - + "teCacheUrlMapRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\267\001\332A0project,url_map,ca" - + "che_invalidation_rule_resource\212N\020GlobalO" - + "perations\202\323\344\223\002k\"G/compute/v1/projects/{p" - + "roject}/global/urlMaps/{url_map}/invalid" - + "ateCache: cache_invalidation_rule_resour" - + "ce\022\231\001\n\004List\022+.google.cloud.compute.v1.Li" - + "stUrlMapsRequest\032#.google.cloud.compute." - + "v1.UrlMapList\"?\332A\007project\202\323\344\223\002/\022-/comput" - + "e/v1/projects/{project}/global/urlMaps\022\342" - + "\001\n\005Patch\022+.google.cloud.compute.v1.Patch" + + "/targetVpnGateways/{target_vpn_gateway}\022" + + "\215\002\n\006Insert\0226.google.cloud.compute.v1.Ins" + + "ertTargetVpnGatewayRequest\032\".google.clou" + + "d.compute.v1.Operation\"\246\001\332A*project,regi" + + "on,target_vpn_gateway_resource\212N\020RegionO" + + "perations\202\323\344\223\002`\"A/compute/v1/projects/{p" + + "roject}/regions/{region}/targetVpnGatewa" + + "ys:\033target_vpn_gateway_resource\022\310\001\n\004List" + + "\0225.google.cloud.compute.v1.ListTargetVpn" + + "GatewaysRequest\032-.google.cloud.compute.v" + + "1.TargetVpnGatewayList\"Z\332A\016project,regio" + + "n\202\323\344\223\002C\022A/compute/v1/projects/{project}/" + + "regions/{region}/targetVpnGateways\022\277\002\n\tS" + + "etLabels\0229.google.cloud.compute.v1.SetLa" + + "belsTargetVpnGatewayRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\322\001\332A:project,reg" + + "ion,resource,region_set_labels_request_r" + + "esource\212N\020RegionOperations\202\323\344\223\002|\"V/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/targetVpnGateways/{resource}/setLabels" + + ":\"region_set_labels_request_resource\032r\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\317\022\n\007Url" + + "Maps\022\274\001\n\016AggregatedList\0225.google.cloud.c" + + "ompute.v1.AggregatedListUrlMapsRequest\032." + + ".google.cloud.compute.v1.UrlMapsAggregat" + + "edList\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/pr" + + "ojects/{project}/aggregated/urlMaps\022\300\001\n\006" + + "Delete\022,.google.cloud.compute.v1.DeleteU" + + "rlMapRequest\032\".google.cloud.compute.v1.O" + + "peration\"d\332A\017project,url_map\212N\020GlobalOpe" + + "rations\202\323\344\223\0029*7/compute/v1/projects/{pro" + + "ject}/global/urlMaps/{url_map}\022\244\001\n\003Get\022)" + + ".google.cloud.compute.v1.GetUrlMapReques" + + "t\032\037.google.cloud.compute.v1.UrlMap\"Q\332A\017p" + + "roject,url_map\202\323\344\223\0029\0227/compute/v1/projec" + + "ts/{project}/global/urlMaps/{url_map}\022\321\001" + + "\n\006Insert\022,.google.cloud.compute.v1.Inser" + + "tUrlMapRequest\032\".google.cloud.compute.v1" + + ".Operation\"u\332A\030project,url_map_resource\212" + + "N\020GlobalOperations\202\323\344\223\002A\"-/compute/v1/pr" + + "ojects/{project}/global/urlMaps:\020url_map" + + "_resource\022\246\002\n\017InvalidateCache\0225.google.c" + + "loud.compute.v1.InvalidateCacheUrlMapReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\267\001\332A0project,url_map,cache_invalidation" + + "_rule_resource\212N\020GlobalOperations\202\323\344\223\002k\"" + + "G/compute/v1/projects/{project}/global/u" + + "rlMaps/{url_map}/invalidateCache: cache_" + + "invalidation_rule_resource\022\231\001\n\004List\022+.go" + + "ogle.cloud.compute.v1.ListUrlMapsRequest" + + "\032#.google.cloud.compute.v1.UrlMapList\"?\332" + + "A\007project\202\323\344\223\002/\022-/compute/v1/projects/{p" + + "roject}/global/urlMaps\022\342\001\n\005Patch\022+.googl" + + "e.cloud.compute.v1.PatchUrlMapRequest\032\"." + + "google.cloud.compute.v1.Operation\"\207\001\332A p" + + "roject,url_map,url_map_resource\212N\020Global" + + "Operations\202\323\344\223\002K27/compute/v1/projects/{" + + "project}/global/urlMaps/{url_map}:\020url_m" + + "ap_resource\022\256\002\n\022TestIamPermissions\0228.goo" + + "gle.cloud.compute.v1.TestIamPermissionsU" + + "rlMapRequest\0320.google.cloud.compute.v1.T" + + "estPermissionsResponse\"\253\001\332A2project,reso" + + "urce,test_permissions_request_resource\202\323" + + "\344\223\002p\"K/compute/v1/projects/{project}/glo" + + "bal/urlMaps/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\022\344\001\n" + + "\006Update\022,.google.cloud.compute.v1.Update" + "UrlMapRequest\032\".google.cloud.compute.v1." + "Operation\"\207\001\332A project,url_map,url_map_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002K27/compu" + + "esource\212N\020GlobalOperations\202\323\344\223\002K\0327/compu" + "te/v1/projects/{project}/global/urlMaps/" - + "{url_map}:\020url_map_resource\022\256\002\n\022TestIamP" - + "ermissions\0228.google.cloud.compute.v1.Tes" - + "tIamPermissionsUrlMapRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\253" - + "\001\332A2project,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002p\"K/compute/v1/projec" - + "ts/{project}/global/urlMaps/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\022\344\001\n\006Update\022,.google.cloud.c" - + "ompute.v1.UpdateUrlMapRequest\032\".google.c" - + "loud.compute.v1.Operation\"\207\001\332A project,u" - + "rl_map,url_map_resource\212N\020GlobalOperatio" - + "ns\202\323\344\223\002K\0327/compute/v1/projects/{project}" - + "/global/urlMaps/{url_map}:\020url_map_resou" - + "rce\022\220\002\n\010Validate\022..google.cloud.compute." - + "v1.ValidateUrlMapRequest\0320.google.cloud." - + "compute.v1.UrlMapsValidateResponse\"\241\001\332A2" - + "project,url_map,url_maps_validate_reques" - + "t_resource\202\323\344\223\002f\"@/compute/v1/projects/{" - + "project}/global/urlMaps/{url_map}/valida" - + "te:\"url_maps_validate_request_resource\032r" - + "\312A\026compute.googleapis.com\322AVhttps://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform2\237\020\n\013V" - + "pnGateways\022\307\001\n\016AggregatedList\0229.google.c" - + "loud.compute.v1.AggregatedListVpnGateway" - + "sRequest\0321.google.cloud.compute.v1.VpnGa" - + "tewayAggregatedList\"G\332A\007project\202\323\344\223\0027\0225/" - + "compute/v1/projects/{project}/aggregated" - + "/vpnGateways\022\342\001\n\006Delete\0220.google.cloud.c" - + "ompute.v1.DeleteVpnGatewayRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\201\001\332A\032proje" - + "ct,region,vpn_gateway\212N\020RegionOperations" - + "\202\323\344\223\002K*I/compute/v1/projects/{project}/r" - + "egions/{region}/vpnGateways/{vpn_gateway" - + "}\022\311\001\n\003Get\022-.google.cloud.compute.v1.GetV" - + "pnGatewayRequest\032#.google.cloud.compute." - + "v1.VpnGateway\"n\332A\032project,region,vpn_gat" - + "eway\202\323\344\223\002K\022I/compute/v1/projects/{projec" - + "t}/regions/{region}/vpnGateways/{vpn_gat" - + "eway}\022\361\001\n\tGetStatus\0223.google.cloud.compu" - + "te.v1.GetStatusVpnGatewayRequest\0325.googl" - + "e.cloud.compute.v1.VpnGatewaysGetStatusR" - + "esponse\"x\332A\032project,region,vpn_gateway\202\323" - + "\344\223\002U\022S/compute/v1/projects/{project}/reg" - + "ions/{region}/vpnGateways/{vpn_gateway}/" - + "getStatus\022\363\001\n\006Insert\0220.google.cloud.comp" - + "ute.v1.InsertVpnGatewayRequest\032\".google." - + "cloud.compute.v1.Operation\"\222\001\332A#project," - + "region,vpn_gateway_resource\212N\020RegionOper" - + "ations\202\323\344\223\002S\";/compute/v1/projects/{proj" - + "ect}/regions/{region}/vpnGateways:\024vpn_g" - + "ateway_resource\022\266\001\n\004List\022/.google.cloud." - + "compute.v1.ListVpnGatewaysRequest\032\'.goog" - + "le.cloud.compute.v1.VpnGatewayList\"T\332A\016p" - + "roject,region\202\323\344\223\002=\022;/compute/v1/project" - + "s/{project}/regions/{region}/vpnGateways" - + "\022\263\002\n\tSetLabels\0223.google.cloud.compute.v1" - + ".SetLabelsVpnGatewayRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\314\001\332A:project,reg" + + "{url_map}:\020url_map_resource\022\220\002\n\010Validate" + + "\022..google.cloud.compute.v1.ValidateUrlMa" + + "pRequest\0320.google.cloud.compute.v1.UrlMa" + + "psValidateResponse\"\241\001\332A2project,url_map," + + "url_maps_validate_request_resource\202\323\344\223\002f" + + "\"@/compute/v1/projects/{project}/global/" + + "urlMaps/{url_map}/validate:\"url_maps_val" + + "idate_request_resource\032r\312A\026compute.googl" + + "eapis.com\322AVhttps://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\237\020\n\013VpnGateways\022\307\001\n\016A" + + "ggregatedList\0229.google.cloud.compute.v1." + + "AggregatedListVpnGatewaysRequest\0321.googl" + + "e.cloud.compute.v1.VpnGatewayAggregatedL" + + "ist\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proje" + + "cts/{project}/aggregated/vpnGateways\022\342\001\n" + + "\006Delete\0220.google.cloud.compute.v1.Delete" + + "VpnGatewayRequest\032\".google.cloud.compute" + + ".v1.Operation\"\201\001\332A\032project,region,vpn_ga" + + "teway\212N\020RegionOperations\202\323\344\223\002K*I/compute" + + "/v1/projects/{project}/regions/{region}/" + + "vpnGateways/{vpn_gateway}\022\311\001\n\003Get\022-.goog" + + "le.cloud.compute.v1.GetVpnGatewayRequest" + + "\032#.google.cloud.compute.v1.VpnGateway\"n\332" + + "A\032project,region,vpn_gateway\202\323\344\223\002K\022I/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/vpnGateways/{vpn_gateway}\022\361\001\n\tGetSta" + + "tus\0223.google.cloud.compute.v1.GetStatusV" + + "pnGatewayRequest\0325.google.cloud.compute." + + "v1.VpnGatewaysGetStatusResponse\"x\332A\032proj" + + "ect,region,vpn_gateway\202\323\344\223\002U\022S/compute/v" + + "1/projects/{project}/regions/{region}/vp" + + "nGateways/{vpn_gateway}/getStatus\022\363\001\n\006In" + + "sert\0220.google.cloud.compute.v1.InsertVpn" + + "GatewayRequest\032\".google.cloud.compute.v1" + + ".Operation\"\222\001\332A#project,region,vpn_gatew" + + "ay_resource\212N\020RegionOperations\202\323\344\223\002S\";/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/vpnGateways:\024vpn_gateway_resource\022" + + "\266\001\n\004List\022/.google.cloud.compute.v1.ListV" + + "pnGatewaysRequest\032\'.google.cloud.compute" + + ".v1.VpnGatewayList\"T\332A\016project,region\202\323\344" + + "\223\002=\022;/compute/v1/projects/{project}/regi" + + "ons/{region}/vpnGateways\022\263\002\n\tSetLabels\0223" + + ".google.cloud.compute.v1.SetLabelsVpnGat" + + "ewayRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\314\001\332A:project,region,resource,reg" + + "ion_set_labels_request_resource\212N\020Region" + + "Operations\202\323\344\223\002v\"P/compute/v1/projects/{" + + "project}/regions/{region}/vpnGateways/{r" + + "esource}/setLabels:\"region_set_labels_re" + + "quest_resource\022\307\002\n\022TestIamPermissions\022<." + + "google.cloud.compute.v1.TestIamPermissio" + + "nsVpnGatewayRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\300\001\332A9proje" + + "ct,region,resource,test_permissions_requ" + + "est_resource\202\323\344\223\002~\"Y/compute/v1/projects" + + "/{project}/regions/{region}/vpnGateways/" + + "{resource}/testIamPermissions:!test_perm" + + "issions_request_resource\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\312\013\n\nVpnTunnels\022\304\001\n\016" + + "AggregatedList\0228.google.cloud.compute.v1" + + ".AggregatedListVpnTunnelsRequest\0320.googl" + + "e.cloud.compute.v1.VpnTunnelAggregatedLi" + + "st\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/projec" + + "ts/{project}/aggregated/vpnTunnels\022\335\001\n\006D" + + "elete\022/.google.cloud.compute.v1.DeleteVp" + + "nTunnelRequest\032\".google.cloud.compute.v1" + + ".Operation\"~\332A\031project,region,vpn_tunnel" + + "\212N\020RegionOperations\202\323\344\223\002I*G/compute/v1/p" + + "rojects/{project}/regions/{region}/vpnTu" + + "nnels/{vpn_tunnel}\022\304\001\n\003Get\022,.google.clou" + + "d.compute.v1.GetVpnTunnelRequest\032\".googl" + + "e.cloud.compute.v1.VpnTunnel\"k\332A\031project" + + ",region,vpn_tunnel\202\323\344\223\002I\022G/compute/v1/pr" + + "ojects/{project}/regions/{region}/vpnTun" + + "nels/{vpn_tunnel}\022\357\001\n\006Insert\022/.google.cl" + + "oud.compute.v1.InsertVpnTunnelRequest\032\"." + + "google.cloud.compute.v1.Operation\"\217\001\332A\"p" + + "roject,region,vpn_tunnel_resource\212N\020Regi" + + "onOperations\202\323\344\223\002Q\":/compute/v1/projects" + + "/{project}/regions/{region}/vpnTunnels:\023" + + "vpn_tunnel_resource\022\263\001\n\004List\022..google.cl" + + "oud.compute.v1.ListVpnTunnelsRequest\032&.g" + + "oogle.cloud.compute.v1.VpnTunnelList\"S\332A" + + "\016project,region\202\323\344\223\002<\022:/compute/v1/proje" + + "cts/{project}/regions/{region}/vpnTunnel" + + "s\022\261\002\n\tSetLabels\0222.google.cloud.compute.v" + + "1.SetLabelsVpnTunnelRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\313\001\332A:project,reg" + "ion,resource,region_set_labels_request_r" - + "esource\212N\020RegionOperations\202\323\344\223\002v\"P/compu" + + "esource\212N\020RegionOperations\202\323\344\223\002u\"O/compu" + "te/v1/projects/{project}/regions/{region" - + "}/vpnGateways/{resource}/setLabels:\"regi" - + "on_set_labels_request_resource\022\307\002\n\022TestI" - + "amPermissions\022<.google.cloud.compute.v1." - + "TestIamPermissionsVpnGatewayRequest\0320.go" - + "ogle.cloud.compute.v1.TestPermissionsRes" - + "ponse\"\300\001\332A9project,region,resource,test_" - + "permissions_request_resource\202\323\344\223\002~\"Y/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/vpnGateways/{resource}/testIamPermis" - + "sions:!test_permissions_request_resource" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\312\013\n" - + "\nVpnTunnels\022\304\001\n\016AggregatedList\0228.google." - + "cloud.compute.v1.AggregatedListVpnTunnel" - + "sRequest\0320.google.cloud.compute.v1.VpnTu" - + "nnelAggregatedList\"F\332A\007project\202\323\344\223\0026\0224/c" - + "ompute/v1/projects/{project}/aggregated/" - + "vpnTunnels\022\335\001\n\006Delete\022/.google.cloud.com" - + "pute.v1.DeleteVpnTunnelRequest\032\".google." - + "cloud.compute.v1.Operation\"~\332A\031project,r" - + "egion,vpn_tunnel\212N\020RegionOperations\202\323\344\223\002" - + "I*G/compute/v1/projects/{project}/region" - + "s/{region}/vpnTunnels/{vpn_tunnel}\022\304\001\n\003G" - + "et\022,.google.cloud.compute.v1.GetVpnTunne" - + "lRequest\032\".google.cloud.compute.v1.VpnTu" - + "nnel\"k\332A\031project,region,vpn_tunnel\202\323\344\223\002I" - + "\022G/compute/v1/projects/{project}/regions" - + "/{region}/vpnTunnels/{vpn_tunnel}\022\357\001\n\006In" - + "sert\022/.google.cloud.compute.v1.InsertVpn" - + "TunnelRequest\032\".google.cloud.compute.v1." - + "Operation\"\217\001\332A\"project,region,vpn_tunnel" - + "_resource\212N\020RegionOperations\202\323\344\223\002Q\":/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/vpnTunnels:\023vpn_tunnel_resource\022\263\001\n\004" - + "List\022..google.cloud.compute.v1.ListVpnTu" - + "nnelsRequest\032&.google.cloud.compute.v1.V" - + "pnTunnelList\"S\332A\016project,region\202\323\344\223\002<\022:/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/vpnTunnels\022\261\002\n\tSetLabels\0222.google" - + ".cloud.compute.v1.SetLabelsVpnTunnelRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\313\001\332A:project,region,resource,region_set_" - + "labels_request_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002u\"O/compute/v1/projects/{project}" - + "/regions/{region}/vpnTunnels/{resource}/" - + "setLabels:\"region_set_labels_request_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\246\013\n\nWireGroups\022\207\002\n\006Delete\022/.google.clo" - + "ud.compute.v1.DeleteWireGroupRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\247\001\332A%pr" - + "oject,cross_site_network,wire_group\212N\020Gl" - + "obalOperations\202\323\344\223\002f*d/compute/v1/projec" - + "ts/{project}/global/crossSiteNetworks/{c" - + "ross_site_network}/wireGroups/{wire_grou" - + "p}\022\356\001\n\003Get\022,.google.cloud.compute.v1.Get" - + "WireGroupRequest\032\".google.cloud.compute." - + "v1.WireGroup\"\224\001\332A%project,cross_site_net" - + "work,wire_group\202\323\344\223\002f\022d/compute/v1/proje" - + "cts/{project}/global/crossSiteNetworks/{" - + "cross_site_network}/wireGroups/{wire_gro" - + "up}\022\230\002\n\006Insert\022/.google.cloud.compute.v1" - + ".InsertWireGroupRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\270\001\332A.project,cross_s" - + "ite_network,wire_group_resource\212N\020Global" - + "Operations\202\323\344\223\002n\"W/compute/v1/projects/{" - + "project}/global/crossSiteNetworks/{cross" - + "_site_network}/wireGroups:\023wire_group_re" - + "source\022\334\001\n\004List\022..google.cloud.compute.v" - + "1.ListWireGroupsRequest\032&.google.cloud.c" - + "ompute.v1.WireGroupList\"|\332A\032project,cros" - + "s_site_network\202\323\344\223\002Y\022W/compute/v1/projec" - + "ts/{project}/global/crossSiteNetworks/{c" - + "ross_site_network}/wireGroups\022\256\002\n\005Patch\022" - + "..google.cloud.compute.v1.PatchWireGroup" + + "}/vpnTunnels/{resource}/setLabels:\"regio" + + "n_set_labels_request_resource\032r\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform2\246\013\n\nWireGroups" + + "\022\207\002\n\006Delete\022/.google.cloud.compute.v1.De" + + "leteWireGroupRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\247\001\332A%project,cross_site" + + "_network,wire_group\212N\020GlobalOperations\202\323" + + "\344\223\002f*d/compute/v1/projects/{project}/glo" + + "bal/crossSiteNetworks/{cross_site_networ" + + "k}/wireGroups/{wire_group}\022\356\001\n\003Get\022,.goo" + + "gle.cloud.compute.v1.GetWireGroupRequest" + + "\032\".google.cloud.compute.v1.WireGroup\"\224\001\332" + + "A%project,cross_site_network,wire_group\202" + + "\323\344\223\002f\022d/compute/v1/projects/{project}/gl" + + "obal/crossSiteNetworks/{cross_site_netwo" + + "rk}/wireGroups/{wire_group}\022\230\002\n\006Insert\022/" + + ".google.cloud.compute.v1.InsertWireGroup" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\320\001\332A9project,cross_site_network,wire" - + "_group,wire_group_resource\212N\020GlobalOpera" - + "tions\202\323\344\223\002{2d/compute/v1/projects/{proje" - + "ct}/global/crossSiteNetworks/{cross_site" - + "_network}/wireGroups/{wire_group}:\023wire_" - + "group_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\243\007\n\016ZoneOperations\022\330\001\n\006Delete" - + "\0223.google.cloud.compute.v1.DeleteZoneOpe" - + "rationRequest\0324.google.cloud.compute.v1." - + "DeleteZoneOperationResponse\"c\332A\026project," - + "zone,operation\202\323\344\223\002D*B/compute/v1/projec" - + "ts/{project}/zones/{zone}/operations/{op" - + "eration}\022\303\001\n\003Get\0220.google.cloud.compute." - + "v1.GetZoneOperationRequest\032\".google.clou" - + "d.compute.v1.Operation\"f\332A\026project,zone," - + "operation\220N\001\202\323\344\223\002D\022B/compute/v1/projects" - + "/{project}/zones/{zone}/operations/{oper" - + "ation}\022\261\001\n\004List\0222.google.cloud.compute.v" - + "1.ListZoneOperationsRequest\032&.google.clo" - + "ud.compute.v1.OperationList\"M\332A\014project," - + "zone\202\323\344\223\0028\0226/compute/v1/projects/{projec" - + "t}/zones/{zone}/operations\022\307\001\n\004Wait\0221.go" - + "ogle.cloud.compute.v1.WaitZoneOperationR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"h\332A\026project,zone,operation\202\323\344\223\002I\"G/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/operations/{operation}/wait\032r\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\321\003\n\005Zones\022\221\001\n\003G" - + "et\022\'.google.cloud.compute.v1.GetZoneRequ" - + "est\032\035.google.cloud.compute.v1.Zone\"B\332A\014p" - + "roject,zone\202\323\344\223\002-\022+/compute/v1/projects/" - + "{project}/zones/{zone}\022\214\001\n\004List\022).google" - + ".cloud.compute.v1.ListZonesRequest\032!.goo" - + "gle.cloud.compute.v1.ZoneList\"6\332A\007projec" - + "t\202\323\344\223\002&\022$/compute/v1/projects/{project}/" - + "zones\032\244\001\312A\026compute.googleapis.com\322A\207\001htt" - + "ps://www.googleapis.com/auth/compute.rea" - + "donly,https://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platformB\247\001\n\033com.google.cloud.comput" - + "e.v1P\001Z5cloud.google.com/go/compute/apiv" - + "1/computepb;computepb\252\002\027Google.Cloud.Com" - + "pute.V1\312\002\027Google\\Cloud\\Compute\\V1\352\002\032Goog" - + "le::Cloud::Compute::V1b\006proto3" + + "ion\"\270\001\332A.project,cross_site_network,wire" + + "_group_resource\212N\020GlobalOperations\202\323\344\223\002n" + + "\"W/compute/v1/projects/{project}/global/" + + "crossSiteNetworks/{cross_site_network}/w" + + "ireGroups:\023wire_group_resource\022\334\001\n\004List\022" + + "..google.cloud.compute.v1.ListWireGroups" + + "Request\032&.google.cloud.compute.v1.WireGr" + + "oupList\"|\332A\032project,cross_site_network\202\323" + + "\344\223\002Y\022W/compute/v1/projects/{project}/glo" + + "bal/crossSiteNetworks/{cross_site_networ" + + "k}/wireGroups\022\256\002\n\005Patch\022..google.cloud.c" + + "ompute.v1.PatchWireGroupRequest\032\".google" + + ".cloud.compute.v1.Operation\"\320\001\332A9project" + + ",cross_site_network,wire_group,wire_grou" + + "p_resource\212N\020GlobalOperations\202\323\344\223\002{2d/co" + + "mpute/v1/projects/{project}/global/cross" + + "SiteNetworks/{cross_site_network}/wireGr" + + "oups/{wire_group}:\023wire_group_resource\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\243\007\n\016Z" + + "oneOperations\022\330\001\n\006Delete\0223.google.cloud." + + "compute.v1.DeleteZoneOperationRequest\0324." + + "google.cloud.compute.v1.DeleteZoneOperat" + + "ionResponse\"c\332A\026project,zone,operation\202\323" + + "\344\223\002D*B/compute/v1/projects/{project}/zon" + + "es/{zone}/operations/{operation}\022\303\001\n\003Get" + + "\0220.google.cloud.compute.v1.GetZoneOperat" + + "ionRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"f\332A\026project,zone,operation\220N\001\202\323\344\223" + + "\002D\022B/compute/v1/projects/{project}/zones" + + "/{zone}/operations/{operation}\022\261\001\n\004List\022" + + "2.google.cloud.compute.v1.ListZoneOperat" + + "ionsRequest\032&.google.cloud.compute.v1.Op" + + "erationList\"M\332A\014project,zone\202\323\344\223\0028\0226/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "operations\022\307\001\n\004Wait\0221.google.cloud.compu" + + "te.v1.WaitZoneOperationRequest\032\".google." + + "cloud.compute.v1.Operation\"h\332A\026project,z" + + "one,operation\202\323\344\223\002I\"G/compute/v1/project" + + "s/{project}/zones/{zone}/operations/{ope" + + "ration}/wait\032r\312A\026compute.googleapis.com\322" + + "AVhttps://www.googleapis.com/auth/comput" + + "e,https://www.googleapis.com/auth/cloud-" + + "platform2\230\013\n\027ZoneVmExtensionPolicies\022\375\001\n" + + "\006Delete\022;.google.cloud.compute.v1.Delete" + + "ZoneVmExtensionPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\221\001\332A project,zo" + + "ne,vm_extension_policy\212N\016ZoneOperations\202" + + "\323\344\223\002W*U/compute/v1/projects/{project}/zo" + + "nes/{zone}/vmExtensionPolicies/{vm_exten" + + "sion_policy}\022\356\001\n\003Get\0228.google.cloud.comp" + + "ute.v1.GetZoneVmExtensionPolicyRequest\032*" + + ".google.cloud.compute.v1.VmExtensionPoli" + + "cy\"\200\001\332A project,zone,vm_extension_policy" + + "\202\323\344\223\002W\022U/compute/v1/projects/{project}/z" + + "ones/{zone}/vmExtensionPolicies/{vm_exte" + + "nsion_policy}\022\216\002\n\006Insert\022;.google.cloud." + + "compute.v1.InsertZoneVmExtensionPolicyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\242\001\332A)project,zone,vm_extension_policy_" + + "resource\212N\016ZoneOperations\202\323\344\223\002_\"?/comput" + + "e/v1/projects/{project}/zones/{zone}/vmE" + + "xtensionPolicies:\034vm_extension_policy_re" + + "source\022\313\001\n\004List\022;.google.cloud.compute.v" + + "1.ListZoneVmExtensionPoliciesRequest\032..g" + + "oogle.cloud.compute.v1.VmExtensionPolicy" + + "List\"V\332A\014project,zone\202\323\344\223\002A\022?/compute/v1" + + "/projects/{project}/zones/{zone}/vmExten" + + "sionPolicies\022\270\002\n\006Update\022;.google.cloud.c" + + "ompute.v1.UpdateZoneVmExtensionPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\314\001\332A=project,zone,vm_extension_policy,v" + + "m_extension_policy_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002u2U/compute/v1/projects/{projec" + + "t}/zones/{zone}/vmExtensionPolicies/{vm_" + + "extension_policy}:\034vm_extension_policy_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\321\003\n\005Zones\022\221\001\n\003Get\022\'.google.cloud.com" + + "pute.v1.GetZoneRequest\032\035.google.cloud.co" + + "mpute.v1.Zone\"B\332A\014project,zone\202\323\344\223\002-\022+/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}\022\214\001\n\004List\022).google.cloud.compute.v1.Lis" + + "tZonesRequest\032!.google.cloud.compute.v1." + + "ZoneList\"6\332A\007project\202\323\344\223\002&\022$/compute/v1/" + + "projects/{project}/zones\032\244\001\312A\026compute.go" + + "ogleapis.com\322A\207\001https://www.googleapis.c" + + "om/auth/compute.readonly,https://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platformB\247\001\n\033com." + + "google.cloud.compute.v1P\001Z5cloud.google." + + "com/go/compute/apiv1/computepb;computepb" + + "\252\002\027Google.Cloud.Compute.V1\312\002\027Google\\Clou" + + "d\\Compute\\V1\352\002\032Google::Cloud::Compute::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -37470,8 +39024,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnPartialSuccess", "ServiceProjectNumber", }); - internal_static_google_cloud_compute_v1_AggregatedListBackendServicesRequest_descriptor = + internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_descriptor = getDescriptor().getMessageType(44); + internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_AggregatedListBackendBucketsRequest_descriptor, + new java.lang.String[] { + "Filter", + "IncludeAllScopes", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "ReturnPartialSuccess", + "ServiceProjectNumber", + }); + internal_static_google_cloud_compute_v1_AggregatedListBackendServicesRequest_descriptor = + getDescriptor().getMessageType(45); internal_static_google_cloud_compute_v1_AggregatedListBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListBackendServicesRequest_descriptor, @@ -37486,7 +39055,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListDiskTypesRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(46); internal_static_google_cloud_compute_v1_AggregatedListDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListDiskTypesRequest_descriptor, @@ -37501,7 +39070,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListDisksRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(47); internal_static_google_cloud_compute_v1_AggregatedListDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListDisksRequest_descriptor, @@ -37516,7 +39085,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListForwardingRulesRequest_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(48); internal_static_google_cloud_compute_v1_AggregatedListForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListForwardingRulesRequest_descriptor, @@ -37531,7 +39100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListFutureReservationsRequest_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(49); internal_static_google_cloud_compute_v1_AggregatedListFutureReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListFutureReservationsRequest_descriptor, @@ -37546,7 +39115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListGlobalOperationsRequest_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(50); internal_static_google_cloud_compute_v1_AggregatedListGlobalOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListGlobalOperationsRequest_descriptor, @@ -37561,7 +39130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListHealthChecksRequest_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(51); internal_static_google_cloud_compute_v1_AggregatedListHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListHealthChecksRequest_descriptor, @@ -37576,7 +39145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(52); internal_static_google_cloud_compute_v1_AggregatedListInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListInstanceGroupManagersRequest_descriptor, @@ -37591,7 +39160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListInstanceGroupsRequest_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(53); internal_static_google_cloud_compute_v1_AggregatedListInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListInstanceGroupsRequest_descriptor, @@ -37606,7 +39175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(54); internal_static_google_cloud_compute_v1_AggregatedListInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListInstanceTemplatesRequest_descriptor, @@ -37621,7 +39190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListInstancesRequest_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(55); internal_static_google_cloud_compute_v1_AggregatedListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListInstancesRequest_descriptor, @@ -37636,7 +39205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(56); internal_static_google_cloud_compute_v1_AggregatedListInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListInstantSnapshotsRequest_descriptor, @@ -37651,7 +39220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListInterconnectAttachmentsRequest_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(57); internal_static_google_cloud_compute_v1_AggregatedListInterconnectAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListInterconnectAttachmentsRequest_descriptor, @@ -37666,7 +39235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListMachineTypesRequest_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(58); internal_static_google_cloud_compute_v1_AggregatedListMachineTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListMachineTypesRequest_descriptor, @@ -37681,7 +39250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNetworkAttachmentsRequest_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(59); internal_static_google_cloud_compute_v1_AggregatedListNetworkAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNetworkAttachmentsRequest_descriptor, @@ -37696,7 +39265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNetworkEdgeSecurityServicesRequest_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(60); internal_static_google_cloud_compute_v1_AggregatedListNetworkEdgeSecurityServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNetworkEdgeSecurityServicesRequest_descriptor, @@ -37711,7 +39280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(61); internal_static_google_cloud_compute_v1_AggregatedListNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNetworkEndpointGroupsRequest_descriptor, @@ -37726,7 +39295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(62); internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor, @@ -37741,7 +39310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(63); internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_descriptor, @@ -37756,7 +39325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNodeTemplatesRequest_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(64); internal_static_google_cloud_compute_v1_AggregatedListNodeTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNodeTemplatesRequest_descriptor, @@ -37771,7 +39340,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNodeTypesRequest_descriptor = - getDescriptor().getMessageType(64); + getDescriptor().getMessageType(65); internal_static_google_cloud_compute_v1_AggregatedListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNodeTypesRequest_descriptor, @@ -37786,7 +39355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListPacketMirroringsRequest_descriptor = - getDescriptor().getMessageType(65); + getDescriptor().getMessageType(66); internal_static_google_cloud_compute_v1_AggregatedListPacketMirroringsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListPacketMirroringsRequest_descriptor, @@ -37801,7 +39370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageType(66); + getDescriptor().getMessageType(67); internal_static_google_cloud_compute_v1_AggregatedListPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListPublicDelegatedPrefixesRequest_descriptor, @@ -37816,7 +39385,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionCommitmentsRequest_descriptor = - getDescriptor().getMessageType(67); + getDescriptor().getMessageType(68); internal_static_google_cloud_compute_v1_AggregatedListRegionCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionCommitmentsRequest_descriptor, @@ -37831,7 +39400,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionCompositeHealthChecksRequest_descriptor = - getDescriptor().getMessageType(68); + getDescriptor().getMessageType(69); internal_static_google_cloud_compute_v1_AggregatedListRegionCompositeHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionCompositeHealthChecksRequest_descriptor, @@ -37846,7 +39415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionHealthAggregationPoliciesRequest_descriptor = - getDescriptor().getMessageType(69); + getDescriptor().getMessageType(70); internal_static_google_cloud_compute_v1_AggregatedListRegionHealthAggregationPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionHealthAggregationPoliciesRequest_descriptor, @@ -37861,7 +39430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionHealthCheckServicesRequest_descriptor = - getDescriptor().getMessageType(70); + getDescriptor().getMessageType(71); internal_static_google_cloud_compute_v1_AggregatedListRegionHealthCheckServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionHealthCheckServicesRequest_descriptor, @@ -37876,7 +39445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionHealthSourcesRequest_descriptor = - getDescriptor().getMessageType(71); + getDescriptor().getMessageType(72); internal_static_google_cloud_compute_v1_AggregatedListRegionHealthSourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionHealthSourcesRequest_descriptor, @@ -37891,7 +39460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionNotificationEndpointsRequest_descriptor = - getDescriptor().getMessageType(72); + getDescriptor().getMessageType(73); internal_static_google_cloud_compute_v1_AggregatedListRegionNotificationEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionNotificationEndpointsRequest_descriptor, @@ -37906,7 +39475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListReservationsRequest_descriptor = - getDescriptor().getMessageType(73); + getDescriptor().getMessageType(74); internal_static_google_cloud_compute_v1_AggregatedListReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListReservationsRequest_descriptor, @@ -37921,7 +39490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(74); + getDescriptor().getMessageType(75); internal_static_google_cloud_compute_v1_AggregatedListResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListResourcePoliciesRequest_descriptor, @@ -37936,7 +39505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRoutersRequest_descriptor = - getDescriptor().getMessageType(75); + getDescriptor().getMessageType(76); internal_static_google_cloud_compute_v1_AggregatedListRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRoutersRequest_descriptor, @@ -37951,7 +39520,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageType(76); + getDescriptor().getMessageType(77); internal_static_google_cloud_compute_v1_AggregatedListSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSecurityPoliciesRequest_descriptor, @@ -37966,7 +39535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListServiceAttachmentsRequest_descriptor = - getDescriptor().getMessageType(77); + getDescriptor().getMessageType(78); internal_static_google_cloud_compute_v1_AggregatedListServiceAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListServiceAttachmentsRequest_descriptor, @@ -37981,7 +39550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSslCertificatesRequest_descriptor = - getDescriptor().getMessageType(78); + getDescriptor().getMessageType(79); internal_static_google_cloud_compute_v1_AggregatedListSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSslCertificatesRequest_descriptor, @@ -37996,7 +39565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSslPoliciesRequest_descriptor = - getDescriptor().getMessageType(79); + getDescriptor().getMessageType(80); internal_static_google_cloud_compute_v1_AggregatedListSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSslPoliciesRequest_descriptor, @@ -38011,7 +39580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolTypesRequest_descriptor = - getDescriptor().getMessageType(80); + getDescriptor().getMessageType(81); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListStoragePoolTypesRequest_descriptor, @@ -38026,7 +39595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolsRequest_descriptor = - getDescriptor().getMessageType(81); + getDescriptor().getMessageType(82); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListStoragePoolsRequest_descriptor, @@ -38041,7 +39610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSubnetworksRequest_descriptor = - getDescriptor().getMessageType(82); + getDescriptor().getMessageType(83); internal_static_google_cloud_compute_v1_AggregatedListSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSubnetworksRequest_descriptor, @@ -38057,7 +39626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Views", }); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageType(83); + getDescriptor().getMessageType(84); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetHttpProxiesRequest_descriptor, @@ -38072,7 +39641,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageType(84); + getDescriptor().getMessageType(85); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetHttpsProxiesRequest_descriptor, @@ -38087,7 +39656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetInstancesRequest_descriptor = - getDescriptor().getMessageType(85); + getDescriptor().getMessageType(86); internal_static_google_cloud_compute_v1_AggregatedListTargetInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetInstancesRequest_descriptor, @@ -38102,7 +39671,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetPoolsRequest_descriptor = - getDescriptor().getMessageType(86); + getDescriptor().getMessageType(87); internal_static_google_cloud_compute_v1_AggregatedListTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetPoolsRequest_descriptor, @@ -38117,7 +39686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageType(87); + getDescriptor().getMessageType(88); internal_static_google_cloud_compute_v1_AggregatedListTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetTcpProxiesRequest_descriptor, @@ -38132,7 +39701,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetVpnGatewaysRequest_descriptor = - getDescriptor().getMessageType(88); + getDescriptor().getMessageType(89); internal_static_google_cloud_compute_v1_AggregatedListTargetVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetVpnGatewaysRequest_descriptor, @@ -38147,7 +39716,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListUrlMapsRequest_descriptor = - getDescriptor().getMessageType(89); + getDescriptor().getMessageType(90); internal_static_google_cloud_compute_v1_AggregatedListUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListUrlMapsRequest_descriptor, @@ -38162,7 +39731,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListVpnGatewaysRequest_descriptor = - getDescriptor().getMessageType(90); + getDescriptor().getMessageType(91); internal_static_google_cloud_compute_v1_AggregatedListVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListVpnGatewaysRequest_descriptor, @@ -38177,7 +39746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListVpnTunnelsRequest_descriptor = - getDescriptor().getMessageType(91); + getDescriptor().getMessageType(92); internal_static_google_cloud_compute_v1_AggregatedListVpnTunnelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListVpnTunnelsRequest_descriptor, @@ -38192,7 +39761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AliasIpRange_descriptor = - getDescriptor().getMessageType(92); + getDescriptor().getMessageType(93); internal_static_google_cloud_compute_v1_AliasIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AliasIpRange_descriptor, @@ -38200,7 +39769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpCidrRange", "SubnetworkRangeName", }); internal_static_google_cloud_compute_v1_AllocationAggregateReservation_descriptor = - getDescriptor().getMessageType(93); + getDescriptor().getMessageType(94); internal_static_google_cloud_compute_v1_AllocationAggregateReservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationAggregateReservation_descriptor, @@ -38208,7 +39777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InUseResources", "ReservedResources", "VmFamily", "WorkloadType", }); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfo_descriptor = - getDescriptor().getMessageType(94); + getDescriptor().getMessageType(95); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfo_descriptor, @@ -38216,7 +39785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Accelerator", }); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfoAccelerator_descriptor = - getDescriptor().getMessageType(95); + getDescriptor().getMessageType(96); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfoAccelerator_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfoAccelerator_descriptor, @@ -38224,7 +39793,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorCount", "AcceleratorType", }); internal_static_google_cloud_compute_v1_AllocationReservationSharingPolicy_descriptor = - getDescriptor().getMessageType(96); + getDescriptor().getMessageType(97); internal_static_google_cloud_compute_v1_AllocationReservationSharingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationReservationSharingPolicy_descriptor, @@ -38232,7 +39801,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceShareType", }); internal_static_google_cloud_compute_v1_AllocationResourceStatus_descriptor = - getDescriptor().getMessageType(97); + getDescriptor().getMessageType(98); internal_static_google_cloud_compute_v1_AllocationResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationResourceStatus_descriptor, @@ -38243,7 +39812,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpecificSkuAllocation", }); internal_static_google_cloud_compute_v1_AllocationResourceStatusHealthInfo_descriptor = - getDescriptor().getMessageType(98); + getDescriptor().getMessageType(99); internal_static_google_cloud_compute_v1_AllocationResourceStatusHealthInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationResourceStatusHealthInfo_descriptor, @@ -38251,7 +39820,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DegradedBlockCount", "HealthStatus", "HealthyBlockCount", }); internal_static_google_cloud_compute_v1_AllocationResourceStatusSpecificSKUAllocation_descriptor = - getDescriptor().getMessageType(99); + getDescriptor().getMessageType(100); internal_static_google_cloud_compute_v1_AllocationResourceStatusSpecificSKUAllocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationResourceStatusSpecificSKUAllocation_descriptor, @@ -38268,7 +39837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk_descriptor = - getDescriptor().getMessageType(100); + getDescriptor().getMessageType(101); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk_descriptor, @@ -38276,7 +39845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskSizeGb", "Interface", }); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationReservedInstanceProperties_descriptor = - getDescriptor().getMessageType(101); + getDescriptor().getMessageType(102); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationReservedInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationReservedInstanceProperties_descriptor, @@ -38284,7 +39853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GuestAccelerators", "LocalSsds", "LocationHint", "MachineType", "MinCpuPlatform", }); internal_static_google_cloud_compute_v1_AllocationSpecificSKUReservation_descriptor = - getDescriptor().getMessageType(102); + getDescriptor().getMessageType(103); internal_static_google_cloud_compute_v1_AllocationSpecificSKUReservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationSpecificSKUReservation_descriptor, @@ -38292,7 +39861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AssuredCount", "Count", "InUseCount", "InstanceProperties", "SourceInstanceTemplate", }); internal_static_google_cloud_compute_v1_Allowed_descriptor = - getDescriptor().getMessageType(103); + getDescriptor().getMessageType(104); internal_static_google_cloud_compute_v1_Allowed_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Allowed_descriptor, @@ -38300,7 +39869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IPProtocol", "Ports", }); internal_static_google_cloud_compute_v1_AnnouncePublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageType(104); + getDescriptor().getMessageType(105); internal_static_google_cloud_compute_v1_AnnouncePublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AnnouncePublicAdvertisedPrefixeRequest_descriptor, @@ -38308,7 +39877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_AnnouncePublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(105); + getDescriptor().getMessageType(106); internal_static_google_cloud_compute_v1_AnnouncePublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AnnouncePublicDelegatedPrefixeRequest_descriptor, @@ -38316,7 +39885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(106); + getDescriptor().getMessageType(107); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesInstanceGroupManagerRequest_descriptor, @@ -38327,7 +39896,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(107); + getDescriptor().getMessageType(108); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -38338,7 +39907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionInstanceGroupManagersApplyUpdatesRequestResource", }); internal_static_google_cloud_compute_v1_AttachDiskInstanceRequest_descriptor = - getDescriptor().getMessageType(108); + getDescriptor().getMessageType(109); internal_static_google_cloud_compute_v1_AttachDiskInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachDiskInstanceRequest_descriptor, @@ -38346,7 +39915,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachedDiskResource", "ForceAttach", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(109); + getDescriptor().getMessageType(110); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor, @@ -38357,7 +39926,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(110); + getDescriptor().getMessageType(111); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachNetworkEndpointsNetworkEndpointGroupRequest_descriptor, @@ -38369,7 +39938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(111); + getDescriptor().getMessageType(112); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor, @@ -38381,7 +39950,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_AttachedDisk_descriptor = - getDescriptor().getMessageType(112); + getDescriptor().getMessageType(113); internal_static_google_cloud_compute_v1_AttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachedDisk_descriptor, @@ -38406,7 +39975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_compute_v1_AttachedDiskInitializeParams_descriptor = - getDescriptor().getMessageType(113); + getDescriptor().getMessageType(114); internal_static_google_cloud_compute_v1_AttachedDiskInitializeParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachedDiskInitializeParams_descriptor, @@ -38450,7 +40019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AuditConfig_descriptor = - getDescriptor().getMessageType(114); + getDescriptor().getMessageType(115); internal_static_google_cloud_compute_v1_AuditConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AuditConfig_descriptor, @@ -38458,7 +40027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AuditLogConfigs", "ExemptedMembers", "Service", }); internal_static_google_cloud_compute_v1_AuditLogConfig_descriptor = - getDescriptor().getMessageType(115); + getDescriptor().getMessageType(116); internal_static_google_cloud_compute_v1_AuditLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AuditLogConfig_descriptor, @@ -38466,7 +40035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExemptedMembers", "IgnoreChildExemptions", "LogType", }); internal_static_google_cloud_compute_v1_Autoscaler_descriptor = - getDescriptor().getMessageType(116); + getDescriptor().getMessageType(117); internal_static_google_cloud_compute_v1_Autoscaler_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Autoscaler_descriptor, @@ -38495,7 +40064,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AutoscalerAggregatedList_descriptor = - getDescriptor().getMessageType(117); + getDescriptor().getMessageType(118); internal_static_google_cloud_compute_v1_AutoscalerAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalerAggregatedList_descriptor, @@ -38512,7 +40081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AutoscalerList_descriptor = - getDescriptor().getMessageType(118); + getDescriptor().getMessageType(119); internal_static_google_cloud_compute_v1_AutoscalerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalerList_descriptor, @@ -38520,7 +40089,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_AutoscalerStatusDetails_descriptor = - getDescriptor().getMessageType(119); + getDescriptor().getMessageType(120); internal_static_google_cloud_compute_v1_AutoscalerStatusDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalerStatusDetails_descriptor, @@ -38528,7 +40097,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Type", }); internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor = - getDescriptor().getMessageType(120); + getDescriptor().getMessageType(121); internal_static_google_cloud_compute_v1_AutoscalersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor, @@ -38536,7 +40105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscalers", "Warning", }); internal_static_google_cloud_compute_v1_AutoscalingPolicy_descriptor = - getDescriptor().getMessageType(121); + getDescriptor().getMessageType(122); internal_static_google_cloud_compute_v1_AutoscalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicy_descriptor, @@ -38560,7 +40129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyCpuUtilization_descriptor = - getDescriptor().getMessageType(122); + getDescriptor().getMessageType(123); internal_static_google_cloud_compute_v1_AutoscalingPolicyCpuUtilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyCpuUtilization_descriptor, @@ -38568,7 +40137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictiveMethod", "UtilizationTarget", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyCustomMetricUtilization_descriptor = - getDescriptor().getMessageType(123); + getDescriptor().getMessageType(124); internal_static_google_cloud_compute_v1_AutoscalingPolicyCustomMetricUtilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyCustomMetricUtilization_descriptor, @@ -38580,7 +40149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UtilizationTargetType", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyLoadBalancingUtilization_descriptor = - getDescriptor().getMessageType(124); + getDescriptor().getMessageType(125); internal_static_google_cloud_compute_v1_AutoscalingPolicyLoadBalancingUtilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyLoadBalancingUtilization_descriptor, @@ -38588,7 +40157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UtilizationTarget", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyScaleInControl_descriptor = - getDescriptor().getMessageType(125); + getDescriptor().getMessageType(126); internal_static_google_cloud_compute_v1_AutoscalingPolicyScaleInControl_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyScaleInControl_descriptor, @@ -38596,7 +40165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxScaledInReplicas", "TimeWindowSec", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyScalingSchedule_descriptor = - getDescriptor().getMessageType(126); + getDescriptor().getMessageType(127); internal_static_google_cloud_compute_v1_AutoscalingPolicyScalingSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyScalingSchedule_descriptor, @@ -38609,7 +40178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", }); internal_static_google_cloud_compute_v1_Backend_descriptor = - getDescriptor().getMessageType(127); + getDescriptor().getMessageType(128); internal_static_google_cloud_compute_v1_Backend_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Backend_descriptor, @@ -38623,15 +40192,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxConnections", "MaxConnectionsPerEndpoint", "MaxConnectionsPerInstance", + "MaxInFlightRequests", + "MaxInFlightRequestsPerEndpoint", + "MaxInFlightRequestsPerInstance", "MaxRate", "MaxRatePerEndpoint", "MaxRatePerInstance", "MaxUtilization", "OrchestrationInfo", "Preference", + "TrafficDuration", }); internal_static_google_cloud_compute_v1_BackendBackendOrchestrationInfo_descriptor = - getDescriptor().getMessageType(128); + getDescriptor().getMessageType(129); internal_static_google_cloud_compute_v1_BackendBackendOrchestrationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBackendOrchestrationInfo_descriptor, @@ -38639,7 +40212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceUri", }); internal_static_google_cloud_compute_v1_BackendBucket_descriptor = - getDescriptor().getMessageType(129); + getDescriptor().getMessageType(130); internal_static_google_cloud_compute_v1_BackendBucket_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucket_descriptor, @@ -38657,11 +40230,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LoadBalancingScheme", "Name", "Params", + "Region", "SelfLink", "UsedBy", }); + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor = + getDescriptor().getMessageType(131); + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor, + new java.lang.String[] { + "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", + }); + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_ItemsEntry_descriptor = + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_descriptor + .getNestedType(0); + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_ItemsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_BackendBucketAggregatedList_ItemsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_descriptor = - getDescriptor().getMessageType(130); + getDescriptor().getMessageType(132); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_descriptor, @@ -38680,7 +40271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedUrlKeyNames", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyBypassCacheOnRequestHeader_descriptor = - getDescriptor().getMessageType(131); + getDescriptor().getMessageType(133); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyBypassCacheOnRequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyBypassCacheOnRequestHeader_descriptor, @@ -38688,7 +40279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HeaderName", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyCacheKeyPolicy_descriptor = - getDescriptor().getMessageType(132); + getDescriptor().getMessageType(134); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyCacheKeyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyCacheKeyPolicy_descriptor, @@ -38696,7 +40287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeHttpHeaders", "QueryStringWhitelist", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyNegativeCachingPolicy_descriptor = - getDescriptor().getMessageType(133); + getDescriptor().getMessageType(135); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyNegativeCachingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyNegativeCachingPolicy_descriptor, @@ -38704,15 +40295,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "Ttl", }); internal_static_google_cloud_compute_v1_BackendBucketList_descriptor = - getDescriptor().getMessageType(134); + getDescriptor().getMessageType(136); internal_static_google_cloud_compute_v1_BackendBucketList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketList_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_BackendBucketListUsable_descriptor = + getDescriptor().getMessageType(137); + internal_static_google_cloud_compute_v1_BackendBucketListUsable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_BackendBucketListUsable_descriptor, + new java.lang.String[] { + "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", + }); internal_static_google_cloud_compute_v1_BackendBucketParams_descriptor = - getDescriptor().getMessageType(135); + getDescriptor().getMessageType(138); internal_static_google_cloud_compute_v1_BackendBucketParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketParams_descriptor, @@ -38728,15 +40327,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendBucketUsedBy_descriptor = - getDescriptor().getMessageType(136); + getDescriptor().getMessageType(139); internal_static_google_cloud_compute_v1_BackendBucketUsedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketUsedBy_descriptor, new java.lang.String[] { "Reference", }); + internal_static_google_cloud_compute_v1_BackendBucketsScopedList_descriptor = + getDescriptor().getMessageType(140); + internal_static_google_cloud_compute_v1_BackendBucketsScopedList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_BackendBucketsScopedList_descriptor, + new java.lang.String[] { + "BackendBuckets", "Warning", + }); internal_static_google_cloud_compute_v1_BackendCustomMetric_descriptor = - getDescriptor().getMessageType(137); + getDescriptor().getMessageType(141); internal_static_google_cloud_compute_v1_BackendCustomMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendCustomMetric_descriptor, @@ -38744,7 +40351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DryRun", "MaxUtilization", "Name", }); internal_static_google_cloud_compute_v1_BackendService_descriptor = - getDescriptor().getMessageType(138); + getDescriptor().getMessageType(142); internal_static_google_cloud_compute_v1_BackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendService_descriptor, @@ -38811,7 +40418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceAggregatedList_descriptor = - getDescriptor().getMessageType(139); + getDescriptor().getMessageType(143); internal_static_google_cloud_compute_v1_BackendServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceAggregatedList_descriptor, @@ -38828,7 +40435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicy_descriptor = - getDescriptor().getMessageType(140); + getDescriptor().getMessageType(144); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCdnPolicy_descriptor, @@ -38847,7 +40454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedUrlKeyNames", }); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyBypassCacheOnRequestHeader_descriptor = - getDescriptor().getMessageType(141); + getDescriptor().getMessageType(145); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyBypassCacheOnRequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyBypassCacheOnRequestHeader_descriptor, @@ -38855,7 +40462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HeaderName", }); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyNegativeCachingPolicy_descriptor = - getDescriptor().getMessageType(142); + getDescriptor().getMessageType(146); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyNegativeCachingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyNegativeCachingPolicy_descriptor, @@ -38863,7 +40470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "Ttl", }); internal_static_google_cloud_compute_v1_BackendServiceConnectionTrackingPolicy_descriptor = - getDescriptor().getMessageType(143); + getDescriptor().getMessageType(147); internal_static_google_cloud_compute_v1_BackendServiceConnectionTrackingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceConnectionTrackingPolicy_descriptor, @@ -38874,7 +40481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrackingMode", }); internal_static_google_cloud_compute_v1_BackendServiceCustomMetric_descriptor = - getDescriptor().getMessageType(144); + getDescriptor().getMessageType(148); internal_static_google_cloud_compute_v1_BackendServiceCustomMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCustomMetric_descriptor, @@ -38882,7 +40489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DryRun", "Name", }); internal_static_google_cloud_compute_v1_BackendServiceFailoverPolicy_descriptor = - getDescriptor().getMessageType(145); + getDescriptor().getMessageType(149); internal_static_google_cloud_compute_v1_BackendServiceFailoverPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceFailoverPolicy_descriptor, @@ -38890,7 +40497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableConnectionDrainOnFailover", "DropTrafficIfUnhealthy", "FailoverRatio", }); internal_static_google_cloud_compute_v1_BackendServiceGroupHealth_descriptor = - getDescriptor().getMessageType(146); + getDescriptor().getMessageType(150); internal_static_google_cloud_compute_v1_BackendServiceGroupHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceGroupHealth_descriptor, @@ -38907,7 +40514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceHAPolicy_descriptor = - getDescriptor().getMessageType(147); + getDescriptor().getMessageType(151); internal_static_google_cloud_compute_v1_BackendServiceHAPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceHAPolicy_descriptor, @@ -38915,7 +40522,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FastIPMove", "Leader", }); internal_static_google_cloud_compute_v1_BackendServiceHAPolicyLeader_descriptor = - getDescriptor().getMessageType(148); + getDescriptor().getMessageType(152); internal_static_google_cloud_compute_v1_BackendServiceHAPolicyLeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceHAPolicyLeader_descriptor, @@ -38923,7 +40530,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendGroup", "NetworkEndpoint", }); internal_static_google_cloud_compute_v1_BackendServiceHAPolicyLeaderNetworkEndpoint_descriptor = - getDescriptor().getMessageType(149); + getDescriptor().getMessageType(153); internal_static_google_cloud_compute_v1_BackendServiceHAPolicyLeaderNetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceHAPolicyLeaderNetworkEndpoint_descriptor, @@ -38931,7 +40538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", }); internal_static_google_cloud_compute_v1_BackendServiceHttpCookie_descriptor = - getDescriptor().getMessageType(150); + getDescriptor().getMessageType(154); internal_static_google_cloud_compute_v1_BackendServiceHttpCookie_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceHttpCookie_descriptor, @@ -38939,7 +40546,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", "Ttl", }); internal_static_google_cloud_compute_v1_BackendServiceIAP_descriptor = - getDescriptor().getMessageType(151); + getDescriptor().getMessageType(155); internal_static_google_cloud_compute_v1_BackendServiceIAP_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceIAP_descriptor, @@ -38947,7 +40554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "Oauth2ClientId", "Oauth2ClientSecret", "Oauth2ClientSecretSha256", }); internal_static_google_cloud_compute_v1_BackendServiceList_descriptor = - getDescriptor().getMessageType(152); + getDescriptor().getMessageType(156); internal_static_google_cloud_compute_v1_BackendServiceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceList_descriptor, @@ -38955,7 +40562,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_BackendServiceListUsable_descriptor = - getDescriptor().getMessageType(153); + getDescriptor().getMessageType(157); internal_static_google_cloud_compute_v1_BackendServiceListUsable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceListUsable_descriptor, @@ -38963,7 +40570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfig_descriptor = - getDescriptor().getMessageType(154); + getDescriptor().getMessageType(158); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfig_descriptor, @@ -38971,7 +40578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomPolicy", "Policy", }); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy_descriptor = - getDescriptor().getMessageType(155); + getDescriptor().getMessageType(159); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy_descriptor, @@ -38979,7 +40586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Data", "Name", }); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigPolicy_descriptor = - getDescriptor().getMessageType(156); + getDescriptor().getMessageType(160); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigPolicy_descriptor, @@ -38987,7 +40594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_compute_v1_BackendServiceLogConfig_descriptor = - getDescriptor().getMessageType(157); + getDescriptor().getMessageType(161); internal_static_google_cloud_compute_v1_BackendServiceLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLogConfig_descriptor, @@ -38995,7 +40602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enable", "OptionalFields", "OptionalMode", "SampleRate", }); internal_static_google_cloud_compute_v1_BackendServiceNetworkPassThroughLbTrafficPolicy_descriptor = - getDescriptor().getMessageType(158); + getDescriptor().getMessageType(162); internal_static_google_cloud_compute_v1_BackendServiceNetworkPassThroughLbTrafficPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceNetworkPassThroughLbTrafficPolicy_descriptor, @@ -39003,7 +40610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ZonalAffinity", }); internal_static_google_cloud_compute_v1_BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity_descriptor = - getDescriptor().getMessageType(159); + getDescriptor().getMessageType(163); internal_static_google_cloud_compute_v1_BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity_descriptor, @@ -39011,7 +40618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Spillover", "SpilloverRatio", }); internal_static_google_cloud_compute_v1_BackendServiceOrchestrationInfo_descriptor = - getDescriptor().getMessageType(160); + getDescriptor().getMessageType(164); internal_static_google_cloud_compute_v1_BackendServiceOrchestrationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceOrchestrationInfo_descriptor, @@ -39019,7 +40626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceUri", }); internal_static_google_cloud_compute_v1_BackendServiceParams_descriptor = - getDescriptor().getMessageType(161); + getDescriptor().getMessageType(165); internal_static_google_cloud_compute_v1_BackendServiceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceParams_descriptor, @@ -39035,7 +40642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceReference_descriptor = - getDescriptor().getMessageType(162); + getDescriptor().getMessageType(166); internal_static_google_cloud_compute_v1_BackendServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceReference_descriptor, @@ -39043,7 +40650,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", }); internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor = - getDescriptor().getMessageType(163); + getDescriptor().getMessageType(167); internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceTlsSettings_descriptor, @@ -39051,7 +40658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AuthenticationConfig", "Sni", "SubjectAltNames", }); internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor = - getDescriptor().getMessageType(164); + getDescriptor().getMessageType(168); internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceTlsSettingsSubjectAltName_descriptor, @@ -39059,7 +40666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DnsName", "UniformResourceIdentifier", }); internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor = - getDescriptor().getMessageType(165); + getDescriptor().getMessageType(169); internal_static_google_cloud_compute_v1_BackendServiceUsedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor, @@ -39067,7 +40674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_compute_v1_BackendServicesScopedList_descriptor = - getDescriptor().getMessageType(166); + getDescriptor().getMessageType(170); internal_static_google_cloud_compute_v1_BackendServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServicesScopedList_descriptor, @@ -39075,7 +40682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendServices", "Warning", }); internal_static_google_cloud_compute_v1_BfdPacket_descriptor = - getDescriptor().getMessageType(167); + getDescriptor().getMessageType(171); internal_static_google_cloud_compute_v1_BfdPacket_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdPacket_descriptor, @@ -39098,7 +40705,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YourDiscriminator", }); internal_static_google_cloud_compute_v1_BfdStatus_descriptor = - getDescriptor().getMessageType(168); + getDescriptor().getMessageType(172); internal_static_google_cloud_compute_v1_BfdStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdStatus_descriptor, @@ -39115,7 +40722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UptimeMs", }); internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_descriptor = - getDescriptor().getMessageType(169); + getDescriptor().getMessageType(173); internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_descriptor, @@ -39123,7 +40730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NumRx", "NumRxRejected", "NumRxSuccessful", "NumTx", }); internal_static_google_cloud_compute_v1_BgpRoute_descriptor = - getDescriptor().getMessageType(170); + getDescriptor().getMessageType(174); internal_static_google_cloud_compute_v1_BgpRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BgpRoute_descriptor, @@ -39131,7 +40738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsPaths", "Communities", "Destination", "Med", "Origin", }); internal_static_google_cloud_compute_v1_BgpRouteAsPath_descriptor = - getDescriptor().getMessageType(171); + getDescriptor().getMessageType(175); internal_static_google_cloud_compute_v1_BgpRouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BgpRouteAsPath_descriptor, @@ -39139,7 +40746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Asns", "Asns32", "Type", }); internal_static_google_cloud_compute_v1_BgpRouteNetworkLayerReachabilityInformation_descriptor = - getDescriptor().getMessageType(172); + getDescriptor().getMessageType(176); internal_static_google_cloud_compute_v1_BgpRouteNetworkLayerReachabilityInformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BgpRouteNetworkLayerReachabilityInformation_descriptor, @@ -39147,7 +40754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PathId", "Prefix", }); internal_static_google_cloud_compute_v1_Binding_descriptor = - getDescriptor().getMessageType(173); + getDescriptor().getMessageType(177); internal_static_google_cloud_compute_v1_Binding_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Binding_descriptor, @@ -39155,7 +40762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BindingId", "Condition", "Members", "Role", }); internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_descriptor = - getDescriptor().getMessageType(174); + getDescriptor().getMessageType(178); internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_descriptor, @@ -39163,15 +40770,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertDiskResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_BulkInsertDiskResource_descriptor = - getDescriptor().getMessageType(175); + getDescriptor().getMessageType(179); internal_static_google_cloud_compute_v1_BulkInsertDiskResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertDiskResource_descriptor, new java.lang.String[] { + "InstantSnapshotGroupParameters", + "SnapshotGroupParameters", "SourceConsistencyGroupPolicy", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_descriptor = - getDescriptor().getMessageType(176); + getDescriptor().getMessageType(180); internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_descriptor, @@ -39179,7 +40788,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertInstanceResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_descriptor = - getDescriptor().getMessageType(177); + getDescriptor().getMessageType(181); internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_descriptor, @@ -39203,7 +40812,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_descriptor = - getDescriptor().getMessageType(178); + getDescriptor().getMessageType(182); internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_descriptor, @@ -39211,7 +40820,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Name", }); internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_descriptor = - getDescriptor().getMessageType(179); + getDescriptor().getMessageType(183); internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_descriptor, @@ -39223,7 +40832,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetVmCount", }); internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_descriptor = - getDescriptor().getMessageType(180); + getDescriptor().getMessageType(184); internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_descriptor, @@ -39231,7 +40840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertDiskResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_descriptor = - getDescriptor().getMessageType(181); + getDescriptor().getMessageType(185); internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_descriptor, @@ -39239,7 +40848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertInstanceResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_BulkSetLabelsDiskRequest_descriptor = - getDescriptor().getMessageType(182); + getDescriptor().getMessageType(186); internal_static_google_cloud_compute_v1_BulkSetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkSetLabelsDiskRequest_descriptor, @@ -39247,7 +40856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkZoneSetLabelsRequestResource", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_BulkSetLabelsRequest_descriptor = - getDescriptor().getMessageType(183); + getDescriptor().getMessageType(187); internal_static_google_cloud_compute_v1_BulkSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkSetLabelsRequest_descriptor, @@ -39263,7 +40872,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BulkZoneSetLabelsRequest_descriptor = - getDescriptor().getMessageType(184); + getDescriptor().getMessageType(188); internal_static_google_cloud_compute_v1_BulkZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkZoneSetLabelsRequest_descriptor, @@ -39271,7 +40880,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Requests", }); internal_static_google_cloud_compute_v1_BundledLocalSsds_descriptor = - getDescriptor().getMessageType(185); + getDescriptor().getMessageType(189); internal_static_google_cloud_compute_v1_BundledLocalSsds_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_BundledLocalSsds_descriptor, @@ -39279,7 +40888,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultInterface", "PartitionCount", }); internal_static_google_cloud_compute_v1_CacheInvalidationRule_descriptor = - getDescriptor().getMessageType(186); + getDescriptor().getMessageType(190); internal_static_google_cloud_compute_v1_CacheInvalidationRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CacheInvalidationRule_descriptor, @@ -39287,7 +40896,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CacheTags", "Host", "Path", }); internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor = - getDescriptor().getMessageType(187); + getDescriptor().getMessageType(191); internal_static_google_cloud_compute_v1_CacheKeyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor, @@ -39301,7 +40910,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringWhitelist", }); internal_static_google_cloud_compute_v1_CalendarModeAdviceRequest_descriptor = - getDescriptor().getMessageType(188); + getDescriptor().getMessageType(192); internal_static_google_cloud_compute_v1_CalendarModeAdviceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CalendarModeAdviceRequest_descriptor, @@ -39318,7 +40927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_CalendarModeAdviceResponse_descriptor = - getDescriptor().getMessageType(189); + getDescriptor().getMessageType(193); internal_static_google_cloud_compute_v1_CalendarModeAdviceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CalendarModeAdviceResponse_descriptor, @@ -39326,7 +40935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Recommendations", }); internal_static_google_cloud_compute_v1_CalendarModeAdviceRpcRequest_descriptor = - getDescriptor().getMessageType(190); + getDescriptor().getMessageType(194); internal_static_google_cloud_compute_v1_CalendarModeAdviceRpcRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CalendarModeAdviceRpcRequest_descriptor, @@ -39334,7 +40943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CalendarModeAdviceRequestResource", "Project", "Region", }); internal_static_google_cloud_compute_v1_CalendarModeRecommendation_descriptor = - getDescriptor().getMessageType(191); + getDescriptor().getMessageType(195); internal_static_google_cloud_compute_v1_CalendarModeRecommendation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CalendarModeRecommendation_descriptor, @@ -39351,7 +40960,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_CancelFutureReservationRequest_descriptor = - getDescriptor().getMessageType(192); + getDescriptor().getMessageType(196); internal_static_google_cloud_compute_v1_CancelFutureReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CancelFutureReservationRequest_descriptor, @@ -39359,15 +40968,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FutureReservation", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageType(193); + getDescriptor().getMessageType(197); internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor, new java.lang.String[] { "InstanceGroupManager", "Project", "RequestId", "ResizeRequest", "Zone", }); + internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_descriptor = + getDescriptor().getMessageType(198); + internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_CancelRegionInstanceGroupManagerResizeRequestRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", "Project", "Region", "RequestId", "ResizeRequest", + }); internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor = - getDescriptor().getMessageType(194); + getDescriptor().getMessageType(199); internal_static_google_cloud_compute_v1_CircuitBreakers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor, @@ -39379,7 +40996,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxRetries", }); internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(195); + getDescriptor().getMessageType(200); internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_descriptor, @@ -39387,7 +41004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(196); + getDescriptor().getMessageType(201); internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_descriptor, @@ -39395,7 +41012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(197); + getDescriptor().getMessageType(202); internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_descriptor, @@ -39403,7 +41020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_Commitment_descriptor = - getDescriptor().getMessageType(198); + getDescriptor().getMessageType(203); internal_static_google_cloud_compute_v1_Commitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Commitment_descriptor, @@ -39420,6 +41037,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LicenseResource", "MergeSourceCommitments", "Name", + "Params", "Plan", "Region", "Reservations", @@ -39433,7 +41051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_compute_v1_CommitmentAggregatedList_descriptor = - getDescriptor().getMessageType(199); + getDescriptor().getMessageType(204); internal_static_google_cloud_compute_v1_CommitmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentAggregatedList_descriptor, @@ -39450,15 +41068,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_CommitmentList_descriptor = - getDescriptor().getMessageType(200); + getDescriptor().getMessageType(205); internal_static_google_cloud_compute_v1_CommitmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentList_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_CommitmentParams_descriptor = + getDescriptor().getMessageType(206); + internal_static_google_cloud_compute_v1_CommitmentParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_CommitmentParams_descriptor, + new java.lang.String[] { + "ResourceManagerTags", + }); + internal_static_google_cloud_compute_v1_CommitmentParams_ResourceManagerTagsEntry_descriptor = + internal_static_google_cloud_compute_v1_CommitmentParams_descriptor.getNestedType(0); + internal_static_google_cloud_compute_v1_CommitmentParams_ResourceManagerTagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_CommitmentParams_ResourceManagerTagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor = - getDescriptor().getMessageType(201); + getDescriptor().getMessageType(207); internal_static_google_cloud_compute_v1_CommitmentResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor, @@ -39466,7 +41100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomTermEligibilityEndTimestamp", }); internal_static_google_cloud_compute_v1_CommitmentsScopedList_descriptor = - getDescriptor().getMessageType(202); + getDescriptor().getMessageType(208); internal_static_google_cloud_compute_v1_CommitmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentsScopedList_descriptor, @@ -39474,7 +41108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commitments", "Warning", }); internal_static_google_cloud_compute_v1_CompositeHealthCheck_descriptor = - getDescriptor().getMessageType(203); + getDescriptor().getMessageType(209); internal_static_google_cloud_compute_v1_CompositeHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CompositeHealthCheck_descriptor, @@ -39492,7 +41126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SelfLinkWithId", }); internal_static_google_cloud_compute_v1_CompositeHealthCheckAggregatedList_descriptor = - getDescriptor().getMessageType(204); + getDescriptor().getMessageType(210); internal_static_google_cloud_compute_v1_CompositeHealthCheckAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CompositeHealthCheckAggregatedList_descriptor, @@ -39508,16 +41142,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_descriptor = + getDescriptor().getMessageType(211); + internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_CompositeHealthCheckHealth_descriptor, + new java.lang.String[] { + "HealthSources", "HealthState", "Kind", + }); internal_static_google_cloud_compute_v1_CompositeHealthCheckList_descriptor = - getDescriptor().getMessageType(205); + getDescriptor().getMessageType(212); internal_static_google_cloud_compute_v1_CompositeHealthCheckList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CompositeHealthCheckList_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_descriptor = + getDescriptor().getMessageType(213); + internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_CompositeHealthChecksGetHealthResponseHealthSourceHealth_descriptor, + new java.lang.String[] { + "HealthState", "Source", + }); internal_static_google_cloud_compute_v1_CompositeHealthChecksScopedList_descriptor = - getDescriptor().getMessageType(206); + getDescriptor().getMessageType(214); internal_static_google_cloud_compute_v1_CompositeHealthChecksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CompositeHealthChecksScopedList_descriptor, @@ -39525,7 +41175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompositeHealthChecks", "Warning", }); internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageType(207); + getDescriptor().getMessageType(215); internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_descriptor, @@ -39533,7 +41183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConfidentialInstanceType", "EnableConfidentialCompute", }); internal_static_google_cloud_compute_v1_ConnectionDraining_descriptor = - getDescriptor().getMessageType(208); + getDescriptor().getMessageType(216); internal_static_google_cloud_compute_v1_ConnectionDraining_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConnectionDraining_descriptor, @@ -39541,7 +41191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DrainingTimeoutSec", }); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor = - getDescriptor().getMessageType(209); + getDescriptor().getMessageType(217); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor, @@ -39549,7 +41199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HttpCookie", "HttpHeaderName", "MinimumRingSize", }); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_descriptor = - getDescriptor().getMessageType(210); + getDescriptor().getMessageType(218); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_descriptor, @@ -39557,7 +41207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", "Ttl", }); internal_static_google_cloud_compute_v1_CopyRulesOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(211); + getDescriptor().getMessageType(219); internal_static_google_cloud_compute_v1_CopyRulesOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CopyRulesOrganizationSecurityPolicyRequest_descriptor, @@ -39565,7 +41215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", "SecurityPolicy", "SourceSecurityPolicy", }); internal_static_google_cloud_compute_v1_CorsPolicy_descriptor = - getDescriptor().getMessageType(212); + getDescriptor().getMessageType(220); internal_static_google_cloud_compute_v1_CorsPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CorsPolicy_descriptor, @@ -39580,7 +41230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxAge", }); internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(213); + getDescriptor().getMessageType(221); internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_descriptor, @@ -39592,7 +41242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(214); + getDescriptor().getMessageType(222); internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -39604,7 +41254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_CreateMembersInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(215); + getDescriptor().getMessageType(223); internal_static_google_cloud_compute_v1_CreateMembersInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateMembersInterconnectGroupRequest_descriptor, @@ -39612,7 +41262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectGroup", "InterconnectGroupsCreateMembersRequestResource", "Project", }); internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_descriptor = - getDescriptor().getMessageType(216); + getDescriptor().getMessageType(224); internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_descriptor, @@ -39620,7 +41270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "GuestFlush", "Project", "RequestId", "SnapshotResource", "Zone", }); internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_descriptor = - getDescriptor().getMessageType(217); + getDescriptor().getMessageType(225); internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_descriptor, @@ -39628,7 +41278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_CrossSiteNetwork_descriptor = - getDescriptor().getMessageType(218); + getDescriptor().getMessageType(226); internal_static_google_cloud_compute_v1_CrossSiteNetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CrossSiteNetwork_descriptor, @@ -39636,7 +41286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreationTimestamp", "Description", "Id", "Kind", "Name", "SelfLink", }); internal_static_google_cloud_compute_v1_CrossSiteNetworkList_descriptor = - getDescriptor().getMessageType(219); + getDescriptor().getMessageType(227); internal_static_google_cloud_compute_v1_CrossSiteNetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CrossSiteNetworkList_descriptor, @@ -39644,7 +41294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_descriptor = - getDescriptor().getMessageType(220); + getDescriptor().getMessageType(228); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_descriptor, @@ -39652,7 +41302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorResponseRules", "ErrorService", }); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_descriptor = - getDescriptor().getMessageType(221); + getDescriptor().getMessageType(229); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_descriptor, @@ -39660,7 +41310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MatchResponseCodes", "OverrideResponseCode", "Path", }); internal_static_google_cloud_compute_v1_CustomerEncryptionKey_descriptor = - getDescriptor().getMessageType(222); + getDescriptor().getMessageType(230); internal_static_google_cloud_compute_v1_CustomerEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomerEncryptionKey_descriptor, @@ -39668,21 +41318,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KmsKeyName", "KmsKeyServiceAccount", "RawKey", "RsaEncryptedKey", "Sha256", }); internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_descriptor = - getDescriptor().getMessageType(223); + getDescriptor().getMessageType(231); internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_descriptor, new java.lang.String[] { "DiskEncryptionKey", "Source", }); - internal_static_google_cloud_compute_v1_Data_descriptor = getDescriptor().getMessageType(224); + internal_static_google_cloud_compute_v1_Data_descriptor = getDescriptor().getMessageType(232); internal_static_google_cloud_compute_v1_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Data_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_compute_v1_Date_descriptor = getDescriptor().getMessageType(225); + internal_static_google_cloud_compute_v1_Date_descriptor = getDescriptor().getMessageType(233); internal_static_google_cloud_compute_v1_Date_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Date_descriptor, @@ -39690,7 +41340,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Day", "Month", "Year", }); internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageType(226); + getDescriptor().getMessageType(234); internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_descriptor, @@ -39698,7 +41348,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessConfig", "Instance", "NetworkInterface", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteAddressRequest_descriptor = - getDescriptor().getMessageType(227); + getDescriptor().getMessageType(235); internal_static_google_cloud_compute_v1_DeleteAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAddressRequest_descriptor, @@ -39706,7 +41356,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_descriptor = - getDescriptor().getMessageType(228); + getDescriptor().getMessageType(236); internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_descriptor, @@ -39714,7 +41364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_descriptor = - getDescriptor().getMessageType(229); + getDescriptor().getMessageType(237); internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_descriptor, @@ -39722,7 +41372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_descriptor = - getDescriptor().getMessageType(230); + getDescriptor().getMessageType(238); internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_descriptor, @@ -39730,7 +41380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteCrossSiteNetworkRequest_descriptor = - getDescriptor().getMessageType(231); + getDescriptor().getMessageType(239); internal_static_google_cloud_compute_v1_DeleteCrossSiteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteCrossSiteNetworkRequest_descriptor, @@ -39738,7 +41388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CrossSiteNetwork", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor = - getDescriptor().getMessageType(232); + getDescriptor().getMessageType(240); internal_static_google_cloud_compute_v1_DeleteDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor, @@ -39746,7 +41396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(233); + getDescriptor().getMessageType(241); internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_descriptor, @@ -39754,7 +41404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalVpnGateway", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(234); + getDescriptor().getMessageType(242); internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_descriptor, @@ -39762,7 +41412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFirewallRequest_descriptor = - getDescriptor().getMessageType(235); + getDescriptor().getMessageType(243); internal_static_google_cloud_compute_v1_DeleteFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFirewallRequest_descriptor, @@ -39770,7 +41420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Firewall", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(236); + getDescriptor().getMessageType(244); internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_descriptor, @@ -39778,7 +41428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFutureReservationRequest_descriptor = - getDescriptor().getMessageType(237); + getDescriptor().getMessageType(245); internal_static_google_cloud_compute_v1_DeleteFutureReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFutureReservationRequest_descriptor, @@ -39786,7 +41436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FutureReservation", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_descriptor = - getDescriptor().getMessageType(238); + getDescriptor().getMessageType(246); internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_descriptor, @@ -39794,7 +41444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(239); + getDescriptor().getMessageType(247); internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_descriptor, @@ -39802,7 +41452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(240); + getDescriptor().getMessageType(248); internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_descriptor, @@ -39810,7 +41460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_descriptor = - getDescriptor().getMessageType(241); + getDescriptor().getMessageType(249); internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_descriptor, @@ -39818,13 +41468,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_descriptor = - getDescriptor().getMessageType(242); + getDescriptor().getMessageType(250); internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_descriptor = - getDescriptor().getMessageType(243); + getDescriptor().getMessageType(251); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_descriptor, @@ -39832,13 +41482,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "ParentId", }); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_descriptor = - getDescriptor().getMessageType(244); + getDescriptor().getMessageType(252); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(245); + getDescriptor().getMessageType(253); internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -39846,7 +41496,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_descriptor = - getDescriptor().getMessageType(246); + getDescriptor().getMessageType(254); internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_descriptor, @@ -39854,7 +41504,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteImageRequest_descriptor = - getDescriptor().getMessageType(247); + getDescriptor().getMessageType(255); internal_static_google_cloud_compute_v1_DeleteImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteImageRequest_descriptor, @@ -39862,7 +41512,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(248); + getDescriptor().getMessageType(256); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_descriptor, @@ -39870,7 +41520,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageType(249); + getDescriptor().getMessageType(257); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_descriptor, @@ -39878,7 +41528,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(250); + getDescriptor().getMessageType(258); internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_descriptor, @@ -39886,7 +41536,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageType(251); + getDescriptor().getMessageType(259); internal_static_google_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceRequest_descriptor, @@ -39894,7 +41544,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(252); + getDescriptor().getMessageType(260); internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_descriptor, @@ -39902,7 +41552,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(253); + getDescriptor().getMessageType(261); internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_descriptor, @@ -39914,7 +41564,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(254); + getDescriptor().getMessageType(262); internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -39925,8 +41575,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionInstanceGroupManagersDeleteInstancesRequestResource", "RequestId", }); + internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(263); + internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "InstantSnapshotGroup", "Project", "RequestId", "Zone", + }); internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(255); + getDescriptor().getMessageType(264); internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor, @@ -39934,7 +41592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(256); + getDescriptor().getMessageType(265); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentGroupRequest_descriptor, @@ -39942,7 +41600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachmentGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageType(257); + getDescriptor().getMessageType(266); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_descriptor, @@ -39950,7 +41608,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachment", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(258); + getDescriptor().getMessageType(267); internal_static_google_cloud_compute_v1_DeleteInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectGroupRequest_descriptor, @@ -39958,7 +41616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_descriptor = - getDescriptor().getMessageType(259); + getDescriptor().getMessageType(268); internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_descriptor, @@ -39966,7 +41624,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteLicenseRequest_descriptor = - getDescriptor().getMessageType(260); + getDescriptor().getMessageType(269); internal_static_google_cloud_compute_v1_DeleteLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteLicenseRequest_descriptor, @@ -39974,7 +41632,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "License", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_descriptor = - getDescriptor().getMessageType(261); + getDescriptor().getMessageType(270); internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_descriptor, @@ -39982,7 +41640,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineImage", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(262); + getDescriptor().getMessageType(271); internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_descriptor, @@ -39990,7 +41648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachment", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageType(263); + getDescriptor().getMessageType(272); internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_descriptor, @@ -39998,7 +41656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEdgeSecurityService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(264); + getDescriptor().getMessageType(273); internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_descriptor, @@ -40006,7 +41664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(265); + getDescriptor().getMessageType(274); internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_descriptor, @@ -40014,7 +41672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkInterfaceInstanceRequest_descriptor = - getDescriptor().getMessageType(266); + getDescriptor().getMessageType(275); internal_static_google_cloud_compute_v1_DeleteNetworkInterfaceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkInterfaceInstanceRequest_descriptor, @@ -40022,7 +41680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "NetworkInterfaceName", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor = - getDescriptor().getMessageType(267); + getDescriptor().getMessageType(276); internal_static_google_cloud_compute_v1_DeleteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor, @@ -40030,7 +41688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_descriptor = - getDescriptor().getMessageType(268); + getDescriptor().getMessageType(277); internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_descriptor, @@ -40038,7 +41696,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(269); + getDescriptor().getMessageType(278); internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_descriptor, @@ -40046,7 +41704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTemplate", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_descriptor = - getDescriptor().getMessageType(270); + getDescriptor().getMessageType(279); internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_descriptor, @@ -40054,7 +41712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "NodeGroupsDeleteNodesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(271); + getDescriptor().getMessageType(280); internal_static_google_cloud_compute_v1_DeleteOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteOrganizationSecurityPolicyRequest_descriptor, @@ -40062,7 +41720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_descriptor = - getDescriptor().getMessageType(272); + getDescriptor().getMessageType(281); internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_descriptor, @@ -40070,7 +41728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PacketMirroring", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(273); + getDescriptor().getMessageType(282); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -40081,7 +41739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(274); + getDescriptor().getMessageType(283); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -40092,7 +41750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionInstanceGroupManagerDeleteInstanceConfigReqResource", }); internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageType(275); + getDescriptor().getMessageType(284); internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_descriptor, @@ -40100,7 +41758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(276); + getDescriptor().getMessageType(285); internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_descriptor, @@ -40108,15 +41766,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageType(277); + getDescriptor().getMessageType(286); internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor, new java.lang.String[] { "Autoscaler", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(287); + internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "BackendBucket", "Project", "Region", "RequestId", + }); internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(278); + getDescriptor().getMessageType(288); internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor, @@ -40124,7 +41790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionCompositeHealthCheckRequest_descriptor = - getDescriptor().getMessageType(279); + getDescriptor().getMessageType(289); internal_static_google_cloud_compute_v1_DeleteRegionCompositeHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionCompositeHealthCheckRequest_descriptor, @@ -40132,7 +41798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompositeHealthCheck", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_descriptor = - getDescriptor().getMessageType(280); + getDescriptor().getMessageType(290); internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_descriptor, @@ -40140,7 +41806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthAggregationPolicyRequest_descriptor = - getDescriptor().getMessageType(281); + getDescriptor().getMessageType(291); internal_static_google_cloud_compute_v1_DeleteRegionHealthAggregationPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthAggregationPolicyRequest_descriptor, @@ -40148,7 +41814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthAggregationPolicy", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageType(282); + getDescriptor().getMessageType(292); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_descriptor, @@ -40156,7 +41822,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageType(283); + getDescriptor().getMessageType(293); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_descriptor, @@ -40164,7 +41830,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthSourceRequest_descriptor = - getDescriptor().getMessageType(284); + getDescriptor().getMessageType(294); internal_static_google_cloud_compute_v1_DeleteRegionHealthSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthSourceRequest_descriptor, @@ -40172,23 +41838,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthSource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(285); + getDescriptor().getMessageType(295); internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor, new java.lang.String[] { "InstanceGroupManager", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_descriptor = + getDescriptor().getMessageType(296); + internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", "Project", "Region", "RequestId", "ResizeRequest", + }); internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(286); + getDescriptor().getMessageType(297); internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor, new java.lang.String[] { "InstanceTemplate", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(298); + internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "InstantSnapshotGroup", "Project", "Region", "RequestId", + }); internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(287); + getDescriptor().getMessageType(299); internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor, @@ -40196,7 +41878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(288); + getDescriptor().getMessageType(300); internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_descriptor, @@ -40204,7 +41886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(289); + getDescriptor().getMessageType(301); internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_descriptor, @@ -40212,7 +41894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageType(290); + getDescriptor().getMessageType(302); internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_descriptor, @@ -40220,7 +41902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationEndpoint", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_descriptor = - getDescriptor().getMessageType(291); + getDescriptor().getMessageType(303); internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_descriptor, @@ -40228,21 +41910,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_descriptor = - getDescriptor().getMessageType(292); + getDescriptor().getMessageType(304); internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(293); + getDescriptor().getMessageType(305); internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor, new java.lang.String[] { "Project", "Region", "RequestId", "SecurityPolicy", }); + internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(306); + internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RequestId", "Snapshot", + }); internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageType(294); + getDescriptor().getMessageType(307); internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor, @@ -40250,7 +41940,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SslCertificate", }); internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageType(295); + getDescriptor().getMessageType(308); internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_descriptor, @@ -40258,7 +41948,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SslPolicy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(296); + getDescriptor().getMessageType(309); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_descriptor, @@ -40266,7 +41956,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(297); + getDescriptor().getMessageType(310); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_descriptor, @@ -40274,7 +41964,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(298); + getDescriptor().getMessageType(311); internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_descriptor, @@ -40282,7 +41972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_descriptor = - getDescriptor().getMessageType(299); + getDescriptor().getMessageType(312); internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_descriptor, @@ -40290,7 +41980,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageType(300); + getDescriptor().getMessageType(313); internal_static_google_cloud_compute_v1_DeleteReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteReservationRequest_descriptor, @@ -40298,7 +41988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(301); + getDescriptor().getMessageType(314); internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_descriptor, @@ -40306,7 +41996,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_DeleteRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageType(302); + getDescriptor().getMessageType(315); internal_static_google_cloud_compute_v1_DeleteRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRoutePolicyRouterRequest_descriptor, @@ -40314,7 +42004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Policy", "Project", "Region", "RequestId", "Router", }); internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor = - getDescriptor().getMessageType(303); + getDescriptor().getMessageType(316); internal_static_google_cloud_compute_v1_DeleteRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor, @@ -40322,7 +42012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Route", }); internal_static_google_cloud_compute_v1_DeleteRouterRequest_descriptor = - getDescriptor().getMessageType(304); + getDescriptor().getMessageType(317); internal_static_google_cloud_compute_v1_DeleteRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRouterRequest_descriptor, @@ -40330,7 +42020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "Router", }); internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(305); + getDescriptor().getMessageType(318); internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_descriptor, @@ -40338,7 +42028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(306); + getDescriptor().getMessageType(319); internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_descriptor, @@ -40346,7 +42036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "ServiceAttachment", }); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_descriptor = - getDescriptor().getMessageType(307); + getDescriptor().getMessageType(320); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_descriptor, @@ -40354,7 +42044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "KeyName", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_descriptor = - getDescriptor().getMessageType(308); + getDescriptor().getMessageType(321); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_descriptor, @@ -40362,7 +42052,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "KeyName", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageType(309); + getDescriptor().getMessageType(322); internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_descriptor, @@ -40370,7 +42060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Snapshot", }); internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_descriptor = - getDescriptor().getMessageType(310); + getDescriptor().getMessageType(323); internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_descriptor, @@ -40378,7 +42068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SslCertificate", }); internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_descriptor = - getDescriptor().getMessageType(311); + getDescriptor().getMessageType(324); internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_descriptor, @@ -40386,7 +42076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SslPolicy", }); internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_descriptor = - getDescriptor().getMessageType(312); + getDescriptor().getMessageType(325); internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_descriptor, @@ -40394,7 +42084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_descriptor = - getDescriptor().getMessageType(313); + getDescriptor().getMessageType(326); internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_descriptor, @@ -40402,7 +42092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "Subnetwork", }); internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageType(314); + getDescriptor().getMessageType(327); internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_descriptor, @@ -40410,7 +42100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(315); + getDescriptor().getMessageType(328); internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_descriptor, @@ -40418,7 +42108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(316); + getDescriptor().getMessageType(329); internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_descriptor, @@ -40426,7 +42116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_descriptor = - getDescriptor().getMessageType(317); + getDescriptor().getMessageType(330); internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_descriptor, @@ -40434,7 +42124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_descriptor = - getDescriptor().getMessageType(318); + getDescriptor().getMessageType(331); internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_descriptor, @@ -40442,7 +42132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetPool", }); internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(319); + getDescriptor().getMessageType(332); internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_descriptor, @@ -40450,7 +42140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(320); + getDescriptor().getMessageType(333); internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_descriptor, @@ -40458,7 +42148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(321); + getDescriptor().getMessageType(334); internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_descriptor, @@ -40466,7 +42156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor = - getDescriptor().getMessageType(322); + getDescriptor().getMessageType(335); internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor, @@ -40474,7 +42164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(323); + getDescriptor().getMessageType(336); internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_descriptor, @@ -40482,7 +42172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "VpnGateway", }); internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_descriptor = - getDescriptor().getMessageType(324); + getDescriptor().getMessageType(337); internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_descriptor, @@ -40490,7 +42180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "VpnTunnel", }); internal_static_google_cloud_compute_v1_DeleteWireGroupRequest_descriptor = - getDescriptor().getMessageType(325); + getDescriptor().getMessageType(338); internal_static_google_cloud_compute_v1_DeleteWireGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteWireGroupRequest_descriptor, @@ -40498,7 +42188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CrossSiteNetwork", "Project", "RequestId", "WireGroup", }); internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_descriptor = - getDescriptor().getMessageType(326); + getDescriptor().getMessageType(339); internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_descriptor, @@ -40506,12 +42196,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor = - getDescriptor().getMessageType(327); + getDescriptor().getMessageType(340); internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_compute_v1_Denied_descriptor = getDescriptor().getMessageType(328); + internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_descriptor = + getDescriptor().getMessageType(341); + internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_descriptor, + new java.lang.String[] { + "Project", "RequestId", "VmExtensionPolicy", "Zone", + }); + internal_static_google_cloud_compute_v1_Denied_descriptor = getDescriptor().getMessageType(342); internal_static_google_cloud_compute_v1_Denied_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Denied_descriptor, @@ -40519,7 +42217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IPProtocol", "Ports", }); internal_static_google_cloud_compute_v1_DeprecateImageRequest_descriptor = - getDescriptor().getMessageType(329); + getDescriptor().getMessageType(343); internal_static_google_cloud_compute_v1_DeprecateImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeprecateImageRequest_descriptor, @@ -40527,7 +42225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeprecationStatusResource", "Image", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor = - getDescriptor().getMessageType(330); + getDescriptor().getMessageType(344); internal_static_google_cloud_compute_v1_DeprecationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor, @@ -40535,7 +42233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Deleted", "Deprecated", "Obsolete", "Replacement", "State", }); internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_descriptor = - getDescriptor().getMessageType(331); + getDescriptor().getMessageType(345); internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_descriptor, @@ -40543,7 +42241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(332); + getDescriptor().getMessageType(346); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor, @@ -40554,7 +42252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(333); + getDescriptor().getMessageType(347); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_descriptor, @@ -40566,7 +42264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(334); + getDescriptor().getMessageType(348); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor, @@ -40578,7 +42276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_descriptor = - getDescriptor().getMessageType(335); + getDescriptor().getMessageType(349); internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_descriptor, @@ -40586,14 +42284,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_descriptor = - getDescriptor().getMessageType(336); + getDescriptor().getMessageType(350); internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_descriptor, new java.lang.String[] { "Project", "ProjectsDisableXpnResourceRequestResource", "RequestId", }); - internal_static_google_cloud_compute_v1_Disk_descriptor = getDescriptor().getMessageType(337); + internal_static_google_cloud_compute_v1_Disk_descriptor = getDescriptor().getMessageType(351); internal_static_google_cloud_compute_v1_Disk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Disk_descriptor, @@ -40666,7 +42364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskAggregatedList_descriptor = - getDescriptor().getMessageType(338); + getDescriptor().getMessageType(352); internal_static_google_cloud_compute_v1_DiskAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAggregatedList_descriptor, @@ -40682,7 +42380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor = - getDescriptor().getMessageType(339); + getDescriptor().getMessageType(353); internal_static_google_cloud_compute_v1_DiskAsyncReplication_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor, @@ -40690,7 +42388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsistencyGroupPolicy", "ConsistencyGroupPolicyId", "Disk", "DiskId", }); internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor = - getDescriptor().getMessageType(340); + getDescriptor().getMessageType(354); internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor, @@ -40698,7 +42396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsyncReplicationDisk", }); internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor = - getDescriptor().getMessageType(341); + getDescriptor().getMessageType(355); internal_static_google_cloud_compute_v1_DiskInstantiationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor, @@ -40706,7 +42404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoDelete", "CustomImage", "DeviceName", "InstantiateFrom", }); internal_static_google_cloud_compute_v1_DiskList_descriptor = - getDescriptor().getMessageType(342); + getDescriptor().getMessageType(356); internal_static_google_cloud_compute_v1_DiskList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskList_descriptor, @@ -40714,7 +42412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor = - getDescriptor().getMessageType(343); + getDescriptor().getMessageType(357); internal_static_google_cloud_compute_v1_DiskMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor, @@ -40722,7 +42420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationZone", "TargetDisk", }); internal_static_google_cloud_compute_v1_DiskParams_descriptor = - getDescriptor().getMessageType(344); + getDescriptor().getMessageType(358); internal_static_google_cloud_compute_v1_DiskParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskParams_descriptor, @@ -40738,7 +42436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor = - getDescriptor().getMessageType(345); + getDescriptor().getMessageType(359); internal_static_google_cloud_compute_v1_DiskResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor, @@ -40754,7 +42452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor = - getDescriptor().getMessageType(346); + getDescriptor().getMessageType(360); internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor, @@ -40762,7 +42460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", }); internal_static_google_cloud_compute_v1_DiskType_descriptor = - getDescriptor().getMessageType(347); + getDescriptor().getMessageType(361); internal_static_google_cloud_compute_v1_DiskType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskType_descriptor, @@ -40780,7 +42478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor = - getDescriptor().getMessageType(348); + getDescriptor().getMessageType(362); internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor, @@ -40796,7 +42494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskTypeList_descriptor = - getDescriptor().getMessageType(349); + getDescriptor().getMessageType(363); internal_static_google_cloud_compute_v1_DiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypeList_descriptor, @@ -40804,15 +42502,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor = - getDescriptor().getMessageType(350); + getDescriptor().getMessageType(364); internal_static_google_cloud_compute_v1_DiskTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor, new java.lang.String[] { "DiskTypes", "Warning", }); + internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_descriptor = + getDescriptor().getMessageType(365); + internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(351); + getDescriptor().getMessageType(366); internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor, @@ -40820,7 +42526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(352); + getDescriptor().getMessageType(367); internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor, @@ -40828,7 +42534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor = - getDescriptor().getMessageType(353); + getDescriptor().getMessageType(368); internal_static_google_cloud_compute_v1_DisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor, @@ -40836,7 +42542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeGb", }); internal_static_google_cloud_compute_v1_DisksScopedList_descriptor = - getDescriptor().getMessageType(354); + getDescriptor().getMessageType(369); internal_static_google_cloud_compute_v1_DisksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksScopedList_descriptor, @@ -40844,7 +42550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disks", "Warning", }); internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageType(355); + getDescriptor().getMessageType(370); internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor, @@ -40852,7 +42558,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_descriptor = - getDescriptor().getMessageType(356); + getDescriptor().getMessageType(371); internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_descriptor, @@ -40860,7 +42566,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicy", }); internal_static_google_cloud_compute_v1_DisplayDevice_descriptor = - getDescriptor().getMessageType(357); + getDescriptor().getMessageType(372); internal_static_google_cloud_compute_v1_DisplayDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisplayDevice_descriptor, @@ -40868,7 +42574,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableDisplay", }); internal_static_google_cloud_compute_v1_DistributionPolicy_descriptor = - getDescriptor().getMessageType(358); + getDescriptor().getMessageType(373); internal_static_google_cloud_compute_v1_DistributionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DistributionPolicy_descriptor, @@ -40876,7 +42582,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetShape", "Zones", }); internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_descriptor = - getDescriptor().getMessageType(359); + getDescriptor().getMessageType(374); internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_descriptor, @@ -40884,7 +42590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_Duration_descriptor = - getDescriptor().getMessageType(360); + getDescriptor().getMessageType(375); internal_static_google_cloud_compute_v1_Duration_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Duration_descriptor, @@ -40892,7 +42598,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Nanos", "Seconds", }); internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_descriptor = - getDescriptor().getMessageType(361); + getDescriptor().getMessageType(376); internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_descriptor, @@ -40900,14 +42606,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", }); internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_descriptor = - getDescriptor().getMessageType(362); + getDescriptor().getMessageType(377); internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_descriptor, new java.lang.String[] { "Project", "ProjectsEnableXpnResourceRequestResource", "RequestId", }); - internal_static_google_cloud_compute_v1_Error_descriptor = getDescriptor().getMessageType(363); + internal_static_google_cloud_compute_v1_Error_descriptor = getDescriptor().getMessageType(378); internal_static_google_cloud_compute_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Error_descriptor, @@ -40915,7 +42621,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Errors", }); internal_static_google_cloud_compute_v1_ErrorDetails_descriptor = - getDescriptor().getMessageType(364); + getDescriptor().getMessageType(379); internal_static_google_cloud_compute_v1_ErrorDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ErrorDetails_descriptor, @@ -40923,7 +42629,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorInfo", "Help", "LocalizedMessage", "QuotaInfo", }); internal_static_google_cloud_compute_v1_ErrorInfo_descriptor = - getDescriptor().getMessageType(365); + getDescriptor().getMessageType(380); internal_static_google_cloud_compute_v1_ErrorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ErrorInfo_descriptor, @@ -40938,7 +42644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_compute_v1_Errors_descriptor = getDescriptor().getMessageType(366); + internal_static_google_cloud_compute_v1_Errors_descriptor = getDescriptor().getMessageType(381); internal_static_google_cloud_compute_v1_Errors_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Errors_descriptor, @@ -40946,7 +42652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "ErrorDetails", "Location", "Message", }); internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_descriptor = - getDescriptor().getMessageType(367); + getDescriptor().getMessageType(382); internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_descriptor, @@ -40954,7 +42660,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestRange", "Imported", "NextHopRegion", "Priority", "Type", }); internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_descriptor = - getDescriptor().getMessageType(368); + getDescriptor().getMessageType(383); internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_descriptor, @@ -40962,7 +42668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_descriptor = - getDescriptor().getMessageType(369); + getDescriptor().getMessageType(384); internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_descriptor, @@ -40973,7 +42679,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subnetwork", "SubnetworksExpandIpCidrRangeRequestResource", }); - internal_static_google_cloud_compute_v1_Expr_descriptor = getDescriptor().getMessageType(370); + internal_static_google_cloud_compute_v1_Expr_descriptor = getDescriptor().getMessageType(385); internal_static_google_cloud_compute_v1_Expr_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Expr_descriptor, @@ -40981,7 +42687,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "Expression", "Location", "Title", }); internal_static_google_cloud_compute_v1_ExternalVpnGateway_descriptor = - getDescriptor().getMessageType(371); + getDescriptor().getMessageType(386); internal_static_google_cloud_compute_v1_ExternalVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGateway_descriptor, @@ -41007,7 +42713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_descriptor = - getDescriptor().getMessageType(372); + getDescriptor().getMessageType(387); internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_descriptor, @@ -41015,7 +42721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_descriptor = - getDescriptor().getMessageType(373); + getDescriptor().getMessageType(388); internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_descriptor, @@ -41023,7 +42729,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayParams_descriptor = - getDescriptor().getMessageType(374); + getDescriptor().getMessageType(389); internal_static_google_cloud_compute_v1_ExternalVpnGatewayParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayParams_descriptor, @@ -41040,7 +42746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_FileContentBuffer_descriptor = - getDescriptor().getMessageType(375); + getDescriptor().getMessageType(390); internal_static_google_cloud_compute_v1_FileContentBuffer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FileContentBuffer_descriptor, @@ -41048,7 +42754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "FileType", }); internal_static_google_cloud_compute_v1_Firewall_descriptor = - getDescriptor().getMessageType(376); + getDescriptor().getMessageType(391); internal_static_google_cloud_compute_v1_Firewall_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Firewall_descriptor, @@ -41075,7 +42781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetTags", }); internal_static_google_cloud_compute_v1_FirewallList_descriptor = - getDescriptor().getMessageType(377); + getDescriptor().getMessageType(392); internal_static_google_cloud_compute_v1_FirewallList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallList_descriptor, @@ -41083,7 +42789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_FirewallLogConfig_descriptor = - getDescriptor().getMessageType(378); + getDescriptor().getMessageType(393); internal_static_google_cloud_compute_v1_FirewallLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallLogConfig_descriptor, @@ -41091,7 +42797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enable", "Metadata", }); internal_static_google_cloud_compute_v1_FirewallParams_descriptor = - getDescriptor().getMessageType(379); + getDescriptor().getMessageType(394); internal_static_google_cloud_compute_v1_FirewallParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallParams_descriptor, @@ -41107,7 +42813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor = - getDescriptor().getMessageType(380); + getDescriptor().getMessageType(395); internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor, @@ -41115,7 +42821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Associations", "Kind", }); internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor = - getDescriptor().getMessageType(381); + getDescriptor().getMessageType(396); internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor, @@ -41123,7 +42829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicies", "Warning", }); internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageType(382); + getDescriptor().getMessageType(397); internal_static_google_cloud_compute_v1_FirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor, @@ -41147,7 +42853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ShortName", }); internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_descriptor = - getDescriptor().getMessageType(383); + getDescriptor().getMessageType(398); internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_descriptor, @@ -41155,7 +42861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachmentTarget", "DisplayName", "FirewallPolicyId", "Name", "ShortName", }); internal_static_google_cloud_compute_v1_FirewallPolicyList_descriptor = - getDescriptor().getMessageType(384); + getDescriptor().getMessageType(399); internal_static_google_cloud_compute_v1_FirewallPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyList_descriptor, @@ -41163,7 +42869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_FirewallPolicyRule_descriptor = - getDescriptor().getMessageType(385); + getDescriptor().getMessageType(400); internal_static_google_cloud_compute_v1_FirewallPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRule_descriptor, @@ -41185,7 +42891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsInspect", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_descriptor = - getDescriptor().getMessageType(386); + getDescriptor().getMessageType(401); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_descriptor, @@ -41209,7 +42915,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SrcThreatIntelligences", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_descriptor = - getDescriptor().getMessageType(387); + getDescriptor().getMessageType(402); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_descriptor, @@ -41217,7 +42923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpProtocol", "Ports", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_descriptor = - getDescriptor().getMessageType(388); + getDescriptor().getMessageType(403); internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_descriptor, @@ -41225,7 +42931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", }); internal_static_google_cloud_compute_v1_FixedOrPercent_descriptor = - getDescriptor().getMessageType(389); + getDescriptor().getMessageType(404); internal_static_google_cloud_compute_v1_FixedOrPercent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FixedOrPercent_descriptor, @@ -41233,7 +42939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Calculated", "Fixed", "Percent", }); internal_static_google_cloud_compute_v1_FlexibleTimeRange_descriptor = - getDescriptor().getMessageType(390); + getDescriptor().getMessageType(405); internal_static_google_cloud_compute_v1_FlexibleTimeRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FlexibleTimeRange_descriptor, @@ -41241,7 +42947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxDuration", "MinDuration", "StartTimeNotEarlierThan", "StartTimeNotLaterThan", }); internal_static_google_cloud_compute_v1_ForwardingRule_descriptor = - getDescriptor().getMessageType(391); + getDescriptor().getMessageType(406); internal_static_google_cloud_compute_v1_ForwardingRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRule_descriptor, @@ -41294,7 +43000,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor = - getDescriptor().getMessageType(392); + getDescriptor().getMessageType(407); internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor, @@ -41311,7 +43017,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ForwardingRuleList_descriptor = - getDescriptor().getMessageType(393); + getDescriptor().getMessageType(408); internal_static_google_cloud_compute_v1_ForwardingRuleList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleList_descriptor, @@ -41319,7 +43025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ForwardingRuleReference_descriptor = - getDescriptor().getMessageType(394); + getDescriptor().getMessageType(409); internal_static_google_cloud_compute_v1_ForwardingRuleReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleReference_descriptor, @@ -41327,7 +43033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", }); internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_descriptor = - getDescriptor().getMessageType(395); + getDescriptor().getMessageType(410); internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_descriptor, @@ -41335,7 +43041,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Namespace", "Service", "ServiceDirectoryRegion", }); internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_descriptor = - getDescriptor().getMessageType(396); + getDescriptor().getMessageType(411); internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_descriptor, @@ -41343,7 +43049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRules", "Warning", }); internal_static_google_cloud_compute_v1_FutureReservation_descriptor = - getDescriptor().getMessageType(397); + getDescriptor().getMessageType(412); internal_static_google_cloud_compute_v1_FutureReservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservation_descriptor, @@ -41353,6 +43059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoCreatedReservationsDuration", "AutoDeleteAutoCreatedReservations", "CommitmentInfo", + "ConfidentialComputeType", "CreationTimestamp", "DeploymentType", "Description", @@ -41361,6 +43068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", "Name", "NamePrefix", + "Params", "PlanningStatus", "ReservationMode", "ReservationName", @@ -41375,15 +43083,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_FutureReservationCommitmentInfo_descriptor = - getDescriptor().getMessageType(398); + getDescriptor().getMessageType(413); internal_static_google_cloud_compute_v1_FutureReservationCommitmentInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationCommitmentInfo_descriptor, new java.lang.String[] { "CommitmentName", "CommitmentPlan", "PreviousCommitmentTerms", }); + internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor = + getDescriptor().getMessageType(414); + internal_static_google_cloud_compute_v1_FutureReservationParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor, + new java.lang.String[] { + "ResourceManagerTags", + }); + internal_static_google_cloud_compute_v1_FutureReservationParams_ResourceManagerTagsEntry_descriptor = + internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor.getNestedType(0); + internal_static_google_cloud_compute_v1_FutureReservationParams_ResourceManagerTagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_FutureReservationParams_ResourceManagerTagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_compute_v1_FutureReservationSpecificSKUProperties_descriptor = - getDescriptor().getMessageType(399); + getDescriptor().getMessageType(415); internal_static_google_cloud_compute_v1_FutureReservationSpecificSKUProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationSpecificSKUProperties_descriptor, @@ -41391,7 +43115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceProperties", "SourceInstanceTemplate", "TotalCount", }); internal_static_google_cloud_compute_v1_FutureReservationStatus_descriptor = - getDescriptor().getMessageType(400); + getDescriptor().getMessageType(416); internal_static_google_cloud_compute_v1_FutureReservationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationStatus_descriptor, @@ -41406,7 +43130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpecificSkuProperties", }); internal_static_google_cloud_compute_v1_FutureReservationStatusExistingMatchingUsageInfo_descriptor = - getDescriptor().getMessageType(401); + getDescriptor().getMessageType(417); internal_static_google_cloud_compute_v1_FutureReservationStatusExistingMatchingUsageInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationStatusExistingMatchingUsageInfo_descriptor, @@ -41414,7 +43138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Count", "Timestamp", }); internal_static_google_cloud_compute_v1_FutureReservationStatusLastKnownGoodState_descriptor = - getDescriptor().getMessageType(402); + getDescriptor().getMessageType(418); internal_static_google_cloud_compute_v1_FutureReservationStatusLastKnownGoodState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationStatusLastKnownGoodState_descriptor, @@ -41427,7 +43151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProcurementStatus", }); internal_static_google_cloud_compute_v1_FutureReservationStatusLastKnownGoodStateFutureReservationSpecs_descriptor = - getDescriptor().getMessageType(403); + getDescriptor().getMessageType(419); internal_static_google_cloud_compute_v1_FutureReservationStatusLastKnownGoodStateFutureReservationSpecs_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationStatusLastKnownGoodStateFutureReservationSpecs_descriptor, @@ -41435,7 +43159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ShareSettings", "SpecificSkuProperties", "TimeWindow", }); internal_static_google_cloud_compute_v1_FutureReservationStatusSpecificSKUProperties_descriptor = - getDescriptor().getMessageType(404); + getDescriptor().getMessageType(420); internal_static_google_cloud_compute_v1_FutureReservationStatusSpecificSKUProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationStatusSpecificSKUProperties_descriptor, @@ -41443,7 +43167,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceInstanceTemplateId", }); internal_static_google_cloud_compute_v1_FutureReservationTimeWindow_descriptor = - getDescriptor().getMessageType(405); + getDescriptor().getMessageType(421); internal_static_google_cloud_compute_v1_FutureReservationTimeWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationTimeWindow_descriptor, @@ -41451,7 +43175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Duration", "EndTime", "StartTime", }); internal_static_google_cloud_compute_v1_FutureReservationsAggregatedListResponse_descriptor = - getDescriptor().getMessageType(406); + getDescriptor().getMessageType(422); internal_static_google_cloud_compute_v1_FutureReservationsAggregatedListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationsAggregatedListResponse_descriptor, @@ -41468,7 +43192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_FutureReservationsListResponse_descriptor = - getDescriptor().getMessageType(407); + getDescriptor().getMessageType(423); internal_static_google_cloud_compute_v1_FutureReservationsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationsListResponse_descriptor, @@ -41476,7 +43200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_FutureReservationsScopedList_descriptor = - getDescriptor().getMessageType(408); + getDescriptor().getMessageType(424); internal_static_google_cloud_compute_v1_FutureReservationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureReservationsScopedList_descriptor, @@ -41484,7 +43208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FutureReservations", "Warning", }); internal_static_google_cloud_compute_v1_FutureResourcesRecommendation_descriptor = - getDescriptor().getMessageType(409); + getDescriptor().getMessageType(425); internal_static_google_cloud_compute_v1_FutureResourcesRecommendation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesRecommendation_descriptor, @@ -41506,7 +43230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_FutureResourcesRecommendationOtherLocation_descriptor = - getDescriptor().getMessageType(410); + getDescriptor().getMessageType(426); internal_static_google_cloud_compute_v1_FutureResourcesRecommendationOtherLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesRecommendationOtherLocation_descriptor, @@ -41514,7 +43238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", "Status", }); internal_static_google_cloud_compute_v1_FutureResourcesSpec_descriptor = - getDescriptor().getMessageType(411); + getDescriptor().getMessageType(427); internal_static_google_cloud_compute_v1_FutureResourcesSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpec_descriptor, @@ -41522,7 +43246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeploymentType", "LocationPolicy", "TargetResources", "TimeRangeSpec", }); internal_static_google_cloud_compute_v1_FutureResourcesSpecAggregateResources_descriptor = - getDescriptor().getMessageType(412); + getDescriptor().getMessageType(428); internal_static_google_cloud_compute_v1_FutureResourcesSpecAggregateResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpecAggregateResources_descriptor, @@ -41530,7 +43254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorCount", "VmFamily", "WorkloadType", }); internal_static_google_cloud_compute_v1_FutureResourcesSpecLocalSsdPartition_descriptor = - getDescriptor().getMessageType(413); + getDescriptor().getMessageType(429); internal_static_google_cloud_compute_v1_FutureResourcesSpecLocalSsdPartition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpecLocalSsdPartition_descriptor, @@ -41538,7 +43262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskInterface", "DiskSizeGb", }); internal_static_google_cloud_compute_v1_FutureResourcesSpecLocationPolicy_descriptor = - getDescriptor().getMessageType(414); + getDescriptor().getMessageType(430); internal_static_google_cloud_compute_v1_FutureResourcesSpecLocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpecLocationPolicy_descriptor, @@ -41555,7 +43279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_FutureResourcesSpecLocationPolicyLocation_descriptor = - getDescriptor().getMessageType(415); + getDescriptor().getMessageType(431); internal_static_google_cloud_compute_v1_FutureResourcesSpecLocationPolicyLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpecLocationPolicyLocation_descriptor, @@ -41563,7 +43287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Preference", }); internal_static_google_cloud_compute_v1_FutureResourcesSpecSpecificSKUResources_descriptor = - getDescriptor().getMessageType(416); + getDescriptor().getMessageType(432); internal_static_google_cloud_compute_v1_FutureResourcesSpecSpecificSKUResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpecSpecificSKUResources_descriptor, @@ -41571,7 +43295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceCount", "LocalSsdPartitions", "MachineType", }); internal_static_google_cloud_compute_v1_FutureResourcesSpecTargetResources_descriptor = - getDescriptor().getMessageType(417); + getDescriptor().getMessageType(433); internal_static_google_cloud_compute_v1_FutureResourcesSpecTargetResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_FutureResourcesSpecTargetResources_descriptor, @@ -41579,7 +43303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AggregateResources", "SpecificSkuResources", }); internal_static_google_cloud_compute_v1_GRPCHealthCheck_descriptor = - getDescriptor().getMessageType(418); + getDescriptor().getMessageType(434); internal_static_google_cloud_compute_v1_GRPCHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GRPCHealthCheck_descriptor, @@ -41587,7 +43311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GrpcServiceName", "Port", "PortName", "PortSpecification", }); internal_static_google_cloud_compute_v1_GRPCTLSHealthCheck_descriptor = - getDescriptor().getMessageType(419); + getDescriptor().getMessageType(435); internal_static_google_cloud_compute_v1_GRPCTLSHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GRPCTLSHealthCheck_descriptor, @@ -41595,7 +43319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GrpcServiceName", "Port", "PortSpecification", }); internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_descriptor = - getDescriptor().getMessageType(420); + getDescriptor().getMessageType(436); internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_descriptor, @@ -41603,7 +43327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetAddressRequest_descriptor = - getDescriptor().getMessageType(421); + getDescriptor().getMessageType(437); internal_static_google_cloud_compute_v1_GetAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAddressRequest_descriptor, @@ -41611,7 +43335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(422); + getDescriptor().getMessageType(438); internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_descriptor, @@ -41619,7 +43343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", }); internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(423); + getDescriptor().getMessageType(439); internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_descriptor, @@ -41627,7 +43351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", "Project", }); internal_static_google_cloud_compute_v1_GetAssociationOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(424); + getDescriptor().getMessageType(440); internal_static_google_cloud_compute_v1_GetAssociationOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationOrganizationSecurityPolicyRequest_descriptor, @@ -41635,7 +43359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(425); + getDescriptor().getMessageType(441); internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -41643,7 +43367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetAutoscalerRequest_descriptor = - getDescriptor().getMessageType(426); + getDescriptor().getMessageType(442); internal_static_google_cloud_compute_v1_GetAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAutoscalerRequest_descriptor, @@ -41651,15 +43375,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetBackendBucketRequest_descriptor = - getDescriptor().getMessageType(427); + getDescriptor().getMessageType(443); internal_static_google_cloud_compute_v1_GetBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetBackendBucketRequest_descriptor, new java.lang.String[] { "BackendBucket", "Project", }); + _clinit_autosplit_dinit_1(); + } + + private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetBackendServiceRequest_descriptor = - getDescriptor().getMessageType(428); + getDescriptor().getMessageType(444); internal_static_google_cloud_compute_v1_GetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetBackendServiceRequest_descriptor, @@ -41667,7 +43395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", }); internal_static_google_cloud_compute_v1_GetCrossSiteNetworkRequest_descriptor = - getDescriptor().getMessageType(429); + getDescriptor().getMessageType(445); internal_static_google_cloud_compute_v1_GetCrossSiteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetCrossSiteNetworkRequest_descriptor, @@ -41675,7 +43403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CrossSiteNetwork", "Project", }); internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_descriptor = - getDescriptor().getMessageType(430); + getDescriptor().getMessageType(446); internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_descriptor, @@ -41683,7 +43411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetDiskRequest_descriptor = - getDescriptor().getMessageType(431); + getDescriptor().getMessageType(447); internal_static_google_cloud_compute_v1_GetDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiskRequest_descriptor, @@ -41691,7 +43419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetDiskTypeRequest_descriptor = - getDescriptor().getMessageType(432); + getDescriptor().getMessageType(448); internal_static_google_cloud_compute_v1_GetDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiskTypeRequest_descriptor, @@ -41699,7 +43427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_descriptor = - getDescriptor().getMessageType(433); + getDescriptor().getMessageType(449); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_descriptor, @@ -41707,7 +43435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "NetworkInterface", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_descriptor = - getDescriptor().getMessageType(434); + getDescriptor().getMessageType(450); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_descriptor, @@ -41715,7 +43443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(435); + getDescriptor().getMessageType(451); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_descriptor, @@ -41723,7 +43451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetEffectiveSecurityPoliciesBackendServiceRequest_descriptor = - getDescriptor().getMessageType(436); + getDescriptor().getMessageType(452); internal_static_google_cloud_compute_v1_GetEffectiveSecurityPoliciesBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveSecurityPoliciesBackendServiceRequest_descriptor, @@ -41731,13 +43459,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", }); internal_static_google_cloud_compute_v1_GetEffectiveSecurityPoliciesBackendServiceResponse_descriptor = - getDescriptor().getMessageType(437); + getDescriptor().getMessageType(453); internal_static_google_cloud_compute_v1_GetEffectiveSecurityPoliciesBackendServiceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveSecurityPoliciesBackendServiceResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(438); + getDescriptor().getMessageType(454); internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_descriptor, @@ -41745,7 +43473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalVpnGateway", "Project", }); internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(439); + getDescriptor().getMessageType(455); internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_descriptor, @@ -41753,7 +43481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", }); internal_static_google_cloud_compute_v1_GetFirewallRequest_descriptor = - getDescriptor().getMessageType(440); + getDescriptor().getMessageType(456); internal_static_google_cloud_compute_v1_GetFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFirewallRequest_descriptor, @@ -41761,7 +43489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Firewall", "Project", }); internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(441); + getDescriptor().getMessageType(457); internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_descriptor, @@ -41769,7 +43497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor = - getDescriptor().getMessageType(442); + getDescriptor().getMessageType(458); internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor, @@ -41777,7 +43505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Family", "Project", }); internal_static_google_cloud_compute_v1_GetFutureReservationRequest_descriptor = - getDescriptor().getMessageType(443); + getDescriptor().getMessageType(459); internal_static_google_cloud_compute_v1_GetFutureReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFutureReservationRequest_descriptor, @@ -41785,7 +43513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FutureReservation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor = - getDescriptor().getMessageType(444); + getDescriptor().getMessageType(460); internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor, @@ -41793,7 +43521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(445); + getDescriptor().getMessageType(461); internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor, @@ -41801,7 +43529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(446); + getDescriptor().getMessageType(462); internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor, @@ -41809,7 +43537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor = - getDescriptor().getMessageType(447); + getDescriptor().getMessageType(463); internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor, @@ -41817,7 +43545,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_descriptor = - getDescriptor().getMessageType(448); + getDescriptor().getMessageType(464); internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_descriptor, @@ -41825,7 +43553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "ParentId", }); internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(449); + getDescriptor().getMessageType(465); internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -41833,19 +43561,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", }); internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_descriptor = - getDescriptor().getMessageType(450); + getDescriptor().getMessageType(466); internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_descriptor, new java.lang.String[] { "Instance", "Project", "QueryPath", "VariableKey", "Zone", }); - _clinit_autosplit_dinit_1(); - } - - private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_descriptor = - getDescriptor().getMessageType(451); + getDescriptor().getMessageType(467); internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_descriptor, @@ -41853,7 +43577,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendService", "Project", "ResourceGroupReferenceResource", }); internal_static_google_cloud_compute_v1_GetHealthCheckRequest_descriptor = - getDescriptor().getMessageType(452); + getDescriptor().getMessageType(468); internal_static_google_cloud_compute_v1_GetHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthCheckRequest_descriptor, @@ -41861,15 +43585,31 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", "Project", }); internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(453); + getDescriptor().getMessageType(469); internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor, new java.lang.String[] { "BackendService", "Project", "Region", "ResourceGroupReferenceResource", }); + internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_descriptor = + getDescriptor().getMessageType(470); + internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_descriptor, + new java.lang.String[] { + "CompositeHealthCheck", "Project", "Region", + }); + internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_descriptor = + getDescriptor().getMessageType(471); + internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_descriptor, + new java.lang.String[] { + "HealthSource", "Project", "Region", + }); internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor = - getDescriptor().getMessageType(454); + getDescriptor().getMessageType(472); internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor, @@ -41877,7 +43617,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceReferenceResource", "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageType(455); + getDescriptor().getMessageType(473); internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_descriptor, @@ -41885,7 +43625,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageType(456); + getDescriptor().getMessageType(474); internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_descriptor, @@ -41893,7 +43633,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageType(457); + getDescriptor().getMessageType(475); internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_descriptor, @@ -41901,7 +43641,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(458); + getDescriptor().getMessageType(476); internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_descriptor, @@ -41909,7 +43649,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageType(459); + getDescriptor().getMessageType(477); internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_descriptor, @@ -41917,7 +43657,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageType(460); + getDescriptor().getMessageType(478); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_descriptor, @@ -41925,15 +43665,23 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(461); + getDescriptor().getMessageType(479); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor, new java.lang.String[] { "OptionsRequestedPolicyVersion", "Project", "Resource", }); + internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(480); + internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", + }); internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(462); + getDescriptor().getMessageType(481); internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor, @@ -41941,7 +43689,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(463); + getDescriptor().getMessageType(482); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectAttachmentGroupRequest_descriptor, @@ -41949,7 +43697,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(464); + getDescriptor().getMessageType(483); internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInterconnectGroupRequest_descriptor, @@ -41957,7 +43705,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageType(465); + getDescriptor().getMessageType(484); internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_descriptor, @@ -41965,7 +43713,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageType(466); + getDescriptor().getMessageType(485); internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_descriptor, @@ -41973,7 +43721,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(467); + getDescriptor().getMessageType(486); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_descriptor, @@ -41981,7 +43729,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(468); + getDescriptor().getMessageType(487); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -41989,7 +43737,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageType(469); + getDescriptor().getMessageType(488); internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_descriptor, @@ -41997,15 +43745,23 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(470); + getDescriptor().getMessageType(489); internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor, new java.lang.String[] { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); + internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(490); + internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", + }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(471); + getDescriptor().getMessageType(491); internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor, @@ -42013,15 +43769,23 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageType(472); + getDescriptor().getMessageType(492); internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor, new java.lang.String[] { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); + internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(493); + internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", + }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(473); + getDescriptor().getMessageType(494); internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -42029,15 +43793,23 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(474); + getDescriptor().getMessageType(495); internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, new java.lang.String[] { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); + internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(496); + internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", + }); internal_static_google_cloud_compute_v1_GetIamPolicyReservationBlockRequest_descriptor = - getDescriptor().getMessageType(475); + getDescriptor().getMessageType(497); internal_static_google_cloud_compute_v1_GetIamPolicyReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyReservationBlockRequest_descriptor, @@ -42045,7 +43817,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "ParentResource", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageType(476); + getDescriptor().getMessageType(498); internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_descriptor, @@ -42053,7 +43825,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(477); + getDescriptor().getMessageType(499); internal_static_google_cloud_compute_v1_GetIamPolicyReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyReservationSubBlockRequest_descriptor, @@ -42061,7 +43833,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "ParentResource", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(478); + getDescriptor().getMessageType(500); internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_descriptor, @@ -42069,7 +43841,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(479); + getDescriptor().getMessageType(501); internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_descriptor, @@ -42077,7 +43849,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageType(480); + getDescriptor().getMessageType(502); internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_descriptor, @@ -42085,7 +43857,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageType(481); + getDescriptor().getMessageType(503); internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_descriptor, @@ -42093,7 +43865,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageType(482); + getDescriptor().getMessageType(504); internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_descriptor, @@ -42101,7 +43873,7 @@ private static void _clinit_autosplit_dinit_1() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_descriptor = - getDescriptor().getMessageType(483); + getDescriptor().getMessageType(505); internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_descriptor, @@ -42109,7 +43881,7 @@ private static void _clinit_autosplit_dinit_1() { "Family", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetImageRequest_descriptor = - getDescriptor().getMessageType(484); + getDescriptor().getMessageType(506); internal_static_google_cloud_compute_v1_GetImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetImageRequest_descriptor, @@ -42117,7 +43889,7 @@ private static void _clinit_autosplit_dinit_1() { "Image", "Project", }); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(485); + getDescriptor().getMessageType(507); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_descriptor, @@ -42125,7 +43897,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManager", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageType(486); + getDescriptor().getMessageType(508); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_descriptor, @@ -42133,7 +43905,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManager", "Project", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(487); + getDescriptor().getMessageType(509); internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_descriptor, @@ -42141,7 +43913,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageType(488); + getDescriptor().getMessageType(510); internal_static_google_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceRequest_descriptor, @@ -42149,7 +43921,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_descriptor = - getDescriptor().getMessageType(489); + getDescriptor().getMessageType(511); internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_descriptor, @@ -42157,15 +43929,23 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(490); + getDescriptor().getMessageType(512); internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor, new java.lang.String[] { "InstanceTemplate", "Project", }); + internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(513); + internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "InstantSnapshotGroup", "Project", "Zone", + }); internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(491); + getDescriptor().getMessageType(514); internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor, @@ -42173,7 +43953,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshot", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(492); + getDescriptor().getMessageType(515); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectAttachmentGroupRequest_descriptor, @@ -42181,7 +43961,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentGroup", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageType(493); + getDescriptor().getMessageType(516); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_descriptor, @@ -42189,7 +43969,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(494); + getDescriptor().getMessageType(517); internal_static_google_cloud_compute_v1_GetInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectGroupRequest_descriptor, @@ -42197,7 +43977,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectGroup", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor = - getDescriptor().getMessageType(495); + getDescriptor().getMessageType(518); internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor, @@ -42205,7 +43985,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectLocation", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_descriptor = - getDescriptor().getMessageType(496); + getDescriptor().getMessageType(519); internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_descriptor, @@ -42213,7 +43993,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectRemoteLocation", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectRequest_descriptor = - getDescriptor().getMessageType(497); + getDescriptor().getMessageType(520); internal_static_google_cloud_compute_v1_GetInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectRequest_descriptor, @@ -42221,7 +44001,7 @@ private static void _clinit_autosplit_dinit_1() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_descriptor = - getDescriptor().getMessageType(498); + getDescriptor().getMessageType(521); internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_descriptor, @@ -42229,7 +44009,7 @@ private static void _clinit_autosplit_dinit_1() { "LicenseCode", "Project", }); internal_static_google_cloud_compute_v1_GetLicenseRequest_descriptor = - getDescriptor().getMessageType(499); + getDescriptor().getMessageType(522); internal_static_google_cloud_compute_v1_GetLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetLicenseRequest_descriptor, @@ -42237,7 +44017,7 @@ private static void _clinit_autosplit_dinit_1() { "License", "Project", }); internal_static_google_cloud_compute_v1_GetMachineImageRequest_descriptor = - getDescriptor().getMessageType(500); + getDescriptor().getMessageType(523); internal_static_google_cloud_compute_v1_GetMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMachineImageRequest_descriptor, @@ -42245,7 +44025,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineImage", "Project", }); internal_static_google_cloud_compute_v1_GetMachineTypeRequest_descriptor = - getDescriptor().getMessageType(501); + getDescriptor().getMessageType(524); internal_static_google_cloud_compute_v1_GetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMachineTypeRequest_descriptor, @@ -42253,7 +44033,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_descriptor = - getDescriptor().getMessageType(502); + getDescriptor().getMessageType(525); internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_descriptor, @@ -42261,7 +44041,7 @@ private static void _clinit_autosplit_dinit_1() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_descriptor = - getDescriptor().getMessageType(503); + getDescriptor().getMessageType(526); internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_descriptor, @@ -42269,7 +44049,7 @@ private static void _clinit_autosplit_dinit_1() { "NatName", "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_descriptor = - getDescriptor().getMessageType(504); + getDescriptor().getMessageType(527); internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_descriptor, @@ -42285,7 +44065,7 @@ private static void _clinit_autosplit_dinit_1() { "Router", }); internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(505); + getDescriptor().getMessageType(528); internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_descriptor, @@ -42293,7 +44073,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageType(506); + getDescriptor().getMessageType(529); internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_descriptor, @@ -42301,7 +44081,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEdgeSecurityService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(507); + getDescriptor().getMessageType(530); internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_descriptor, @@ -42309,7 +44089,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(508); + getDescriptor().getMessageType(531); internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor, @@ -42317,7 +44097,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Project", }); internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor = - getDescriptor().getMessageType(509); + getDescriptor().getMessageType(532); internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor, @@ -42325,7 +44105,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkProfile", "Project", }); internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor = - getDescriptor().getMessageType(510); + getDescriptor().getMessageType(533); internal_static_google_cloud_compute_v1_GetNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor, @@ -42333,7 +44113,7 @@ private static void _clinit_autosplit_dinit_1() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor = - getDescriptor().getMessageType(511); + getDescriptor().getMessageType(534); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor, @@ -42341,7 +44121,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(512); + getDescriptor().getMessageType(535); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor, @@ -42349,7 +44129,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor = - getDescriptor().getMessageType(513); + getDescriptor().getMessageType(536); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor, @@ -42357,7 +44137,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(514); + getDescriptor().getMessageType(537); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectAttachmentGroupRequest_descriptor, @@ -42365,7 +44145,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentGroup", "Project", }); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(515); + getDescriptor().getMessageType(538); internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetOperationalStatusInterconnectGroupRequest_descriptor, @@ -42373,7 +44153,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectGroup", "Project", }); internal_static_google_cloud_compute_v1_GetOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(516); + getDescriptor().getMessageType(539); internal_static_google_cloud_compute_v1_GetOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetOrganizationSecurityPolicyRequest_descriptor, @@ -42381,7 +44161,7 @@ private static void _clinit_autosplit_dinit_1() { "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor = - getDescriptor().getMessageType(517); + getDescriptor().getMessageType(540); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor, @@ -42389,7 +44169,7 @@ private static void _clinit_autosplit_dinit_1() { "PacketMirroring", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(518); + getDescriptor().getMessageType(541); internal_static_google_cloud_compute_v1_GetPacketMirroringRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor, @@ -42397,7 +44177,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", "Project", }); internal_static_google_cloud_compute_v1_GetPreviewFeatureRequest_descriptor = - getDescriptor().getMessageType(519); + getDescriptor().getMessageType(542); internal_static_google_cloud_compute_v1_GetPreviewFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPreviewFeatureRequest_descriptor, @@ -42405,7 +44185,7 @@ private static void _clinit_autosplit_dinit_1() { "PreviewFeature", "Project", }); internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor = - getDescriptor().getMessageType(520); + getDescriptor().getMessageType(543); internal_static_google_cloud_compute_v1_GetProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor, @@ -42413,7 +44193,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageType(521); + getDescriptor().getMessageType(544); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor, @@ -42421,7 +44201,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicAdvertisedPrefix", }); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(522); + getDescriptor().getMessageType(545); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor, @@ -42429,15 +44209,23 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefix", "Region", }); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageType(523); + getDescriptor().getMessageType(546); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor, new java.lang.String[] { "Autoscaler", "Project", "Region", }); + internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(547); + internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "BackendBucket", "Project", "Region", + }); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(524); + getDescriptor().getMessageType(548); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor, @@ -42445,7 +44233,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor = - getDescriptor().getMessageType(525); + getDescriptor().getMessageType(549); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor, @@ -42453,7 +44241,7 @@ private static void _clinit_autosplit_dinit_1() { "Commitment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionCompositeHealthCheckRequest_descriptor = - getDescriptor().getMessageType(526); + getDescriptor().getMessageType(550); internal_static_google_cloud_compute_v1_GetRegionCompositeHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionCompositeHealthCheckRequest_descriptor, @@ -42461,7 +44249,7 @@ private static void _clinit_autosplit_dinit_1() { "CompositeHealthCheck", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor = - getDescriptor().getMessageType(527); + getDescriptor().getMessageType(551); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor, @@ -42469,7 +44257,7 @@ private static void _clinit_autosplit_dinit_1() { "Disk", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor = - getDescriptor().getMessageType(528); + getDescriptor().getMessageType(552); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor, @@ -42477,7 +44265,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskType", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthAggregationPolicyRequest_descriptor = - getDescriptor().getMessageType(529); + getDescriptor().getMessageType(553); internal_static_google_cloud_compute_v1_GetRegionHealthAggregationPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthAggregationPolicyRequest_descriptor, @@ -42485,7 +44273,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthAggregationPolicy", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageType(530); + getDescriptor().getMessageType(554); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor, @@ -42493,7 +44281,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageType(531); + getDescriptor().getMessageType(555); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor, @@ -42501,7 +44289,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthSourceRequest_descriptor = - getDescriptor().getMessageType(532); + getDescriptor().getMessageType(556); internal_static_google_cloud_compute_v1_GetRegionHealthSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthSourceRequest_descriptor, @@ -42509,15 +44297,23 @@ private static void _clinit_autosplit_dinit_1() { "HealthSource", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(533); + getDescriptor().getMessageType(557); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor, new java.lang.String[] { "InstanceGroupManager", "Project", "Region", }); + internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_descriptor = + getDescriptor().getMessageType(558); + internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", "Project", "Region", "ResizeRequest", + }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(534); + getDescriptor().getMessageType(559); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor, @@ -42525,15 +44321,23 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(535); + getDescriptor().getMessageType(560); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor, new java.lang.String[] { "InstanceTemplate", "Project", "Region", }); + internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(561); + internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "InstantSnapshotGroup", "Project", "Region", + }); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(536); + getDescriptor().getMessageType(562); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor, @@ -42541,7 +44345,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshot", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(537); + getDescriptor().getMessageType(563); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor, @@ -42549,7 +44353,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(538); + getDescriptor().getMessageType(564); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor, @@ -42557,7 +44361,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageType(539); + getDescriptor().getMessageType(565); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor, @@ -42565,7 +44369,7 @@ private static void _clinit_autosplit_dinit_1() { "NotificationEndpoint", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor = - getDescriptor().getMessageType(540); + getDescriptor().getMessageType(566); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor, @@ -42573,7 +44377,7 @@ private static void _clinit_autosplit_dinit_1() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor = - getDescriptor().getMessageType(541); + getDescriptor().getMessageType(567); internal_static_google_cloud_compute_v1_GetRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor, @@ -42581,15 +44385,31 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(542); + getDescriptor().getMessageType(568); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor, new java.lang.String[] { "Project", "Region", "SecurityPolicy", }); + internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(569); + internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "Snapshot", + }); + internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_descriptor = + getDescriptor().getMessageType(570); + internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_descriptor, + new java.lang.String[] { + "Project", "Region", + }); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageType(543); + getDescriptor().getMessageType(571); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor, @@ -42597,7 +44417,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageType(544); + getDescriptor().getMessageType(572); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor, @@ -42605,7 +44425,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(545); + getDescriptor().getMessageType(573); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor, @@ -42613,7 +44433,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(546); + getDescriptor().getMessageType(574); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor, @@ -42621,7 +44441,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(547); + getDescriptor().getMessageType(575); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor, @@ -42629,7 +44449,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor = - getDescriptor().getMessageType(548); + getDescriptor().getMessageType(576); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor, @@ -42637,7 +44457,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "UrlMap", }); internal_static_google_cloud_compute_v1_GetReservationBlockRequest_descriptor = - getDescriptor().getMessageType(549); + getDescriptor().getMessageType(577); internal_static_google_cloud_compute_v1_GetReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationBlockRequest_descriptor, @@ -42645,7 +44465,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Reservation", "ReservationBlock", "View", "Zone", }); internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageType(550); + getDescriptor().getMessageType(578); internal_static_google_cloud_compute_v1_GetReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor, @@ -42653,7 +44473,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_GetReservationSlotRequest_descriptor = - getDescriptor().getMessageType(551); + getDescriptor().getMessageType(579); internal_static_google_cloud_compute_v1_GetReservationSlotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationSlotRequest_descriptor, @@ -42661,7 +44481,7 @@ private static void _clinit_autosplit_dinit_1() { "ParentName", "Project", "ReservationSlot", "Zone", }); internal_static_google_cloud_compute_v1_GetReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(552); + getDescriptor().getMessageType(580); internal_static_google_cloud_compute_v1_GetReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationSubBlockRequest_descriptor, @@ -42669,7 +44489,7 @@ private static void _clinit_autosplit_dinit_1() { "ParentName", "Project", "ReservationSubBlock", "View", "Zone", }); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(553); + getDescriptor().getMessageType(581); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor, @@ -42677,7 +44497,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_GetRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageType(554); + getDescriptor().getMessageType(582); internal_static_google_cloud_compute_v1_GetRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRoutePolicyRouterRequest_descriptor, @@ -42685,7 +44505,7 @@ private static void _clinit_autosplit_dinit_1() { "Policy", "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageType(555); + getDescriptor().getMessageType(583); internal_static_google_cloud_compute_v1_GetRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor, @@ -42693,7 +44513,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Route", }); internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor = - getDescriptor().getMessageType(556); + getDescriptor().getMessageType(584); internal_static_google_cloud_compute_v1_GetRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor, @@ -42701,7 +44521,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor = - getDescriptor().getMessageType(557); + getDescriptor().getMessageType(585); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor, @@ -42709,7 +44529,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(558); + getDescriptor().getMessageType(586); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor, @@ -42717,7 +44537,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", }); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(559); + getDescriptor().getMessageType(587); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor, @@ -42725,7 +44545,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", "Project", }); internal_static_google_cloud_compute_v1_GetRuleOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(560); + getDescriptor().getMessageType(588); internal_static_google_cloud_compute_v1_GetRuleOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleOrganizationSecurityPolicyRequest_descriptor, @@ -42733,7 +44553,7 @@ private static void _clinit_autosplit_dinit_1() { "Priority", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(561); + getDescriptor().getMessageType(589); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -42741,7 +44561,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "Priority", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(562); + getDescriptor().getMessageType(590); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor, @@ -42749,7 +44569,7 @@ private static void _clinit_autosplit_dinit_1() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(563); + getDescriptor().getMessageType(591); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor, @@ -42757,7 +44577,7 @@ private static void _clinit_autosplit_dinit_1() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor = - getDescriptor().getMessageType(564); + getDescriptor().getMessageType(592); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor, @@ -42765,7 +44585,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(565); + getDescriptor().getMessageType(593); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor, @@ -42773,7 +44593,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor = - getDescriptor().getMessageType(566); + getDescriptor().getMessageType(594); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor, @@ -42781,7 +44601,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Port", "Project", "Start", "Zone", }); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(567); + getDescriptor().getMessageType(595); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor, @@ -42789,7 +44609,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "ServiceAttachment", "ShowNatIps", }); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor = - getDescriptor().getMessageType(568); + getDescriptor().getMessageType(596); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor, @@ -42797,7 +44617,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageType(569); + getDescriptor().getMessageType(597); internal_static_google_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor, @@ -42805,7 +44625,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Snapshot", }); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor = - getDescriptor().getMessageType(570); + getDescriptor().getMessageType(598); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor, @@ -42813,7 +44633,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor = - getDescriptor().getMessageType(571); + getDescriptor().getMessageType(599); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor, @@ -42821,7 +44641,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor = - getDescriptor().getMessageType(572); + getDescriptor().getMessageType(600); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor, @@ -42829,7 +44649,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(573); + getDescriptor().getMessageType(601); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor, @@ -42837,7 +44657,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor = - getDescriptor().getMessageType(574); + getDescriptor().getMessageType(602); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor, @@ -42845,7 +44665,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor = - getDescriptor().getMessageType(575); + getDescriptor().getMessageType(603); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor, @@ -42853,7 +44673,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "StoragePoolType", "Zone", }); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor = - getDescriptor().getMessageType(576); + getDescriptor().getMessageType(604); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor, @@ -42861,7 +44681,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "Subnetwork", "Views", }); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageType(577); + getDescriptor().getMessageType(605); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor, @@ -42869,7 +44689,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(578); + getDescriptor().getMessageType(606); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor, @@ -42877,7 +44697,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(579); + getDescriptor().getMessageType(607); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor, @@ -42885,7 +44705,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor = - getDescriptor().getMessageType(580); + getDescriptor().getMessageType(608); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor, @@ -42893,7 +44713,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor = - getDescriptor().getMessageType(581); + getDescriptor().getMessageType(609); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor, @@ -42901,7 +44721,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(582); + getDescriptor().getMessageType(610); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor, @@ -42909,7 +44729,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(583); + getDescriptor().getMessageType(611); internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor, @@ -42917,7 +44737,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(584); + getDescriptor().getMessageType(612); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor, @@ -42925,7 +44745,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor = - getDescriptor().getMessageType(585); + getDescriptor().getMessageType(613); internal_static_google_cloud_compute_v1_GetUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor, @@ -42933,7 +44753,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "UrlMap", }); internal_static_google_cloud_compute_v1_GetVersionOperationMetadata_descriptor = - getDescriptor().getMessageType(586); + getDescriptor().getMessageType(614); internal_static_google_cloud_compute_v1_GetVersionOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVersionOperationMetadata_descriptor, @@ -42941,7 +44761,7 @@ private static void _clinit_autosplit_dinit_1() { "InlineSbomInfo", }); internal_static_google_cloud_compute_v1_GetVersionOperationMetadataSbomInfo_descriptor = - getDescriptor().getMessageType(587); + getDescriptor().getMessageType(615); internal_static_google_cloud_compute_v1_GetVersionOperationMetadataSbomInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVersionOperationMetadataSbomInfo_descriptor, @@ -42967,7 +44787,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_GetVersionReservationSlotRequest_descriptor = - getDescriptor().getMessageType(588); + getDescriptor().getMessageType(616); internal_static_google_cloud_compute_v1_GetVersionReservationSlotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVersionReservationSlotRequest_descriptor, @@ -42980,7 +44800,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_GetVersionReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(589); + getDescriptor().getMessageType(617); internal_static_google_cloud_compute_v1_GetVersionReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVersionReservationSubBlockRequest_descriptor, @@ -42993,7 +44813,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(590); + getDescriptor().getMessageType(618); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor, @@ -43001,7 +44821,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor = - getDescriptor().getMessageType(591); + getDescriptor().getMessageType(619); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor, @@ -43009,7 +44829,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnTunnel", }); internal_static_google_cloud_compute_v1_GetWireGroupRequest_descriptor = - getDescriptor().getMessageType(592); + getDescriptor().getMessageType(620); internal_static_google_cloud_compute_v1_GetWireGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetWireGroupRequest_descriptor, @@ -43017,7 +44837,7 @@ private static void _clinit_autosplit_dinit_1() { "CrossSiteNetwork", "Project", "WireGroup", }); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor = - getDescriptor().getMessageType(593); + getDescriptor().getMessageType(621); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor, @@ -43025,7 +44845,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor = - getDescriptor().getMessageType(594); + getDescriptor().getMessageType(622); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor, @@ -43033,7 +44853,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor = - getDescriptor().getMessageType(595); + getDescriptor().getMessageType(623); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor, @@ -43041,15 +44861,23 @@ private static void _clinit_autosplit_dinit_1() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor = - getDescriptor().getMessageType(596); + getDescriptor().getMessageType(624); internal_static_google_cloud_compute_v1_GetZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor, new java.lang.String[] { "Project", "Zone", }); + internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_descriptor = + getDescriptor().getMessageType(625); + internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_descriptor, + new java.lang.String[] { + "Project", "VmExtensionPolicy", "Zone", + }); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor = - getDescriptor().getMessageType(597); + getDescriptor().getMessageType(626); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor, @@ -43057,7 +44885,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageType(598); + getDescriptor().getMessageType(627); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -43065,7 +44893,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageType(599); + getDescriptor().getMessageType(628); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -43073,7 +44901,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor = - getDescriptor().getMessageType(600); + getDescriptor().getMessageType(629); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor, @@ -43081,7 +44909,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor = - getDescriptor().getMessageType(601); + getDescriptor().getMessageType(630); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor, @@ -43097,7 +44925,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor = - getDescriptor().getMessageType(602); + getDescriptor().getMessageType(631); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor, @@ -43105,7 +44933,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GroupMaintenanceInfo_descriptor = - getDescriptor().getMessageType(603); + getDescriptor().getMessageType(632); internal_static_google_cloud_compute_v1_GroupMaintenanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GroupMaintenanceInfo_descriptor, @@ -43120,7 +44948,7 @@ private static void _clinit_autosplit_dinit_1() { "UpcomingGroupMaintenance", }); internal_static_google_cloud_compute_v1_GuestAttributes_descriptor = - getDescriptor().getMessageType(604); + getDescriptor().getMessageType(633); internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributes_descriptor, @@ -43128,7 +44956,7 @@ private static void _clinit_autosplit_dinit_1() { "Kind", "QueryPath", "QueryValue", "SelfLink", "VariableKey", "VariableValue", }); internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor = - getDescriptor().getMessageType(605); + getDescriptor().getMessageType(634); internal_static_google_cloud_compute_v1_GuestAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor, @@ -43136,7 +44964,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Namespace", "Value", }); internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor = - getDescriptor().getMessageType(606); + getDescriptor().getMessageType(635); internal_static_google_cloud_compute_v1_GuestAttributesValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor, @@ -43144,7 +44972,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", }); internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor = - getDescriptor().getMessageType(607); + getDescriptor().getMessageType(636); internal_static_google_cloud_compute_v1_GuestOsFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor, @@ -43152,7 +44980,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor = - getDescriptor().getMessageType(608); + getDescriptor().getMessageType(637); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor, @@ -43166,7 +44994,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor = - getDescriptor().getMessageType(609); + getDescriptor().getMessageType(638); internal_static_google_cloud_compute_v1_HTTPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor, @@ -43180,7 +45008,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor = - getDescriptor().getMessageType(610); + getDescriptor().getMessageType(639); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor, @@ -43194,7 +45022,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HealthAggregationPoliciesScopedList_descriptor = - getDescriptor().getMessageType(611); + getDescriptor().getMessageType(640); internal_static_google_cloud_compute_v1_HealthAggregationPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthAggregationPoliciesScopedList_descriptor, @@ -43202,7 +45030,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthAggregationPolicies", "Warning", }); internal_static_google_cloud_compute_v1_HealthAggregationPolicy_descriptor = - getDescriptor().getMessageType(612); + getDescriptor().getMessageType(641); internal_static_google_cloud_compute_v1_HealthAggregationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthAggregationPolicy_descriptor, @@ -43221,7 +45049,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLinkWithId", }); internal_static_google_cloud_compute_v1_HealthAggregationPolicyAggregatedList_descriptor = - getDescriptor().getMessageType(613); + getDescriptor().getMessageType(642); internal_static_google_cloud_compute_v1_HealthAggregationPolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthAggregationPolicyAggregatedList_descriptor, @@ -43238,7 +45066,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthAggregationPolicyList_descriptor = - getDescriptor().getMessageType(614); + getDescriptor().getMessageType(643); internal_static_google_cloud_compute_v1_HealthAggregationPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthAggregationPolicyList_descriptor, @@ -43246,7 +45074,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthCheck_descriptor = - getDescriptor().getMessageType(615); + getDescriptor().getMessageType(644); internal_static_google_cloud_compute_v1_HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheck_descriptor, @@ -43274,7 +45102,7 @@ private static void _clinit_autosplit_dinit_1() { "UnhealthyThreshold", }); internal_static_google_cloud_compute_v1_HealthCheckList_descriptor = - getDescriptor().getMessageType(616); + getDescriptor().getMessageType(645); internal_static_google_cloud_compute_v1_HealthCheckList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckList_descriptor, @@ -43282,7 +45110,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor = - getDescriptor().getMessageType(617); + getDescriptor().getMessageType(646); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor, @@ -43290,7 +45118,7 @@ private static void _clinit_autosplit_dinit_1() { "Enable", }); internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor = - getDescriptor().getMessageType(618); + getDescriptor().getMessageType(647); internal_static_google_cloud_compute_v1_HealthCheckReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor, @@ -43298,7 +45126,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", }); internal_static_google_cloud_compute_v1_HealthCheckService_descriptor = - getDescriptor().getMessageType(619); + getDescriptor().getMessageType(648); internal_static_google_cloud_compute_v1_HealthCheckService_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckService_descriptor, @@ -43317,7 +45145,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLink", }); internal_static_google_cloud_compute_v1_HealthCheckServiceAggregatedList_descriptor = - getDescriptor().getMessageType(620); + getDescriptor().getMessageType(649); internal_static_google_cloud_compute_v1_HealthCheckServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServiceAggregatedList_descriptor, @@ -43334,7 +45162,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor = - getDescriptor().getMessageType(621); + getDescriptor().getMessageType(650); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor, @@ -43342,7 +45170,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckService", }); internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor = - getDescriptor().getMessageType(622); + getDescriptor().getMessageType(651); internal_static_google_cloud_compute_v1_HealthCheckServicesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor, @@ -43350,7 +45178,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_HealthCheckServicesScopedList_descriptor = - getDescriptor().getMessageType(623); + getDescriptor().getMessageType(652); internal_static_google_cloud_compute_v1_HealthCheckServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServicesScopedList_descriptor, @@ -43358,7 +45186,7 @@ private static void _clinit_autosplit_dinit_1() { "Resources", "Warning", }); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor = - getDescriptor().getMessageType(624); + getDescriptor().getMessageType(653); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor, @@ -43375,7 +45203,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor = - getDescriptor().getMessageType(625); + getDescriptor().getMessageType(654); internal_static_google_cloud_compute_v1_HealthChecksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor, @@ -43383,7 +45211,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthChecks", "Warning", }); internal_static_google_cloud_compute_v1_HealthSource_descriptor = - getDescriptor().getMessageType(626); + getDescriptor().getMessageType(655); internal_static_google_cloud_compute_v1_HealthSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthSource_descriptor, @@ -43402,7 +45230,7 @@ private static void _clinit_autosplit_dinit_1() { "Sources", }); internal_static_google_cloud_compute_v1_HealthSourceAggregatedList_descriptor = - getDescriptor().getMessageType(627); + getDescriptor().getMessageType(656); internal_static_google_cloud_compute_v1_HealthSourceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthSourceAggregatedList_descriptor, @@ -43418,16 +45246,40 @@ private static void _clinit_autosplit_dinit_1() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_compute_v1_HealthSourceHealth_descriptor = + getDescriptor().getMessageType(657); + internal_static_google_cloud_compute_v1_HealthSourceHealth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_HealthSourceHealth_descriptor, + new java.lang.String[] { + "HealthState", "Kind", "Sources", + }); internal_static_google_cloud_compute_v1_HealthSourceList_descriptor = - getDescriptor().getMessageType(628); + getDescriptor().getMessageType(658); internal_static_google_cloud_compute_v1_HealthSourceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthSourceList_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_descriptor = + getDescriptor().getMessageType(659); + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_descriptor, + new java.lang.String[] { + "Backends", "ForwardingRule", "Source", + }); + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_descriptor = + getDescriptor().getMessageType(660); + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_descriptor, + new java.lang.String[] { + "EndpointCount", "Group", "HealthyEndpointCount", + }); internal_static_google_cloud_compute_v1_HealthSourcesScopedList_descriptor = - getDescriptor().getMessageType(629); + getDescriptor().getMessageType(661); internal_static_google_cloud_compute_v1_HealthSourcesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthSourcesScopedList_descriptor, @@ -43435,7 +45287,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthSources", "Warning", }); internal_static_google_cloud_compute_v1_HealthStatus_descriptor = - getDescriptor().getMessageType(630); + getDescriptor().getMessageType(662); internal_static_google_cloud_compute_v1_HealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatus_descriptor, @@ -43461,7 +45313,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor = - getDescriptor().getMessageType(631); + getDescriptor().getMessageType(663); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor, @@ -43473,7 +45325,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthState", "Ipv6HealthState", }); - internal_static_google_cloud_compute_v1_Help_descriptor = getDescriptor().getMessageType(632); + internal_static_google_cloud_compute_v1_Help_descriptor = getDescriptor().getMessageType(664); internal_static_google_cloud_compute_v1_Help_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Help_descriptor, @@ -43481,7 +45333,7 @@ private static void _clinit_autosplit_dinit_1() { "Links", }); internal_static_google_cloud_compute_v1_HelpLink_descriptor = - getDescriptor().getMessageType(633); + getDescriptor().getMessageType(665); internal_static_google_cloud_compute_v1_HelpLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HelpLink_descriptor, @@ -43489,7 +45341,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Url", }); internal_static_google_cloud_compute_v1_HostRule_descriptor = - getDescriptor().getMessageType(634); + getDescriptor().getMessageType(666); internal_static_google_cloud_compute_v1_HostRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HostRule_descriptor, @@ -43497,7 +45349,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Hosts", "PathMatcher", }); internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor = - getDescriptor().getMessageType(635); + getDescriptor().getMessageType(667); internal_static_google_cloud_compute_v1_HttpFaultAbort_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor, @@ -43505,7 +45357,7 @@ private static void _clinit_autosplit_dinit_1() { "HttpStatus", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor = - getDescriptor().getMessageType(636); + getDescriptor().getMessageType(668); internal_static_google_cloud_compute_v1_HttpFaultDelay_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor, @@ -43513,7 +45365,7 @@ private static void _clinit_autosplit_dinit_1() { "FixedDelay", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor = - getDescriptor().getMessageType(637); + getDescriptor().getMessageType(669); internal_static_google_cloud_compute_v1_HttpFaultInjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor, @@ -43521,7 +45373,7 @@ private static void _clinit_autosplit_dinit_1() { "Abort", "Delay", }); internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor = - getDescriptor().getMessageType(638); + getDescriptor().getMessageType(670); internal_static_google_cloud_compute_v1_HttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor, @@ -43532,7 +45384,7 @@ private static void _clinit_autosplit_dinit_1() { "ResponseHeadersToRemove", }); internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor = - getDescriptor().getMessageType(639); + getDescriptor().getMessageType(671); internal_static_google_cloud_compute_v1_HttpHeaderMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor, @@ -43547,7 +45399,7 @@ private static void _clinit_autosplit_dinit_1() { "SuffixMatch", }); internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor = - getDescriptor().getMessageType(640); + getDescriptor().getMessageType(672); internal_static_google_cloud_compute_v1_HttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor, @@ -43555,7 +45407,7 @@ private static void _clinit_autosplit_dinit_1() { "HeaderName", "HeaderValue", "Replace", }); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor = - getDescriptor().getMessageType(641); + getDescriptor().getMessageType(673); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor, @@ -43563,7 +45415,7 @@ private static void _clinit_autosplit_dinit_1() { "ExactMatch", "Name", "PresentMatch", "RegexMatch", }); internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor = - getDescriptor().getMessageType(642); + getDescriptor().getMessageType(674); internal_static_google_cloud_compute_v1_HttpRedirectAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor, @@ -43576,7 +45428,7 @@ private static void _clinit_autosplit_dinit_1() { "StripQuery", }); internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor = - getDescriptor().getMessageType(643); + getDescriptor().getMessageType(675); internal_static_google_cloud_compute_v1_HttpRetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor, @@ -43584,7 +45436,7 @@ private static void _clinit_autosplit_dinit_1() { "NumRetries", "PerTryTimeout", "RetryConditions", }); internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor = - getDescriptor().getMessageType(644); + getDescriptor().getMessageType(676); internal_static_google_cloud_compute_v1_HttpRouteAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor, @@ -43599,7 +45451,7 @@ private static void _clinit_autosplit_dinit_1() { "WeightedBackendServices", }); internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor = - getDescriptor().getMessageType(645); + getDescriptor().getMessageType(677); internal_static_google_cloud_compute_v1_HttpRouteRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor, @@ -43614,7 +45466,7 @@ private static void _clinit_autosplit_dinit_1() { "UrlRedirect", }); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor = - getDescriptor().getMessageType(646); + getDescriptor().getMessageType(678); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor, @@ -43628,7 +45480,7 @@ private static void _clinit_autosplit_dinit_1() { "QueryParameterMatches", "RegexMatch", }); - internal_static_google_cloud_compute_v1_Image_descriptor = getDescriptor().getMessageType(647); + internal_static_google_cloud_compute_v1_Image_descriptor = getDescriptor().getMessageType(679); internal_static_google_cloud_compute_v1_Image_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Image_descriptor, @@ -43678,7 +45530,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor = - getDescriptor().getMessageType(648); + getDescriptor().getMessageType(680); internal_static_google_cloud_compute_v1_ImageFamilyView_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor, @@ -43686,7 +45538,7 @@ private static void _clinit_autosplit_dinit_1() { "Image", }); internal_static_google_cloud_compute_v1_ImageList_descriptor = - getDescriptor().getMessageType(649); + getDescriptor().getMessageType(681); internal_static_google_cloud_compute_v1_ImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageList_descriptor, @@ -43694,7 +45546,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ImageParams_descriptor = - getDescriptor().getMessageType(650); + getDescriptor().getMessageType(682); internal_static_google_cloud_compute_v1_ImageParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageParams_descriptor, @@ -43710,7 +45562,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor = - getDescriptor().getMessageType(651); + getDescriptor().getMessageType(683); internal_static_google_cloud_compute_v1_InitialStateConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor, @@ -43718,7 +45570,7 @@ private static void _clinit_autosplit_dinit_1() { "Dbs", "Dbxs", "Keks", "Pk", }); internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor = - getDescriptor().getMessageType(652); + getDescriptor().getMessageType(684); internal_static_google_cloud_compute_v1_InsertAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor, @@ -43726,7 +45578,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor = - getDescriptor().getMessageType(653); + getDescriptor().getMessageType(685); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor, @@ -43734,7 +45586,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor = - getDescriptor().getMessageType(654); + getDescriptor().getMessageType(686); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor, @@ -43742,7 +45594,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor = - getDescriptor().getMessageType(655); + getDescriptor().getMessageType(687); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor, @@ -43750,7 +45602,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertCrossSiteNetworkRequest_descriptor = - getDescriptor().getMessageType(656); + getDescriptor().getMessageType(688); internal_static_google_cloud_compute_v1_InsertCrossSiteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertCrossSiteNetworkRequest_descriptor, @@ -43758,7 +45610,7 @@ private static void _clinit_autosplit_dinit_1() { "CrossSiteNetworkResource", "Project", "RequestId", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor = - getDescriptor().getMessageType(657); + getDescriptor().getMessageType(689); internal_static_google_cloud_compute_v1_InsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor, @@ -43766,7 +45618,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "RequestId", "SourceImage", "Zone", }); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(658); + getDescriptor().getMessageType(690); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor, @@ -43774,7 +45626,7 @@ private static void _clinit_autosplit_dinit_1() { "ExternalVpnGatewayResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(659); + getDescriptor().getMessageType(691); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor, @@ -43782,7 +45634,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor = - getDescriptor().getMessageType(660); + getDescriptor().getMessageType(692); internal_static_google_cloud_compute_v1_InsertFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor, @@ -43790,7 +45642,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(661); + getDescriptor().getMessageType(693); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor, @@ -43798,7 +45650,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFutureReservationRequest_descriptor = - getDescriptor().getMessageType(662); + getDescriptor().getMessageType(694); internal_static_google_cloud_compute_v1_InsertFutureReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFutureReservationRequest_descriptor, @@ -43806,7 +45658,7 @@ private static void _clinit_autosplit_dinit_1() { "FutureReservationResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor = - getDescriptor().getMessageType(663); + getDescriptor().getMessageType(695); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor, @@ -43814,7 +45666,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(664); + getDescriptor().getMessageType(696); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor, @@ -43822,7 +45674,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(665); + getDescriptor().getMessageType(697); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor, @@ -43830,7 +45682,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(666); + getDescriptor().getMessageType(698); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -43838,7 +45690,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor = - getDescriptor().getMessageType(667); + getDescriptor().getMessageType(699); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor, @@ -43846,7 +45698,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor = - getDescriptor().getMessageType(668); + getDescriptor().getMessageType(700); internal_static_google_cloud_compute_v1_InsertImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor, @@ -43854,7 +45706,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceCreate", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(669); + getDescriptor().getMessageType(701); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor, @@ -43862,7 +45714,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageType(670); + getDescriptor().getMessageType(702); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor, @@ -43874,7 +45726,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(671); + getDescriptor().getMessageType(703); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor, @@ -43882,7 +45734,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor = - getDescriptor().getMessageType(672); + getDescriptor().getMessageType(704); internal_static_google_cloud_compute_v1_InsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor, @@ -43895,15 +45747,27 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(673); + getDescriptor().getMessageType(705); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor, new java.lang.String[] { "InstanceTemplateResource", "Project", "RequestId", }); + internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(706); + internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "InstantSnapshotGroupResource", + "Project", + "RequestId", + "SourceConsistencyGroup", + "Zone", + }); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(674); + getDescriptor().getMessageType(707); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor, @@ -43911,7 +45775,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(675); + getDescriptor().getMessageType(708); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentGroupRequest_descriptor, @@ -43919,7 +45783,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageType(676); + getDescriptor().getMessageType(709); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor, @@ -43927,7 +45791,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentResource", "Project", "Region", "RequestId", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(677); + getDescriptor().getMessageType(710); internal_static_google_cloud_compute_v1_InsertInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectGroupRequest_descriptor, @@ -43935,7 +45799,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor = - getDescriptor().getMessageType(678); + getDescriptor().getMessageType(711); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor, @@ -43943,7 +45807,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor = - getDescriptor().getMessageType(679); + getDescriptor().getMessageType(712); internal_static_google_cloud_compute_v1_InsertLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor, @@ -43951,7 +45815,7 @@ private static void _clinit_autosplit_dinit_1() { "LicenseResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor = - getDescriptor().getMessageType(680); + getDescriptor().getMessageType(713); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor, @@ -43959,7 +45823,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineImageResource", "Project", "RequestId", "SourceInstance", }); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(681); + getDescriptor().getMessageType(714); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor, @@ -43967,7 +45831,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageType(682); + getDescriptor().getMessageType(715); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor, @@ -43979,7 +45843,7 @@ private static void _clinit_autosplit_dinit_1() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(683); + getDescriptor().getMessageType(716); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor, @@ -43987,7 +45851,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(684); + getDescriptor().getMessageType(717); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor, @@ -43995,7 +45859,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor = - getDescriptor().getMessageType(685); + getDescriptor().getMessageType(718); internal_static_google_cloud_compute_v1_InsertNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor, @@ -44003,7 +45867,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor = - getDescriptor().getMessageType(686); + getDescriptor().getMessageType(719); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor, @@ -44011,7 +45875,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialNodeCount", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(687); + getDescriptor().getMessageType(720); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor, @@ -44019,7 +45883,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(688); + getDescriptor().getMessageType(721); internal_static_google_cloud_compute_v1_InsertOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertOrganizationSecurityPolicyRequest_descriptor, @@ -44027,7 +45891,7 @@ private static void _clinit_autosplit_dinit_1() { "ParentId", "RequestId", "SecurityPolicyResource", }); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor = - getDescriptor().getMessageType(689); + getDescriptor().getMessageType(722); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor, @@ -44035,7 +45899,7 @@ private static void _clinit_autosplit_dinit_1() { "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageType(690); + getDescriptor().getMessageType(723); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor, @@ -44043,7 +45907,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(691); + getDescriptor().getMessageType(724); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor, @@ -44051,15 +45915,23 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageType(692); + getDescriptor().getMessageType(725); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor, new java.lang.String[] { "AutoscalerResource", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(726); + internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "BackendBucketResource", "Project", "Region", "RequestId", + }); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(693); + getDescriptor().getMessageType(727); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor, @@ -44067,7 +45939,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor = - getDescriptor().getMessageType(694); + getDescriptor().getMessageType(728); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor, @@ -44075,7 +45947,7 @@ private static void _clinit_autosplit_dinit_1() { "CommitmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionCompositeHealthCheckRequest_descriptor = - getDescriptor().getMessageType(695); + getDescriptor().getMessageType(729); internal_static_google_cloud_compute_v1_InsertRegionCompositeHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionCompositeHealthCheckRequest_descriptor, @@ -44083,7 +45955,7 @@ private static void _clinit_autosplit_dinit_1() { "CompositeHealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor = - getDescriptor().getMessageType(696); + getDescriptor().getMessageType(730); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor, @@ -44091,7 +45963,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "Region", "RequestId", "SourceImage", }); internal_static_google_cloud_compute_v1_InsertRegionHealthAggregationPolicyRequest_descriptor = - getDescriptor().getMessageType(697); + getDescriptor().getMessageType(731); internal_static_google_cloud_compute_v1_InsertRegionHealthAggregationPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthAggregationPolicyRequest_descriptor, @@ -44099,7 +45971,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthAggregationPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageType(698); + getDescriptor().getMessageType(732); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor, @@ -44107,7 +45979,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageType(699); + getDescriptor().getMessageType(733); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor, @@ -44115,7 +45987,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionHealthSourceRequest_descriptor = - getDescriptor().getMessageType(700); + getDescriptor().getMessageType(734); internal_static_google_cloud_compute_v1_InsertRegionHealthSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthSourceRequest_descriptor, @@ -44123,23 +45995,47 @@ private static void _clinit_autosplit_dinit_1() { "HealthSourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(701); + getDescriptor().getMessageType(735); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor, new java.lang.String[] { "InstanceGroupManagerResource", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_descriptor = + getDescriptor().getMessageType(736); + internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_descriptor, + new java.lang.String[] { + "InstanceGroupManager", + "InstanceGroupManagerResizeRequestResource", + "Project", + "Region", + "RequestId", + }); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(702); + getDescriptor().getMessageType(737); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor, new java.lang.String[] { "InstanceTemplateResource", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(738); + internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "InstantSnapshotGroupResource", + "Project", + "Region", + "RequestId", + "SourceConsistencyGroup", + }); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(703); + getDescriptor().getMessageType(739); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor, @@ -44147,7 +46043,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(704); + getDescriptor().getMessageType(740); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor, @@ -44155,7 +46051,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(705); + getDescriptor().getMessageType(741); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor, @@ -44163,7 +46059,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageType(706); + getDescriptor().getMessageType(742); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor, @@ -44171,15 +46067,23 @@ private static void _clinit_autosplit_dinit_1() { "NotificationEndpointResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(707); + getDescriptor().getMessageType(743); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor, new java.lang.String[] { "Project", "Region", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); + internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(744); + internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RequestId", "SnapshotResource", + }); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageType(708); + getDescriptor().getMessageType(745); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor, @@ -44187,7 +46091,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageType(709); + getDescriptor().getMessageType(746); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor, @@ -44195,7 +46099,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(710); + getDescriptor().getMessageType(747); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor, @@ -44203,7 +46107,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(711); + getDescriptor().getMessageType(748); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor, @@ -44211,7 +46115,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(712); + getDescriptor().getMessageType(749); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor, @@ -44219,7 +46123,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor = - getDescriptor().getMessageType(713); + getDescriptor().getMessageType(750); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor, @@ -44227,7 +46131,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor = - getDescriptor().getMessageType(714); + getDescriptor().getMessageType(751); internal_static_google_cloud_compute_v1_InsertReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor, @@ -44235,7 +46139,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "ReservationResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(715); + getDescriptor().getMessageType(752); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor, @@ -44243,7 +46147,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ResourcePolicyResource", }); internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor = - getDescriptor().getMessageType(716); + getDescriptor().getMessageType(753); internal_static_google_cloud_compute_v1_InsertRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor, @@ -44251,7 +46155,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "RouteResource", }); internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor = - getDescriptor().getMessageType(717); + getDescriptor().getMessageType(754); internal_static_google_cloud_compute_v1_InsertRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor, @@ -44259,7 +46163,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "RouterResource", }); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(718); + getDescriptor().getMessageType(755); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor, @@ -44267,7 +46171,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(719); + getDescriptor().getMessageType(756); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor, @@ -44275,7 +46179,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor = - getDescriptor().getMessageType(720); + getDescriptor().getMessageType(757); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor, @@ -44283,7 +46187,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor = - getDescriptor().getMessageType(721); + getDescriptor().getMessageType(758); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor, @@ -44291,7 +46195,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor = - getDescriptor().getMessageType(722); + getDescriptor().getMessageType(759); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor, @@ -44299,7 +46203,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor = - getDescriptor().getMessageType(723); + getDescriptor().getMessageType(760); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor, @@ -44307,7 +46211,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "StoragePoolResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor = - getDescriptor().getMessageType(724); + getDescriptor().getMessageType(761); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor, @@ -44315,7 +46219,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SubnetworkResource", }); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageType(725); + getDescriptor().getMessageType(762); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor, @@ -44323,7 +46227,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(726); + getDescriptor().getMessageType(763); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor, @@ -44331,7 +46235,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(727); + getDescriptor().getMessageType(764); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor, @@ -44339,7 +46243,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor = - getDescriptor().getMessageType(728); + getDescriptor().getMessageType(765); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor, @@ -44347,7 +46251,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetInstanceResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor = - getDescriptor().getMessageType(729); + getDescriptor().getMessageType(766); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor, @@ -44355,7 +46259,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetPoolResource", }); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(730); + getDescriptor().getMessageType(767); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor, @@ -44363,7 +46267,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetSslProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(731); + getDescriptor().getMessageType(768); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor, @@ -44371,7 +46275,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(732); + getDescriptor().getMessageType(769); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor, @@ -44379,7 +46283,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetVpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor = - getDescriptor().getMessageType(733); + getDescriptor().getMessageType(770); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor, @@ -44387,7 +46291,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(734); + getDescriptor().getMessageType(771); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor, @@ -44395,7 +46299,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor = - getDescriptor().getMessageType(735); + getDescriptor().getMessageType(772); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor, @@ -44403,15 +46307,23 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnTunnelResource", }); internal_static_google_cloud_compute_v1_InsertWireGroupRequest_descriptor = - getDescriptor().getMessageType(736); + getDescriptor().getMessageType(773); internal_static_google_cloud_compute_v1_InsertWireGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertWireGroupRequest_descriptor, new java.lang.String[] { "CrossSiteNetwork", "Project", "RequestId", "ValidateOnly", "WireGroupResource", }); + internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_descriptor = + getDescriptor().getMessageType(774); + internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_descriptor, + new java.lang.String[] { + "Project", "RequestId", "VmExtensionPolicyResource", "Zone", + }); internal_static_google_cloud_compute_v1_Instance_descriptor = - getDescriptor().getMessageType(737); + getDescriptor().getMessageType(775); internal_static_google_cloud_compute_v1_Instance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Instance_descriptor, @@ -44473,7 +46385,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor = - getDescriptor().getMessageType(738); + getDescriptor().getMessageType(776); internal_static_google_cloud_compute_v1_InstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor, @@ -44489,7 +46401,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor = - getDescriptor().getMessageType(739); + getDescriptor().getMessageType(777); internal_static_google_cloud_compute_v1_InstanceConsumptionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor, @@ -44497,7 +46409,7 @@ private static void _clinit_autosplit_dinit_1() { "ConsumptionInfo", "Instance", }); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor = - getDescriptor().getMessageType(740); + getDescriptor().getMessageType(778); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor, @@ -44505,7 +46417,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestCpus", "LocalSsdGb", "MemoryMb", "MinNodeCpus", }); internal_static_google_cloud_compute_v1_InstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageType(741); + getDescriptor().getMessageType(779); internal_static_google_cloud_compute_v1_InstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceFlexibilityPolicy_descriptor, @@ -44522,7 +46434,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceFlexibilityPolicyInstanceSelection_descriptor = - getDescriptor().getMessageType(742); + getDescriptor().getMessageType(780); internal_static_google_cloud_compute_v1_InstanceFlexibilityPolicyInstanceSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceFlexibilityPolicyInstanceSelection_descriptor, @@ -44530,7 +46442,7 @@ private static void _clinit_autosplit_dinit_1() { "Disks", "MachineTypes", "Rank", }); internal_static_google_cloud_compute_v1_InstanceGroup_descriptor = - getDescriptor().getMessageType(743); + getDescriptor().getMessageType(781); internal_static_google_cloud_compute_v1_InstanceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroup_descriptor, @@ -44550,7 +46462,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor = - getDescriptor().getMessageType(744); + getDescriptor().getMessageType(782); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor, @@ -44567,7 +46479,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor = - getDescriptor().getMessageType(745); + getDescriptor().getMessageType(783); internal_static_google_cloud_compute_v1_InstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor, @@ -44575,7 +46487,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor = - getDescriptor().getMessageType(746); + getDescriptor().getMessageType(784); internal_static_google_cloud_compute_v1_InstanceGroupManager_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor, @@ -44615,7 +46527,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor = - getDescriptor().getMessageType(747); + getDescriptor().getMessageType(785); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor, @@ -44635,7 +46547,7 @@ private static void _clinit_autosplit_dinit_1() { "Verifying", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor = - getDescriptor().getMessageType(748); + getDescriptor().getMessageType(786); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor, @@ -44652,7 +46564,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor = - getDescriptor().getMessageType(749); + getDescriptor().getMessageType(787); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor, @@ -44660,7 +46572,7 @@ private static void _clinit_autosplit_dinit_1() { "Properties", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor = - getDescriptor().getMessageType(750); + getDescriptor().getMessageType(788); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor, @@ -44668,7 +46580,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", "InitialDelaySec", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageType(751); + getDescriptor().getMessageType(789); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor, @@ -44685,7 +46597,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor = - getDescriptor().getMessageType(752); + getDescriptor().getMessageType(790); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor, @@ -44693,7 +46605,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineTypes", "Rank", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor = - getDescriptor().getMessageType(753); + getDescriptor().getMessageType(791); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor, @@ -44701,7 +46613,7 @@ private static void _clinit_autosplit_dinit_1() { "DefaultActionOnFailure", "ForceUpdateOnRepair", "OnFailedHealthCheck", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor = - getDescriptor().getMessageType(754); + getDescriptor().getMessageType(792); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor, @@ -44709,7 +46621,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor = - getDescriptor().getMessageType(755); + getDescriptor().getMessageType(793); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor, @@ -44719,6 +46631,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Kind", "Name", + "Region", "RequestedRunDuration", "ResizeBy", "SelfLink", @@ -44728,7 +46641,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor = - getDescriptor().getMessageType(756); + getDescriptor().getMessageType(794); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor, @@ -44736,7 +46649,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "LastAttempt", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor = - getDescriptor().getMessageType(757); + getDescriptor().getMessageType(795); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor, @@ -44744,7 +46657,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor = - getDescriptor().getMessageType(758); + getDescriptor().getMessageType(796); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor, @@ -44752,7 +46665,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResourcePolicies_descriptor = - getDescriptor().getMessageType(759); + getDescriptor().getMessageType(797); internal_static_google_cloud_compute_v1_InstanceGroupManagerResourcePolicies_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResourcePolicies_descriptor, @@ -44760,7 +46673,7 @@ private static void _clinit_autosplit_dinit_1() { "WorkloadPolicy", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor = - getDescriptor().getMessageType(760); + getDescriptor().getMessageType(798); internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor, @@ -44768,7 +46681,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialDelaySec", "Mode", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor = - getDescriptor().getMessageType(761); + getDescriptor().getMessageType(799); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor, @@ -44777,12 +46690,13 @@ private static void _clinit_autosplit_dinit_1() { "AppliedAcceleratorTopologies", "Autoscaler", "BulkInstanceOperation", + "CurrentInstanceStatuses", "IsStable", "Stateful", "VersionTarget", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAcceleratorTopology_descriptor = - getDescriptor().getMessageType(762); + getDescriptor().getMessageType(800); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAcceleratorTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAcceleratorTopology_descriptor, @@ -44790,7 +46704,7 @@ private static void _clinit_autosplit_dinit_1() { "AcceleratorTopology", "State", "StateDetails", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails_descriptor = - getDescriptor().getMessageType(763); + getDescriptor().getMessageType(801); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails_descriptor, @@ -44798,7 +46712,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "Timestamp", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor = - getDescriptor().getMessageType(764); + getDescriptor().getMessageType(802); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor, @@ -44806,7 +46720,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentRevision", "Effective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperation_descriptor = - getDescriptor().getMessageType(765); + getDescriptor().getMessageType(803); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperation_descriptor, @@ -44814,15 +46728,35 @@ private static void _clinit_autosplit_dinit_1() { "InProgress", "LastProgressCheck", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck_descriptor = - getDescriptor().getMessageType(766); + getDescriptor().getMessageType(804); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck_descriptor, new java.lang.String[] { "Error", "Timestamp", }); + internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_descriptor = + getDescriptor().getMessageType(805); + internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_descriptor, + new java.lang.String[] { + "Deprovisioning", + "NonExistent", + "Pending", + "PendingStop", + "Provisioning", + "Repairing", + "Running", + "Staging", + "Stopped", + "Stopping", + "Suspended", + "Suspending", + "Terminated", + }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor = - getDescriptor().getMessageType(767); + getDescriptor().getMessageType(806); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor, @@ -44830,7 +46764,7 @@ private static void _clinit_autosplit_dinit_1() { "HasStatefulConfig", "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor = - getDescriptor().getMessageType(768); + getDescriptor().getMessageType(807); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor, @@ -44838,7 +46772,7 @@ private static void _clinit_autosplit_dinit_1() { "AllEffective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor = - getDescriptor().getMessageType(769); + getDescriptor().getMessageType(808); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor, @@ -44846,7 +46780,7 @@ private static void _clinit_autosplit_dinit_1() { "IsReached", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerTargetSizePolicy_descriptor = - getDescriptor().getMessageType(770); + getDescriptor().getMessageType(809); internal_static_google_cloud_compute_v1_InstanceGroupManagerTargetSizePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerTargetSizePolicy_descriptor, @@ -44854,7 +46788,7 @@ private static void _clinit_autosplit_dinit_1() { "Mode", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor = - getDescriptor().getMessageType(771); + getDescriptor().getMessageType(810); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor, @@ -44868,7 +46802,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor = - getDescriptor().getMessageType(772); + getDescriptor().getMessageType(811); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor, @@ -44876,7 +46810,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", "Name", "TargetSize", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageType(773); + getDescriptor().getMessageType(812); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -44884,7 +46818,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageType(774); + getDescriptor().getMessageType(813); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -44892,7 +46826,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageType(775); + getDescriptor().getMessageType(814); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor, @@ -44900,7 +46834,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageType(776); + getDescriptor().getMessageType(815); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -44908,7 +46842,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageType(777); + getDescriptor().getMessageType(816); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor, @@ -44916,7 +46850,7 @@ private static void _clinit_autosplit_dinit_1() { "Names", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageType(778); + getDescriptor().getMessageType(817); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor, @@ -44924,7 +46858,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor = - getDescriptor().getMessageType(779); + getDescriptor().getMessageType(818); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor, @@ -44932,7 +46866,7 @@ private static void _clinit_autosplit_dinit_1() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor = - getDescriptor().getMessageType(780); + getDescriptor().getMessageType(819); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor, @@ -44940,7 +46874,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor = - getDescriptor().getMessageType(781); + getDescriptor().getMessageType(820); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor, @@ -44948,7 +46882,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor = - getDescriptor().getMessageType(782); + getDescriptor().getMessageType(821); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor, @@ -44956,7 +46890,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor = - getDescriptor().getMessageType(783); + getDescriptor().getMessageType(822); internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor, @@ -44964,7 +46898,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor = - getDescriptor().getMessageType(784); + getDescriptor().getMessageType(823); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor, @@ -44972,7 +46906,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagers", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(785); + getDescriptor().getMessageType(824); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor, @@ -44980,7 +46914,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageType(786); + getDescriptor().getMessageType(825); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -44988,7 +46922,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor = - getDescriptor().getMessageType(787); + getDescriptor().getMessageType(826); internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor, @@ -44996,7 +46930,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor = - getDescriptor().getMessageType(788); + getDescriptor().getMessageType(827); internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor, @@ -45004,7 +46938,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceStop", "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor = - getDescriptor().getMessageType(789); + getDescriptor().getMessageType(828); internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor, @@ -45012,7 +46946,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceSuspend", "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageType(790); + getDescriptor().getMessageType(829); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor, @@ -45020,7 +46954,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor = - getDescriptor().getMessageType(791); + getDescriptor().getMessageType(830); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor, @@ -45028,7 +46962,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor = - getDescriptor().getMessageType(792); + getDescriptor().getMessageType(831); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor, @@ -45036,7 +46970,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor = - getDescriptor().getMessageType(793); + getDescriptor().getMessageType(832); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor, @@ -45044,7 +46978,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceState", }); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor = - getDescriptor().getMessageType(794); + getDescriptor().getMessageType(833); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor, @@ -45052,7 +46986,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor = - getDescriptor().getMessageType(795); + getDescriptor().getMessageType(834); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor, @@ -45060,7 +46994,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroups", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageType(796); + getDescriptor().getMessageType(835); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor, @@ -45068,7 +47002,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_InstanceList_descriptor = - getDescriptor().getMessageType(797); + getDescriptor().getMessageType(836); internal_static_google_cloud_compute_v1_InstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceList_descriptor, @@ -45076,7 +47010,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor = - getDescriptor().getMessageType(798); + getDescriptor().getMessageType(837); internal_static_google_cloud_compute_v1_InstanceListReferrers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor, @@ -45084,7 +47018,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor = - getDescriptor().getMessageType(799); + getDescriptor().getMessageType(838); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor, @@ -45092,7 +47026,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "InstanceActionDetails", "Timestamp", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor = - getDescriptor().getMessageType(800); + getDescriptor().getMessageType(839); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor, @@ -45100,7 +47034,7 @@ private static void _clinit_autosplit_dinit_1() { "Action", "Instance", "Version", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor = - getDescriptor().getMessageType(801); + getDescriptor().getMessageType(840); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor, @@ -45108,7 +47042,7 @@ private static void _clinit_autosplit_dinit_1() { "Code", "Message", }); internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor = - getDescriptor().getMessageType(802); + getDescriptor().getMessageType(841); internal_static_google_cloud_compute_v1_InstanceMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor, @@ -45116,7 +47050,7 @@ private static void _clinit_autosplit_dinit_1() { "DestinationZone", "TargetInstance", }); internal_static_google_cloud_compute_v1_InstanceParams_descriptor = - getDescriptor().getMessageType(803); + getDescriptor().getMessageType(842); internal_static_google_cloud_compute_v1_InstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceParams_descriptor, @@ -45132,7 +47066,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceProperties_descriptor = - getDescriptor().getMessageType(804); + getDescriptor().getMessageType(843); internal_static_google_cloud_compute_v1_InstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceProperties_descriptor, @@ -45177,7 +47111,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor = - getDescriptor().getMessageType(805); + getDescriptor().getMessageType(844); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor, @@ -45201,7 +47135,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceReference_descriptor = - getDescriptor().getMessageType(806); + getDescriptor().getMessageType(845); internal_static_google_cloud_compute_v1_InstanceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceReference_descriptor, @@ -45209,7 +47143,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", }); internal_static_google_cloud_compute_v1_InstanceSettings_descriptor = - getDescriptor().getMessageType(807); + getDescriptor().getMessageType(846); internal_static_google_cloud_compute_v1_InstanceSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettings_descriptor, @@ -45217,7 +47151,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "Kind", "Metadata", "Zone", }); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor = - getDescriptor().getMessageType(808); + getDescriptor().getMessageType(847); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor, @@ -45234,7 +47168,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor = - getDescriptor().getMessageType(809); + getDescriptor().getMessageType(848); internal_static_google_cloud_compute_v1_InstanceTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor, @@ -45251,7 +47185,7 @@ private static void _clinit_autosplit_dinit_1() { "SourceInstanceParams", }); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor = - getDescriptor().getMessageType(810); + getDescriptor().getMessageType(849); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor, @@ -45268,7 +47202,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor = - getDescriptor().getMessageType(811); + getDescriptor().getMessageType(850); internal_static_google_cloud_compute_v1_InstanceTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor, @@ -45276,7 +47210,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor = - getDescriptor().getMessageType(812); + getDescriptor().getMessageType(851); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor, @@ -45284,7 +47218,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplates", "Warning", }); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor = - getDescriptor().getMessageType(813); + getDescriptor().getMessageType(852); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor, @@ -45292,7 +47226,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "NamedPorts", "Status", }); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(814); + getDescriptor().getMessageType(853); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor, @@ -45300,7 +47234,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor = - getDescriptor().getMessageType(815); + getDescriptor().getMessageType(854); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor, @@ -45317,7 +47251,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageType(816); + getDescriptor().getMessageType(855); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor, @@ -45325,7 +47259,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageType(817); + getDescriptor().getMessageType(856); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -45339,7 +47273,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(818); + getDescriptor().getMessageType(857); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor, @@ -45347,7 +47281,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequest_descriptor = - getDescriptor().getMessageType(819); + getDescriptor().getMessageType(858); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequest_descriptor, @@ -45355,7 +47289,7 @@ private static void _clinit_autosplit_dinit_1() { "DisruptionSchedule", "FaultReasons", }); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequestFaultReason_descriptor = - getDescriptor().getMessageType(820); + getDescriptor().getMessageType(859); internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequestFaultReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesReportHostAsFaultyRequestFaultReason_descriptor, @@ -45363,7 +47297,7 @@ private static void _clinit_autosplit_dinit_1() { "Behavior", "Description", }); internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor = - getDescriptor().getMessageType(821); + getDescriptor().getMessageType(860); internal_static_google_cloud_compute_v1_InstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor, @@ -45371,7 +47305,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "Warning", }); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor = - getDescriptor().getMessageType(822); + getDescriptor().getMessageType(861); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor, @@ -45388,7 +47322,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor = - getDescriptor().getMessageType(823); + getDescriptor().getMessageType(862); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor, @@ -45396,7 +47330,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestAccelerators", }); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor = - getDescriptor().getMessageType(824); + getDescriptor().getMessageType(863); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor, @@ -45404,7 +47338,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", }); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor = - getDescriptor().getMessageType(825); + getDescriptor().getMessageType(864); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor, @@ -45412,7 +47346,7 @@ private static void _clinit_autosplit_dinit_1() { "MinCpuPlatform", }); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor = - getDescriptor().getMessageType(826); + getDescriptor().getMessageType(865); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor, @@ -45420,7 +47354,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentName", "Name", }); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(827); + getDescriptor().getMessageType(866); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor, @@ -45428,7 +47362,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkInterfaces", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor = - getDescriptor().getMessageType(828); + getDescriptor().getMessageType(867); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor, @@ -45436,7 +47370,7 @@ private static void _clinit_autosplit_dinit_1() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor = - getDescriptor().getMessageType(829); + getDescriptor().getMessageType(868); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor, @@ -45444,7 +47378,7 @@ private static void _clinit_autosplit_dinit_1() { "Disks", }); internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor = - getDescriptor().getMessageType(830); + getDescriptor().getMessageType(869); internal_static_google_cloud_compute_v1_InstantSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor, @@ -45467,6 +47401,8 @@ private static void _clinit_autosplit_dinit_1() { "SelfLinkWithId", "SourceDisk", "SourceDiskId", + "SourceInstantSnapshotGroup", + "SourceInstantSnapshotGroupId", "Status", "Zone", }); @@ -45479,7 +47415,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor = - getDescriptor().getMessageType(831); + getDescriptor().getMessageType(870); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor, @@ -45495,8 +47431,51 @@ private static void _clinit_autosplit_dinit_1() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_compute_v1_InstantSnapshotGroup_descriptor = + getDescriptor().getMessageType(871); + internal_static_google_cloud_compute_v1_InstantSnapshotGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstantSnapshotGroup_descriptor, + new java.lang.String[] { + "CreationTimestamp", + "Description", + "Id", + "Kind", + "Name", + "Region", + "ResourceStatus", + "SelfLink", + "SelfLinkWithId", + "SourceConsistencyGroup", + "Status", + "Zone", + }); + internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_descriptor = + getDescriptor().getMessageType(872); + internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_descriptor, + new java.lang.String[] { + "SourceInstantSnapshotGroup", + }); + internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_descriptor = + getDescriptor().getMessageType(873); + internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_descriptor, + new java.lang.String[] { + "ConsistencyMembershipResolutionTime", "SourceInfo", + }); + internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_descriptor = + getDescriptor().getMessageType(874); + internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_descriptor, + new java.lang.String[] { + "ConsistencyGroup", "ConsistencyGroupId", + }); internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor = - getDescriptor().getMessageType(832); + getDescriptor().getMessageType(875); internal_static_google_cloud_compute_v1_InstantSnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor, @@ -45504,7 +47483,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstantSnapshotParams_descriptor = - getDescriptor().getMessageType(833); + getDescriptor().getMessageType(876); internal_static_google_cloud_compute_v1_InstantSnapshotParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotParams_descriptor, @@ -45520,7 +47499,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor = - getDescriptor().getMessageType(834); + getDescriptor().getMessageType(877); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor, @@ -45528,7 +47507,7 @@ private static void _clinit_autosplit_dinit_1() { "StorageSizeBytes", }); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor = - getDescriptor().getMessageType(835); + getDescriptor().getMessageType(878); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor, @@ -45536,7 +47515,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshots", "Warning", }); internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor = - getDescriptor().getMessageType(836); + getDescriptor().getMessageType(879); internal_static_google_cloud_compute_v1_Int64RangeMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor, @@ -45544,7 +47523,7 @@ private static void _clinit_autosplit_dinit_1() { "RangeEnd", "RangeStart", }); internal_static_google_cloud_compute_v1_Interconnect_descriptor = - getDescriptor().getMessageType(837); + getDescriptor().getMessageType(880); internal_static_google_cloud_compute_v1_Interconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Interconnect_descriptor, @@ -45595,7 +47574,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnect_descriptor = - getDescriptor().getMessageType(838); + getDescriptor().getMessageType(881); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnect_descriptor, @@ -45606,7 +47585,7 @@ private static void _clinit_autosplit_dinit_1() { "StrictPriorityPolicy", }); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectBandwidthPercentage_descriptor = - getDescriptor().getMessageType(839); + getDescriptor().getMessageType(882); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectBandwidthPercentage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectBandwidthPercentage_descriptor, @@ -45614,7 +47593,7 @@ private static void _clinit_autosplit_dinit_1() { "Percentage", "TrafficClass", }); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy_descriptor = - getDescriptor().getMessageType(840); + getDescriptor().getMessageType(883); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy_descriptor, @@ -45622,13 +47601,13 @@ private static void _clinit_autosplit_dinit_1() { "BandwidthPercentages", }); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectStrictPriorityPolicy_descriptor = - getDescriptor().getMessageType(841); + getDescriptor().getMessageType(884); internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectStrictPriorityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectApplicationAwareInterconnectStrictPriorityPolicy_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor = - getDescriptor().getMessageType(842); + getDescriptor().getMessageType(885); internal_static_google_cloud_compute_v1_InterconnectAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor, @@ -45690,7 +47669,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor = - getDescriptor().getMessageType(843); + getDescriptor().getMessageType(886); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor, @@ -45707,7 +47686,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor = - getDescriptor().getMessageType(844); + getDescriptor().getMessageType(887); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor, @@ -45715,7 +47694,7 @@ private static void _clinit_autosplit_dinit_1() { "BgpMd5", "BgpPeerAsnRanges", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor = - getDescriptor().getMessageType(845); + getDescriptor().getMessageType(888); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor, @@ -45723,7 +47702,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroup_descriptor = - getDescriptor().getMessageType(846); + getDescriptor().getMessageType(889); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroup_descriptor, @@ -45751,7 +47730,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupAttachment_descriptor = - getDescriptor().getMessageType(847); + getDescriptor().getMessageType(890); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupAttachment_descriptor, @@ -45759,7 +47738,7 @@ private static void _clinit_autosplit_dinit_1() { "Attachment", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfigured_descriptor = - getDescriptor().getMessageType(848); + getDescriptor().getMessageType(891); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfigured_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfigured_descriptor, @@ -45767,7 +47746,7 @@ private static void _clinit_autosplit_dinit_1() { "AvailabilitySla", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLA_descriptor = - getDescriptor().getMessageType(849); + getDescriptor().getMessageType(892); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLA_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLA_descriptor, @@ -45775,7 +47754,7 @@ private static void _clinit_autosplit_dinit_1() { "EffectiveSla", "IntendedSlaBlockers", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers_descriptor = - getDescriptor().getMessageType(850); + getDescriptor().getMessageType(893); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers_descriptor, @@ -45789,7 +47768,7 @@ private static void _clinit_autosplit_dinit_1() { "Zones", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupIntent_descriptor = - getDescriptor().getMessageType(851); + getDescriptor().getMessageType(894); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupIntent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupIntent_descriptor, @@ -45797,7 +47776,7 @@ private static void _clinit_autosplit_dinit_1() { "AvailabilitySla", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructure_descriptor = - getDescriptor().getMessageType(852); + getDescriptor().getMessageType(895); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructure_descriptor, @@ -45805,7 +47784,7 @@ private static void _clinit_autosplit_dinit_1() { "Regions", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegion_descriptor = - getDescriptor().getMessageType(853); + getDescriptor().getMessageType(896); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegion_descriptor, @@ -45813,7 +47792,7 @@ private static void _clinit_autosplit_dinit_1() { "Metros", "Region", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetro_descriptor = - getDescriptor().getMessageType(854); + getDescriptor().getMessageType(897); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetro_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetro_descriptor, @@ -45821,7 +47800,7 @@ private static void _clinit_autosplit_dinit_1() { "Facilities", "Metro", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacility_descriptor = - getDescriptor().getMessageType(855); + getDescriptor().getMessageType(898); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacility_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacility_descriptor, @@ -45829,7 +47808,7 @@ private static void _clinit_autosplit_dinit_1() { "Facility", "Zones", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone_descriptor = - getDescriptor().getMessageType(856); + getDescriptor().getMessageType(899); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone_descriptor, @@ -45837,7 +47816,7 @@ private static void _clinit_autosplit_dinit_1() { "Attachments", "Zone", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsGetOperationalStatusResponse_descriptor = - getDescriptor().getMessageType(857); + getDescriptor().getMessageType(900); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsGetOperationalStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsGetOperationalStatusResponse_descriptor, @@ -45845,7 +47824,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsListResponse_descriptor = - getDescriptor().getMessageType(858); + getDescriptor().getMessageType(901); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsListResponse_descriptor, @@ -45853,7 +47832,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatus_descriptor = - getDescriptor().getMessageType(859); + getDescriptor().getMessageType(902); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatus_descriptor, @@ -45861,7 +47840,7 @@ private static void _clinit_autosplit_dinit_1() { "AttachmentStatuses", "Configured", "GroupStatus", "Intent", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatusAttachmentStatus_descriptor = - getDescriptor().getMessageType(860); + getDescriptor().getMessageType(903); internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatusAttachmentStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentGroupsOperationalStatusAttachmentStatus_descriptor, @@ -45869,7 +47848,7 @@ private static void _clinit_autosplit_dinit_1() { "AdminEnabled", "Attachment", "IsActive", "Status", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2Forwarding_descriptor = - getDescriptor().getMessageType(861); + getDescriptor().getMessageType(904); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2Forwarding_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentL2Forwarding_descriptor, @@ -45890,7 +47869,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingApplianceMapping_descriptor = - getDescriptor().getMessageType(862); + getDescriptor().getMessageType(905); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingApplianceMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingApplianceMapping_descriptor, @@ -45898,7 +47877,7 @@ private static void _clinit_autosplit_dinit_1() { "ApplianceIpAddress", "InnerVlanToApplianceMappings", "Name", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping_descriptor = - getDescriptor().getMessageType(863); + getDescriptor().getMessageType(906); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping_descriptor, @@ -45906,7 +47885,7 @@ private static void _clinit_autosplit_dinit_1() { "InnerApplianceIpAddress", "InnerVlanTags", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingGeneveHeader_descriptor = - getDescriptor().getMessageType(864); + getDescriptor().getMessageType(907); internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingGeneveHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentL2ForwardingGeneveHeader_descriptor, @@ -45914,7 +47893,7 @@ private static void _clinit_autosplit_dinit_1() { "Vni", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor = - getDescriptor().getMessageType(865); + getDescriptor().getMessageType(908); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor, @@ -45922,7 +47901,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentParams_descriptor = - getDescriptor().getMessageType(866); + getDescriptor().getMessageType(909); internal_static_google_cloud_compute_v1_InterconnectAttachmentParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentParams_descriptor, @@ -45939,7 +47918,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor = - getDescriptor().getMessageType(867); + getDescriptor().getMessageType(910); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor, @@ -45947,7 +47926,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectName", "PartnerName", "PortalUrl", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor = - getDescriptor().getMessageType(868); + getDescriptor().getMessageType(911); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor, @@ -45955,7 +47934,7 @@ private static void _clinit_autosplit_dinit_1() { "Tag8021Q", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor = - getDescriptor().getMessageType(869); + getDescriptor().getMessageType(912); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor, @@ -45963,7 +47942,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachments", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor = - getDescriptor().getMessageType(870); + getDescriptor().getMessageType(913); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor, @@ -45971,7 +47950,7 @@ private static void _clinit_autosplit_dinit_1() { "CustomerDemarcId", "GoogleCircuitId", "GoogleDemarcId", }); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor = - getDescriptor().getMessageType(871); + getDescriptor().getMessageType(914); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor, @@ -45983,7 +47962,7 @@ private static void _clinit_autosplit_dinit_1() { "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor = - getDescriptor().getMessageType(872); + getDescriptor().getMessageType(915); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor, @@ -45991,7 +47970,7 @@ private static void _clinit_autosplit_dinit_1() { "IpAddress", "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor = - getDescriptor().getMessageType(873); + getDescriptor().getMessageType(916); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor, @@ -45999,7 +47978,7 @@ private static void _clinit_autosplit_dinit_1() { "GoogleSystemId", "NeighborSystemId", "State", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor = - getDescriptor().getMessageType(874); + getDescriptor().getMessageType(917); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor, @@ -46007,7 +47986,7 @@ private static void _clinit_autosplit_dinit_1() { "State", "Value", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor = - getDescriptor().getMessageType(875); + getDescriptor().getMessageType(918); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor, @@ -46022,7 +48001,7 @@ private static void _clinit_autosplit_dinit_1() { "TransmittingOpticalPower", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor = - getDescriptor().getMessageType(876); + getDescriptor().getMessageType(919); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor, @@ -46030,7 +48009,7 @@ private static void _clinit_autosplit_dinit_1() { "Ckn", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectGroup_descriptor = - getDescriptor().getMessageType(877); + getDescriptor().getMessageType(920); internal_static_google_cloud_compute_v1_InterconnectGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroup_descriptor, @@ -46056,7 +48035,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectGroupConfigured_descriptor = - getDescriptor().getMessageType(878); + getDescriptor().getMessageType(921); internal_static_google_cloud_compute_v1_InterconnectGroupConfigured_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupConfigured_descriptor, @@ -46064,7 +48043,7 @@ private static void _clinit_autosplit_dinit_1() { "TopologyCapability", }); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapability_descriptor = - getDescriptor().getMessageType(879); + getDescriptor().getMessageType(922); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapability_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapability_descriptor, @@ -46072,7 +48051,7 @@ private static void _clinit_autosplit_dinit_1() { "IntendedCapabilityBlockers", "SupportedSla", }); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers_descriptor = - getDescriptor().getMessageType(880); + getDescriptor().getMessageType(923); internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers_descriptor, @@ -46086,7 +48065,7 @@ private static void _clinit_autosplit_dinit_1() { "Zones", }); internal_static_google_cloud_compute_v1_InterconnectGroupIntent_descriptor = - getDescriptor().getMessageType(881); + getDescriptor().getMessageType(924); internal_static_google_cloud_compute_v1_InterconnectGroupIntent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupIntent_descriptor, @@ -46094,7 +48073,7 @@ private static void _clinit_autosplit_dinit_1() { "TopologyCapability", }); internal_static_google_cloud_compute_v1_InterconnectGroupInterconnect_descriptor = - getDescriptor().getMessageType(882); + getDescriptor().getMessageType(925); internal_static_google_cloud_compute_v1_InterconnectGroupInterconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupInterconnect_descriptor, @@ -46102,7 +48081,7 @@ private static void _clinit_autosplit_dinit_1() { "Interconnect", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructure_descriptor = - getDescriptor().getMessageType(883); + getDescriptor().getMessageType(926); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructure_descriptor, @@ -46110,7 +48089,7 @@ private static void _clinit_autosplit_dinit_1() { "Metros", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetros_descriptor = - getDescriptor().getMessageType(884); + getDescriptor().getMessageType(927); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetros_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetros_descriptor, @@ -46118,7 +48097,7 @@ private static void _clinit_autosplit_dinit_1() { "Facilities", "Metro", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilities_descriptor = - getDescriptor().getMessageType(885); + getDescriptor().getMessageType(928); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilities_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilities_descriptor, @@ -46126,7 +48105,7 @@ private static void _clinit_autosplit_dinit_1() { "Facility", "Zones", }); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilitiesZones_descriptor = - getDescriptor().getMessageType(886); + getDescriptor().getMessageType(929); internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilitiesZones_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupPhysicalStructureMetrosFacilitiesZones_descriptor, @@ -46134,7 +48113,7 @@ private static void _clinit_autosplit_dinit_1() { "Interconnects", "Zone", }); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembers_descriptor = - getDescriptor().getMessageType(887); + getDescriptor().getMessageType(930); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembers_descriptor, @@ -46142,7 +48121,7 @@ private static void _clinit_autosplit_dinit_1() { "IntentMismatchBehavior", "Interconnects", "TemplateInterconnect", }); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersInterconnectInput_descriptor = - getDescriptor().getMessageType(888); + getDescriptor().getMessageType(931); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersInterconnectInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersInterconnectInput_descriptor, @@ -46160,7 +48139,7 @@ private static void _clinit_autosplit_dinit_1() { "RequestedLinkCount", }); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersRequest_descriptor = - getDescriptor().getMessageType(889); + getDescriptor().getMessageType(932); internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsCreateMembersRequest_descriptor, @@ -46168,7 +48147,7 @@ private static void _clinit_autosplit_dinit_1() { "Request", }); internal_static_google_cloud_compute_v1_InterconnectGroupsGetOperationalStatusResponse_descriptor = - getDescriptor().getMessageType(890); + getDescriptor().getMessageType(933); internal_static_google_cloud_compute_v1_InterconnectGroupsGetOperationalStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsGetOperationalStatusResponse_descriptor, @@ -46176,15 +48155,19 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InterconnectGroupsListResponse_descriptor = - getDescriptor().getMessageType(891); + getDescriptor().getMessageType(934); internal_static_google_cloud_compute_v1_InterconnectGroupsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsListResponse_descriptor, new java.lang.String[] { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); + _clinit_autosplit_dinit_2(); + } + + private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatus_descriptor = - getDescriptor().getMessageType(892); + getDescriptor().getMessageType(935); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatus_descriptor, @@ -46192,7 +48175,7 @@ private static void _clinit_autosplit_dinit_1() { "Configured", "GroupStatus", "Intent", "InterconnectStatuses", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatusInterconnectStatus_descriptor = - getDescriptor().getMessageType(893); + getDescriptor().getMessageType(936); internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatusInterconnectStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectGroupsOperationalStatusInterconnectStatus_descriptor, @@ -46200,7 +48183,7 @@ private static void _clinit_autosplit_dinit_1() { "AdminEnabled", "Diagnostics", "Interconnect", "IsActive", }); internal_static_google_cloud_compute_v1_InterconnectList_descriptor = - getDescriptor().getMessageType(894); + getDescriptor().getMessageType(937); internal_static_google_cloud_compute_v1_InterconnectList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectList_descriptor, @@ -46208,7 +48191,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor = - getDescriptor().getMessageType(895); + getDescriptor().getMessageType(938); internal_static_google_cloud_compute_v1_InterconnectLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor, @@ -46235,7 +48218,7 @@ private static void _clinit_autosplit_dinit_1() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_InterconnectLocationCrossSiteInterconnectInfo_descriptor = - getDescriptor().getMessageType(896); + getDescriptor().getMessageType(939); internal_static_google_cloud_compute_v1_InterconnectLocationCrossSiteInterconnectInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationCrossSiteInterconnectInfo_descriptor, @@ -46243,7 +48226,7 @@ private static void _clinit_autosplit_dinit_1() { "City", }); internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor = - getDescriptor().getMessageType(897); + getDescriptor().getMessageType(940); internal_static_google_cloud_compute_v1_InterconnectLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor, @@ -46251,7 +48234,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor = - getDescriptor().getMessageType(898); + getDescriptor().getMessageType(941); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor, @@ -46259,7 +48242,7 @@ private static void _clinit_autosplit_dinit_1() { "ExpectedRttMs", "L2ForwardingEnabled", "LocationPresence", "Region", }); internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor = - getDescriptor().getMessageType(899); + getDescriptor().getMessageType(942); internal_static_google_cloud_compute_v1_InterconnectMacsec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor, @@ -46267,7 +48250,7 @@ private static void _clinit_autosplit_dinit_1() { "FailOpen", "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor = - getDescriptor().getMessageType(900); + getDescriptor().getMessageType(943); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor, @@ -46275,7 +48258,7 @@ private static void _clinit_autosplit_dinit_1() { "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor = - getDescriptor().getMessageType(901); + getDescriptor().getMessageType(944); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor, @@ -46283,7 +48266,7 @@ private static void _clinit_autosplit_dinit_1() { "Cak", "Ckn", "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor = - getDescriptor().getMessageType(902); + getDescriptor().getMessageType(945); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor, @@ -46291,7 +48274,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor = - getDescriptor().getMessageType(903); + getDescriptor().getMessageType(946); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor, @@ -46306,7 +48289,7 @@ private static void _clinit_autosplit_dinit_1() { "State", }); internal_static_google_cloud_compute_v1_InterconnectParams_descriptor = - getDescriptor().getMessageType(904); + getDescriptor().getMessageType(947); internal_static_google_cloud_compute_v1_InterconnectParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectParams_descriptor, @@ -46322,7 +48305,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor = - getDescriptor().getMessageType(905); + getDescriptor().getMessageType(948); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor, @@ -46350,7 +48333,7 @@ private static void _clinit_autosplit_dinit_1() { "Status", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor = - getDescriptor().getMessageType(906); + getDescriptor().getMessageType(949); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor, @@ -46358,7 +48341,7 @@ private static void _clinit_autosplit_dinit_1() { "PortPairRemoteLocation", "PortPairVlan", "SubnetLengthRange", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor = - getDescriptor().getMessageType(907); + getDescriptor().getMessageType(950); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor, @@ -46366,7 +48349,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor = - getDescriptor().getMessageType(908); + getDescriptor().getMessageType(951); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor, @@ -46374,7 +48357,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor = - getDescriptor().getMessageType(909); + getDescriptor().getMessageType(952); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor, @@ -46382,7 +48365,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectLocation", }); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor = - getDescriptor().getMessageType(910); + getDescriptor().getMessageType(953); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor, @@ -46390,7 +48373,7 @@ private static void _clinit_autosplit_dinit_1() { "Result", }); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor = - getDescriptor().getMessageType(911); + getDescriptor().getMessageType(954); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor, @@ -46398,14 +48381,14 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor = - getDescriptor().getMessageType(912); + getDescriptor().getMessageType(955); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor, new java.lang.String[] { "CacheInvalidationRuleResource", "Project", "RequestId", "UrlMap", }); - internal_static_google_cloud_compute_v1_Items_descriptor = getDescriptor().getMessageType(913); + internal_static_google_cloud_compute_v1_Items_descriptor = getDescriptor().getMessageType(956); internal_static_google_cloud_compute_v1_Items_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Items_descriptor, @@ -46413,7 +48396,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_License_descriptor = - getDescriptor().getMessageType(914); + getDescriptor().getMessageType(957); internal_static_google_cloud_compute_v1_License_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_License_descriptor, @@ -46442,7 +48425,7 @@ private static void _clinit_autosplit_dinit_1() { "UpdateTimestamp", }); internal_static_google_cloud_compute_v1_LicenseCode_descriptor = - getDescriptor().getMessageType(915); + getDescriptor().getMessageType(958); internal_static_google_cloud_compute_v1_LicenseCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCode_descriptor, @@ -46458,7 +48441,7 @@ private static void _clinit_autosplit_dinit_1() { "Transferable", }); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor = - getDescriptor().getMessageType(916); + getDescriptor().getMessageType(959); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor, @@ -46466,7 +48449,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "SelfLink", }); internal_static_google_cloud_compute_v1_LicenseParams_descriptor = - getDescriptor().getMessageType(917); + getDescriptor().getMessageType(960); internal_static_google_cloud_compute_v1_LicenseParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseParams_descriptor, @@ -46482,7 +48465,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor = - getDescriptor().getMessageType(918); + getDescriptor().getMessageType(961); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor, @@ -46490,7 +48473,7 @@ private static void _clinit_autosplit_dinit_1() { "Amount", "CoresPerLicense", "License", }); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor = - getDescriptor().getMessageType(919); + getDescriptor().getMessageType(962); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor, @@ -46498,7 +48481,7 @@ private static void _clinit_autosplit_dinit_1() { "MinGuestCpuCount", "MinMemoryMb", }); internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor = - getDescriptor().getMessageType(920); + getDescriptor().getMessageType(963); internal_static_google_cloud_compute_v1_LicensesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor, @@ -46506,7 +48489,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor = - getDescriptor().getMessageType(921); + getDescriptor().getMessageType(964); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor, @@ -46520,7 +48503,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor = - getDescriptor().getMessageType(922); + getDescriptor().getMessageType(965); internal_static_google_cloud_compute_v1_ListAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor, @@ -46534,7 +48517,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(923); + getDescriptor().getMessageType(966); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor, @@ -46542,7 +48525,7 @@ private static void _clinit_autosplit_dinit_1() { "IncludeInheritedPolicies", "TargetResource", }); internal_static_google_cloud_compute_v1_ListAssociationsOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(924); + getDescriptor().getMessageType(967); internal_static_google_cloud_compute_v1_ListAssociationsOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAssociationsOrganizationSecurityPolicyRequest_descriptor, @@ -46550,7 +48533,7 @@ private static void _clinit_autosplit_dinit_1() { "TargetResource", }); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor = - getDescriptor().getMessageType(925); + getDescriptor().getMessageType(968); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor, @@ -46564,7 +48547,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageType(926); + getDescriptor().getMessageType(969); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor, @@ -46578,7 +48561,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor = - getDescriptor().getMessageType(927); + getDescriptor().getMessageType(970); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor, @@ -46586,7 +48569,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor = - getDescriptor().getMessageType(928); + getDescriptor().getMessageType(971); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor, @@ -46594,7 +48577,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor = - getDescriptor().getMessageType(929); + getDescriptor().getMessageType(972); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor, @@ -46602,7 +48585,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListBgpRoutesRoutersRequest_descriptor = - getDescriptor().getMessageType(930); + getDescriptor().getMessageType(973); internal_static_google_cloud_compute_v1_ListBgpRoutesRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBgpRoutesRoutersRequest_descriptor, @@ -46622,19 +48605,15 @@ private static void _clinit_autosplit_dinit_1() { "Router", }); internal_static_google_cloud_compute_v1_ListCrossSiteNetworksRequest_descriptor = - getDescriptor().getMessageType(931); + getDescriptor().getMessageType(974); internal_static_google_cloud_compute_v1_ListCrossSiteNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListCrossSiteNetworksRequest_descriptor, new java.lang.String[] { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); - _clinit_autosplit_dinit_2(); - } - - private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor = - getDescriptor().getMessageType(932); + getDescriptor().getMessageType(975); internal_static_google_cloud_compute_v1_ListDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor, @@ -46648,7 +48627,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor = - getDescriptor().getMessageType(933); + getDescriptor().getMessageType(976); internal_static_google_cloud_compute_v1_ListDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor, @@ -46662,7 +48641,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor = - getDescriptor().getMessageType(934); + getDescriptor().getMessageType(977); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor, @@ -46677,7 +48656,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(935); + getDescriptor().getMessageType(978); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor, @@ -46692,7 +48671,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(936); + getDescriptor().getMessageType(979); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor, @@ -46707,7 +48686,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor = - getDescriptor().getMessageType(937); + getDescriptor().getMessageType(980); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor, @@ -46715,7 +48694,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageType(938); + getDescriptor().getMessageType(981); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor, @@ -46723,7 +48702,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor = - getDescriptor().getMessageType(939); + getDescriptor().getMessageType(982); internal_static_google_cloud_compute_v1_ListFirewallsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor, @@ -46731,7 +48710,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor = - getDescriptor().getMessageType(940); + getDescriptor().getMessageType(983); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor, @@ -46745,7 +48724,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListFutureReservationsRequest_descriptor = - getDescriptor().getMessageType(941); + getDescriptor().getMessageType(984); internal_static_google_cloud_compute_v1_ListFutureReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFutureReservationsRequest_descriptor, @@ -46759,7 +48738,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor = - getDescriptor().getMessageType(942); + getDescriptor().getMessageType(985); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor, @@ -46767,7 +48746,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor = - getDescriptor().getMessageType(943); + getDescriptor().getMessageType(986); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor, @@ -46775,7 +48754,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(944); + getDescriptor().getMessageType(987); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor, @@ -46783,7 +48762,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor = - getDescriptor().getMessageType(945); + getDescriptor().getMessageType(988); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor, @@ -46791,7 +48770,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor = - getDescriptor().getMessageType(946); + getDescriptor().getMessageType(989); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor, @@ -46799,7 +48778,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageType(947); + getDescriptor().getMessageType(990); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor, @@ -46807,7 +48786,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor = - getDescriptor().getMessageType(948); + getDescriptor().getMessageType(991); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor, @@ -46815,7 +48794,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor = - getDescriptor().getMessageType(949); + getDescriptor().getMessageType(992); internal_static_google_cloud_compute_v1_ListImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor, @@ -46823,7 +48802,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor = - getDescriptor().getMessageType(950); + getDescriptor().getMessageType(993); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor, @@ -46838,7 +48817,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(951); + getDescriptor().getMessageType(994); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor, @@ -46852,7 +48831,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor = - getDescriptor().getMessageType(952); + getDescriptor().getMessageType(995); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor, @@ -46866,7 +48845,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageType(953); + getDescriptor().getMessageType(996); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor, @@ -46874,7 +48853,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor = - getDescriptor().getMessageType(954); + getDescriptor().getMessageType(997); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor, @@ -46890,7 +48869,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageType(955); + getDescriptor().getMessageType(998); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor, @@ -46906,7 +48885,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageType(956); + getDescriptor().getMessageType(999); internal_static_google_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor, @@ -46919,8 +48898,30 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", "Zone", }); + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_descriptor = + getDescriptor().getMessageType(1000); + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_descriptor, + new java.lang.String[] { + "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", + }); + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_descriptor = + getDescriptor().getMessageType(1001); + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_descriptor, + new java.lang.String[] { + "Filter", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "ReturnPartialSuccess", + "Zone", + }); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageType(957); + getDescriptor().getMessageType(1002); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor, @@ -46934,7 +48935,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentGroupsRequest_descriptor = - getDescriptor().getMessageType(958); + getDescriptor().getMessageType(1003); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectAttachmentGroupsRequest_descriptor, @@ -46942,7 +48943,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor = - getDescriptor().getMessageType(959); + getDescriptor().getMessageType(1004); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor, @@ -46956,7 +48957,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectGroupsRequest_descriptor = - getDescriptor().getMessageType(960); + getDescriptor().getMessageType(1005); internal_static_google_cloud_compute_v1_ListInterconnectGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectGroupsRequest_descriptor, @@ -46964,7 +48965,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor = - getDescriptor().getMessageType(961); + getDescriptor().getMessageType(1006); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor, @@ -46972,7 +48973,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor = - getDescriptor().getMessageType(962); + getDescriptor().getMessageType(1007); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor, @@ -46980,7 +48981,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor = - getDescriptor().getMessageType(963); + getDescriptor().getMessageType(1008); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor, @@ -46988,7 +48989,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor = - getDescriptor().getMessageType(964); + getDescriptor().getMessageType(1009); internal_static_google_cloud_compute_v1_ListLicensesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor, @@ -46996,7 +48997,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor = - getDescriptor().getMessageType(965); + getDescriptor().getMessageType(1010); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor, @@ -47004,7 +49005,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor = - getDescriptor().getMessageType(966); + getDescriptor().getMessageType(1011); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor, @@ -47018,7 +49019,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(967); + getDescriptor().getMessageType(1012); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor, @@ -47033,7 +49034,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(968); + getDescriptor().getMessageType(1013); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor, @@ -47048,7 +49049,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor = - getDescriptor().getMessageType(969); + getDescriptor().getMessageType(1014); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor, @@ -47062,7 +49063,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(970); + getDescriptor().getMessageType(1015); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor, @@ -47076,7 +49077,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(971); + getDescriptor().getMessageType(1016); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor, @@ -47090,7 +49091,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(972); + getDescriptor().getMessageType(1017); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor, @@ -47106,7 +49107,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(973); + getDescriptor().getMessageType(1018); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor, @@ -47121,7 +49122,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageType(974); + getDescriptor().getMessageType(1019); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor, @@ -47129,7 +49130,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor = - getDescriptor().getMessageType(975); + getDescriptor().getMessageType(1020); internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor, @@ -47137,7 +49138,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor = - getDescriptor().getMessageType(976); + getDescriptor().getMessageType(1021); internal_static_google_cloud_compute_v1_ListNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor, @@ -47145,7 +49146,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor = - getDescriptor().getMessageType(977); + getDescriptor().getMessageType(1022); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor, @@ -47159,7 +49160,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor = - getDescriptor().getMessageType(978); + getDescriptor().getMessageType(1023); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor, @@ -47173,7 +49174,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor = - getDescriptor().getMessageType(979); + getDescriptor().getMessageType(1024); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor, @@ -47187,7 +49188,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor = - getDescriptor().getMessageType(980); + getDescriptor().getMessageType(1025); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor, @@ -47202,7 +49203,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListOrganizationSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageType(981); + getDescriptor().getMessageType(1026); internal_static_google_cloud_compute_v1_ListOrganizationSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListOrganizationSecurityPoliciesRequest_descriptor, @@ -47210,7 +49211,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor = - getDescriptor().getMessageType(982); + getDescriptor().getMessageType(1027); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor, @@ -47224,7 +49225,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor = - getDescriptor().getMessageType(983); + getDescriptor().getMessageType(1028); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor, @@ -47241,7 +49242,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(984); + getDescriptor().getMessageType(1029); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor, @@ -47256,7 +49257,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(985); + getDescriptor().getMessageType(1030); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor, @@ -47271,7 +49272,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageType(986); + getDescriptor().getMessageType(1031); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest_descriptor, @@ -47279,7 +49280,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "ParentId", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageType(987); + getDescriptor().getMessageType(1032); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor, @@ -47287,7 +49288,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPreviewFeaturesRequest_descriptor = - getDescriptor().getMessageType(988); + getDescriptor().getMessageType(1033); internal_static_google_cloud_compute_v1_ListPreviewFeaturesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPreviewFeaturesRequest_descriptor, @@ -47295,7 +49296,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor = - getDescriptor().getMessageType(989); + getDescriptor().getMessageType(1034); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor, @@ -47303,7 +49304,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageType(990); + getDescriptor().getMessageType(1035); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor, @@ -47317,7 +49318,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor = - getDescriptor().getMessageType(991); + getDescriptor().getMessageType(1036); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor, @@ -47332,7 +49333,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor = - getDescriptor().getMessageType(992); + getDescriptor().getMessageType(1037); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor, @@ -47345,8 +49346,22 @@ private static void _clinit_autosplit_dinit_2() { "Region", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_descriptor = + getDescriptor().getMessageType(1038); + internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_descriptor, + new java.lang.String[] { + "Filter", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "Region", + "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageType(993); + getDescriptor().getMessageType(1039); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor, @@ -47360,7 +49375,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor = - getDescriptor().getMessageType(994); + getDescriptor().getMessageType(1040); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor, @@ -47374,7 +49389,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionCompositeHealthChecksRequest_descriptor = - getDescriptor().getMessageType(995); + getDescriptor().getMessageType(1041); internal_static_google_cloud_compute_v1_ListRegionCompositeHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionCompositeHealthChecksRequest_descriptor, @@ -47388,7 +49403,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor = - getDescriptor().getMessageType(996); + getDescriptor().getMessageType(1042); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor, @@ -47402,7 +49417,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor = - getDescriptor().getMessageType(997); + getDescriptor().getMessageType(1043); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor, @@ -47416,7 +49431,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthAggregationPoliciesRequest_descriptor = - getDescriptor().getMessageType(998); + getDescriptor().getMessageType(1044); internal_static_google_cloud_compute_v1_ListRegionHealthAggregationPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthAggregationPoliciesRequest_descriptor, @@ -47430,7 +49445,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor = - getDescriptor().getMessageType(999); + getDescriptor().getMessageType(1045); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor, @@ -47444,7 +49459,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor = - getDescriptor().getMessageType(1000); + getDescriptor().getMessageType(1046); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor, @@ -47458,7 +49473,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthSourcesRequest_descriptor = - getDescriptor().getMessageType(1001); + getDescriptor().getMessageType(1047); internal_static_google_cloud_compute_v1_ListRegionHealthSourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthSourcesRequest_descriptor, @@ -47471,8 +49486,23 @@ private static void _clinit_autosplit_dinit_2() { "Region", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_descriptor = + getDescriptor().getMessageType(1048); + internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_descriptor, + new java.lang.String[] { + "Filter", + "InstanceGroupManager", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "Region", + "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageType(1002); + getDescriptor().getMessageType(1049); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor, @@ -47486,7 +49516,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageType(1003); + getDescriptor().getMessageType(1050); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor, @@ -47500,7 +49530,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageType(1004); + getDescriptor().getMessageType(1051); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor, @@ -47513,8 +49543,22 @@ private static void _clinit_autosplit_dinit_2() { "Region", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_descriptor = + getDescriptor().getMessageType(1052); + internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_descriptor, + new java.lang.String[] { + "Filter", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "Region", + "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageType(1005); + getDescriptor().getMessageType(1053); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor, @@ -47528,7 +49572,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageType(1006); + getDescriptor().getMessageType(1054); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor, @@ -47542,7 +49586,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageType(1007); + getDescriptor().getMessageType(1055); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor, @@ -47556,7 +49600,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor = - getDescriptor().getMessageType(1008); + getDescriptor().getMessageType(1056); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor, @@ -47570,7 +49614,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor = - getDescriptor().getMessageType(1009); + getDescriptor().getMessageType(1057); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor, @@ -47584,7 +49628,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageType(1010); + getDescriptor().getMessageType(1058); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor, @@ -47597,8 +49641,22 @@ private static void _clinit_autosplit_dinit_2() { "Region", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_descriptor = + getDescriptor().getMessageType(1059); + internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_descriptor, + new java.lang.String[] { + "Filter", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "Region", + "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor = - getDescriptor().getMessageType(1011); + getDescriptor().getMessageType(1060); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor, @@ -47612,7 +49670,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageType(1012); + getDescriptor().getMessageType(1061); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor, @@ -47626,7 +49684,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageType(1013); + getDescriptor().getMessageType(1062); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor, @@ -47640,7 +49698,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageType(1014); + getDescriptor().getMessageType(1063); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor, @@ -47654,7 +49712,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageType(1015); + getDescriptor().getMessageType(1064); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor, @@ -47668,7 +49726,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor = - getDescriptor().getMessageType(1016); + getDescriptor().getMessageType(1065); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor, @@ -47682,7 +49740,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor = - getDescriptor().getMessageType(1017); + getDescriptor().getMessageType(1066); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor, @@ -47696,7 +49754,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor = - getDescriptor().getMessageType(1018); + getDescriptor().getMessageType(1067); internal_static_google_cloud_compute_v1_ListRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor, @@ -47704,7 +49762,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReservationBlocksRequest_descriptor = - getDescriptor().getMessageType(1019); + getDescriptor().getMessageType(1068); internal_static_google_cloud_compute_v1_ListReservationBlocksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationBlocksRequest_descriptor, @@ -47719,7 +49777,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListReservationSlotsRequest_descriptor = - getDescriptor().getMessageType(1020); + getDescriptor().getMessageType(1069); internal_static_google_cloud_compute_v1_ListReservationSlotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationSlotsRequest_descriptor, @@ -47734,7 +49792,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListReservationSubBlocksRequest_descriptor = - getDescriptor().getMessageType(1021); + getDescriptor().getMessageType(1070); internal_static_google_cloud_compute_v1_ListReservationSubBlocksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationSubBlocksRequest_descriptor, @@ -47749,7 +49807,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageType(1022); + getDescriptor().getMessageType(1071); internal_static_google_cloud_compute_v1_ListReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor, @@ -47763,7 +49821,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(1023); + getDescriptor().getMessageType(1072); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor, @@ -47777,7 +49835,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutePoliciesRoutersRequest_descriptor = - getDescriptor().getMessageType(1024); + getDescriptor().getMessageType(1073); internal_static_google_cloud_compute_v1_ListRoutePoliciesRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutePoliciesRoutersRequest_descriptor, @@ -47792,7 +49850,7 @@ private static void _clinit_autosplit_dinit_2() { "Router", }); internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor = - getDescriptor().getMessageType(1025); + getDescriptor().getMessageType(1074); internal_static_google_cloud_compute_v1_ListRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor, @@ -47806,7 +49864,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageType(1026); + getDescriptor().getMessageType(1075); internal_static_google_cloud_compute_v1_ListRoutesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor, @@ -47814,7 +49872,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageType(1027); + getDescriptor().getMessageType(1076); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor, @@ -47822,7 +49880,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor = - getDescriptor().getMessageType(1028); + getDescriptor().getMessageType(1077); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor, @@ -47836,7 +49894,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageType(1029); + getDescriptor().getMessageType(1078); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor, @@ -47844,7 +49902,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor = - getDescriptor().getMessageType(1030); + getDescriptor().getMessageType(1079); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor, @@ -47852,7 +49910,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor = - getDescriptor().getMessageType(1031); + getDescriptor().getMessageType(1080); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor, @@ -47860,7 +49918,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor = - getDescriptor().getMessageType(1032); + getDescriptor().getMessageType(1081); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor, @@ -47874,7 +49932,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor = - getDescriptor().getMessageType(1033); + getDescriptor().getMessageType(1082); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor, @@ -47888,7 +49946,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor = - getDescriptor().getMessageType(1034); + getDescriptor().getMessageType(1083); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor, @@ -47903,7 +49961,7 @@ private static void _clinit_autosplit_dinit_2() { "Views", }); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor = - getDescriptor().getMessageType(1035); + getDescriptor().getMessageType(1084); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor, @@ -47911,7 +49969,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageType(1036); + getDescriptor().getMessageType(1085); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor, @@ -47919,7 +49977,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageType(1037); + getDescriptor().getMessageType(1086); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor, @@ -47927,7 +49985,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor = - getDescriptor().getMessageType(1038); + getDescriptor().getMessageType(1087); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor, @@ -47941,7 +49999,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor = - getDescriptor().getMessageType(1039); + getDescriptor().getMessageType(1088); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor, @@ -47955,7 +50013,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor = - getDescriptor().getMessageType(1040); + getDescriptor().getMessageType(1089); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor, @@ -47963,7 +50021,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageType(1041); + getDescriptor().getMessageType(1090); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor, @@ -47971,7 +50029,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor = - getDescriptor().getMessageType(1042); + getDescriptor().getMessageType(1091); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor, @@ -47985,23 +50043,45 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor = - getDescriptor().getMessageType(1043); + getDescriptor().getMessageType(1092); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor, new java.lang.String[] { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_descriptor = + getDescriptor().getMessageType(1093); + internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_descriptor, + new java.lang.String[] { + "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor = - getDescriptor().getMessageType(1044); + getDescriptor().getMessageType(1094); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor, new java.lang.String[] { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); + internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_descriptor = + getDescriptor().getMessageType(1095); + internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_descriptor, + new java.lang.String[] { + "Filter", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "Region", + "ReturnPartialSuccess", + }); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageType(1045); + getDescriptor().getMessageType(1096); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor, @@ -48015,7 +50095,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor = - getDescriptor().getMessageType(1046); + getDescriptor().getMessageType(1097); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor, @@ -48029,7 +50109,7 @@ private static void _clinit_autosplit_dinit_2() { "ServiceProject", }); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor = - getDescriptor().getMessageType(1047); + getDescriptor().getMessageType(1098); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor, @@ -48043,7 +50123,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor = - getDescriptor().getMessageType(1048); + getDescriptor().getMessageType(1099); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor, @@ -48057,7 +50137,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListWireGroupsRequest_descriptor = - getDescriptor().getMessageType(1049); + getDescriptor().getMessageType(1100); internal_static_google_cloud_compute_v1_ListWireGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListWireGroupsRequest_descriptor, @@ -48071,7 +50151,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor = - getDescriptor().getMessageType(1050); + getDescriptor().getMessageType(1101); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor, @@ -48085,7 +50165,7 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor = - getDescriptor().getMessageType(1051); + getDescriptor().getMessageType(1102); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor, @@ -48098,8 +50178,22 @@ private static void _clinit_autosplit_dinit_2() { "ReturnPartialSuccess", "Zone", }); + internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_descriptor = + getDescriptor().getMessageType(1103); + internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_descriptor, + new java.lang.String[] { + "Filter", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "ReturnPartialSuccess", + "Zone", + }); internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor = - getDescriptor().getMessageType(1052); + getDescriptor().getMessageType(1104); internal_static_google_cloud_compute_v1_ListZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor, @@ -48107,7 +50201,7 @@ private static void _clinit_autosplit_dinit_2() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_LocalDisk_descriptor = - getDescriptor().getMessageType(1053); + getDescriptor().getMessageType(1105); internal_static_google_cloud_compute_v1_LocalDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalDisk_descriptor, @@ -48115,7 +50209,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskCount", "DiskSizeGb", "DiskType", }); internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor = - getDescriptor().getMessageType(1054); + getDescriptor().getMessageType(1106); internal_static_google_cloud_compute_v1_LocalizedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor, @@ -48123,7 +50217,7 @@ private static void _clinit_autosplit_dinit_2() { "Locale", "Message", }); internal_static_google_cloud_compute_v1_LocationPolicy_descriptor = - getDescriptor().getMessageType(1055); + getDescriptor().getMessageType(1107); internal_static_google_cloud_compute_v1_LocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicy_descriptor, @@ -48139,7 +50233,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor = - getDescriptor().getMessageType(1056); + getDescriptor().getMessageType(1108); internal_static_google_cloud_compute_v1_LocationPolicyLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor, @@ -48147,7 +50241,7 @@ private static void _clinit_autosplit_dinit_2() { "Constraints", "Preference", }); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor = - getDescriptor().getMessageType(1057); + getDescriptor().getMessageType(1109); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor, @@ -48155,7 +50249,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxCount", }); internal_static_google_cloud_compute_v1_LocationPolicyZoneConfiguration_descriptor = - getDescriptor().getMessageType(1058); + getDescriptor().getMessageType(1110); internal_static_google_cloud_compute_v1_LocationPolicyZoneConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyZoneConfiguration_descriptor, @@ -48163,7 +50257,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_MachineImage_descriptor = - getDescriptor().getMessageType(1059); + getDescriptor().getMessageType(1111); internal_static_google_cloud_compute_v1_MachineImage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImage_descriptor, @@ -48199,7 +50293,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineImageList_descriptor = - getDescriptor().getMessageType(1060); + getDescriptor().getMessageType(1112); internal_static_google_cloud_compute_v1_MachineImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImageList_descriptor, @@ -48207,7 +50301,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_MachineImageParams_descriptor = - getDescriptor().getMessageType(1061); + getDescriptor().getMessageType(1113); internal_static_google_cloud_compute_v1_MachineImageParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImageParams_descriptor, @@ -48223,7 +50317,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineType_descriptor = - getDescriptor().getMessageType(1062); + getDescriptor().getMessageType(1114); internal_static_google_cloud_compute_v1_MachineType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineType_descriptor, @@ -48247,7 +50341,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor = - getDescriptor().getMessageType(1063); + getDescriptor().getMessageType(1115); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor, @@ -48264,7 +50358,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineTypeList_descriptor = - getDescriptor().getMessageType(1064); + getDescriptor().getMessageType(1116); internal_static_google_cloud_compute_v1_MachineTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeList_descriptor, @@ -48272,7 +50366,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor = - getDescriptor().getMessageType(1065); + getDescriptor().getMessageType(1117); internal_static_google_cloud_compute_v1_MachineTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor, @@ -48280,7 +50374,7 @@ private static void _clinit_autosplit_dinit_2() { "MachineTypes", "Warning", }); internal_static_google_cloud_compute_v1_ManagedInstance_descriptor = - getDescriptor().getMessageType(1066); + getDescriptor().getMessageType(1118); internal_static_google_cloud_compute_v1_ManagedInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstance_descriptor, @@ -48298,7 +50392,7 @@ private static void _clinit_autosplit_dinit_2() { "Version", }); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor = - getDescriptor().getMessageType(1067); + getDescriptor().getMessageType(1119); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor, @@ -48306,7 +50400,7 @@ private static void _clinit_autosplit_dinit_2() { "DetailedHealthState", "HealthCheck", }); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor = - getDescriptor().getMessageType(1068); + getDescriptor().getMessageType(1120); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor, @@ -48314,7 +50408,7 @@ private static void _clinit_autosplit_dinit_2() { "Errors", }); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttemptErrors_descriptor = - getDescriptor().getMessageType(1069); + getDescriptor().getMessageType(1121); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttemptErrors_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceLastAttemptErrors_descriptor, @@ -48322,7 +50416,7 @@ private static void _clinit_autosplit_dinit_2() { "Errors", }); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor = - getDescriptor().getMessageType(1070); + getDescriptor().getMessageType(1122); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor, @@ -48330,7 +50424,7 @@ private static void _clinit_autosplit_dinit_2() { "MachineType", }); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor = - getDescriptor().getMessageType(1071); + getDescriptor().getMessageType(1123); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor, @@ -48338,7 +50432,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceTemplate", "Name", }); internal_static_google_cloud_compute_v1_Metadata_descriptor = - getDescriptor().getMessageType(1072); + getDescriptor().getMessageType(1124); internal_static_google_cloud_compute_v1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Metadata_descriptor, @@ -48346,7 +50440,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Items", "Kind", }); internal_static_google_cloud_compute_v1_MetadataFilter_descriptor = - getDescriptor().getMessageType(1073); + getDescriptor().getMessageType(1125); internal_static_google_cloud_compute_v1_MetadataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilter_descriptor, @@ -48354,7 +50448,7 @@ private static void _clinit_autosplit_dinit_2() { "FilterLabels", "FilterMatchCriteria", }); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor = - getDescriptor().getMessageType(1074); + getDescriptor().getMessageType(1126); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor, @@ -48362,7 +50456,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Value", }); internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor = - getDescriptor().getMessageType(1075); + getDescriptor().getMessageType(1127); internal_static_google_cloud_compute_v1_MoveAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor, @@ -48370,7 +50464,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "Project", "Region", "RegionAddressesMoveRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor = - getDescriptor().getMessageType(1076); + getDescriptor().getMessageType(1128); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor, @@ -48378,7 +50472,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1077); + getDescriptor().getMessageType(1129); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor, @@ -48386,7 +50480,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor = - getDescriptor().getMessageType(1078); + getDescriptor().getMessageType(1130); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor, @@ -48394,7 +50488,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "GlobalAddressesMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor = - getDescriptor().getMessageType(1079); + getDescriptor().getMessageType(1131); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor, @@ -48402,7 +50496,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1080); + getDescriptor().getMessageType(1132); internal_static_google_cloud_compute_v1_MoveOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveOrganizationSecurityPolicyRequest_descriptor, @@ -48410,7 +50504,7 @@ private static void _clinit_autosplit_dinit_2() { "ParentId", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_NamedPort_descriptor = - getDescriptor().getMessageType(1081); + getDescriptor().getMessageType(1133); internal_static_google_cloud_compute_v1_NamedPort_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NamedPort_descriptor, @@ -48418,7 +50512,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Port", }); internal_static_google_cloud_compute_v1_NatIpInfo_descriptor = - getDescriptor().getMessageType(1082); + getDescriptor().getMessageType(1134); internal_static_google_cloud_compute_v1_NatIpInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfo_descriptor, @@ -48426,7 +50520,7 @@ private static void _clinit_autosplit_dinit_2() { "NatIpInfoMappings", "NatName", }); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor = - getDescriptor().getMessageType(1083); + getDescriptor().getMessageType(1135); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor, @@ -48434,7 +50528,7 @@ private static void _clinit_autosplit_dinit_2() { "Mode", "NatIp", "Usage", }); internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor = - getDescriptor().getMessageType(1084); + getDescriptor().getMessageType(1136); internal_static_google_cloud_compute_v1_NatIpInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor, @@ -48442,7 +50536,7 @@ private static void _clinit_autosplit_dinit_2() { "Result", }); internal_static_google_cloud_compute_v1_Network_descriptor = - getDescriptor().getMessageType(1085); + getDescriptor().getMessageType(1137); internal_static_google_cloud_compute_v1_Network_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Network_descriptor, @@ -48469,7 +50563,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor = - getDescriptor().getMessageType(1086); + getDescriptor().getMessageType(1138); internal_static_google_cloud_compute_v1_NetworkAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor, @@ -48491,7 +50585,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor = - getDescriptor().getMessageType(1087); + getDescriptor().getMessageType(1139); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor, @@ -48508,7 +50602,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageType(1088); + getDescriptor().getMessageType(1140); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor, @@ -48517,12 +50611,13 @@ private static void _clinit_autosplit_dinit_2() { "Ipv6Address", "ProjectIdOrNum", "SecondaryIpCidrRanges", + "ServiceClassId", "Status", "Subnetwork", "SubnetworkCidrRange", }); internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor = - getDescriptor().getMessageType(1089); + getDescriptor().getMessageType(1141); internal_static_google_cloud_compute_v1_NetworkAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor, @@ -48530,7 +50625,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor = - getDescriptor().getMessageType(1090); + getDescriptor().getMessageType(1142); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor, @@ -48538,7 +50633,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkAttachments", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor = - getDescriptor().getMessageType(1091); + getDescriptor().getMessageType(1143); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor, @@ -48555,7 +50650,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLinkWithId", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor = - getDescriptor().getMessageType(1092); + getDescriptor().getMessageType(1144); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor, @@ -48572,7 +50667,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor = - getDescriptor().getMessageType(1093); + getDescriptor().getMessageType(1145); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor, @@ -48580,7 +50675,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEdgeSecurityServices", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor = - getDescriptor().getMessageType(1094); + getDescriptor().getMessageType(1146); internal_static_google_cloud_compute_v1_NetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor, @@ -48602,7 +50697,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor = - getDescriptor().getMessageType(1095); + getDescriptor().getMessageType(1147); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor, @@ -48636,7 +50731,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor = - getDescriptor().getMessageType(1096); + getDescriptor().getMessageType(1148); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor, @@ -48653,7 +50748,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor = - getDescriptor().getMessageType(1097); + getDescriptor().getMessageType(1149); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor, @@ -48661,7 +50756,7 @@ private static void _clinit_autosplit_dinit_2() { "Service", "UrlMask", "Version", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor = - getDescriptor().getMessageType(1098); + getDescriptor().getMessageType(1150); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor, @@ -48669,7 +50764,7 @@ private static void _clinit_autosplit_dinit_2() { "Function", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor = - getDescriptor().getMessageType(1099); + getDescriptor().getMessageType(1151); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor, @@ -48677,7 +50772,7 @@ private static void _clinit_autosplit_dinit_2() { "Service", "Tag", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor = - getDescriptor().getMessageType(1100); + getDescriptor().getMessageType(1152); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor, @@ -48685,7 +50780,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor = - getDescriptor().getMessageType(1101); + getDescriptor().getMessageType(1153); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor, @@ -48693,7 +50788,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsumerPscAddress", "ProducerPort", "PscConnectionId", "PscConnectionStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageType(1102); + getDescriptor().getMessageType(1154); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -48701,7 +50796,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageType(1103); + getDescriptor().getMessageType(1155); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -48709,7 +50804,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor = - getDescriptor().getMessageType(1104); + getDescriptor().getMessageType(1156); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor, @@ -48717,7 +50812,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor = - getDescriptor().getMessageType(1105); + getDescriptor().getMessageType(1157); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor, @@ -48725,7 +50820,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor = - getDescriptor().getMessageType(1106); + getDescriptor().getMessageType(1158); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor, @@ -48733,7 +50828,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpointGroups", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor = - getDescriptor().getMessageType(1107); + getDescriptor().getMessageType(1159); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor, @@ -48741,7 +50836,7 @@ private static void _clinit_autosplit_dinit_2() { "Healths", "NetworkEndpoint", }); internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor = - getDescriptor().getMessageType(1108); + getDescriptor().getMessageType(1160); internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor, @@ -48758,7 +50853,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkInterface_descriptor = - getDescriptor().getMessageType(1109); + getDescriptor().getMessageType(1161); internal_static_google_cloud_compute_v1_NetworkInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkInterface_descriptor, @@ -48780,12 +50875,13 @@ private static void _clinit_autosplit_dinit_2() { "NicType", "ParentNicName", "QueueCount", + "ServiceClassId", "StackType", "Subnetwork", "Vlan", }); internal_static_google_cloud_compute_v1_NetworkList_descriptor = - getDescriptor().getMessageType(1110); + getDescriptor().getMessageType(1162); internal_static_google_cloud_compute_v1_NetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkList_descriptor, @@ -48793,7 +50889,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NetworkParams_descriptor = - getDescriptor().getMessageType(1111); + getDescriptor().getMessageType(1163); internal_static_google_cloud_compute_v1_NetworkParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkParams_descriptor, @@ -48809,7 +50905,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkPeering_descriptor = - getDescriptor().getMessageType(1112); + getDescriptor().getMessageType(1164); internal_static_google_cloud_compute_v1_NetworkPeering_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeering_descriptor, @@ -48830,7 +50926,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateStrategy", }); internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatus_descriptor = - getDescriptor().getMessageType(1113); + getDescriptor().getMessageType(1165); internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatus_descriptor, @@ -48838,7 +50934,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsensusState", "TrafficConfiguration", "UpdateStrategy", }); internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatusConsensusState_descriptor = - getDescriptor().getMessageType(1114); + getDescriptor().getMessageType(1166); internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatusConsensusState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatusConsensusState_descriptor, @@ -48846,7 +50942,7 @@ private static void _clinit_autosplit_dinit_2() { "DeleteStatus", "UpdateStatus", }); internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatusTrafficConfiguration_descriptor = - getDescriptor().getMessageType(1115); + getDescriptor().getMessageType(1167); internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatusTrafficConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeeringConnectionStatusTrafficConfiguration_descriptor, @@ -48858,7 +50954,7 @@ private static void _clinit_autosplit_dinit_2() { "StackType", }); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor = - getDescriptor().getMessageType(1116); + getDescriptor().getMessageType(1168); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor, @@ -48866,7 +50962,7 @@ private static void _clinit_autosplit_dinit_2() { "TotalEgressBandwidthTier", }); internal_static_google_cloud_compute_v1_NetworkProfile_descriptor = - getDescriptor().getMessageType(1117); + getDescriptor().getMessageType(1169); internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfile_descriptor, @@ -48884,7 +50980,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor = - getDescriptor().getMessageType(1118); + getDescriptor().getMessageType(1170); internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor, @@ -48892,7 +50988,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Scope", }); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor = - getDescriptor().getMessageType(1119); + getDescriptor().getMessageType(1171); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor, @@ -48937,7 +51033,7 @@ private static void _clinit_autosplit_dinit_2() { "Unicast", }); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeaturesPredefinedSubnetworkRange_descriptor = - getDescriptor().getMessageType(1120); + getDescriptor().getMessageType(1172); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeaturesPredefinedSubnetworkRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeaturesPredefinedSubnetworkRange_descriptor, @@ -48945,7 +51041,7 @@ private static void _clinit_autosplit_dinit_2() { "Ipv6Range", "NamePrefix", }); internal_static_google_cloud_compute_v1_NetworkProfileProfileType_descriptor = - getDescriptor().getMessageType(1121); + getDescriptor().getMessageType(1173); internal_static_google_cloud_compute_v1_NetworkProfileProfileType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileProfileType_descriptor, @@ -48953,7 +51049,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkType", "RdmaSubtype", "UllSubtype", "VpcSubtype", }); internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor = - getDescriptor().getMessageType(1122); + getDescriptor().getMessageType(1174); internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor, @@ -48961,7 +51057,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor = - getDescriptor().getMessageType(1123); + getDescriptor().getMessageType(1175); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor, @@ -48974,7 +51070,7 @@ private static void _clinit_autosplit_dinit_2() { "RoutingMode", }); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor = - getDescriptor().getMessageType(1124); + getDescriptor().getMessageType(1176); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor, @@ -48982,7 +51078,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoCreateRoutes", "Name", "NetworkPeering", "PeerNetwork", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageType(1125); + getDescriptor().getMessageType(1177); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor, @@ -48990,7 +51086,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageType(1126); + getDescriptor().getMessageType(1178); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -49004,7 +51100,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor = - getDescriptor().getMessageType(1127); + getDescriptor().getMessageType(1179); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor, @@ -49012,7 +51108,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_NetworksRequestRemovePeeringRequest_descriptor = - getDescriptor().getMessageType(1128); + getDescriptor().getMessageType(1180); internal_static_google_cloud_compute_v1_NetworksRequestRemovePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksRequestRemovePeeringRequest_descriptor, @@ -49020,7 +51116,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor = - getDescriptor().getMessageType(1129); + getDescriptor().getMessageType(1181); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor, @@ -49028,7 +51124,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkPeering", }); internal_static_google_cloud_compute_v1_NodeGroup_descriptor = - getDescriptor().getMessageType(1130); + getDescriptor().getMessageType(1182); internal_static_google_cloud_compute_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroup_descriptor, @@ -49052,7 +51148,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor = - getDescriptor().getMessageType(1131); + getDescriptor().getMessageType(1183); internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor, @@ -49068,7 +51164,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor = - getDescriptor().getMessageType(1132); + getDescriptor().getMessageType(1184); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor, @@ -49076,7 +51172,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxNodes", "MinNodes", "Mode", }); internal_static_google_cloud_compute_v1_NodeGroupList_descriptor = - getDescriptor().getMessageType(1133); + getDescriptor().getMessageType(1185); internal_static_google_cloud_compute_v1_NodeGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupList_descriptor, @@ -49084,7 +51180,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor = - getDescriptor().getMessageType(1134); + getDescriptor().getMessageType(1186); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor, @@ -49092,7 +51188,7 @@ private static void _clinit_autosplit_dinit_2() { "MaintenanceDuration", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor = - getDescriptor().getMessageType(1135); + getDescriptor().getMessageType(1187); internal_static_google_cloud_compute_v1_NodeGroupNode_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor, @@ -49113,7 +51209,7 @@ private static void _clinit_autosplit_dinit_2() { "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor = - getDescriptor().getMessageType(1136); + getDescriptor().getMessageType(1188); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor, @@ -49121,7 +51217,7 @@ private static void _clinit_autosplit_dinit_2() { "AdditionalNodeCount", }); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor = - getDescriptor().getMessageType(1137); + getDescriptor().getMessageType(1189); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor, @@ -49129,7 +51225,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor = - getDescriptor().getMessageType(1138); + getDescriptor().getMessageType(1190); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor, @@ -49137,7 +51233,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageType(1139); + getDescriptor().getMessageType(1191); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor, @@ -49145,7 +51241,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor = - getDescriptor().getMessageType(1140); + getDescriptor().getMessageType(1192); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor, @@ -49153,7 +51249,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroups", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(1141); + getDescriptor().getMessageType(1193); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor, @@ -49161,7 +51257,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplate", }); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor = - getDescriptor().getMessageType(1142); + getDescriptor().getMessageType(1194); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor, @@ -49169,7 +51265,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeTemplate_descriptor = - getDescriptor().getMessageType(1143); + getDescriptor().getMessageType(1195); internal_static_google_cloud_compute_v1_NodeTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplate_descriptor, @@ -49200,7 +51296,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor = - getDescriptor().getMessageType(1144); + getDescriptor().getMessageType(1196); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor, @@ -49217,7 +51313,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor = - getDescriptor().getMessageType(1145); + getDescriptor().getMessageType(1197); internal_static_google_cloud_compute_v1_NodeTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor, @@ -49225,7 +51321,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor = - getDescriptor().getMessageType(1146); + getDescriptor().getMessageType(1198); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor, @@ -49233,7 +51329,7 @@ private static void _clinit_autosplit_dinit_2() { "Cpus", "LocalSsd", "Memory", }); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor = - getDescriptor().getMessageType(1147); + getDescriptor().getMessageType(1199); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor, @@ -49241,7 +51337,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplates", "Warning", }); internal_static_google_cloud_compute_v1_NodeType_descriptor = - getDescriptor().getMessageType(1148); + getDescriptor().getMessageType(1200); internal_static_google_cloud_compute_v1_NodeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeType_descriptor, @@ -49261,7 +51357,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor = - getDescriptor().getMessageType(1149); + getDescriptor().getMessageType(1201); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor, @@ -49277,7 +51373,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTypeList_descriptor = - getDescriptor().getMessageType(1150); + getDescriptor().getMessageType(1202); internal_static_google_cloud_compute_v1_NodeTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeList_descriptor, @@ -49285,7 +51381,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor = - getDescriptor().getMessageType(1151); + getDescriptor().getMessageType(1203); internal_static_google_cloud_compute_v1_NodeTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor, @@ -49293,7 +51389,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTypes", "Warning", }); internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor = - getDescriptor().getMessageType(1152); + getDescriptor().getMessageType(1204); internal_static_google_cloud_compute_v1_NotificationEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor, @@ -49308,7 +51404,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_NotificationEndpointAggregatedList_descriptor = - getDescriptor().getMessageType(1153); + getDescriptor().getMessageType(1205); internal_static_google_cloud_compute_v1_NotificationEndpointAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointAggregatedList_descriptor, @@ -49325,7 +51421,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor = - getDescriptor().getMessageType(1154); + getDescriptor().getMessageType(1206); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor, @@ -49333,7 +51429,7 @@ private static void _clinit_autosplit_dinit_2() { "Authority", "Endpoint", "PayloadName", "ResendInterval", "RetryDurationSec", }); internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor = - getDescriptor().getMessageType(1155); + getDescriptor().getMessageType(1207); internal_static_google_cloud_compute_v1_NotificationEndpointList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor, @@ -49341,7 +51437,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NotificationEndpointsScopedList_descriptor = - getDescriptor().getMessageType(1156); + getDescriptor().getMessageType(1208); internal_static_google_cloud_compute_v1_NotificationEndpointsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointsScopedList_descriptor, @@ -49349,7 +51445,7 @@ private static void _clinit_autosplit_dinit_2() { "Resources", "Warning", }); internal_static_google_cloud_compute_v1_Operation_descriptor = - getDescriptor().getMessageType(1157); + getDescriptor().getMessageType(1209); internal_static_google_cloud_compute_v1_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Operation_descriptor, @@ -49383,7 +51479,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor = - getDescriptor().getMessageType(1158); + getDescriptor().getMessageType(1210); internal_static_google_cloud_compute_v1_OperationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor, @@ -49399,7 +51495,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_OperationList_descriptor = - getDescriptor().getMessageType(1159); + getDescriptor().getMessageType(1211); internal_static_google_cloud_compute_v1_OperationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationList_descriptor, @@ -49407,7 +51503,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor = - getDescriptor().getMessageType(1160); + getDescriptor().getMessageType(1212); internal_static_google_cloud_compute_v1_OperationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor, @@ -49415,7 +51511,7 @@ private static void _clinit_autosplit_dinit_2() { "Operations", "Warning", }); internal_static_google_cloud_compute_v1_OrganizationSecurityPoliciesListAssociationsResponse_descriptor = - getDescriptor().getMessageType(1161); + getDescriptor().getMessageType(1213); internal_static_google_cloud_compute_v1_OrganizationSecurityPoliciesListAssociationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_OrganizationSecurityPoliciesListAssociationsResponse_descriptor, @@ -49423,7 +51519,7 @@ private static void _clinit_autosplit_dinit_2() { "Associations", "Kind", }); internal_static_google_cloud_compute_v1_OutlierDetection_descriptor = - getDescriptor().getMessageType(1162); + getDescriptor().getMessageType(1214); internal_static_google_cloud_compute_v1_OutlierDetection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_OutlierDetection_descriptor, @@ -49441,7 +51537,7 @@ private static void _clinit_autosplit_dinit_2() { "SuccessRateStdevFactor", }); internal_static_google_cloud_compute_v1_PacketIntervals_descriptor = - getDescriptor().getMessageType(1163); + getDescriptor().getMessageType(1215); internal_static_google_cloud_compute_v1_PacketIntervals_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketIntervals_descriptor, @@ -49449,7 +51545,7 @@ private static void _clinit_autosplit_dinit_2() { "AvgMs", "Duration", "MaxMs", "MinMs", "NumIntervals", "Type", }); internal_static_google_cloud_compute_v1_PacketMirroring_descriptor = - getDescriptor().getMessageType(1164); + getDescriptor().getMessageType(1216); internal_static_google_cloud_compute_v1_PacketMirroring_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroring_descriptor, @@ -49469,7 +51565,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor = - getDescriptor().getMessageType(1165); + getDescriptor().getMessageType(1217); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor, @@ -49486,7 +51582,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor = - getDescriptor().getMessageType(1166); + getDescriptor().getMessageType(1218); internal_static_google_cloud_compute_v1_PacketMirroringFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor, @@ -49494,7 +51590,7 @@ private static void _clinit_autosplit_dinit_2() { "IPProtocols", "CidrRanges", "Direction", }); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor = - getDescriptor().getMessageType(1167); + getDescriptor().getMessageType(1219); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor, @@ -49502,7 +51598,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor = - getDescriptor().getMessageType(1168); + getDescriptor().getMessageType(1220); internal_static_google_cloud_compute_v1_PacketMirroringList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor, @@ -49510,7 +51606,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor = - getDescriptor().getMessageType(1169); + getDescriptor().getMessageType(1221); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor, @@ -49518,7 +51614,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "Subnetworks", "Tags", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor = - getDescriptor().getMessageType(1170); + getDescriptor().getMessageType(1222); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor, @@ -49526,7 +51622,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor = - getDescriptor().getMessageType(1171); + getDescriptor().getMessageType(1223); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor, @@ -49534,7 +51630,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor = - getDescriptor().getMessageType(1172); + getDescriptor().getMessageType(1224); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor, @@ -49542,7 +51638,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor = - getDescriptor().getMessageType(1173); + getDescriptor().getMessageType(1225); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor, @@ -49550,7 +51646,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirrorings", "Warning", }); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor = - getDescriptor().getMessageType(1174); + getDescriptor().getMessageType(1226); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor, @@ -49558,7 +51654,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor = - getDescriptor().getMessageType(1175); + getDescriptor().getMessageType(1227); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor, @@ -49566,7 +51662,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1176); + getDescriptor().getMessageType(1228); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor, @@ -49574,7 +51670,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchCrossSiteNetworkRequest_descriptor = - getDescriptor().getMessageType(1177); + getDescriptor().getMessageType(1229); internal_static_google_cloud_compute_v1_PatchCrossSiteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchCrossSiteNetworkRequest_descriptor, @@ -49587,7 +51683,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1178); + getDescriptor().getMessageType(1230); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor, @@ -49595,7 +51691,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor = - getDescriptor().getMessageType(1179); + getDescriptor().getMessageType(1231); internal_static_google_cloud_compute_v1_PatchFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor, @@ -49603,7 +51699,7 @@ private static void _clinit_autosplit_dinit_2() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(1180); + getDescriptor().getMessageType(1232); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor, @@ -49611,7 +51707,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(1181); + getDescriptor().getMessageType(1233); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor, @@ -49619,7 +51715,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(1182); + getDescriptor().getMessageType(1234); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -49627,7 +51723,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicDelegatedPrefix", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1183); + getDescriptor().getMessageType(1235); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor, @@ -49635,7 +51731,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor = - getDescriptor().getMessageType(1184); + getDescriptor().getMessageType(1236); internal_static_google_cloud_compute_v1_PatchImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor, @@ -49643,7 +51739,7 @@ private static void _clinit_autosplit_dinit_2() { "Image", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1185); + getDescriptor().getMessageType(1237); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor, @@ -49655,7 +51751,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor = - getDescriptor().getMessageType(1186); + getDescriptor().getMessageType(1238); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor, @@ -49663,7 +51759,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSettingsResource", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(1187); + getDescriptor().getMessageType(1239); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentGroupRequest_descriptor, @@ -49675,7 +51771,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageType(1188); + getDescriptor().getMessageType(1240); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor, @@ -49687,7 +51783,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(1189); + getDescriptor().getMessageType(1241); internal_static_google_cloud_compute_v1_PatchInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectGroupRequest_descriptor, @@ -49699,7 +51795,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor = - getDescriptor().getMessageType(1190); + getDescriptor().getMessageType(1242); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor, @@ -49707,7 +51803,7 @@ private static void _clinit_autosplit_dinit_2() { "Interconnect", "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(1191); + getDescriptor().getMessageType(1243); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor, @@ -49715,7 +51811,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkAttachment", "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageType(1192); + getDescriptor().getMessageType(1244); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor, @@ -49729,7 +51825,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1193); + getDescriptor().getMessageType(1245); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor, @@ -49737,7 +51833,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor = - getDescriptor().getMessageType(1194); + getDescriptor().getMessageType(1246); internal_static_google_cloud_compute_v1_PatchNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor, @@ -49745,7 +51841,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor = - getDescriptor().getMessageType(1195); + getDescriptor().getMessageType(1247); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor, @@ -49753,7 +51849,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroup", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1196); + getDescriptor().getMessageType(1248); internal_static_google_cloud_compute_v1_PatchOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchOrganizationSecurityPolicyRequest_descriptor, @@ -49761,7 +51857,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", "SecurityPolicy", "SecurityPolicyResource", }); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor = - getDescriptor().getMessageType(1197); + getDescriptor().getMessageType(1249); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor, @@ -49769,7 +51865,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirroring", "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1198); + getDescriptor().getMessageType(1250); internal_static_google_cloud_compute_v1_PatchPacketMirroringRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPacketMirroringRuleNetworkFirewallPolicyRequest_descriptor, @@ -49777,7 +51873,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1199); + getDescriptor().getMessageType(1251); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -49789,7 +51885,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1200); + getDescriptor().getMessageType(1252); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -49801,7 +51897,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageType(1201); + getDescriptor().getMessageType(1253); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor, @@ -49809,7 +51905,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicAdvertisedPrefix", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(1202); + getDescriptor().getMessageType(1254); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor, @@ -49821,15 +51917,23 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageType(1203); + getDescriptor().getMessageType(1255); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor, new java.lang.String[] { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); + internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(1256); + internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "BackendBucket", "BackendBucketResource", "Project", "Region", "RequestId", + }); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1204); + getDescriptor().getMessageType(1257); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor, @@ -49837,7 +51941,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionCompositeHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1205); + getDescriptor().getMessageType(1258); internal_static_google_cloud_compute_v1_PatchRegionCompositeHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionCompositeHealthCheckRequest_descriptor, @@ -49849,7 +51953,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthAggregationPolicyRequest_descriptor = - getDescriptor().getMessageType(1206); + getDescriptor().getMessageType(1259); internal_static_google_cloud_compute_v1_PatchRegionHealthAggregationPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthAggregationPolicyRequest_descriptor, @@ -49861,7 +51965,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1207); + getDescriptor().getMessageType(1260); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor, @@ -49869,7 +51973,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageType(1208); + getDescriptor().getMessageType(1261); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor, @@ -49877,7 +51981,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheckService", "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthSourceRequest_descriptor = - getDescriptor().getMessageType(1209); + getDescriptor().getMessageType(1262); internal_static_google_cloud_compute_v1_PatchRegionHealthSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthSourceRequest_descriptor, @@ -49885,7 +51989,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthSource", "HealthSourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1210); + getDescriptor().getMessageType(1263); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor, @@ -49897,7 +52001,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1211); + getDescriptor().getMessageType(1264); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor, @@ -49905,7 +52009,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1212); + getDescriptor().getMessageType(1265); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor, @@ -49917,8 +52021,16 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicyResource", "UpdateMask", }); + internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_descriptor = + getDescriptor().getMessageType(1266); + internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RequestId", "SnapshotSettingsResource", "UpdateMask", + }); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageType(1213); + getDescriptor().getMessageType(1267); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor, @@ -49926,7 +52038,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1214); + getDescriptor().getMessageType(1268); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor, @@ -49934,7 +52046,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor = - getDescriptor().getMessageType(1215); + getDescriptor().getMessageType(1269); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor, @@ -49942,7 +52054,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(1216); + getDescriptor().getMessageType(1270); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor, @@ -49955,7 +52067,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageType(1217); + getDescriptor().getMessageType(1271); internal_static_google_cloud_compute_v1_PatchRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRoutePolicyRouterRequest_descriptor, @@ -49963,7 +52075,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "RoutePolicyResource", "Router", }); internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor = - getDescriptor().getMessageType(1218); + getDescriptor().getMessageType(1272); internal_static_google_cloud_compute_v1_PatchRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor, @@ -49971,7 +52083,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1219); + getDescriptor().getMessageType(1273); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor, @@ -49979,7 +52091,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1220); + getDescriptor().getMessageType(1274); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor, @@ -49987,7 +52099,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1221); + getDescriptor().getMessageType(1275); internal_static_google_cloud_compute_v1_PatchRuleOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleOrganizationSecurityPolicyRequest_descriptor, @@ -49995,7 +52107,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "RequestId", "SecurityPolicy", "SecurityPolicyRuleResource", }); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1222); + getDescriptor().getMessageType(1276); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -50008,7 +52120,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1223); + getDescriptor().getMessageType(1277); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor, @@ -50022,7 +52134,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1224); + getDescriptor().getMessageType(1278); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor, @@ -50035,7 +52147,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1225); + getDescriptor().getMessageType(1279); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor, @@ -50043,7 +52155,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SecurityPolicy", "SecurityPolicyResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(1226); + getDescriptor().getMessageType(1280); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor, @@ -50051,7 +52163,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "ServiceAttachment", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor = - getDescriptor().getMessageType(1227); + getDescriptor().getMessageType(1281); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor, @@ -50059,7 +52171,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SnapshotSettingsResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor = - getDescriptor().getMessageType(1228); + getDescriptor().getMessageType(1282); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor, @@ -50067,7 +52179,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor = - getDescriptor().getMessageType(1229); + getDescriptor().getMessageType(1283); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor, @@ -50080,7 +52192,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworkResource", }); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageType(1230); + getDescriptor().getMessageType(1284); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor, @@ -50088,7 +52200,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetGrpcProxy", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(1231); + getDescriptor().getMessageType(1285); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor, @@ -50096,7 +52208,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpProxy", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1232); + getDescriptor().getMessageType(1286); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor, @@ -50104,7 +52216,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor = - getDescriptor().getMessageType(1233); + getDescriptor().getMessageType(1287); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor, @@ -50112,7 +52224,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PatchWireGroupRequest_descriptor = - getDescriptor().getMessageType(1234); + getDescriptor().getMessageType(1288); internal_static_google_cloud_compute_v1_PatchWireGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchWireGroupRequest_descriptor, @@ -50126,7 +52238,7 @@ private static void _clinit_autosplit_dinit_2() { "WireGroupResource", }); internal_static_google_cloud_compute_v1_PathMatcher_descriptor = - getDescriptor().getMessageType(1235); + getDescriptor().getMessageType(1289); internal_static_google_cloud_compute_v1_PathMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathMatcher_descriptor, @@ -50142,7 +52254,7 @@ private static void _clinit_autosplit_dinit_2() { "RouteRules", }); internal_static_google_cloud_compute_v1_PathRule_descriptor = - getDescriptor().getMessageType(1236); + getDescriptor().getMessageType(1290); internal_static_google_cloud_compute_v1_PathRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathRule_descriptor, @@ -50150,7 +52262,7 @@ private static void _clinit_autosplit_dinit_2() { "CustomErrorResponsePolicy", "Paths", "RouteAction", "Service", "UrlRedirect", }); internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor = - getDescriptor().getMessageType(1237); + getDescriptor().getMessageType(1291); internal_static_google_cloud_compute_v1_PerInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor, @@ -50158,7 +52270,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Name", "PreservedState", "Status", }); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor = - getDescriptor().getMessageType(1238); + getDescriptor().getMessageType(1292); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor, @@ -50166,7 +52278,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor = - getDescriptor().getMessageType(1239); + getDescriptor().getMessageType(1293); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor, @@ -50178,7 +52290,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationBlockRequest_descriptor = - getDescriptor().getMessageType(1240); + getDescriptor().getMessageType(1294); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceReservationBlockRequest_descriptor, @@ -50191,7 +52303,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_descriptor = - getDescriptor().getMessageType(1241); + getDescriptor().getMessageType(1295); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceReservationRequest_descriptor, @@ -50203,7 +52315,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(1242); + getDescriptor().getMessageType(1296); internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceReservationSubBlockRequest_descriptor, @@ -50211,7 +52323,7 @@ private static void _clinit_autosplit_dinit_2() { "ParentName", "Project", "RequestId", "ReservationSubBlock", "Zone", }); internal_static_google_cloud_compute_v1_Policy_descriptor = - getDescriptor().getMessageType(1243); + getDescriptor().getMessageType(1297); internal_static_google_cloud_compute_v1_Policy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Policy_descriptor, @@ -50219,7 +52331,7 @@ private static void _clinit_autosplit_dinit_2() { "AuditConfigs", "Bindings", "Etag", "IamOwned", "Version", }); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor = - getDescriptor().getMessageType(1244); + getDescriptor().getMessageType(1298); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor, @@ -50227,7 +52339,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpressionSets", }); internal_static_google_cloud_compute_v1_PreservedState_descriptor = - getDescriptor().getMessageType(1245); + getDescriptor().getMessageType(1299); internal_static_google_cloud_compute_v1_PreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedState_descriptor, @@ -50267,7 +52379,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor = - getDescriptor().getMessageType(1246); + getDescriptor().getMessageType(1300); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor, @@ -50275,7 +52387,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "Mode", "Source", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor = - getDescriptor().getMessageType(1247); + getDescriptor().getMessageType(1301); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor, @@ -50283,7 +52395,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "IpAddress", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor = - getDescriptor().getMessageType(1248); + getDescriptor().getMessageType(1302); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor, @@ -50291,7 +52403,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "Literal", }); internal_static_google_cloud_compute_v1_PreviewFeature_descriptor = - getDescriptor().getMessageType(1249); + getDescriptor().getMessageType(1303); internal_static_google_cloud_compute_v1_PreviewFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewFeature_descriptor, @@ -50307,7 +52419,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PreviewFeatureList_descriptor = - getDescriptor().getMessageType(1250); + getDescriptor().getMessageType(1304); internal_static_google_cloud_compute_v1_PreviewFeatureList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewFeatureList_descriptor, @@ -50315,7 +52427,7 @@ private static void _clinit_autosplit_dinit_2() { "Etag", "Id", "Items", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_PreviewFeatureRolloutOperation_descriptor = - getDescriptor().getMessageType(1251); + getDescriptor().getMessageType(1305); internal_static_google_cloud_compute_v1_PreviewFeatureRolloutOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewFeatureRolloutOperation_descriptor, @@ -50323,7 +52435,7 @@ private static void _clinit_autosplit_dinit_2() { "RolloutInput", }); internal_static_google_cloud_compute_v1_PreviewFeatureRolloutOperationRolloutInput_descriptor = - getDescriptor().getMessageType(1252); + getDescriptor().getMessageType(1306); internal_static_google_cloud_compute_v1_PreviewFeatureRolloutOperationRolloutInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewFeatureRolloutOperationRolloutInput_descriptor, @@ -50331,7 +52443,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "PredefinedRolloutPlan", }); internal_static_google_cloud_compute_v1_PreviewFeatureStatus_descriptor = - getDescriptor().getMessageType(1253); + getDescriptor().getMessageType(1307); internal_static_google_cloud_compute_v1_PreviewFeatureStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewFeatureStatus_descriptor, @@ -50339,7 +52451,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "HelpLink", "ReleaseStatus", }); internal_static_google_cloud_compute_v1_PreviewFeatureStatusReleaseStatus_descriptor = - getDescriptor().getMessageType(1254); + getDescriptor().getMessageType(1308); internal_static_google_cloud_compute_v1_PreviewFeatureStatusReleaseStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewFeatureStatusReleaseStatus_descriptor, @@ -50347,7 +52459,7 @@ private static void _clinit_autosplit_dinit_2() { "Stage", "UpdateDate", }); internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor = - getDescriptor().getMessageType(1255); + getDescriptor().getMessageType(1309); internal_static_google_cloud_compute_v1_PreviewRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor, @@ -50355,7 +52467,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_Project_descriptor = - getDescriptor().getMessageType(1256); + getDescriptor().getMessageType(1310); internal_static_google_cloud_compute_v1_Project_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Project_descriptor, @@ -50377,7 +52489,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnProjectStatus", }); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor = - getDescriptor().getMessageType(1257); + getDescriptor().getMessageType(1311); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor, @@ -50385,7 +52497,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor = - getDescriptor().getMessageType(1258); + getDescriptor().getMessageType(1312); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor, @@ -50393,7 +52505,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor = - getDescriptor().getMessageType(1259); + getDescriptor().getMessageType(1313); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor, @@ -50401,7 +52513,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "NextPageToken", "Resources", }); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor = - getDescriptor().getMessageType(1260); + getDescriptor().getMessageType(1314); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor, @@ -50409,7 +52521,7 @@ private static void _clinit_autosplit_dinit_2() { "Organization", }); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor = - getDescriptor().getMessageType(1261); + getDescriptor().getMessageType(1315); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor, @@ -50417,7 +52529,7 @@ private static void _clinit_autosplit_dinit_2() { "CloudArmorTier", }); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor = - getDescriptor().getMessageType(1262); + getDescriptor().getMessageType(1316); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor, @@ -50425,7 +52537,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkTier", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor = - getDescriptor().getMessageType(1263); + getDescriptor().getMessageType(1317); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor, @@ -50447,7 +52559,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor = - getDescriptor().getMessageType(1264); + getDescriptor().getMessageType(1318); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor, @@ -50455,7 +52567,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor = - getDescriptor().getMessageType(1265); + getDescriptor().getMessageType(1319); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor, @@ -50463,7 +52575,7 @@ private static void _clinit_autosplit_dinit_2() { "IpRange", "Name", "Project", "Region", "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor = - getDescriptor().getMessageType(1266); + getDescriptor().getMessageType(1320); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor, @@ -50488,7 +52600,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor = - getDescriptor().getMessageType(1267); + getDescriptor().getMessageType(1321); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor, @@ -50505,7 +52617,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor = - getDescriptor().getMessageType(1268); + getDescriptor().getMessageType(1322); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor, @@ -50513,7 +52625,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor = - getDescriptor().getMessageType(1269); + getDescriptor().getMessageType(1323); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor, @@ -50531,14 +52643,14 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor = - getDescriptor().getMessageType(1270); + getDescriptor().getMessageType(1324); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor, new java.lang.String[] { "PublicDelegatedPrefixes", "Warning", }); - internal_static_google_cloud_compute_v1_Quota_descriptor = getDescriptor().getMessageType(1271); + internal_static_google_cloud_compute_v1_Quota_descriptor = getDescriptor().getMessageType(1325); internal_static_google_cloud_compute_v1_Quota_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Quota_descriptor, @@ -50546,7 +52658,7 @@ private static void _clinit_autosplit_dinit_2() { "Limit", "Metric", "Owner", "Usage", }); internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor = - getDescriptor().getMessageType(1272); + getDescriptor().getMessageType(1326); internal_static_google_cloud_compute_v1_QuotaExceededInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor, @@ -50562,7 +52674,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor = - getDescriptor().getMessageType(1273); + getDescriptor().getMessageType(1327); internal_static_google_cloud_compute_v1_QuotaStatusWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor, @@ -50570,7 +52682,7 @@ private static void _clinit_autosplit_dinit_2() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_RawDisk_descriptor = - getDescriptor().getMessageType(1274); + getDescriptor().getMessageType(1328); internal_static_google_cloud_compute_v1_RawDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RawDisk_descriptor, @@ -50578,7 +52690,7 @@ private static void _clinit_autosplit_dinit_2() { "ContainerType", "Sha1Checksum", "Source", }); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1275); + getDescriptor().getMessageType(1329); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor, @@ -50590,7 +52702,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1276); + getDescriptor().getMessageType(1330); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -50602,7 +52714,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Reference_descriptor = - getDescriptor().getMessageType(1277); + getDescriptor().getMessageType(1331); internal_static_google_cloud_compute_v1_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reference_descriptor, @@ -50610,7 +52722,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "ReferenceType", "Referrer", "Target", }); internal_static_google_cloud_compute_v1_Region_descriptor = - getDescriptor().getMessageType(1278); + getDescriptor().getMessageType(1332); internal_static_google_cloud_compute_v1_Region_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Region_descriptor, @@ -50629,7 +52741,7 @@ private static void _clinit_autosplit_dinit_2() { "Zones", }); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor = - getDescriptor().getMessageType(1279); + getDescriptor().getMessageType(1333); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor, @@ -50637,7 +52749,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor = - getDescriptor().getMessageType(1280); + getDescriptor().getMessageType(1334); internal_static_google_cloud_compute_v1_RegionAutoscalerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor, @@ -50645,15 +52757,23 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor = - getDescriptor().getMessageType(1281); + getDescriptor().getMessageType(1335); internal_static_google_cloud_compute_v1_RegionDiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_descriptor = + getDescriptor().getMessageType(1336); + internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(1282); + getDescriptor().getMessageType(1337); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor, @@ -50661,7 +52781,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageType(1283); + getDescriptor().getMessageType(1338); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor, @@ -50669,7 +52789,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor = - getDescriptor().getMessageType(1284); + getDescriptor().getMessageType(1339); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor, @@ -50677,7 +52797,7 @@ private static void _clinit_autosplit_dinit_2() { "SizeGb", }); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageType(1285); + getDescriptor().getMessageType(1340); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor, @@ -50685,7 +52805,7 @@ private static void _clinit_autosplit_dinit_2() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor = - getDescriptor().getMessageType(1286); + getDescriptor().getMessageType(1341); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor, @@ -50693,7 +52813,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor = - getDescriptor().getMessageType(1287); + getDescriptor().getMessageType(1342); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor, @@ -50701,7 +52821,7 @@ private static void _clinit_autosplit_dinit_2() { "Names", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor = - getDescriptor().getMessageType(1288); + getDescriptor().getMessageType(1343); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor, @@ -50709,15 +52829,23 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor = - getDescriptor().getMessageType(1289); + getDescriptor().getMessageType(1344); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor, new java.lang.String[] { "PerInstanceConfigs", }); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_descriptor = + getDescriptor().getMessageType(1345); + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_descriptor, + new java.lang.String[] { + "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", + }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor = - getDescriptor().getMessageType(1290); + getDescriptor().getMessageType(1346); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor, @@ -50725,7 +52853,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageType(1291); + getDescriptor().getMessageType(1347); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -50733,7 +52861,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageType(1292); + getDescriptor().getMessageType(1348); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -50741,7 +52869,7 @@ private static void _clinit_autosplit_dinit_2() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageType(1293); + getDescriptor().getMessageType(1349); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor, @@ -50749,7 +52877,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageType(1294); + getDescriptor().getMessageType(1350); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -50757,7 +52885,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageType(1295); + getDescriptor().getMessageType(1351); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor, @@ -50765,7 +52893,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor = - getDescriptor().getMessageType(1296); + getDescriptor().getMessageType(1352); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor, @@ -50773,7 +52901,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor = - getDescriptor().getMessageType(1297); + getDescriptor().getMessageType(1353); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor, @@ -50781,7 +52909,7 @@ private static void _clinit_autosplit_dinit_2() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor = - getDescriptor().getMessageType(1298); + getDescriptor().getMessageType(1354); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor, @@ -50789,7 +52917,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor = - getDescriptor().getMessageType(1299); + getDescriptor().getMessageType(1355); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor, @@ -50797,7 +52925,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageType(1300); + getDescriptor().getMessageType(1356); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -50805,7 +52933,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor = - getDescriptor().getMessageType(1301); + getDescriptor().getMessageType(1357); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor, @@ -50813,7 +52941,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor = - getDescriptor().getMessageType(1302); + getDescriptor().getMessageType(1358); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor, @@ -50821,7 +52949,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor = - getDescriptor().getMessageType(1303); + getDescriptor().getMessageType(1359); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor, @@ -50829,7 +52957,7 @@ private static void _clinit_autosplit_dinit_2() { "ForceStop", "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor = - getDescriptor().getMessageType(1304); + getDescriptor().getMessageType(1360); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor, @@ -50837,7 +52965,7 @@ private static void _clinit_autosplit_dinit_2() { "ForceSuspend", "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor = - getDescriptor().getMessageType(1305); + getDescriptor().getMessageType(1361); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor, @@ -50845,15 +52973,19 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor = - getDescriptor().getMessageType(1306); + getDescriptor().getMessageType(1362); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor, new java.lang.String[] { "InstanceState", "PortName", }); + _clinit_autosplit_dinit_3(); + } + + private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageType(1307); + getDescriptor().getMessageType(1363); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor, @@ -50861,7 +52993,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_RegionList_descriptor = - getDescriptor().getMessageType(1308); + getDescriptor().getMessageType(1364); internal_static_google_cloud_compute_v1_RegionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionList_descriptor, @@ -50869,7 +53001,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageType(1309); + getDescriptor().getMessageType(1365); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -50877,7 +53009,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageType(1310); + getDescriptor().getMessageType(1366); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -50885,7 +53017,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageType(1311); + getDescriptor().getMessageType(1367); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor, @@ -50893,7 +53025,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageType(1312); + getDescriptor().getMessageType(1368); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -50901,7 +53033,7 @@ private static void _clinit_autosplit_dinit_2() { "DisplayName", "Name", "PacketMirroringRules", "Priority", "Rules", "Type", }); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor = - getDescriptor().getMessageType(1313); + getDescriptor().getMessageType(1369); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor, @@ -50917,15 +53049,23 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor = - getDescriptor().getMessageType(1314); + getDescriptor().getMessageType(1370); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor, new java.lang.String[] { "Bindings", "Etag", "Policy", }); + internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_descriptor = + getDescriptor().getMessageType(1371); + internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageType(1315); + getDescriptor().getMessageType(1372); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -50933,7 +53073,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", }); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor = - getDescriptor().getMessageType(1316); + getDescriptor().getMessageType(1373); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor, @@ -50941,7 +53081,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1317); + getDescriptor().getMessageType(1374); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor, @@ -50949,7 +53089,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1318); + getDescriptor().getMessageType(1375); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor, @@ -50957,7 +53097,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1319); + getDescriptor().getMessageType(1376); internal_static_google_cloud_compute_v1_RemoveAssociationOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationOrganizationSecurityPolicyRequest_descriptor, @@ -50965,7 +53105,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1320); + getDescriptor().getMessageType(1377); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -50973,7 +53113,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor = - getDescriptor().getMessageType(1321); + getDescriptor().getMessageType(1378); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor, @@ -50985,7 +53125,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveHealthCheckRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor = - getDescriptor().getMessageType(1322); + getDescriptor().getMessageType(1379); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor, @@ -50997,7 +53137,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveInstanceRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(1323); + getDescriptor().getMessageType(1380); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor, @@ -51009,7 +53149,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemovePacketMirroringRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1324); + getDescriptor().getMessageType(1381); internal_static_google_cloud_compute_v1_RemovePacketMirroringRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemovePacketMirroringRuleNetworkFirewallPolicyRequest_descriptor, @@ -51017,7 +53157,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor = - getDescriptor().getMessageType(1325); + getDescriptor().getMessageType(1382); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor, @@ -51025,7 +53165,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworksRemovePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor = - getDescriptor().getMessageType(1326); + getDescriptor().getMessageType(1383); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor, @@ -51033,7 +53173,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksRemoveResourcePoliciesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor = - getDescriptor().getMessageType(1327); + getDescriptor().getMessageType(1384); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor, @@ -51045,7 +53185,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1328); + getDescriptor().getMessageType(1385); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor, @@ -51057,7 +53197,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1329); + getDescriptor().getMessageType(1386); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor, @@ -51065,7 +53205,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1330); + getDescriptor().getMessageType(1387); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor, @@ -51073,7 +53213,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleOrganizationSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1331); + getDescriptor().getMessageType(1388); internal_static_google_cloud_compute_v1_RemoveRuleOrganizationSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleOrganizationSecurityPolicyRequest_descriptor, @@ -51081,7 +53221,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1332); + getDescriptor().getMessageType(1389); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -51089,7 +53229,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1333); + getDescriptor().getMessageType(1390); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor, @@ -51097,7 +53237,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1334); + getDescriptor().getMessageType(1391); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor, @@ -51105,7 +53245,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_ReportFaultyReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(1335); + getDescriptor().getMessageType(1392); internal_static_google_cloud_compute_v1_ReportFaultyReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReportFaultyReservationSubBlockRequest_descriptor, @@ -51118,7 +53258,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ReportHostAsFaultyInstanceRequest_descriptor = - getDescriptor().getMessageType(1336); + getDescriptor().getMessageType(1393); internal_static_google_cloud_compute_v1_ReportHostAsFaultyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReportHostAsFaultyInstanceRequest_descriptor, @@ -51130,7 +53270,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor = - getDescriptor().getMessageType(1337); + getDescriptor().getMessageType(1394); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor, @@ -51138,7 +53278,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "MirrorPercent", }); internal_static_google_cloud_compute_v1_RequestRemovePeeringNetworkRequest_descriptor = - getDescriptor().getMessageType(1338); + getDescriptor().getMessageType(1395); internal_static_google_cloud_compute_v1_RequestRemovePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RequestRemovePeeringNetworkRequest_descriptor, @@ -51146,7 +53286,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworksRequestRemovePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_Reservation_descriptor = - getDescriptor().getMessageType(1339); + getDescriptor().getMessageType(1396); internal_static_google_cloud_compute_v1_Reservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reservation_descriptor, @@ -51154,6 +53294,7 @@ private static void _clinit_autosplit_dinit_2() { "AdvancedDeploymentControl", "AggregateReservation", "Commitment", + "ConfidentialComputeType", "CreationTimestamp", "DeleteAfterDuration", "DeleteAtTime", @@ -51188,7 +53329,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationAdvancedDeploymentControl_descriptor = - getDescriptor().getMessageType(1340); + getDescriptor().getMessageType(1397); internal_static_google_cloud_compute_v1_ReservationAdvancedDeploymentControl_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAdvancedDeploymentControl_descriptor, @@ -51196,7 +53337,7 @@ private static void _clinit_autosplit_dinit_2() { "ReservationOperationalMode", }); internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageType(1341); + getDescriptor().getMessageType(1398); internal_static_google_cloud_compute_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor, @@ -51204,7 +53345,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsumeReservationType", "Key", "Values", }); internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor = - getDescriptor().getMessageType(1342); + getDescriptor().getMessageType(1399); internal_static_google_cloud_compute_v1_ReservationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor, @@ -51221,7 +53362,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationBlock_descriptor = - getDescriptor().getMessageType(1343); + getDescriptor().getMessageType(1400); internal_static_google_cloud_compute_v1_ReservationBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlock_descriptor, @@ -51244,7 +53385,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ReservationBlockHealthInfo_descriptor = - getDescriptor().getMessageType(1344); + getDescriptor().getMessageType(1401); internal_static_google_cloud_compute_v1_ReservationBlockHealthInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlockHealthInfo_descriptor, @@ -51252,7 +53393,7 @@ private static void _clinit_autosplit_dinit_2() { "DegradedSubBlockCount", "HealthStatus", "HealthySubBlockCount", }); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopology_descriptor = - getDescriptor().getMessageType(1345); + getDescriptor().getMessageType(1402); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopology_descriptor, @@ -51260,7 +53401,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", "Instances", }); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopologyInstance_descriptor = - getDescriptor().getMessageType(1346); + getDescriptor().getMessageType(1403); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopologyInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopologyInstance_descriptor, @@ -51268,7 +53409,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceId", "PhysicalHostTopology", "ProjectId", }); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopologyInstancePhysicalHostTopology_descriptor = - getDescriptor().getMessageType(1347); + getDescriptor().getMessageType(1404); internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopologyInstancePhysicalHostTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlockPhysicalTopologyInstancePhysicalHostTopology_descriptor, @@ -51276,7 +53417,7 @@ private static void _clinit_autosplit_dinit_2() { "Host", "SubBlock", }); internal_static_google_cloud_compute_v1_ReservationBlocksGetResponse_descriptor = - getDescriptor().getMessageType(1348); + getDescriptor().getMessageType(1405); internal_static_google_cloud_compute_v1_ReservationBlocksGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlocksGetResponse_descriptor, @@ -51284,7 +53425,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_ReservationBlocksListResponse_descriptor = - getDescriptor().getMessageType(1349); + getDescriptor().getMessageType(1406); internal_static_google_cloud_compute_v1_ReservationBlocksListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationBlocksListResponse_descriptor, @@ -51292,7 +53433,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationList_descriptor = - getDescriptor().getMessageType(1350); + getDescriptor().getMessageType(1407); internal_static_google_cloud_compute_v1_ReservationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationList_descriptor, @@ -51300,7 +53441,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationParams_descriptor = - getDescriptor().getMessageType(1351); + getDescriptor().getMessageType(1408); internal_static_google_cloud_compute_v1_ReservationParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationParams_descriptor, @@ -51316,7 +53457,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationSlot_descriptor = - getDescriptor().getMessageType(1352); + getDescriptor().getMessageType(1409); internal_static_google_cloud_compute_v1_ReservationSlot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSlot_descriptor, @@ -51334,7 +53475,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ReservationSlotPhysicalTopology_descriptor = - getDescriptor().getMessageType(1353); + getDescriptor().getMessageType(1410); internal_static_google_cloud_compute_v1_ReservationSlotPhysicalTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSlotPhysicalTopology_descriptor, @@ -51342,7 +53483,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", "Host", "SubBlock", }); internal_static_google_cloud_compute_v1_ReservationSlotStatus_descriptor = - getDescriptor().getMessageType(1354); + getDescriptor().getMessageType(1411); internal_static_google_cloud_compute_v1_ReservationSlotStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSlotStatus_descriptor, @@ -51350,7 +53491,7 @@ private static void _clinit_autosplit_dinit_2() { "PhysicalTopology", "RdmaIpAddresses", "RunningInstances", }); internal_static_google_cloud_compute_v1_ReservationSlotsGetResponse_descriptor = - getDescriptor().getMessageType(1355); + getDescriptor().getMessageType(1412); internal_static_google_cloud_compute_v1_ReservationSlotsGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSlotsGetResponse_descriptor, @@ -51358,7 +53499,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_ReservationSlotsGetVersionRequest_descriptor = - getDescriptor().getMessageType(1356); + getDescriptor().getMessageType(1413); internal_static_google_cloud_compute_v1_ReservationSlotsGetVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSlotsGetVersionRequest_descriptor, @@ -51366,7 +53507,7 @@ private static void _clinit_autosplit_dinit_2() { "SbomSelections", }); internal_static_google_cloud_compute_v1_ReservationSlotsListResponse_descriptor = - getDescriptor().getMessageType(1357); + getDescriptor().getMessageType(1414); internal_static_google_cloud_compute_v1_ReservationSlotsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSlotsListResponse_descriptor, @@ -51374,7 +53515,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationSubBlock_descriptor = - getDescriptor().getMessageType(1358); + getDescriptor().getMessageType(1415); internal_static_google_cloud_compute_v1_ReservationSubBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlock_descriptor, @@ -51396,7 +53537,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ReservationSubBlockHealthInfo_descriptor = - getDescriptor().getMessageType(1359); + getDescriptor().getMessageType(1416); internal_static_google_cloud_compute_v1_ReservationSubBlockHealthInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlockHealthInfo_descriptor, @@ -51408,7 +53549,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthyInfraCount", }); internal_static_google_cloud_compute_v1_ReservationSubBlockPhysicalTopology_descriptor = - getDescriptor().getMessageType(1360); + getDescriptor().getMessageType(1417); internal_static_google_cloud_compute_v1_ReservationSubBlockPhysicalTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlockPhysicalTopology_descriptor, @@ -51416,7 +53557,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", "SubBlock", }); internal_static_google_cloud_compute_v1_ReservationSubBlocksGetResponse_descriptor = - getDescriptor().getMessageType(1361); + getDescriptor().getMessageType(1418); internal_static_google_cloud_compute_v1_ReservationSubBlocksGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksGetResponse_descriptor, @@ -51424,7 +53565,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_ReservationSubBlocksGetVersionRequest_descriptor = - getDescriptor().getMessageType(1362); + getDescriptor().getMessageType(1419); internal_static_google_cloud_compute_v1_ReservationSubBlocksGetVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksGetVersionRequest_descriptor, @@ -51432,7 +53573,7 @@ private static void _clinit_autosplit_dinit_2() { "SbomSelections", }); internal_static_google_cloud_compute_v1_ReservationSubBlocksListResponse_descriptor = - getDescriptor().getMessageType(1363); + getDescriptor().getMessageType(1420); internal_static_google_cloud_compute_v1_ReservationSubBlocksListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksListResponse_descriptor, @@ -51440,19 +53581,15 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ReservationSubBlocksReportFaultyRequest_descriptor = - getDescriptor().getMessageType(1364); + getDescriptor().getMessageType(1421); internal_static_google_cloud_compute_v1_ReservationSubBlocksReportFaultyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksReportFaultyRequest_descriptor, new java.lang.String[] { "DisruptionSchedule", "FailureComponent", "FaultReasons", }); - _clinit_autosplit_dinit_3(); - } - - private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_ReservationSubBlocksReportFaultyRequestFaultReason_descriptor = - getDescriptor().getMessageType(1365); + getDescriptor().getMessageType(1422); internal_static_google_cloud_compute_v1_ReservationSubBlocksReportFaultyRequestFaultReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationSubBlocksReportFaultyRequestFaultReason_descriptor, @@ -51460,7 +53597,7 @@ private static void _clinit_autosplit_dinit_3() { "Behavior", "Description", }); internal_static_google_cloud_compute_v1_ReservationsBlocksPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageType(1366); + getDescriptor().getMessageType(1423); internal_static_google_cloud_compute_v1_ReservationsBlocksPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsBlocksPerformMaintenanceRequest_descriptor, @@ -51468,7 +53605,7 @@ private static void _clinit_autosplit_dinit_3() { "MaintenanceScope", }); internal_static_google_cloud_compute_v1_ReservationsPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageType(1367); + getDescriptor().getMessageType(1424); internal_static_google_cloud_compute_v1_ReservationsPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsPerformMaintenanceRequest_descriptor, @@ -51476,7 +53613,7 @@ private static void _clinit_autosplit_dinit_3() { "MaintenanceScope", }); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor = - getDescriptor().getMessageType(1368); + getDescriptor().getMessageType(1425); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor, @@ -51484,7 +53621,7 @@ private static void _clinit_autosplit_dinit_3() { "SpecificSkuCount", }); internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor = - getDescriptor().getMessageType(1369); + getDescriptor().getMessageType(1426); internal_static_google_cloud_compute_v1_ReservationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor, @@ -51492,7 +53629,7 @@ private static void _clinit_autosplit_dinit_3() { "Reservations", "Warning", }); internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor = - getDescriptor().getMessageType(1370); + getDescriptor().getMessageType(1427); internal_static_google_cloud_compute_v1_ResetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor, @@ -51500,7 +53637,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor = - getDescriptor().getMessageType(1371); + getDescriptor().getMessageType(1428); internal_static_google_cloud_compute_v1_ResizeDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor, @@ -51508,7 +53645,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DisksResizeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1372); + getDescriptor().getMessageType(1429); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor, @@ -51516,7 +53653,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceGroupManager", "Project", "RequestId", "Size", "Zone", }); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1373); + getDescriptor().getMessageType(1430); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor, @@ -51524,7 +53661,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "Region", "RegionDisksResizeRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1374); + getDescriptor().getMessageType(1431); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor, @@ -51532,7 +53669,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceGroupManager", "Project", "Region", "RequestId", "Size", }); internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor = - getDescriptor().getMessageType(1375); + getDescriptor().getMessageType(1432); internal_static_google_cloud_compute_v1_ResizeReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor, @@ -51540,7 +53677,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "Reservation", "ReservationsResizeRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor = - getDescriptor().getMessageType(1376); + getDescriptor().getMessageType(1433); internal_static_google_cloud_compute_v1_ResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor, @@ -51548,7 +53685,7 @@ private static void _clinit_autosplit_dinit_3() { "AcceleratorType", "Amount", "Type", }); internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor = - getDescriptor().getMessageType(1377); + getDescriptor().getMessageType(1434); internal_static_google_cloud_compute_v1_ResourceGroupReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor, @@ -51556,7 +53693,7 @@ private static void _clinit_autosplit_dinit_3() { "Group", }); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor = - getDescriptor().getMessageType(1378); + getDescriptor().getMessageType(1435); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor, @@ -51564,7 +53701,7 @@ private static void _clinit_autosplit_dinit_3() { "ResourcePolicies", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor = - getDescriptor().getMessageType(1379); + getDescriptor().getMessageType(1436); internal_static_google_cloud_compute_v1_ResourcePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor, @@ -51585,7 +53722,7 @@ private static void _clinit_autosplit_dinit_3() { "WorkloadPolicy", }); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor = - getDescriptor().getMessageType(1380); + getDescriptor().getMessageType(1437); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor, @@ -51602,7 +53739,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor = - getDescriptor().getMessageType(1381); + getDescriptor().getMessageType(1438); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor, @@ -51610,13 +53747,13 @@ private static void _clinit_autosplit_dinit_3() { "DaysInCycle", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor = - getDescriptor().getMessageType(1382); + getDescriptor().getMessageType(1439); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor = - getDescriptor().getMessageType(1383); + getDescriptor().getMessageType(1440); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor, @@ -51628,7 +53765,7 @@ private static void _clinit_autosplit_dinit_3() { "VmCount", }); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor = - getDescriptor().getMessageType(1384); + getDescriptor().getMessageType(1441); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor, @@ -51636,7 +53773,7 @@ private static void _clinit_autosplit_dinit_3() { "Duration", "HoursInCycle", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor = - getDescriptor().getMessageType(1385); + getDescriptor().getMessageType(1442); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor, @@ -51644,7 +53781,7 @@ private static void _clinit_autosplit_dinit_3() { "ExpirationTime", "StartTime", "TimeZone", "VmStartSchedule", "VmStopSchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor = - getDescriptor().getMessageType(1386); + getDescriptor().getMessageType(1443); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor, @@ -51652,7 +53789,7 @@ private static void _clinit_autosplit_dinit_3() { "Schedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor = - getDescriptor().getMessageType(1387); + getDescriptor().getMessageType(1444); internal_static_google_cloud_compute_v1_ResourcePolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor, @@ -51660,7 +53797,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor = - getDescriptor().getMessageType(1388); + getDescriptor().getMessageType(1445); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor, @@ -51668,7 +53805,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceSchedulePolicy", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor = - getDescriptor().getMessageType(1389); + getDescriptor().getMessageType(1446); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor, @@ -51676,7 +53813,7 @@ private static void _clinit_autosplit_dinit_3() { "LastRunStartTime", "NextRunStartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor = - getDescriptor().getMessageType(1390); + getDescriptor().getMessageType(1447); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor, @@ -51684,7 +53821,7 @@ private static void _clinit_autosplit_dinit_3() { "RetentionPolicy", "Schedule", "SnapshotProperties", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor = - getDescriptor().getMessageType(1391); + getDescriptor().getMessageType(1448); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor, @@ -51692,7 +53829,7 @@ private static void _clinit_autosplit_dinit_3() { "MaxRetentionDays", "OnSourceDiskDelete", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor = - getDescriptor().getMessageType(1392); + getDescriptor().getMessageType(1449); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor, @@ -51700,7 +53837,7 @@ private static void _clinit_autosplit_dinit_3() { "DailySchedule", "HourlySchedule", "WeeklySchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor = - getDescriptor().getMessageType(1393); + getDescriptor().getMessageType(1450); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor, @@ -51717,7 +53854,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor = - getDescriptor().getMessageType(1394); + getDescriptor().getMessageType(1451); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor, @@ -51725,7 +53862,7 @@ private static void _clinit_autosplit_dinit_3() { "DayOfWeeks", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor = - getDescriptor().getMessageType(1395); + getDescriptor().getMessageType(1452); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor, @@ -51733,7 +53870,7 @@ private static void _clinit_autosplit_dinit_3() { "Day", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyWorkloadPolicy_descriptor = - getDescriptor().getMessageType(1396); + getDescriptor().getMessageType(1453); internal_static_google_cloud_compute_v1_ResourcePolicyWorkloadPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWorkloadPolicy_descriptor, @@ -51741,7 +53878,7 @@ private static void _clinit_autosplit_dinit_3() { "AcceleratorTopology", "AcceleratorTopologyMode", "MaxTopologyDistance", "Type", }); internal_static_google_cloud_compute_v1_ResourceStatus_descriptor = - getDescriptor().getMessageType(1397); + getDescriptor().getMessageType(1454); internal_static_google_cloud_compute_v1_ResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatus_descriptor, @@ -51754,7 +53891,7 @@ private static void _clinit_autosplit_dinit_3() { "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor = - getDescriptor().getMessageType(1398); + getDescriptor().getMessageType(1455); internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor, @@ -51770,7 +53907,7 @@ private static void _clinit_autosplit_dinit_3() { "VmDnsSettingMetadataValue", }); internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor = - getDescriptor().getMessageType(1399); + getDescriptor().getMessageType(1456); internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor, @@ -51778,7 +53915,7 @@ private static void _clinit_autosplit_dinit_3() { "Block", "Cluster", "Host", "Subblock", }); internal_static_google_cloud_compute_v1_ResourceStatusReservationConsumptionInfo_descriptor = - getDescriptor().getMessageType(1400); + getDescriptor().getMessageType(1457); internal_static_google_cloud_compute_v1_ResourceStatusReservationConsumptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusReservationConsumptionInfo_descriptor, @@ -51786,7 +53923,7 @@ private static void _clinit_autosplit_dinit_3() { "ConsumedReservation", }); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor = - getDescriptor().getMessageType(1401); + getDescriptor().getMessageType(1458); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor, @@ -51794,7 +53931,7 @@ private static void _clinit_autosplit_dinit_3() { "AvailabilityDomain", }); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor = - getDescriptor().getMessageType(1402); + getDescriptor().getMessageType(1459); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor, @@ -51802,7 +53939,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1403); + getDescriptor().getMessageType(1460); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor, @@ -51814,7 +53951,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1404); + getDescriptor().getMessageType(1461); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -51825,7 +53962,7 @@ private static void _clinit_autosplit_dinit_3() { "RegionInstanceGroupManagersResumeInstancesRequestResource", "RequestId", }); - internal_static_google_cloud_compute_v1_Route_descriptor = getDescriptor().getMessageType(1405); + internal_static_google_cloud_compute_v1_Route_descriptor = getDescriptor().getMessageType(1462); internal_static_google_cloud_compute_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Route_descriptor, @@ -51859,7 +53996,7 @@ private static void _clinit_autosplit_dinit_3() { "Warnings", }); internal_static_google_cloud_compute_v1_RouteAsPath_descriptor = - getDescriptor().getMessageType(1406); + getDescriptor().getMessageType(1463); internal_static_google_cloud_compute_v1_RouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteAsPath_descriptor, @@ -51867,7 +54004,7 @@ private static void _clinit_autosplit_dinit_3() { "AsLists", "PathSegmentType", }); internal_static_google_cloud_compute_v1_RouteList_descriptor = - getDescriptor().getMessageType(1407); + getDescriptor().getMessageType(1464); internal_static_google_cloud_compute_v1_RouteList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteList_descriptor, @@ -51875,7 +54012,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouteParams_descriptor = - getDescriptor().getMessageType(1408); + getDescriptor().getMessageType(1465); internal_static_google_cloud_compute_v1_RouteParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteParams_descriptor, @@ -51891,7 +54028,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RoutePolicy_descriptor = - getDescriptor().getMessageType(1409); + getDescriptor().getMessageType(1466); internal_static_google_cloud_compute_v1_RoutePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutePolicy_descriptor, @@ -51899,7 +54036,7 @@ private static void _clinit_autosplit_dinit_3() { "Description", "Fingerprint", "Name", "Terms", "Type", }); internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_descriptor = - getDescriptor().getMessageType(1410); + getDescriptor().getMessageType(1467); internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_descriptor, @@ -51907,7 +54044,7 @@ private static void _clinit_autosplit_dinit_3() { "Actions", "Match", "Priority", }); internal_static_google_cloud_compute_v1_Router_descriptor = - getDescriptor().getMessageType(1411); + getDescriptor().getMessageType(1468); internal_static_google_cloud_compute_v1_Router_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Router_descriptor, @@ -51929,7 +54066,7 @@ private static void _clinit_autosplit_dinit_3() { "SelfLink", }); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor = - getDescriptor().getMessageType(1412); + getDescriptor().getMessageType(1469); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor, @@ -51937,7 +54074,7 @@ private static void _clinit_autosplit_dinit_3() { "Description", "Range", }); internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor = - getDescriptor().getMessageType(1413); + getDescriptor().getMessageType(1470); internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor, @@ -51953,7 +54090,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RouterBgp_descriptor = - getDescriptor().getMessageType(1414); + getDescriptor().getMessageType(1471); internal_static_google_cloud_compute_v1_RouterBgp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgp_descriptor, @@ -51966,7 +54103,7 @@ private static void _clinit_autosplit_dinit_3() { "KeepaliveInterval", }); internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor = - getDescriptor().getMessageType(1415); + getDescriptor().getMessageType(1472); internal_static_google_cloud_compute_v1_RouterBgpPeer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor, @@ -51997,7 +54134,7 @@ private static void _clinit_autosplit_dinit_3() { "RouterApplianceInstance", }); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor = - getDescriptor().getMessageType(1416); + getDescriptor().getMessageType(1473); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor, @@ -52008,7 +54145,7 @@ private static void _clinit_autosplit_dinit_3() { "SessionInitializationMode", }); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor = - getDescriptor().getMessageType(1417); + getDescriptor().getMessageType(1474); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor, @@ -52016,7 +54153,7 @@ private static void _clinit_autosplit_dinit_3() { "Range", }); internal_static_google_cloud_compute_v1_RouterInterface_descriptor = - getDescriptor().getMessageType(1418); + getDescriptor().getMessageType(1475); internal_static_google_cloud_compute_v1_RouterInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterInterface_descriptor, @@ -52032,7 +54169,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetwork", }); internal_static_google_cloud_compute_v1_RouterList_descriptor = - getDescriptor().getMessageType(1419); + getDescriptor().getMessageType(1476); internal_static_google_cloud_compute_v1_RouterList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterList_descriptor, @@ -52040,7 +54177,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor = - getDescriptor().getMessageType(1420); + getDescriptor().getMessageType(1477); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor, @@ -52048,7 +54185,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Name", }); internal_static_google_cloud_compute_v1_RouterNat_descriptor = - getDescriptor().getMessageType(1421); + getDescriptor().getMessageType(1478); internal_static_google_cloud_compute_v1_RouterNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNat_descriptor, @@ -52077,7 +54214,7 @@ private static void _clinit_autosplit_dinit_3() { "UdpIdleTimeoutSec", }); internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor = - getDescriptor().getMessageType(1422); + getDescriptor().getMessageType(1479); internal_static_google_cloud_compute_v1_RouterNatLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor, @@ -52085,7 +54222,7 @@ private static void _clinit_autosplit_dinit_3() { "Enable", "Filter", }); internal_static_google_cloud_compute_v1_RouterNatRule_descriptor = - getDescriptor().getMessageType(1423); + getDescriptor().getMessageType(1480); internal_static_google_cloud_compute_v1_RouterNatRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRule_descriptor, @@ -52093,7 +54230,7 @@ private static void _clinit_autosplit_dinit_3() { "Action", "Description", "Match", "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor = - getDescriptor().getMessageType(1424); + getDescriptor().getMessageType(1481); internal_static_google_cloud_compute_v1_RouterNatRuleAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor, @@ -52104,7 +54241,7 @@ private static void _clinit_autosplit_dinit_3() { "SourceNatDrainRanges", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor = - getDescriptor().getMessageType(1425); + getDescriptor().getMessageType(1482); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor, @@ -52112,7 +54249,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "SecondaryIpRangeNames", "SourceIpRangesToNat", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_descriptor = - getDescriptor().getMessageType(1426); + getDescriptor().getMessageType(1483); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_descriptor, @@ -52120,7 +54257,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", }); internal_static_google_cloud_compute_v1_RouterParams_descriptor = - getDescriptor().getMessageType(1427); + getDescriptor().getMessageType(1484); internal_static_google_cloud_compute_v1_RouterParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterParams_descriptor, @@ -52136,7 +54273,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RouterStatus_descriptor = - getDescriptor().getMessageType(1428); + getDescriptor().getMessageType(1485); internal_static_google_cloud_compute_v1_RouterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatus_descriptor, @@ -52144,7 +54281,7 @@ private static void _clinit_autosplit_dinit_3() { "BestRoutes", "BestRoutesForRouter", "BgpPeerStatus", "NatStatus", "Network", }); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor = - getDescriptor().getMessageType(1429); + getDescriptor().getMessageType(1486); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor, @@ -52171,7 +54308,7 @@ private static void _clinit_autosplit_dinit_3() { "UptimeSeconds", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor = - getDescriptor().getMessageType(1430); + getDescriptor().getMessageType(1487); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor, @@ -52187,7 +54324,7 @@ private static void _clinit_autosplit_dinit_3() { "UserAllocatedNatIps", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor = - getDescriptor().getMessageType(1431); + getDescriptor().getMessageType(1488); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor, @@ -52199,7 +54336,7 @@ private static void _clinit_autosplit_dinit_3() { "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor = - getDescriptor().getMessageType(1432); + getDescriptor().getMessageType(1489); internal_static_google_cloud_compute_v1_RouterStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor, @@ -52207,7 +54344,7 @@ private static void _clinit_autosplit_dinit_3() { "Kind", "Result", }); internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_descriptor = - getDescriptor().getMessageType(1433); + getDescriptor().getMessageType(1490); internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_descriptor, @@ -52215,7 +54352,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_descriptor = - getDescriptor().getMessageType(1434); + getDescriptor().getMessageType(1491); internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_descriptor, @@ -52230,7 +54367,7 @@ private static void _clinit_autosplit_dinit_3() { "Warning", }); internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_descriptor = - getDescriptor().getMessageType(1435); + getDescriptor().getMessageType(1492); internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_descriptor, @@ -52245,7 +54382,7 @@ private static void _clinit_autosplit_dinit_3() { "Warning", }); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor = - getDescriptor().getMessageType(1436); + getDescriptor().getMessageType(1493); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor, @@ -52253,7 +54390,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor = - getDescriptor().getMessageType(1437); + getDescriptor().getMessageType(1494); internal_static_google_cloud_compute_v1_RoutersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor, @@ -52261,7 +54398,7 @@ private static void _clinit_autosplit_dinit_3() { "Routers", "Warning", }); internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor = - getDescriptor().getMessageType(1438); + getDescriptor().getMessageType(1495); internal_static_google_cloud_compute_v1_SSLHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor, @@ -52269,7 +54406,7 @@ private static void _clinit_autosplit_dinit_3() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor = - getDescriptor().getMessageType(1439); + getDescriptor().getMessageType(1496); internal_static_google_cloud_compute_v1_SavedAttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor, @@ -52292,7 +54429,7 @@ private static void _clinit_autosplit_dinit_3() { "Type", }); internal_static_google_cloud_compute_v1_SavedDisk_descriptor = - getDescriptor().getMessageType(1440); + getDescriptor().getMessageType(1497); internal_static_google_cloud_compute_v1_SavedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedDisk_descriptor, @@ -52300,7 +54437,7 @@ private static void _clinit_autosplit_dinit_3() { "Architecture", "Kind", "SourceDisk", "StorageBytes", "StorageBytesStatus", }); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor = - getDescriptor().getMessageType(1441); + getDescriptor().getMessageType(1498); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor, @@ -52308,7 +54445,7 @@ private static void _clinit_autosplit_dinit_3() { "LastStartTime", "NextStartTime", "State", }); internal_static_google_cloud_compute_v1_Scheduling_descriptor = - getDescriptor().getMessageType(1442); + getDescriptor().getMessageType(1499); internal_static_google_cloud_compute_v1_Scheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Scheduling_descriptor, @@ -52330,7 +54467,7 @@ private static void _clinit_autosplit_dinit_3() { "TerminationTime", }); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor = - getDescriptor().getMessageType(1443); + getDescriptor().getMessageType(1500); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor, @@ -52338,7 +54475,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Operator", "Values", }); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor = - getDescriptor().getMessageType(1444); + getDescriptor().getMessageType(1501); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor, @@ -52346,7 +54483,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", }); internal_static_google_cloud_compute_v1_Screenshot_descriptor = - getDescriptor().getMessageType(1445); + getDescriptor().getMessageType(1502); internal_static_google_cloud_compute_v1_Screenshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Screenshot_descriptor, @@ -52354,7 +54491,7 @@ private static void _clinit_autosplit_dinit_3() { "Contents", "Kind", }); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor = - getDescriptor().getMessageType(1446); + getDescriptor().getMessageType(1503); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor, @@ -52371,7 +54508,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor = - getDescriptor().getMessageType(1447); + getDescriptor().getMessageType(1504); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor, @@ -52379,7 +54516,7 @@ private static void _clinit_autosplit_dinit_3() { "PreconfiguredExpressionSets", }); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor = - getDescriptor().getMessageType(1448); + getDescriptor().getMessageType(1505); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor, @@ -52387,7 +54524,7 @@ private static void _clinit_autosplit_dinit_3() { "SecurityPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor = - getDescriptor().getMessageType(1449); + getDescriptor().getMessageType(1506); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor, @@ -52395,7 +54532,7 @@ private static void _clinit_autosplit_dinit_3() { "WafRules", }); internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor = - getDescriptor().getMessageType(1450); + getDescriptor().getMessageType(1507); internal_static_google_cloud_compute_v1_SecurityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor, @@ -52430,7 +54567,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor = - getDescriptor().getMessageType(1451); + getDescriptor().getMessageType(1508); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor, @@ -52438,7 +54575,7 @@ private static void _clinit_autosplit_dinit_3() { "Layer7DdosDefenseConfig", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor = - getDescriptor().getMessageType(1452); + getDescriptor().getMessageType(1509); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor, @@ -52446,7 +54583,7 @@ private static void _clinit_autosplit_dinit_3() { "Enable", "RuleVisibility", "ThresholdConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor = - getDescriptor().getMessageType(1453); + getDescriptor().getMessageType(1510); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor, @@ -52462,7 +54599,7 @@ private static void _clinit_autosplit_dinit_3() { "TrafficGranularityConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor = - getDescriptor().getMessageType(1454); + getDescriptor().getMessageType(1511); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor, @@ -52470,7 +54607,7 @@ private static void _clinit_autosplit_dinit_3() { "EnableEachUniqueValue", "Type", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor = - getDescriptor().getMessageType(1455); + getDescriptor().getMessageType(1512); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor, @@ -52482,7 +54619,7 @@ private static void _clinit_autosplit_dinit_3() { "UserIpRequestHeaders", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor = - getDescriptor().getMessageType(1456); + getDescriptor().getMessageType(1513); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor, @@ -52490,7 +54627,7 @@ private static void _clinit_autosplit_dinit_3() { "ContentTypes", }); internal_static_google_cloud_compute_v1_SecurityPolicyAssociation_descriptor = - getDescriptor().getMessageType(1457); + getDescriptor().getMessageType(1514); internal_static_google_cloud_compute_v1_SecurityPolicyAssociation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAssociation_descriptor, @@ -52504,7 +54641,7 @@ private static void _clinit_autosplit_dinit_3() { "ShortName", }); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor = - getDescriptor().getMessageType(1458); + getDescriptor().getMessageType(1515); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor, @@ -52512,7 +54649,7 @@ private static void _clinit_autosplit_dinit_3() { "DdosProtection", }); internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor = - getDescriptor().getMessageType(1459); + getDescriptor().getMessageType(1516); internal_static_google_cloud_compute_v1_SecurityPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor, @@ -52520,7 +54657,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor = - getDescriptor().getMessageType(1460); + getDescriptor().getMessageType(1517); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor, @@ -52528,7 +54665,7 @@ private static void _clinit_autosplit_dinit_3() { "RedirectSiteKey", }); internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor = - getDescriptor().getMessageType(1461); + getDescriptor().getMessageType(1518); internal_static_google_cloud_compute_v1_SecurityPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor, @@ -52536,7 +54673,7 @@ private static void _clinit_autosplit_dinit_3() { "SecurityPolicy", }); internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor = - getDescriptor().getMessageType(1462); + getDescriptor().getMessageType(1519); internal_static_google_cloud_compute_v1_SecurityPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor, @@ -52554,7 +54691,7 @@ private static void _clinit_autosplit_dinit_3() { "RedirectOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor = - getDescriptor().getMessageType(1463); + getDescriptor().getMessageType(1520); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor, @@ -52562,7 +54699,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestHeadersToAdds", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor = - getDescriptor().getMessageType(1464); + getDescriptor().getMessageType(1521); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor, @@ -52570,7 +54707,7 @@ private static void _clinit_autosplit_dinit_3() { "HeaderName", "HeaderValue", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor = - getDescriptor().getMessageType(1465); + getDescriptor().getMessageType(1522); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor, @@ -52578,7 +54715,7 @@ private static void _clinit_autosplit_dinit_3() { "Config", "Expr", "ExprOptions", "VersionedExpr", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor = - getDescriptor().getMessageType(1466); + getDescriptor().getMessageType(1523); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor, @@ -52586,7 +54723,7 @@ private static void _clinit_autosplit_dinit_3() { "SrcIpRanges", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor = - getDescriptor().getMessageType(1467); + getDescriptor().getMessageType(1524); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor, @@ -52594,7 +54731,7 @@ private static void _clinit_autosplit_dinit_3() { "RecaptchaOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor = - getDescriptor().getMessageType(1468); + getDescriptor().getMessageType(1525); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor, @@ -52602,7 +54739,7 @@ private static void _clinit_autosplit_dinit_3() { "ActionTokenSiteKeys", "SessionTokenSiteKeys", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor = - getDescriptor().getMessageType(1469); + getDescriptor().getMessageType(1526); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor, @@ -52617,7 +54754,7 @@ private static void _clinit_autosplit_dinit_3() { "UserDefinedFields", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor = - getDescriptor().getMessageType(1470); + getDescriptor().getMessageType(1527); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor, @@ -52625,7 +54762,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "Values", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor = - getDescriptor().getMessageType(1471); + getDescriptor().getMessageType(1528); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor, @@ -52633,7 +54770,7 @@ private static void _clinit_autosplit_dinit_3() { "Exclusions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor = - getDescriptor().getMessageType(1472); + getDescriptor().getMessageType(1529); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor, @@ -52646,7 +54783,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetRuleSet", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor = - getDescriptor().getMessageType(1473); + getDescriptor().getMessageType(1530); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor, @@ -52654,7 +54791,7 @@ private static void _clinit_autosplit_dinit_3() { "Op", "Val", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor = - getDescriptor().getMessageType(1474); + getDescriptor().getMessageType(1531); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor, @@ -52670,7 +54807,7 @@ private static void _clinit_autosplit_dinit_3() { "RateLimitThreshold", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor = - getDescriptor().getMessageType(1475); + getDescriptor().getMessageType(1532); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor, @@ -52678,7 +54815,7 @@ private static void _clinit_autosplit_dinit_3() { "EnforceOnKeyName", "EnforceOnKeyType", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor = - getDescriptor().getMessageType(1476); + getDescriptor().getMessageType(1533); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor, @@ -52686,7 +54823,7 @@ private static void _clinit_autosplit_dinit_3() { "Count", "IntervalSec", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor = - getDescriptor().getMessageType(1477); + getDescriptor().getMessageType(1534); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor, @@ -52694,7 +54831,7 @@ private static void _clinit_autosplit_dinit_3() { "Target", "Type", }); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor = - getDescriptor().getMessageType(1478); + getDescriptor().getMessageType(1535); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor, @@ -52702,7 +54839,7 @@ private static void _clinit_autosplit_dinit_3() { "Base", "Mask", "Name", "Offset", "Size", }); internal_static_google_cloud_compute_v1_SecuritySettings_descriptor = - getDescriptor().getMessageType(1479); + getDescriptor().getMessageType(1536); internal_static_google_cloud_compute_v1_SecuritySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecuritySettings_descriptor, @@ -52710,7 +54847,7 @@ private static void _clinit_autosplit_dinit_3() { "AwsV4Authentication", "ClientTlsPolicy", "SubjectAltNames", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor = - getDescriptor().getMessageType(1480); + getDescriptor().getMessageType(1537); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor, @@ -52718,13 +54855,13 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor = - getDescriptor().getMessageType(1481); + getDescriptor().getMessageType(1538); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor = - getDescriptor().getMessageType(1482); + getDescriptor().getMessageType(1539); internal_static_google_cloud_compute_v1_SerialPortOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor, @@ -52732,7 +54869,7 @@ private static void _clinit_autosplit_dinit_3() { "Contents", "Kind", "Next", "SelfLink", "Start", }); internal_static_google_cloud_compute_v1_ServerBinding_descriptor = - getDescriptor().getMessageType(1483); + getDescriptor().getMessageType(1540); internal_static_google_cloud_compute_v1_ServerBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServerBinding_descriptor, @@ -52740,7 +54877,7 @@ private static void _clinit_autosplit_dinit_3() { "Type", }); internal_static_google_cloud_compute_v1_ServiceAccount_descriptor = - getDescriptor().getMessageType(1484); + getDescriptor().getMessageType(1541); internal_static_google_cloud_compute_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAccount_descriptor, @@ -52748,7 +54885,7 @@ private static void _clinit_autosplit_dinit_3() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor = - getDescriptor().getMessageType(1485); + getDescriptor().getMessageType(1542); internal_static_google_cloud_compute_v1_ServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor, @@ -52784,7 +54921,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor = - getDescriptor().getMessageType(1486); + getDescriptor().getMessageType(1543); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor, @@ -52801,7 +54938,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageType(1487); + getDescriptor().getMessageType(1544); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor, @@ -52815,7 +54952,7 @@ private static void _clinit_autosplit_dinit_3() { "Status", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor = - getDescriptor().getMessageType(1488); + getDescriptor().getMessageType(1545); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor, @@ -52823,7 +54960,7 @@ private static void _clinit_autosplit_dinit_3() { "ConnectionLimit", "EndpointUrl", "NetworkUrl", "ProjectIdOrNum", }); internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor = - getDescriptor().getMessageType(1489); + getDescriptor().getMessageType(1546); internal_static_google_cloud_compute_v1_ServiceAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor, @@ -52831,7 +54968,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor = - getDescriptor().getMessageType(1490); + getDescriptor().getMessageType(1547); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor, @@ -52839,7 +54976,7 @@ private static void _clinit_autosplit_dinit_3() { "ServiceAttachments", "Warning", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(1491); + getDescriptor().getMessageType(1548); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor, @@ -52850,7 +54987,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(1492); + getDescriptor().getMessageType(1549); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor, @@ -52861,7 +54998,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor = - getDescriptor().getMessageType(1493); + getDescriptor().getMessageType(1550); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor, @@ -52874,7 +55011,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1494); + getDescriptor().getMessageType(1551); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor, @@ -52885,7 +55022,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(1495); + getDescriptor().getMessageType(1552); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor, @@ -52896,7 +55033,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor = - getDescriptor().getMessageType(1496); + getDescriptor().getMessageType(1553); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor, @@ -52904,7 +55041,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "ProjectsSetCloudArmorTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor = - getDescriptor().getMessageType(1497); + getDescriptor().getMessageType(1554); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor, @@ -52921,7 +55058,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor = - getDescriptor().getMessageType(1498); + getDescriptor().getMessageType(1555); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor, @@ -52929,7 +55066,7 @@ private static void _clinit_autosplit_dinit_3() { "Error", "State", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor = - getDescriptor().getMessageType(1499); + getDescriptor().getMessageType(1556); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor, @@ -52937,7 +55074,7 @@ private static void _clinit_autosplit_dinit_3() { "MetadataResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor = - getDescriptor().getMessageType(1500); + getDescriptor().getMessageType(1557); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor, @@ -52945,7 +55082,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "ProjectsSetDefaultNetworkTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor = - getDescriptor().getMessageType(1501); + getDescriptor().getMessageType(1558); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor, @@ -52953,7 +55090,7 @@ private static void _clinit_autosplit_dinit_3() { "DeletionProtection", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor = - getDescriptor().getMessageType(1502); + getDescriptor().getMessageType(1559); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor, @@ -52961,7 +55098,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageType(1503); + getDescriptor().getMessageType(1560); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor, @@ -52969,7 +55106,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendBucket", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1504); + getDescriptor().getMessageType(1561); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor, @@ -52977,7 +55114,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageType(1505); + getDescriptor().getMessageType(1562); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor, @@ -52985,7 +55122,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1506); + getDescriptor().getMessageType(1563); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor, @@ -52993,7 +55130,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageType(1507); + getDescriptor().getMessageType(1564); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor, @@ -53001,7 +55138,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1508); + getDescriptor().getMessageType(1565); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor, @@ -53009,7 +55146,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalOrganizationSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageType(1509); + getDescriptor().getMessageType(1566); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor, @@ -53017,7 +55154,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageType(1510); + getDescriptor().getMessageType(1567); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor, @@ -53025,15 +55162,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(1511); + getDescriptor().getMessageType(1568); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor, new java.lang.String[] { "GlobalSetPolicyRequestResource", "Project", "Resource", }); + internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(1569); + internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", + }); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(1512); + getDescriptor().getMessageType(1570); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor, @@ -53041,7 +55186,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(1513); + getDescriptor().getMessageType(1571); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_descriptor, @@ -53049,7 +55194,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(1514); + getDescriptor().getMessageType(1572); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_descriptor, @@ -53057,7 +55202,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageType(1515); + getDescriptor().getMessageType(1573); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor, @@ -53065,7 +55210,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageType(1516); + getDescriptor().getMessageType(1574); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor, @@ -53073,7 +55218,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(1517); + getDescriptor().getMessageType(1575); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor, @@ -53081,7 +55226,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1518); + getDescriptor().getMessageType(1576); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -53089,7 +55234,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageType(1519); + getDescriptor().getMessageType(1577); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor, @@ -53097,15 +55242,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(1520); + getDescriptor().getMessageType(1578); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor, new java.lang.String[] { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); + internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(1579); + internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RegionSetPolicyRequestResource", "Resource", + }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1521); + getDescriptor().getMessageType(1580); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor, @@ -53113,15 +55266,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1522); + getDescriptor().getMessageType(1581); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor, new java.lang.String[] { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); + internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(1582); + internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RegionSetPolicyRequestResource", "Resource", + }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(1523); + getDescriptor().getMessageType(1583); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -53129,15 +55290,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1524); + getDescriptor().getMessageType(1584); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, new java.lang.String[] { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); + internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(1585); + internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RegionSetPolicyRequestResource", "Resource", + }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationBlockRequest_descriptor = - getDescriptor().getMessageType(1525); + getDescriptor().getMessageType(1586); internal_static_google_cloud_compute_v1_SetIamPolicyReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationBlockRequest_descriptor, @@ -53145,7 +55314,7 @@ private static void _clinit_autosplit_dinit_3() { "ParentResource", "Project", "Resource", "Zone", "ZoneSetNestedPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageType(1526); + getDescriptor().getMessageType(1587); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor, @@ -53153,7 +55322,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(1527); + getDescriptor().getMessageType(1588); internal_static_google_cloud_compute_v1_SetIamPolicyReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationSubBlockRequest_descriptor, @@ -53161,7 +55330,7 @@ private static void _clinit_autosplit_dinit_3() { "ParentResource", "Project", "Resource", "Zone", "ZoneSetNestedPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(1528); + getDescriptor().getMessageType(1589); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor, @@ -53169,7 +55338,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(1529); + getDescriptor().getMessageType(1590); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor, @@ -53177,7 +55346,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageType(1530); + getDescriptor().getMessageType(1591); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor, @@ -53185,7 +55354,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageType(1531); + getDescriptor().getMessageType(1592); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor, @@ -53193,7 +55362,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageType(1532); + getDescriptor().getMessageType(1593); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor, @@ -53201,7 +55370,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1533); + getDescriptor().getMessageType(1594); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor, @@ -53213,7 +55382,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1534); + getDescriptor().getMessageType(1595); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor, @@ -53225,7 +55394,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor = - getDescriptor().getMessageType(1535); + getDescriptor().getMessageType(1596); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor, @@ -53233,7 +55402,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor = - getDescriptor().getMessageType(1536); + getDescriptor().getMessageType(1597); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor, @@ -53241,7 +55410,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(1537); + getDescriptor().getMessageType(1598); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor, @@ -53249,7 +55418,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(1538); + getDescriptor().getMessageType(1599); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor, @@ -53257,7 +55426,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor = - getDescriptor().getMessageType(1539); + getDescriptor().getMessageType(1600); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor, @@ -53265,7 +55434,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(1540); + getDescriptor().getMessageType(1601); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor, @@ -53273,7 +55442,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor = - getDescriptor().getMessageType(1541); + getDescriptor().getMessageType(1602); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor, @@ -53281,7 +55450,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor = - getDescriptor().getMessageType(1542); + getDescriptor().getMessageType(1603); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor, @@ -53289,7 +55458,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "InstancesSetLabelsRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(1543); + getDescriptor().getMessageType(1604); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor, @@ -53297,7 +55466,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageType(1544); + getDescriptor().getMessageType(1605); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor, @@ -53305,7 +55474,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor = - getDescriptor().getMessageType(1545); + getDescriptor().getMessageType(1606); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor, @@ -53313,7 +55482,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_descriptor = - getDescriptor().getMessageType(1546); + getDescriptor().getMessageType(1607); internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_descriptor, @@ -53321,7 +55490,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1547); + getDescriptor().getMessageType(1608); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor, @@ -53329,7 +55498,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(1548); + getDescriptor().getMessageType(1609); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor, @@ -53337,15 +55506,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1549); + getDescriptor().getMessageType(1610); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor, new java.lang.String[] { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); + internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(1611); + internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", + }); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor = - getDescriptor().getMessageType(1550); + getDescriptor().getMessageType(1612); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor, @@ -53353,7 +55530,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor = - getDescriptor().getMessageType(1551); + getDescriptor().getMessageType(1613); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor, @@ -53361,7 +55538,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(1552); + getDescriptor().getMessageType(1614); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor, @@ -53369,7 +55546,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(1553); + getDescriptor().getMessageType(1615); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor, @@ -53377,7 +55554,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor = - getDescriptor().getMessageType(1554); + getDescriptor().getMessageType(1616); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor, @@ -53385,7 +55562,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor = - getDescriptor().getMessageType(1555); + getDescriptor().getMessageType(1617); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor, @@ -53397,7 +55574,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor = - getDescriptor().getMessageType(1556); + getDescriptor().getMessageType(1618); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor, @@ -53405,7 +55582,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "InstancesSetMachineTypeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor = - getDescriptor().getMessageType(1557); + getDescriptor().getMessageType(1619); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor, @@ -53413,7 +55590,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "MetadataResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor = - getDescriptor().getMessageType(1558); + getDescriptor().getMessageType(1620); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor, @@ -53425,7 +55602,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor = - getDescriptor().getMessageType(1559); + getDescriptor().getMessageType(1621); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor, @@ -53433,7 +55610,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "InstancesSetNameRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(1560); + getDescriptor().getMessageType(1622); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor, @@ -53445,7 +55622,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(1561); + getDescriptor().getMessageType(1623); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor, @@ -53457,7 +55634,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor = - getDescriptor().getMessageType(1562); + getDescriptor().getMessageType(1624); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor, @@ -53469,7 +55646,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor = - getDescriptor().getMessageType(1563); + getDescriptor().getMessageType(1625); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor, @@ -53481,7 +55658,7 @@ private static void _clinit_autosplit_dinit_3() { "SubnetworksSetPrivateIpGoogleAccessRequestResource", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(1564); + getDescriptor().getMessageType(1626); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor, @@ -53492,7 +55669,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(1565); + getDescriptor().getMessageType(1627); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor, @@ -53503,7 +55680,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1566); + getDescriptor().getMessageType(1628); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor, @@ -53514,7 +55691,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor = - getDescriptor().getMessageType(1567); + getDescriptor().getMessageType(1629); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor, @@ -53522,7 +55699,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "SchedulingResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1568); + getDescriptor().getMessageType(1630); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor, @@ -53530,7 +55707,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageType(1569); + getDescriptor().getMessageType(1631); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor, @@ -53542,7 +55719,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1570); + getDescriptor().getMessageType(1632); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor, @@ -53550,7 +55727,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor = - getDescriptor().getMessageType(1571); + getDescriptor().getMessageType(1633); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor, @@ -53558,7 +55735,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SecurityPolicyReferenceResource", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor = - getDescriptor().getMessageType(1572); + getDescriptor().getMessageType(1634); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor, @@ -53566,7 +55743,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", "TargetPool", }); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor = - getDescriptor().getMessageType(1573); + getDescriptor().getMessageType(1635); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor, @@ -53578,7 +55755,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageType(1574); + getDescriptor().getMessageType(1636); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor, @@ -53586,7 +55763,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceIntegrityPolicyResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1575); + getDescriptor().getMessageType(1637); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor, @@ -53598,7 +55775,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1576); + getDescriptor().getMessageType(1638); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor, @@ -53609,7 +55786,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(1577); + getDescriptor().getMessageType(1639); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor, @@ -53620,7 +55797,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1578); + getDescriptor().getMessageType(1640); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor, @@ -53628,7 +55805,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(1579); + getDescriptor().getMessageType(1641); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor, @@ -53636,7 +55813,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor = - getDescriptor().getMessageType(1580); + getDescriptor().getMessageType(1642); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor, @@ -53644,7 +55821,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "TagsResource", "Zone", }); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(1581); + getDescriptor().getMessageType(1643); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor, @@ -53652,7 +55829,7 @@ private static void _clinit_autosplit_dinit_3() { "ForwardingRule", "Project", "Region", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageType(1582); + getDescriptor().getMessageType(1644); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor, @@ -53660,7 +55837,7 @@ private static void _clinit_autosplit_dinit_3() { "ForwardingRule", "Project", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1583); + getDescriptor().getMessageType(1645); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor, @@ -53672,7 +55849,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1584); + getDescriptor().getMessageType(1646); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor, @@ -53684,7 +55861,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(1585); + getDescriptor().getMessageType(1647); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor, @@ -53692,7 +55869,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1586); + getDescriptor().getMessageType(1648); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor, @@ -53700,7 +55877,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageType(1587); + getDescriptor().getMessageType(1649); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor, @@ -53708,7 +55885,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageType(1588); + getDescriptor().getMessageType(1650); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor, @@ -53716,7 +55893,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor = - getDescriptor().getMessageType(1589); + getDescriptor().getMessageType(1651); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor, @@ -53724,7 +55901,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UsageExportLocationResource", }); internal_static_google_cloud_compute_v1_ShareSettings_descriptor = - getDescriptor().getMessageType(1590); + getDescriptor().getMessageType(1652); internal_static_google_cloud_compute_v1_ShareSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettings_descriptor, @@ -53740,7 +55917,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor = - getDescriptor().getMessageType(1591); + getDescriptor().getMessageType(1653); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor, @@ -53748,7 +55925,7 @@ private static void _clinit_autosplit_dinit_3() { "ProjectId", }); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageType(1592); + getDescriptor().getMessageType(1654); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor, @@ -53756,7 +55933,7 @@ private static void _clinit_autosplit_dinit_3() { "EnableIntegrityMonitoring", "EnableSecureBoot", "EnableVtpm", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor = - getDescriptor().getMessageType(1593); + getDescriptor().getMessageType(1655); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor, @@ -53764,7 +55941,7 @@ private static void _clinit_autosplit_dinit_3() { "EccP256EncryptionKey", "EccP256SigningKey", "EncryptionKey", "Kind", "SigningKey", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor = - getDescriptor().getMessageType(1594); + getDescriptor().getMessageType(1656); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor, @@ -53772,7 +55949,7 @@ private static void _clinit_autosplit_dinit_3() { "EkCert", "EkPub", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor = - getDescriptor().getMessageType(1595); + getDescriptor().getMessageType(1657); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor, @@ -53780,7 +55957,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateAutoLearnPolicy", }); internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor = - getDescriptor().getMessageType(1596); + getDescriptor().getMessageType(1658); internal_static_google_cloud_compute_v1_SignedUrlKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor, @@ -53788,7 +55965,7 @@ private static void _clinit_autosplit_dinit_3() { "KeyName", "KeyValue", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor = - getDescriptor().getMessageType(1597); + getDescriptor().getMessageType(1659); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor, @@ -53796,7 +55973,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "WithExtendedNotifications", "Zone", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor = - getDescriptor().getMessageType(1598); + getDescriptor().getMessageType(1660); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor, @@ -53808,7 +55985,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_Snapshot_descriptor = - getDescriptor().getMessageType(1599); + getDescriptor().getMessageType(1661); internal_static_google_cloud_compute_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Snapshot_descriptor, @@ -53833,10 +56010,13 @@ private static void _clinit_autosplit_dinit_3() { "LocationHint", "Name", "Params", + "Region", "SatisfiesPzi", "SatisfiesPzs", "SelfLink", "SnapshotEncryptionKey", + "SnapshotGroupId", + "SnapshotGroupName", "SnapshotType", "SourceDisk", "SourceDiskEncryptionKey", @@ -53860,8 +56040,16 @@ private static void _clinit_autosplit_dinit_3() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_compute_v1_SnapshotGroupParameters_descriptor = + getDescriptor().getMessageType(1662); + internal_static_google_cloud_compute_v1_SnapshotGroupParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SnapshotGroupParameters_descriptor, + new java.lang.String[] { + "ReplicaZones", "SourceSnapshotGroup", "Type", + }); internal_static_google_cloud_compute_v1_SnapshotList_descriptor = - getDescriptor().getMessageType(1600); + getDescriptor().getMessageType(1663); internal_static_google_cloud_compute_v1_SnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotList_descriptor, @@ -53869,7 +56057,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SnapshotParams_descriptor = - getDescriptor().getMessageType(1601); + getDescriptor().getMessageType(1664); internal_static_google_cloud_compute_v1_SnapshotParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotParams_descriptor, @@ -53885,15 +56073,40 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor = - getDescriptor().getMessageType(1602); + getDescriptor().getMessageType(1665); internal_static_google_cloud_compute_v1_SnapshotSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor, new java.lang.String[] { - "StorageLocation", + "AccessLocation", "StorageLocation", + }); + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor = + getDescriptor().getMessageType(1666); + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor, + new java.lang.String[] { + "Locations", "Policy", + }); + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_LocationsEntry_descriptor = + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor + .getNestedType(0); + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_LocationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_LocationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_descriptor = + getDescriptor().getMessageType(1667); + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_descriptor, + new java.lang.String[] { + "Region", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor = - getDescriptor().getMessageType(1603); + getDescriptor().getMessageType(1668); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor, @@ -53910,15 +56123,23 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor = - getDescriptor().getMessageType(1604); + getDescriptor().getMessageType(1669); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_descriptor = + getDescriptor().getMessageType(1670); + internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor = - getDescriptor().getMessageType(1605); + getDescriptor().getMessageType(1671); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor, @@ -53926,7 +56147,7 @@ private static void _clinit_autosplit_dinit_3() { "DiskEncryptionKey", "SourceDisk", }); internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor = - getDescriptor().getMessageType(1606); + getDescriptor().getMessageType(1672); internal_static_google_cloud_compute_v1_SourceInstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor, @@ -53934,7 +56155,7 @@ private static void _clinit_autosplit_dinit_3() { "DiskConfigs", }); internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor = - getDescriptor().getMessageType(1607); + getDescriptor().getMessageType(1673); internal_static_google_cloud_compute_v1_SourceInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor, @@ -53965,7 +56186,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificate_descriptor = - getDescriptor().getMessageType(1608); + getDescriptor().getMessageType(1674); internal_static_google_cloud_compute_v1_SslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificate_descriptor, @@ -53986,7 +56207,7 @@ private static void _clinit_autosplit_dinit_3() { "Type", }); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor = - getDescriptor().getMessageType(1609); + getDescriptor().getMessageType(1675); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor, @@ -54003,7 +56224,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateList_descriptor = - getDescriptor().getMessageType(1610); + getDescriptor().getMessageType(1676); internal_static_google_cloud_compute_v1_SslCertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateList_descriptor, @@ -54011,7 +56232,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor = - getDescriptor().getMessageType(1611); + getDescriptor().getMessageType(1677); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor, @@ -54028,7 +56249,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor = - getDescriptor().getMessageType(1612); + getDescriptor().getMessageType(1678); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor, @@ -54036,7 +56257,7 @@ private static void _clinit_autosplit_dinit_3() { "Certificate", "PrivateKey", }); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor = - getDescriptor().getMessageType(1613); + getDescriptor().getMessageType(1679); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor, @@ -54044,7 +56265,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor = - getDescriptor().getMessageType(1614); + getDescriptor().getMessageType(1680); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor, @@ -54061,7 +56282,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor = - getDescriptor().getMessageType(1615); + getDescriptor().getMessageType(1681); internal_static_google_cloud_compute_v1_SslPoliciesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor, @@ -54069,7 +56290,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor = - getDescriptor().getMessageType(1616); + getDescriptor().getMessageType(1682); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor, @@ -54077,7 +56298,7 @@ private static void _clinit_autosplit_dinit_3() { "Features", }); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor = - getDescriptor().getMessageType(1617); + getDescriptor().getMessageType(1683); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor, @@ -54085,7 +56306,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SslPolicy_descriptor = - getDescriptor().getMessageType(1618); + getDescriptor().getMessageType(1684); internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicy_descriptor, @@ -54105,7 +56326,7 @@ private static void _clinit_autosplit_dinit_3() { "Warnings", }); internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor = - getDescriptor().getMessageType(1619); + getDescriptor().getMessageType(1685); internal_static_google_cloud_compute_v1_SslPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor, @@ -54113,7 +56334,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageType(1620); + getDescriptor().getMessageType(1686); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor, @@ -54121,7 +56342,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DisksStartAsyncReplicationRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1621); + getDescriptor().getMessageType(1687); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor, @@ -54133,7 +56354,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor = - getDescriptor().getMessageType(1622); + getDescriptor().getMessageType(1688); internal_static_google_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor, @@ -54141,7 +56362,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1623); + getDescriptor().getMessageType(1689); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor, @@ -54153,7 +56374,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1624); + getDescriptor().getMessageType(1690); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -54165,7 +56386,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor = - getDescriptor().getMessageType(1625); + getDescriptor().getMessageType(1691); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor, @@ -54177,7 +56398,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor = - getDescriptor().getMessageType(1626); + getDescriptor().getMessageType(1692); internal_static_google_cloud_compute_v1_StatefulPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor, @@ -54185,7 +56406,7 @@ private static void _clinit_autosplit_dinit_3() { "PreservedState", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor = - getDescriptor().getMessageType(1627); + getDescriptor().getMessageType(1693); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor, @@ -54220,7 +56441,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor = - getDescriptor().getMessageType(1628); + getDescriptor().getMessageType(1694); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor, @@ -54228,7 +56449,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor = - getDescriptor().getMessageType(1629); + getDescriptor().getMessageType(1695); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor, @@ -54236,7 +56457,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", }); internal_static_google_cloud_compute_v1_Status_descriptor = - getDescriptor().getMessageType(1630); + getDescriptor().getMessageType(1696); internal_static_google_cloud_compute_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Status_descriptor, @@ -54244,7 +56465,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Details", "Message", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageType(1631); + getDescriptor().getMessageType(1697); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor, @@ -54252,7 +56473,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1632); + getDescriptor().getMessageType(1698); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor, @@ -54260,7 +56481,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageType(1633); + getDescriptor().getMessageType(1699); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor, @@ -54268,7 +56489,7 @@ private static void _clinit_autosplit_dinit_3() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1634); + getDescriptor().getMessageType(1700); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor, @@ -54276,7 +56497,7 @@ private static void _clinit_autosplit_dinit_3() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor = - getDescriptor().getMessageType(1635); + getDescriptor().getMessageType(1701); internal_static_google_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor, @@ -54284,7 +56505,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1636); + getDescriptor().getMessageType(1702); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor, @@ -54296,7 +56517,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1637); + getDescriptor().getMessageType(1703); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -54308,7 +56529,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StoragePool_descriptor = - getDescriptor().getMessageType(1638); + getDescriptor().getMessageType(1704); internal_static_google_cloud_compute_v1_StoragePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePool_descriptor, @@ -54344,7 +56565,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor = - getDescriptor().getMessageType(1639); + getDescriptor().getMessageType(1705); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor, @@ -54361,7 +56582,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor = - getDescriptor().getMessageType(1640); + getDescriptor().getMessageType(1706); internal_static_google_cloud_compute_v1_StoragePoolDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor, @@ -54379,7 +56600,7 @@ private static void _clinit_autosplit_dinit_3() { "UsedBytes", }); internal_static_google_cloud_compute_v1_StoragePoolExapoolProvisionedCapacityGb_descriptor = - getDescriptor().getMessageType(1641); + getDescriptor().getMessageType(1707); internal_static_google_cloud_compute_v1_StoragePoolExapoolProvisionedCapacityGb_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolExapoolProvisionedCapacityGb_descriptor, @@ -54387,7 +56608,7 @@ private static void _clinit_autosplit_dinit_3() { "CapacityOptimized", "ReadOptimized", "WriteOptimized", }); internal_static_google_cloud_compute_v1_StoragePoolList_descriptor = - getDescriptor().getMessageType(1642); + getDescriptor().getMessageType(1708); internal_static_google_cloud_compute_v1_StoragePoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolList_descriptor, @@ -54395,7 +56616,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor = - getDescriptor().getMessageType(1643); + getDescriptor().getMessageType(1709); internal_static_google_cloud_compute_v1_StoragePoolListDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor, @@ -54403,7 +56624,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolParams_descriptor = - getDescriptor().getMessageType(1644); + getDescriptor().getMessageType(1710); internal_static_google_cloud_compute_v1_StoragePoolParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolParams_descriptor, @@ -54419,7 +56640,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor = - getDescriptor().getMessageType(1645); + getDescriptor().getMessageType(1711); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor, @@ -54440,7 +56661,7 @@ private static void _clinit_autosplit_dinit_3() { "TotalProvisionedDiskThroughput", }); internal_static_google_cloud_compute_v1_StoragePoolType_descriptor = - getDescriptor().getMessageType(1646); + getDescriptor().getMessageType(1712); internal_static_google_cloud_compute_v1_StoragePoolType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolType_descriptor, @@ -54464,7 +56685,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor = - getDescriptor().getMessageType(1647); + getDescriptor().getMessageType(1713); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor, @@ -54481,7 +56702,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor = - getDescriptor().getMessageType(1648); + getDescriptor().getMessageType(1714); internal_static_google_cloud_compute_v1_StoragePoolTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor, @@ -54489,7 +56710,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor = - getDescriptor().getMessageType(1649); + getDescriptor().getMessageType(1715); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor, @@ -54497,7 +56718,7 @@ private static void _clinit_autosplit_dinit_3() { "StoragePoolTypes", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor = - getDescriptor().getMessageType(1650); + getDescriptor().getMessageType(1716); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor, @@ -54505,7 +56726,7 @@ private static void _clinit_autosplit_dinit_3() { "StoragePools", "Warning", }); internal_static_google_cloud_compute_v1_Subnetwork_descriptor = - getDescriptor().getMessageType(1651); + getDescriptor().getMessageType(1717); internal_static_google_cloud_compute_v1_Subnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subnetwork_descriptor, @@ -54545,7 +56766,7 @@ private static void _clinit_autosplit_dinit_3() { "UtilizationDetails", }); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor = - getDescriptor().getMessageType(1652); + getDescriptor().getMessageType(1718); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor, @@ -54562,7 +56783,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkList_descriptor = - getDescriptor().getMessageType(1653); + getDescriptor().getMessageType(1719); internal_static_google_cloud_compute_v1_SubnetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkList_descriptor, @@ -54570,7 +56791,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor = - getDescriptor().getMessageType(1654); + getDescriptor().getMessageType(1720); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor, @@ -54583,7 +56804,7 @@ private static void _clinit_autosplit_dinit_3() { "MetadataFields", }); internal_static_google_cloud_compute_v1_SubnetworkParams_descriptor = - getDescriptor().getMessageType(1655); + getDescriptor().getMessageType(1721); internal_static_google_cloud_compute_v1_SubnetworkParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkParams_descriptor, @@ -54599,7 +56820,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageType(1656); + getDescriptor().getMessageType(1722); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor, @@ -54607,7 +56828,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", "ReservedInternalRange", }); internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetails_descriptor = - getDescriptor().getMessageType(1657); + getDescriptor().getMessageType(1723); internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetails_descriptor, @@ -54618,7 +56839,7 @@ private static void _clinit_autosplit_dinit_3() { "Ipv4Utilizations", }); internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetailsIPV4Utilization_descriptor = - getDescriptor().getMessageType(1658); + getDescriptor().getMessageType(1724); internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetailsIPV4Utilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetailsIPV4Utilization_descriptor, @@ -54626,7 +56847,7 @@ private static void _clinit_autosplit_dinit_3() { "RangeName", "TotalAllocatedIp", "TotalFreeIp", }); internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetailsIPV6Utilization_descriptor = - getDescriptor().getMessageType(1659); + getDescriptor().getMessageType(1725); internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetailsIPV6Utilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkUtilizationDetailsIPV6Utilization_descriptor, @@ -54634,7 +56855,7 @@ private static void _clinit_autosplit_dinit_3() { "TotalAllocatedIp", "TotalFreeIp", }); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor = - getDescriptor().getMessageType(1660); + getDescriptor().getMessageType(1726); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor, @@ -54642,7 +56863,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", }); internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor = - getDescriptor().getMessageType(1661); + getDescriptor().getMessageType(1727); internal_static_google_cloud_compute_v1_SubnetworksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor, @@ -54650,7 +56871,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetworks", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_descriptor = - getDescriptor().getMessageType(1662); + getDescriptor().getMessageType(1728); internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_descriptor, @@ -54658,7 +56879,7 @@ private static void _clinit_autosplit_dinit_3() { "ScopeName", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor = - getDescriptor().getMessageType(1663); + getDescriptor().getMessageType(1729); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor, @@ -54666,7 +56887,7 @@ private static void _clinit_autosplit_dinit_3() { "PrivateIpGoogleAccess", }); internal_static_google_cloud_compute_v1_Subsetting_descriptor = - getDescriptor().getMessageType(1664); + getDescriptor().getMessageType(1730); internal_static_google_cloud_compute_v1_Subsetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subsetting_descriptor, @@ -54674,7 +56895,7 @@ private static void _clinit_autosplit_dinit_3() { "Policy", }); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor = - getDescriptor().getMessageType(1665); + getDescriptor().getMessageType(1731); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor, @@ -54682,7 +56903,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1666); + getDescriptor().getMessageType(1732); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor, @@ -54694,7 +56915,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1667); + getDescriptor().getMessageType(1733); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -54706,7 +56927,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor = - getDescriptor().getMessageType(1668); + getDescriptor().getMessageType(1734); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor, @@ -54714,14 +56935,14 @@ private static void _clinit_autosplit_dinit_3() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor = - getDescriptor().getMessageType(1669); + getDescriptor().getMessageType(1735); internal_static_google_cloud_compute_v1_TCPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor, new java.lang.String[] { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); - internal_static_google_cloud_compute_v1_Tags_descriptor = getDescriptor().getMessageType(1670); + internal_static_google_cloud_compute_v1_Tags_descriptor = getDescriptor().getMessageType(1736); internal_static_google_cloud_compute_v1_Tags_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Tags_descriptor, @@ -54729,7 +56950,7 @@ private static void _clinit_autosplit_dinit_3() { "Fingerprint", "Items", }); internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor = - getDescriptor().getMessageType(1671); + getDescriptor().getMessageType(1737); internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor, @@ -54746,7 +56967,7 @@ private static void _clinit_autosplit_dinit_3() { "ValidateForProxyless", }); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor = - getDescriptor().getMessageType(1672); + getDescriptor().getMessageType(1738); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor, @@ -54754,7 +56975,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor = - getDescriptor().getMessageType(1673); + getDescriptor().getMessageType(1739); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor, @@ -54762,7 +56983,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor = - getDescriptor().getMessageType(1674); + getDescriptor().getMessageType(1740); internal_static_google_cloud_compute_v1_TargetHttpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor, @@ -54780,7 +57001,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor = - getDescriptor().getMessageType(1675); + getDescriptor().getMessageType(1741); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor, @@ -54797,7 +57018,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor = - getDescriptor().getMessageType(1676); + getDescriptor().getMessageType(1742); internal_static_google_cloud_compute_v1_TargetHttpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor, @@ -54805,7 +57026,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor = - getDescriptor().getMessageType(1677); + getDescriptor().getMessageType(1743); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor, @@ -54813,7 +57034,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageType(1678); + getDescriptor().getMessageType(1744); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor, @@ -54821,7 +57042,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor = - getDescriptor().getMessageType(1679); + getDescriptor().getMessageType(1745); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor, @@ -54829,7 +57050,7 @@ private static void _clinit_autosplit_dinit_3() { "QuicOverride", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageType(1680); + getDescriptor().getMessageType(1746); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -54837,7 +57058,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor = - getDescriptor().getMessageType(1681); + getDescriptor().getMessageType(1747); internal_static_google_cloud_compute_v1_TargetHttpsProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor, @@ -54862,7 +57083,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor = - getDescriptor().getMessageType(1682); + getDescriptor().getMessageType(1748); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor, @@ -54879,7 +57100,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor = - getDescriptor().getMessageType(1683); + getDescriptor().getMessageType(1749); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor, @@ -54887,7 +57108,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstance_descriptor = - getDescriptor().getMessageType(1684); + getDescriptor().getMessageType(1750); internal_static_google_cloud_compute_v1_TargetInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstance_descriptor, @@ -54905,7 +57126,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor = - getDescriptor().getMessageType(1685); + getDescriptor().getMessageType(1751); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor, @@ -54922,7 +57143,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor = - getDescriptor().getMessageType(1686); + getDescriptor().getMessageType(1752); internal_static_google_cloud_compute_v1_TargetInstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor, @@ -54930,7 +57151,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor = - getDescriptor().getMessageType(1687); + getDescriptor().getMessageType(1753); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor, @@ -54938,7 +57159,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetInstances", "Warning", }); internal_static_google_cloud_compute_v1_TargetPool_descriptor = - getDescriptor().getMessageType(1688); + getDescriptor().getMessageType(1754); internal_static_google_cloud_compute_v1_TargetPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPool_descriptor, @@ -54958,7 +57179,7 @@ private static void _clinit_autosplit_dinit_3() { "SessionAffinity", }); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor = - getDescriptor().getMessageType(1689); + getDescriptor().getMessageType(1755); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor, @@ -54975,7 +57196,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor = - getDescriptor().getMessageType(1690); + getDescriptor().getMessageType(1756); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor, @@ -54983,7 +57204,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthStatus", "Kind", }); internal_static_google_cloud_compute_v1_TargetPoolList_descriptor = - getDescriptor().getMessageType(1691); + getDescriptor().getMessageType(1757); internal_static_google_cloud_compute_v1_TargetPoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolList_descriptor, @@ -54991,7 +57212,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1692); + getDescriptor().getMessageType(1758); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor, @@ -54999,7 +57220,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor = - getDescriptor().getMessageType(1693); + getDescriptor().getMessageType(1759); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor, @@ -55007,7 +57228,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1694); + getDescriptor().getMessageType(1760); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor, @@ -55015,7 +57236,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor = - getDescriptor().getMessageType(1695); + getDescriptor().getMessageType(1761); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor, @@ -55023,7 +57244,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor = - getDescriptor().getMessageType(1696); + getDescriptor().getMessageType(1762); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor, @@ -55031,7 +57252,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetPools", "Warning", }); internal_static_google_cloud_compute_v1_TargetReference_descriptor = - getDescriptor().getMessageType(1697); + getDescriptor().getMessageType(1763); internal_static_google_cloud_compute_v1_TargetReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetReference_descriptor, @@ -55039,7 +57260,7 @@ private static void _clinit_autosplit_dinit_3() { "Target", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1698); + getDescriptor().getMessageType(1764); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor, @@ -55047,7 +57268,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageType(1699); + getDescriptor().getMessageType(1765); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor, @@ -55055,7 +57276,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageType(1700); + getDescriptor().getMessageType(1766); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor, @@ -55063,7 +57284,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageType(1701); + getDescriptor().getMessageType(1767); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor, @@ -55071,7 +57292,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor = - getDescriptor().getMessageType(1702); + getDescriptor().getMessageType(1768); internal_static_google_cloud_compute_v1_TargetSslProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor, @@ -55089,7 +57310,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor = - getDescriptor().getMessageType(1703); + getDescriptor().getMessageType(1769); internal_static_google_cloud_compute_v1_TargetSslProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor, @@ -55097,7 +57318,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor = - getDescriptor().getMessageType(1704); + getDescriptor().getMessageType(1770); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor, @@ -55105,7 +57326,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1705); + getDescriptor().getMessageType(1771); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor, @@ -55113,7 +57334,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageType(1706); + getDescriptor().getMessageType(1772); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor, @@ -55121,7 +57342,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor = - getDescriptor().getMessageType(1707); + getDescriptor().getMessageType(1773); internal_static_google_cloud_compute_v1_TargetTcpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor, @@ -55138,7 +57359,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor = - getDescriptor().getMessageType(1708); + getDescriptor().getMessageType(1774); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor, @@ -55155,7 +57376,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor = - getDescriptor().getMessageType(1709); + getDescriptor().getMessageType(1775); internal_static_google_cloud_compute_v1_TargetTcpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor, @@ -55163,7 +57384,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor = - getDescriptor().getMessageType(1710); + getDescriptor().getMessageType(1776); internal_static_google_cloud_compute_v1_TargetVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor, @@ -55192,7 +57413,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageType(1711); + getDescriptor().getMessageType(1777); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor, @@ -55209,7 +57430,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor = - getDescriptor().getMessageType(1712); + getDescriptor().getMessageType(1778); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor, @@ -55217,7 +57438,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayParams_descriptor = - getDescriptor().getMessageType(1713); + getDescriptor().getMessageType(1779); internal_static_google_cloud_compute_v1_TargetVpnGatewayParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayParams_descriptor, @@ -55233,7 +57454,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor = - getDescriptor().getMessageType(1714); + getDescriptor().getMessageType(1780); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor, @@ -55241,7 +57462,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetVpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_TestFailure_descriptor = - getDescriptor().getMessageType(1715); + getDescriptor().getMessageType(1781); internal_static_google_cloud_compute_v1_TestFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestFailure_descriptor, @@ -55257,7 +57478,7 @@ private static void _clinit_autosplit_dinit_3() { "Path", }); internal_static_google_cloud_compute_v1_TestIamPermissionsAddressRequest_descriptor = - getDescriptor().getMessageType(1716); + getDescriptor().getMessageType(1782); internal_static_google_cloud_compute_v1_TestIamPermissionsAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsAddressRequest_descriptor, @@ -55265,7 +57486,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsAutoscalerRequest_descriptor = - getDescriptor().getMessageType(1717); + getDescriptor().getMessageType(1783); internal_static_google_cloud_compute_v1_TestIamPermissionsAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsAutoscalerRequest_descriptor, @@ -55273,7 +57494,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor = - getDescriptor().getMessageType(1718); + getDescriptor().getMessageType(1784); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor, @@ -55281,7 +57502,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1719); + getDescriptor().getMessageType(1785); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor, @@ -55289,7 +57510,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor = - getDescriptor().getMessageType(1720); + getDescriptor().getMessageType(1786); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor, @@ -55297,7 +57518,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(1721); + getDescriptor().getMessageType(1787); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor, @@ -55305,7 +57526,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1722); + getDescriptor().getMessageType(1788); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor, @@ -55313,7 +57534,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallRequest_descriptor = - getDescriptor().getMessageType(1723); + getDescriptor().getMessageType(1789); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallRequest_descriptor, @@ -55321,7 +57542,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsGlobalAddressRequest_descriptor = - getDescriptor().getMessageType(1724); + getDescriptor().getMessageType(1790); internal_static_google_cloud_compute_v1_TestIamPermissionsGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsGlobalAddressRequest_descriptor, @@ -55329,7 +57550,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1725); + getDescriptor().getMessageType(1791); internal_static_google_cloud_compute_v1_TestIamPermissionsHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsHealthCheckRequest_descriptor, @@ -55337,7 +57558,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor = - getDescriptor().getMessageType(1726); + getDescriptor().getMessageType(1792); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor, @@ -55345,7 +57566,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(1727); + getDescriptor().getMessageType(1793); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceGroupRequest_descriptor, @@ -55353,7 +57574,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor = - getDescriptor().getMessageType(1728); + getDescriptor().getMessageType(1794); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor, @@ -55361,15 +57582,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor = - getDescriptor().getMessageType(1729); + getDescriptor().getMessageType(1795); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor, new java.lang.String[] { "Project", "Resource", "TestPermissionsRequestResource", }); + internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(1796); + internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "Project", "Resource", "TestPermissionsRequestResource", "Zone", + }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(1730); + getDescriptor().getMessageType(1797); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor, @@ -55377,7 +57606,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageType(1731); + getDescriptor().getMessageType(1798); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_descriptor, @@ -55385,7 +57614,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_descriptor = - getDescriptor().getMessageType(1732); + getDescriptor().getMessageType(1799); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_descriptor, @@ -55393,7 +57622,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor = - getDescriptor().getMessageType(1733); + getDescriptor().getMessageType(1800); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor, @@ -55401,7 +57630,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor = - getDescriptor().getMessageType(1734); + getDescriptor().getMessageType(1801); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor, @@ -55409,7 +57638,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor = - getDescriptor().getMessageType(1735); + getDescriptor().getMessageType(1802); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor, @@ -55417,7 +57646,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageType(1736); + getDescriptor().getMessageType(1803); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor, @@ -55425,7 +57654,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageType(1737); + getDescriptor().getMessageType(1804); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor, @@ -55433,7 +57662,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1738); + getDescriptor().getMessageType(1805); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor, @@ -55441,7 +57670,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor = - getDescriptor().getMessageType(1739); + getDescriptor().getMessageType(1806); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor, @@ -55449,7 +57678,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor = - getDescriptor().getMessageType(1740); + getDescriptor().getMessageType(1807); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor, @@ -55457,7 +57686,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor = - getDescriptor().getMessageType(1741); + getDescriptor().getMessageType(1808); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor, @@ -55465,15 +57694,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageType(1742); + getDescriptor().getMessageType(1809); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionAutoscalerRequest_descriptor, new java.lang.String[] { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_descriptor = + getDescriptor().getMessageType(1810); + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "Resource", "TestPermissionsRequestResource", + }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1743); + getDescriptor().getMessageType(1811); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor, @@ -55481,7 +57718,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionCompositeHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1744); + getDescriptor().getMessageType(1812); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionCompositeHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionCompositeHealthCheckRequest_descriptor, @@ -55489,7 +57726,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1745); + getDescriptor().getMessageType(1813); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor, @@ -55497,7 +57734,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthAggregationPolicyRequest_descriptor = - getDescriptor().getMessageType(1746); + getDescriptor().getMessageType(1814); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthAggregationPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthAggregationPolicyRequest_descriptor, @@ -55505,7 +57742,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1747); + getDescriptor().getMessageType(1815); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthCheckRequest_descriptor, @@ -55513,15 +57750,19 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageType(1748); + getDescriptor().getMessageType(1816); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthCheckServiceRequest_descriptor, new java.lang.String[] { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); + _clinit_autosplit_dinit_4(); + } + + private static void _clinit_autosplit_dinit_4() { internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthSourceRequest_descriptor = - getDescriptor().getMessageType(1749); + getDescriptor().getMessageType(1817); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionHealthSourceRequest_descriptor, @@ -55529,15 +57770,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageType(1750); + getDescriptor().getMessageType(1818); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstanceGroupRequest_descriptor, new java.lang.String[] { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_descriptor = + getDescriptor().getMessageType(1819); + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "Resource", "TestPermissionsRequestResource", + }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageType(1751); + getDescriptor().getMessageType(1820); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor, @@ -55545,7 +57794,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageType(1752); + getDescriptor().getMessageType(1821); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor, @@ -55553,15 +57802,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageType(1753); + getDescriptor().getMessageType(1822); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNotificationEndpointRequest_descriptor, new java.lang.String[] { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(1823); + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "Region", "Resource", "TestPermissionsRequestResource", + }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationBlockRequest_descriptor = - getDescriptor().getMessageType(1754); + getDescriptor().getMessageType(1824); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationBlockRequest_descriptor, @@ -55569,7 +57826,7 @@ private static void _clinit_autosplit_dinit_3() { "ParentResource", "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor = - getDescriptor().getMessageType(1755); + getDescriptor().getMessageType(1825); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor, @@ -55577,7 +57834,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationSubBlockRequest_descriptor = - getDescriptor().getMessageType(1756); + getDescriptor().getMessageType(1826); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationSubBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationSubBlockRequest_descriptor, @@ -55585,7 +57842,7 @@ private static void _clinit_autosplit_dinit_3() { "ParentResource", "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor = - getDescriptor().getMessageType(1757); + getDescriptor().getMessageType(1827); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor, @@ -55593,7 +57850,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRouteRequest_descriptor = - getDescriptor().getMessageType(1758); + getDescriptor().getMessageType(1828); internal_static_google_cloud_compute_v1_TestIamPermissionsRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRouteRequest_descriptor, @@ -55601,7 +57858,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor = - getDescriptor().getMessageType(1759); + getDescriptor().getMessageType(1829); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor, @@ -55609,7 +57866,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor = - getDescriptor().getMessageType(1760); + getDescriptor().getMessageType(1830); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor, @@ -55617,7 +57874,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor = - getDescriptor().getMessageType(1761); + getDescriptor().getMessageType(1831); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor, @@ -55625,7 +57882,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor = - getDescriptor().getMessageType(1762); + getDescriptor().getMessageType(1832); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor, @@ -55633,7 +57890,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetInstanceRequest_descriptor = - getDescriptor().getMessageType(1763); + getDescriptor().getMessageType(1833); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsTargetInstanceRequest_descriptor, @@ -55641,7 +57898,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetPoolRequest_descriptor = - getDescriptor().getMessageType(1764); + getDescriptor().getMessageType(1834); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsTargetPoolRequest_descriptor, @@ -55649,7 +57906,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetSslProxyRequest_descriptor = - getDescriptor().getMessageType(1765); + getDescriptor().getMessageType(1835); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsTargetSslProxyRequest_descriptor, @@ -55657,7 +57914,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageType(1766); + getDescriptor().getMessageType(1836); internal_static_google_cloud_compute_v1_TestIamPermissionsTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsTargetTcpProxyRequest_descriptor, @@ -55665,7 +57922,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsUrlMapRequest_descriptor = - getDescriptor().getMessageType(1767); + getDescriptor().getMessageType(1837); internal_static_google_cloud_compute_v1_TestIamPermissionsUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsUrlMapRequest_descriptor, @@ -55673,7 +57930,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor = - getDescriptor().getMessageType(1768); + getDescriptor().getMessageType(1838); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor, @@ -55681,7 +57938,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor = - getDescriptor().getMessageType(1769); + getDescriptor().getMessageType(1839); internal_static_google_cloud_compute_v1_TestPermissionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor, @@ -55689,7 +57946,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor = - getDescriptor().getMessageType(1770); + getDescriptor().getMessageType(1840); internal_static_google_cloud_compute_v1_TestPermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor, @@ -55697,7 +57954,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_Uint128_descriptor = - getDescriptor().getMessageType(1771); + getDescriptor().getMessageType(1841); internal_static_google_cloud_compute_v1_Uint128_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Uint128_descriptor, @@ -55705,7 +57962,7 @@ private static void _clinit_autosplit_dinit_3() { "High", "Low", }); internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor = - getDescriptor().getMessageType(1772); + getDescriptor().getMessageType(1842); internal_static_google_cloud_compute_v1_UpcomingMaintenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor, @@ -55720,7 +57977,7 @@ private static void _clinit_autosplit_dinit_3() { "WindowStartTime", }); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageType(1773); + getDescriptor().getMessageType(1843); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor, @@ -55733,7 +57990,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor = - getDescriptor().getMessageType(1774); + getDescriptor().getMessageType(1844); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor, @@ -55741,7 +57998,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor = - getDescriptor().getMessageType(1775); + getDescriptor().getMessageType(1845); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor, @@ -55749,7 +58006,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1776); + getDescriptor().getMessageType(1846); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor, @@ -55757,7 +58014,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor = - getDescriptor().getMessageType(1777); + getDescriptor().getMessageType(1847); internal_static_google_cloud_compute_v1_UpdateDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor, @@ -55765,7 +58022,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor = - getDescriptor().getMessageType(1778); + getDescriptor().getMessageType(1848); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor, @@ -55773,7 +58030,7 @@ private static void _clinit_autosplit_dinit_3() { "DisplayDeviceResource", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor = - getDescriptor().getMessageType(1779); + getDescriptor().getMessageType(1849); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor, @@ -55781,7 +58038,7 @@ private static void _clinit_autosplit_dinit_3() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateFutureReservationRequest_descriptor = - getDescriptor().getMessageType(1780); + getDescriptor().getMessageType(1850); internal_static_google_cloud_compute_v1_UpdateFutureReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateFutureReservationRequest_descriptor, @@ -55794,7 +58051,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1781); + getDescriptor().getMessageType(1851); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor, @@ -55802,7 +58059,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageType(1782); + getDescriptor().getMessageType(1852); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor, @@ -55816,8 +58073,44 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", "Zone", }); + internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_descriptor = + getDescriptor().getMessageType(1853); + internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_descriptor, + new java.lang.String[] { + "Disk", "DiskUpdateKmsKeyRequestResource", "Project", "RequestId", "Zone", + }); + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_descriptor = + getDescriptor().getMessageType(1854); + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_descriptor, + new java.lang.String[] { + "Disk", "Project", "Region", "RegionDiskUpdateKmsKeyRequestResource", "RequestId", + }); + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_descriptor = + getDescriptor().getMessageType(1855); + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_descriptor, + new java.lang.String[] { + "Project", + "Region", + "RegionSnapshotUpdateKmsKeyRequestResource", + "RequestId", + "Snapshot", + }); + internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_descriptor = + getDescriptor().getMessageType(1856); + internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_descriptor, + new java.lang.String[] { + "Project", "RequestId", "Snapshot", "SnapshotUpdateKmsKeyRequestResource", + }); internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor = - getDescriptor().getMessageType(1783); + getDescriptor().getMessageType(1857); internal_static_google_cloud_compute_v1_UpdateLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor, @@ -55825,7 +58118,7 @@ private static void _clinit_autosplit_dinit_3() { "License", "LicenseResource", "Project", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor = - getDescriptor().getMessageType(1784); + getDescriptor().getMessageType(1858); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor, @@ -55838,7 +58131,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor = - getDescriptor().getMessageType(1785); + getDescriptor().getMessageType(1859); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor, @@ -55846,7 +58139,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "NetworksUpdatePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1786); + getDescriptor().getMessageType(1860); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -55858,7 +58151,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageType(1787); + getDescriptor().getMessageType(1861); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -55870,7 +58163,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_UpdatePreviewFeatureRequest_descriptor = - getDescriptor().getMessageType(1788); + getDescriptor().getMessageType(1862); internal_static_google_cloud_compute_v1_UpdatePreviewFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePreviewFeatureRequest_descriptor, @@ -55878,7 +58171,7 @@ private static void _clinit_autosplit_dinit_3() { "PreviewFeature", "PreviewFeatureResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageType(1789); + getDescriptor().getMessageType(1863); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor, @@ -55886,7 +58179,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageType(1790); + getDescriptor().getMessageType(1864); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor, @@ -55894,7 +58187,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor = - getDescriptor().getMessageType(1791); + getDescriptor().getMessageType(1865); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor, @@ -55908,7 +58201,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor = - getDescriptor().getMessageType(1792); + getDescriptor().getMessageType(1866); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor, @@ -55916,7 +58209,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "Region", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageType(1793); + getDescriptor().getMessageType(1867); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor, @@ -55924,7 +58217,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageType(1794); + getDescriptor().getMessageType(1868); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor, @@ -55932,7 +58225,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageType(1795); + getDescriptor().getMessageType(1869); internal_static_google_cloud_compute_v1_UpdateReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor, @@ -55946,7 +58239,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateReservationSlotRequest_descriptor = - getDescriptor().getMessageType(1796); + getDescriptor().getMessageType(1870); internal_static_google_cloud_compute_v1_UpdateReservationSlotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateReservationSlotRequest_descriptor, @@ -55959,7 +58252,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageType(1797); + getDescriptor().getMessageType(1871); internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_descriptor, @@ -55967,7 +58260,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "RoutePolicyResource", "Router", }); internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor = - getDescriptor().getMessageType(1798); + getDescriptor().getMessageType(1872); internal_static_google_cloud_compute_v1_UpdateRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor, @@ -55975,7 +58268,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor = - getDescriptor().getMessageType(1799); + getDescriptor().getMessageType(1873); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor, @@ -55983,7 +58276,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceConfigResource", "Zone", }); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor = - getDescriptor().getMessageType(1800); + getDescriptor().getMessageType(1874); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor, @@ -55991,15 +58284,23 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "StoragePool", "StoragePoolResource", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor = - getDescriptor().getMessageType(1801); + getDescriptor().getMessageType(1875); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor, new java.lang.String[] { "Project", "RequestId", "UrlMap", "UrlMapResource", }); + internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_descriptor = + getDescriptor().getMessageType(1876); + internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_descriptor, + new java.lang.String[] { + "Project", "RequestId", "VmExtensionPolicy", "VmExtensionPolicyResource", "Zone", + }); internal_static_google_cloud_compute_v1_UrlMap_descriptor = - getDescriptor().getMessageType(1802); + getDescriptor().getMessageType(1877); internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMap_descriptor, @@ -56022,7 +58323,7 @@ private static void _clinit_autosplit_dinit_3() { "Tests", }); internal_static_google_cloud_compute_v1_UrlMapList_descriptor = - getDescriptor().getMessageType(1803); + getDescriptor().getMessageType(1878); internal_static_google_cloud_compute_v1_UrlMapList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapList_descriptor, @@ -56030,7 +58331,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapReference_descriptor = - getDescriptor().getMessageType(1804); + getDescriptor().getMessageType(1879); internal_static_google_cloud_compute_v1_UrlMapReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapReference_descriptor, @@ -56038,7 +58339,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_UrlMapTest_descriptor = - getDescriptor().getMessageType(1805); + getDescriptor().getMessageType(1880); internal_static_google_cloud_compute_v1_UrlMapTest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTest_descriptor, @@ -56052,7 +58353,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor = - getDescriptor().getMessageType(1806); + getDescriptor().getMessageType(1881); internal_static_google_cloud_compute_v1_UrlMapTestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor, @@ -56060,7 +58361,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "Value", }); internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor = - getDescriptor().getMessageType(1807); + getDescriptor().getMessageType(1882); internal_static_google_cloud_compute_v1_UrlMapValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor, @@ -56068,7 +58369,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadErrors", "LoadSucceeded", "TestFailures", "TestPassed", }); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor = - getDescriptor().getMessageType(1808); + getDescriptor().getMessageType(1883); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor, @@ -56084,7 +58385,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor = - getDescriptor().getMessageType(1809); + getDescriptor().getMessageType(1884); internal_static_google_cloud_compute_v1_UrlMapsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor, @@ -56092,7 +58393,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMaps", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor = - getDescriptor().getMessageType(1810); + getDescriptor().getMessageType(1885); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor, @@ -56100,7 +58401,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadBalancingSchemes", "Resource", }); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor = - getDescriptor().getMessageType(1811); + getDescriptor().getMessageType(1886); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor, @@ -56108,7 +58409,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_UrlRewrite_descriptor = - getDescriptor().getMessageType(1812); + getDescriptor().getMessageType(1887); internal_static_google_cloud_compute_v1_UrlRewrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlRewrite_descriptor, @@ -56116,7 +58417,7 @@ private static void _clinit_autosplit_dinit_3() { "HostRewrite", "PathPrefixRewrite", "PathTemplateRewrite", }); internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor = - getDescriptor().getMessageType(1813); + getDescriptor().getMessageType(1888); internal_static_google_cloud_compute_v1_UsableSubnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor, @@ -56133,7 +58434,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetwork", }); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageType(1814); + getDescriptor().getMessageType(1889); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor, @@ -56141,7 +58442,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", }); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor = - getDescriptor().getMessageType(1815); + getDescriptor().getMessageType(1890); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor, @@ -56156,7 +58457,7 @@ private static void _clinit_autosplit_dinit_3() { "Warning", }); internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor = - getDescriptor().getMessageType(1816); + getDescriptor().getMessageType(1891); internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor, @@ -56164,7 +58465,7 @@ private static void _clinit_autosplit_dinit_3() { "BucketName", "ReportNamePrefix", }); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageType(1817); + getDescriptor().getMessageType(1892); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor, @@ -56172,7 +58473,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionUrlMapsValidateRequestResource", "UrlMap", }); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor = - getDescriptor().getMessageType(1818); + getDescriptor().getMessageType(1893); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor, @@ -56180,7 +58481,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "UrlMap", "UrlMapsValidateRequestResource", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor = - getDescriptor().getMessageType(1819); + getDescriptor().getMessageType(1894); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor, @@ -56188,7 +58489,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceName", "InterfaceNatMappings", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor = - getDescriptor().getMessageType(1820); + getDescriptor().getMessageType(1895); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor, @@ -56201,12 +58502,8 @@ private static void _clinit_autosplit_dinit_3() { "SourceAliasIpRange", "SourceVirtualIp", }); - _clinit_autosplit_dinit_4(); - } - - private static void _clinit_autosplit_dinit_4() { internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor = - getDescriptor().getMessageType(1821); + getDescriptor().getMessageType(1896); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor, @@ -56218,15 +58515,85 @@ private static void _clinit_autosplit_dinit_4() { "RuleNumber", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor = - getDescriptor().getMessageType(1822); + getDescriptor().getMessageType(1897); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor, new java.lang.String[] { "Id", "Kind", "NextPageToken", "Result", "SelfLink", "Warning", }); + internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor = + getDescriptor().getMessageType(1898); + internal_static_google_cloud_compute_v1_VmExtensionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor, + new java.lang.String[] { + "CreationTimestamp", + "Description", + "ExtensionPolicies", + "GlobalResourceLink", + "Id", + "InstanceSelectors", + "Kind", + "ManagedByGlobal", + "Name", + "Priority", + "SelfLink", + "SelfLinkWithId", + "State", + "UpdateTimestamp", + }); + internal_static_google_cloud_compute_v1_VmExtensionPolicy_ExtensionPoliciesEntry_descriptor = + internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor.getNestedType(0); + internal_static_google_cloud_compute_v1_VmExtensionPolicy_ExtensionPoliciesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicy_ExtensionPoliciesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_descriptor = + getDescriptor().getMessageType(1899); + internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_descriptor, + new java.lang.String[] { + "PinnedVersion", "StringConfig", + }); + internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_descriptor = + getDescriptor().getMessageType(1900); + internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_descriptor, + new java.lang.String[] { + "LabelSelector", + }); + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor = + getDescriptor().getMessageType(1901); + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor, + new java.lang.String[] { + "InclusionLabels", + }); + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_InclusionLabelsEntry_descriptor = + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor + .getNestedType(0); + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_InclusionLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_InclusionLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_compute_v1_VmExtensionPolicyList_descriptor = + getDescriptor().getMessageType(1902); + internal_static_google_cloud_compute_v1_VmExtensionPolicyList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_compute_v1_VmExtensionPolicyList_descriptor, + new java.lang.String[] { + "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", + }); internal_static_google_cloud_compute_v1_VpnGateway_descriptor = - getDescriptor().getMessageType(1823); + getDescriptor().getMessageType(1903); internal_static_google_cloud_compute_v1_VpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGateway_descriptor, @@ -56255,7 +58622,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageType(1824); + getDescriptor().getMessageType(1904); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor, @@ -56272,7 +58639,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor = - getDescriptor().getMessageType(1825); + getDescriptor().getMessageType(1905); internal_static_google_cloud_compute_v1_VpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor, @@ -56280,7 +58647,7 @@ private static void _clinit_autosplit_dinit_4() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGatewayParams_descriptor = - getDescriptor().getMessageType(1826); + getDescriptor().getMessageType(1906); internal_static_google_cloud_compute_v1_VpnGatewayParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayParams_descriptor, @@ -56296,7 +58663,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor = - getDescriptor().getMessageType(1827); + getDescriptor().getMessageType(1907); internal_static_google_cloud_compute_v1_VpnGatewayStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor, @@ -56304,7 +58671,7 @@ private static void _clinit_autosplit_dinit_4() { "VpnConnections", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor = - getDescriptor().getMessageType(1828); + getDescriptor().getMessageType(1908); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor, @@ -56312,7 +58679,7 @@ private static void _clinit_autosplit_dinit_4() { "State", "UnsatisfiedReason", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor = - getDescriptor().getMessageType(1829); + getDescriptor().getMessageType(1909); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor, @@ -56320,7 +58687,7 @@ private static void _clinit_autosplit_dinit_4() { "LocalGatewayInterface", "PeerGatewayInterface", "TunnelUrl", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor = - getDescriptor().getMessageType(1830); + getDescriptor().getMessageType(1910); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor, @@ -56328,7 +58695,7 @@ private static void _clinit_autosplit_dinit_4() { "PeerExternalGateway", "PeerGcpGateway", "State", "Tunnels", }); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor = - getDescriptor().getMessageType(1831); + getDescriptor().getMessageType(1911); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor, @@ -56336,7 +58703,7 @@ private static void _clinit_autosplit_dinit_4() { "Id", "InterconnectAttachment", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor = - getDescriptor().getMessageType(1832); + getDescriptor().getMessageType(1912); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor, @@ -56344,7 +58711,7 @@ private static void _clinit_autosplit_dinit_4() { "Result", }); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor = - getDescriptor().getMessageType(1833); + getDescriptor().getMessageType(1913); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor, @@ -56352,7 +58719,7 @@ private static void _clinit_autosplit_dinit_4() { "VpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnel_descriptor = - getDescriptor().getMessageType(1834); + getDescriptor().getMessageType(1914); internal_static_google_cloud_compute_v1_VpnTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnel_descriptor, @@ -56393,7 +58760,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor = - getDescriptor().getMessageType(1835); + getDescriptor().getMessageType(1915); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor, @@ -56409,7 +58776,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelCipherSuite_descriptor = - getDescriptor().getMessageType(1836); + getDescriptor().getMessageType(1916); internal_static_google_cloud_compute_v1_VpnTunnelCipherSuite_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelCipherSuite_descriptor, @@ -56417,7 +58784,7 @@ private static void _clinit_autosplit_dinit_4() { "Phase1", "Phase2", }); internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor = - getDescriptor().getMessageType(1837); + getDescriptor().getMessageType(1917); internal_static_google_cloud_compute_v1_VpnTunnelList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor, @@ -56425,7 +58792,7 @@ private static void _clinit_autosplit_dinit_4() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnelParams_descriptor = - getDescriptor().getMessageType(1838); + getDescriptor().getMessageType(1918); internal_static_google_cloud_compute_v1_VpnTunnelParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelParams_descriptor, @@ -56441,7 +58808,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelPhase1Algorithms_descriptor = - getDescriptor().getMessageType(1839); + getDescriptor().getMessageType(1919); internal_static_google_cloud_compute_v1_VpnTunnelPhase1Algorithms_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelPhase1Algorithms_descriptor, @@ -56449,7 +58816,7 @@ private static void _clinit_autosplit_dinit_4() { "Dh", "Encryption", "Integrity", "Prf", }); internal_static_google_cloud_compute_v1_VpnTunnelPhase2Algorithms_descriptor = - getDescriptor().getMessageType(1840); + getDescriptor().getMessageType(1920); internal_static_google_cloud_compute_v1_VpnTunnelPhase2Algorithms_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelPhase2Algorithms_descriptor, @@ -56457,7 +58824,7 @@ private static void _clinit_autosplit_dinit_4() { "Encryption", "Integrity", "Pfs", }); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor = - getDescriptor().getMessageType(1841); + getDescriptor().getMessageType(1921); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor, @@ -56465,7 +58832,7 @@ private static void _clinit_autosplit_dinit_4() { "VpnTunnels", "Warning", }); internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor = - getDescriptor().getMessageType(1842); + getDescriptor().getMessageType(1922); internal_static_google_cloud_compute_v1_WafExpressionSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor, @@ -56473,7 +58840,7 @@ private static void _clinit_autosplit_dinit_4() { "Aliases", "Expressions", "Id", }); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor = - getDescriptor().getMessageType(1843); + getDescriptor().getMessageType(1923); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor, @@ -56481,7 +58848,7 @@ private static void _clinit_autosplit_dinit_4() { "Id", "Sensitivity", }); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor = - getDescriptor().getMessageType(1844); + getDescriptor().getMessageType(1924); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor, @@ -56489,7 +58856,7 @@ private static void _clinit_autosplit_dinit_4() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor = - getDescriptor().getMessageType(1845); + getDescriptor().getMessageType(1925); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor, @@ -56497,7 +58864,7 @@ private static void _clinit_autosplit_dinit_4() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor = - getDescriptor().getMessageType(1846); + getDescriptor().getMessageType(1926); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor, @@ -56505,7 +58872,7 @@ private static void _clinit_autosplit_dinit_4() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_Warning_descriptor = - getDescriptor().getMessageType(1847); + getDescriptor().getMessageType(1927); internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warning_descriptor, @@ -56513,7 +58880,7 @@ private static void _clinit_autosplit_dinit_4() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_Warnings_descriptor = - getDescriptor().getMessageType(1848); + getDescriptor().getMessageType(1928); internal_static_google_cloud_compute_v1_Warnings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warnings_descriptor, @@ -56521,14 +58888,14 @@ private static void _clinit_autosplit_dinit_4() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor = - getDescriptor().getMessageType(1849); + getDescriptor().getMessageType(1929); internal_static_google_cloud_compute_v1_WeightedBackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor, new java.lang.String[] { "BackendService", "HeaderAction", "Weight", }); - internal_static_google_cloud_compute_v1_Wire_descriptor = getDescriptor().getMessageType(1850); + internal_static_google_cloud_compute_v1_Wire_descriptor = getDescriptor().getMessageType(1930); internal_static_google_cloud_compute_v1_Wire_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Wire_descriptor, @@ -56536,7 +58903,7 @@ private static void _clinit_autosplit_dinit_4() { "AdminEnabled", "Endpoints", "Label", "WireProperties", }); internal_static_google_cloud_compute_v1_WireEndpoint_descriptor = - getDescriptor().getMessageType(1851); + getDescriptor().getMessageType(1931); internal_static_google_cloud_compute_v1_WireEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireEndpoint_descriptor, @@ -56544,7 +58911,7 @@ private static void _clinit_autosplit_dinit_4() { "Interconnect", "VlanTag", }); internal_static_google_cloud_compute_v1_WireGroup_descriptor = - getDescriptor().getMessageType(1852); + getDescriptor().getMessageType(1932); internal_static_google_cloud_compute_v1_WireGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireGroup_descriptor, @@ -56571,7 +58938,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_WireGroupEndpoint_descriptor = - getDescriptor().getMessageType(1853); + getDescriptor().getMessageType(1933); internal_static_google_cloud_compute_v1_WireGroupEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireGroupEndpoint_descriptor, @@ -56587,7 +58954,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_WireGroupEndpointInterconnect_descriptor = - getDescriptor().getMessageType(1854); + getDescriptor().getMessageType(1934); internal_static_google_cloud_compute_v1_WireGroupEndpointInterconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireGroupEndpointInterconnect_descriptor, @@ -56595,7 +58962,7 @@ private static void _clinit_autosplit_dinit_4() { "Interconnect", "VlanTags", }); internal_static_google_cloud_compute_v1_WireGroupList_descriptor = - getDescriptor().getMessageType(1855); + getDescriptor().getMessageType(1935); internal_static_google_cloud_compute_v1_WireGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireGroupList_descriptor, @@ -56603,7 +58970,7 @@ private static void _clinit_autosplit_dinit_4() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_WireGroupTopology_descriptor = - getDescriptor().getMessageType(1856); + getDescriptor().getMessageType(1936); internal_static_google_cloud_compute_v1_WireGroupTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireGroupTopology_descriptor, @@ -56611,7 +58978,7 @@ private static void _clinit_autosplit_dinit_4() { "Endpoints", }); internal_static_google_cloud_compute_v1_WireGroupTopologyEndpoint_descriptor = - getDescriptor().getMessageType(1857); + getDescriptor().getMessageType(1937); internal_static_google_cloud_compute_v1_WireGroupTopologyEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireGroupTopologyEndpoint_descriptor, @@ -56619,7 +58986,7 @@ private static void _clinit_autosplit_dinit_4() { "City", "Label", }); internal_static_google_cloud_compute_v1_WireProperties_descriptor = - getDescriptor().getMessageType(1858); + getDescriptor().getMessageType(1938); internal_static_google_cloud_compute_v1_WireProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WireProperties_descriptor, @@ -56627,7 +58994,7 @@ private static void _clinit_autosplit_dinit_4() { "BandwidthAllocation", "BandwidthUnmetered", "FaultResponse", }); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageType(1859); + getDescriptor().getMessageType(1939); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor, @@ -56635,7 +59002,7 @@ private static void _clinit_autosplit_dinit_4() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageType(1860); + getDescriptor().getMessageType(1940); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor, @@ -56643,7 +59010,7 @@ private static void _clinit_autosplit_dinit_4() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_WorkloadIdentityConfig_descriptor = - getDescriptor().getMessageType(1861); + getDescriptor().getMessageType(1941); internal_static_google_cloud_compute_v1_WorkloadIdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_WorkloadIdentityConfig_descriptor, @@ -56651,7 +59018,7 @@ private static void _clinit_autosplit_dinit_4() { "Identity", "IdentityCertificateEnabled", }); internal_static_google_cloud_compute_v1_XpnHostList_descriptor = - getDescriptor().getMessageType(1862); + getDescriptor().getMessageType(1942); internal_static_google_cloud_compute_v1_XpnHostList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnHostList_descriptor, @@ -56659,14 +59026,14 @@ private static void _clinit_autosplit_dinit_4() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_XpnResourceId_descriptor = - getDescriptor().getMessageType(1863); + getDescriptor().getMessageType(1943); internal_static_google_cloud_compute_v1_XpnResourceId_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnResourceId_descriptor, new java.lang.String[] { "Id", "Type", }); - internal_static_google_cloud_compute_v1_Zone_descriptor = getDescriptor().getMessageType(1864); + internal_static_google_cloud_compute_v1_Zone_descriptor = getDescriptor().getMessageType(1944); internal_static_google_cloud_compute_v1_Zone_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_Zone_descriptor, @@ -56684,7 +59051,7 @@ private static void _clinit_autosplit_dinit_4() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_ZoneList_descriptor = - getDescriptor().getMessageType(1865); + getDescriptor().getMessageType(1945); internal_static_google_cloud_compute_v1_ZoneList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneList_descriptor, @@ -56692,7 +59059,7 @@ private static void _clinit_autosplit_dinit_4() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor = - getDescriptor().getMessageType(1866); + getDescriptor().getMessageType(1946); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor, @@ -56708,7 +59075,7 @@ private static void _clinit_autosplit_dinit_4() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ZoneSetNestedPolicyRequest_descriptor = - getDescriptor().getMessageType(1867); + getDescriptor().getMessageType(1947); internal_static_google_cloud_compute_v1_ZoneSetNestedPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetNestedPolicyRequest_descriptor, @@ -56716,7 +59083,7 @@ private static void _clinit_autosplit_dinit_4() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor = - getDescriptor().getMessageType(1868); + getDescriptor().getMessageType(1948); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor, diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..fe36389ec63a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequest.java @@ -0,0 +1,1353 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.Delete. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteInstantSnapshotGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) + DeleteInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteInstantSnapshotGroupRequest"); + } + + // Use DeleteInstantSnapshotGroupRequest.newBuilder() to construct. + private DeleteInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteInstantSnapshotGroupRequest() { + instantSnapshotGroup_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER = 223180386; + + @SuppressWarnings("serial") + private volatile java.lang.Object instantSnapshotGroup_ = ""; + + /** + * + * + *
+   * Name of the InstantSnapshot resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + 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(); + instantSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the InstantSnapshot resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.DeleteInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) obj; + + if (!getInstantSnapshotGroup().equals(other.getInstantSnapshotGroup())) return false; + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getZone().equals(other.getZone())) 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) + INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroup().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest 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.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DeleteInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.Delete. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instantSnapshotGroup_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instantSnapshotGroup_ = instantSnapshotGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) { + return mergeFrom((com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest.getDefaultInstance()) + return this; + if (!other.getInstantSnapshotGroup().isEmpty()) { + instantSnapshotGroup_ = other.instantSnapshotGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 296879706 + case 1785443090: + { + instantSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1785443090 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 instantSnapshotGroup_ = ""; + + /** + * + * + *
+     * Name of the InstantSnapshot resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instantSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshot resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshot resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshot resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstantSnapshotGroup() { + instantSnapshotGroup_ = getDefaultInstance().getInstantSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshot resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstantSnapshotGroupRequest 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.compute.v1.DeleteInstantSnapshotGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..295477da1566 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DeleteInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the InstantSnapshot resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + java.lang.String getInstantSnapshotGroup(); + + /** + * + * + *
+   * Name of the InstantSnapshot resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + com.google.protobuf.ByteString getInstantSnapshotGroupBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequest.java new file mode 100644 index 000000000000..7c815b585297 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequest.java @@ -0,0 +1,1354 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.Delete. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class DeleteRegionBackendBucketRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteRegionBackendBucketRequest) + DeleteRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRegionBackendBucketRequest"); + } + + // Use DeleteRegionBackendBucketRequest.newBuilder() to construct. + private DeleteRegionBackendBucketRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRegionBackendBucketRequest() { + backendBucket_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.Builder.class); + } + + private int bitField0_; + public static final int BACKEND_BUCKET_FIELD_NUMBER = 91714037; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendBucket_ = ""; + + /** + * + * + *
+   * Name of the BackendBucket resource to delete.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + @java.lang.Override + public java.lang.String getBackendBucket() { + java.lang.Object ref = backendBucket_; + 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(); + backendBucket_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the BackendBucket resource to delete.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendBucketBytes() { + java.lang.Object ref = backendBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 91714037, backendBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(91714037, backendBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.DeleteRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest) obj; + + if (!getBackendBucket().equals(other.getBackendBucket())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + 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) + BACKEND_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucket().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + 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.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest 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.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DeleteRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.Delete. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteRegionBackendBucketRequest) + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backendBucket_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backendBucket_ = backendBucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest) { + return mergeFrom((com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest other) { + if (other + == com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest.getDefaultInstance()) + return this; + if (!other.getBackendBucket().isEmpty()) { + backendBucket_ = other.backendBucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 733712298: + { + backendBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 733712298 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 backendBucket_ = ""; + + /** + * + * + *
+     * Name of the BackendBucket resource to delete.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + public java.lang.String getBackendBucket() { + java.lang.Object ref = backendBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the BackendBucket resource to delete.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + public com.google.protobuf.ByteString getBackendBucketBytes() { + java.lang.Object ref = backendBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the BackendBucket resource to delete.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backendBucket to set. + * @return This builder for chaining. + */ + public Builder setBackendBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the BackendBucket resource to delete.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackendBucket() { + backendBucket_ = getDefaultInstance().getBackendBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the BackendBucket resource to delete.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backendBucket to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRegionBackendBucketRequest 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.compute.v1.DeleteRegionBackendBucketRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..fc5de0052e6d --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DeleteRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DeleteRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the BackendBucket resource to delete.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + java.lang.String getBackendBucket(); + + /** + * + * + *
+   * Name of the BackendBucket resource to delete.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + com.google.protobuf.ByteString getBackendBucketBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequest.java new file mode 100644 index 000000000000..50356c2b1934 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequest.java @@ -0,0 +1,1598 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstanceGroupManagerResizeRequests.Delete. See the method description for details.
+ * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} + */ +@com.google.protobuf.Generated +public final class DeleteRegionInstanceGroupManagerResizeRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRegionInstanceGroupManagerResizeRequestRequest"); + } + + // Use DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder() to construct. + private DeleteRegionInstanceGroupManagerResizeRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRegionInstanceGroupManagerResizeRequestRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + resizeRequest_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.class, + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int RESIZE_REQUEST_FIELD_NUMBER = 216941060; + + @SuppressWarnings("serial") + private volatile java.lang.Object resizeRequest_ = ""; + + /** + * + * + *
+   * The name of the resize request to delete.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + @java.lang.Override + public java.lang.String getResizeRequest() { + java.lang.Object ref = resizeRequest_; + 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(); + resizeRequest_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the resize request to delete.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResizeRequestBytes() { + java.lang.Object ref = resizeRequest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resizeRequest_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resizeRequest_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 216941060, resizeRequest_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 249363395, instanceGroupManager_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resizeRequest_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(216941060, resizeRequest_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(249363395, instanceGroupManager_); + } + 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.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest other = + (com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getResizeRequest().equals(other.getResizeRequest())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + RESIZE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getResizeRequest().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + 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.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstanceGroupManagerResizeRequests.Delete. See the method description for details.
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + .class, + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + resizeRequest_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + build() { + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + buildPartial() { + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest result = + new com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resizeRequest_ = resizeRequest_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest other) { + if (other + == com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getResizeRequest().isEmpty()) { + resizeRequest_ = other.resizeRequest_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1735528482: + { + resizeRequest_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1735528482 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + private java.lang.Object resizeRequest_ = ""; + + /** + * + * + *
+     * The name of the resize request to delete.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + public java.lang.String getResizeRequest() { + java.lang.Object ref = resizeRequest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resizeRequest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the resize request to delete.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + public com.google.protobuf.ByteString getResizeRequestBytes() { + java.lang.Object ref = resizeRequest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resizeRequest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the resize request to delete.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resizeRequest to set. + * @return This builder for chaining. + */ + public Builder setResizeRequest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resizeRequest_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resize request to delete.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResizeRequest() { + resizeRequest_ = getDefaultInstance().getResizeRequest(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resize request to delete.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resizeRequest to set. + * @return This builder for chaining. + */ + public Builder setResizeRequestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resizeRequest_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + private static final com.google.cloud.compute.v1 + .DeleteRegionInstanceGroupManagerResizeRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest(); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + DeleteRegionInstanceGroupManagerResizeRequestRequest> + PARSER = + new com.google.protobuf.AbstractParser< + DeleteRegionInstanceGroupManagerResizeRequestRequest>() { + @java.lang.Override + public DeleteRegionInstanceGroupManagerResizeRequestRequest 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.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java new file mode 100644 index 000000000000..7dfb20d9228a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DeleteRegionInstanceGroupManagerResizeRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The name of the resize request to delete.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + java.lang.String getResizeRequest(); + + /** + * + * + *
+   * The name of the resize request to delete.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + com.google.protobuf.ByteString getResizeRequestBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..df45a0ac1aa4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequest.java @@ -0,0 +1,1361 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.Delete. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteRegionInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) + DeleteRegionInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRegionInstantSnapshotGroupRequest"); + } + + // Use DeleteRegionInstantSnapshotGroupRequest.newBuilder() to construct. + private DeleteRegionInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRegionInstantSnapshotGroupRequest() { + instantSnapshotGroup_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER = 223180386; + + @SuppressWarnings("serial") + private volatile java.lang.Object instantSnapshotGroup_ = ""; + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + 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(); + instantSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.DeleteRegionInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) obj; + + if (!getInstantSnapshotGroup().equals(other.getInstantSnapshotGroup())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + 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) + INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroup().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + 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.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest 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.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DeleteRegionInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.Delete. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instantSnapshotGroup_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instantSnapshotGroup_ = instantSnapshotGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (!other.getInstantSnapshotGroup().isEmpty()) { + instantSnapshotGroup_ = other.instantSnapshotGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1785443090: + { + instantSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1785443090 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 instantSnapshotGroup_ = ""; + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instantSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstantSnapshotGroup() { + instantSnapshotGroup_ = getDefaultInstance().getInstantSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to delete.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRegionInstantSnapshotGroupRequest 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.compute.v1.DeleteRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..9d2056765bd7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DeleteRegionInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + java.lang.String getInstantSnapshotGroup(); + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to delete.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + com.google.protobuf.ByteString getInstantSnapshotGroupBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequest.java new file mode 100644 index 000000000000..cf6c2583c826 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequest.java @@ -0,0 +1,1340 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.Delete. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class DeleteRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteRegionSnapshotRequest) + DeleteRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRegionSnapshotRequest"); + } + + // Use DeleteRegionSnapshotRequest.newBuilder() to construct. + private DeleteRegionSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + snapshot_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.class, + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SNAPSHOT_FIELD_NUMBER = 284874180; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; + + /** + * + * + *
+   * Name of the snapshot resource to delete.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + @java.lang.Override + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + 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(); + snapshot_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the snapshot resource to delete.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 284874180, snapshot_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(284874180, snapshot_); + } + 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.compute.v1.DeleteRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest other = + (com.google.cloud.compute.v1.DeleteRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getSnapshot().equals(other.getSnapshot())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest 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.compute.v1.DeleteRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DeleteRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.Delete. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteRegionSnapshotRequest) + com.google.cloud.compute.v1.DeleteRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.class, + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + requestId_ = ""; + snapshot_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionSnapshotRequest build() { + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.DeleteRegionSnapshotRequest result = + new com.google.cloud.compute.v1.DeleteRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.DeleteRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snapshot_ = snapshot_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.DeleteRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.DeleteRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.DeleteRegionSnapshotRequest other) { + if (other == com.google.cloud.compute.v1.DeleteRegionSnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2015973854: + { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case -2015973854 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object snapshot_ = ""; + + /** + * + * + *
+     * Name of the snapshot resource to delete.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the snapshot resource to delete.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the snapshot resource to delete.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the snapshot resource to delete.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSnapshot() { + snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the snapshot resource to delete.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.DeleteRegionSnapshotRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.DeleteRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRegionSnapshotRequest 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.compute.v1.DeleteRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..58f62ef885f9 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DeleteRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DeleteRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Name of the snapshot resource to delete.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + java.lang.String getSnapshot(); + + /** + * + * + *
+   * Name of the snapshot resource to delete.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString getSnapshotBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequest.java new file mode 100644 index 000000000000..c4adb6394566 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequest.java @@ -0,0 +1,1352 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for ZoneVmExtensionPolicies.Delete. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteZoneVmExtensionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) + DeleteZoneVmExtensionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteZoneVmExtensionPolicyRequest"); + } + + // Use DeleteZoneVmExtensionPolicyRequest.newBuilder() to construct. + private DeleteZoneVmExtensionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteZoneVmExtensionPolicyRequest() { + project_ = ""; + requestId_ = ""; + vmExtensionPolicy_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int VM_EXTENSION_POLICY_FIELD_NUMBER = 331532730; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmExtensionPolicy_ = ""; + + /** + * + * + *
+   * Name of the zone VM extension policy to delete.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmExtensionPolicy. + */ + @java.lang.Override + public java.lang.String getVmExtensionPolicy() { + java.lang.Object ref = vmExtensionPolicy_; + 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(); + vmExtensionPolicy_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone VM extension policy to delete.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmExtensionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmExtensionPolicyBytes() { + java.lang.Object ref = vmExtensionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmExtensionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vmExtensionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 331532730, vmExtensionPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vmExtensionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(331532730, vmExtensionPolicy_); + } + 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.compute.v1.DeleteZoneVmExtensionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest other = + (com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getVmExtensionPolicy().equals(other.getVmExtensionPolicy())) return false; + if (!getZone().equals(other.getZone())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + VM_EXTENSION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getVmExtensionPolicy().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest 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.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DeleteZoneVmExtensionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for ZoneVmExtensionPolicies.Delete. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + requestId_ = ""; + vmExtensionPolicy_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DeleteZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest build() { + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest buildPartial() { + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest result = + new com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vmExtensionPolicy_ = vmExtensionPolicy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) { + return mergeFrom((com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest other) { + if (other + == com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVmExtensionPolicy().isEmpty()) { + vmExtensionPolicy_ = other.vmExtensionPolicy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 296879706 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -1642705454: + { + vmExtensionPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case -1642705454 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object vmExtensionPolicy_ = ""; + + /** + * + * + *
+     * Name of the zone VM extension policy to delete.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicy. + */ + public java.lang.String getVmExtensionPolicy() { + java.lang.Object ref = vmExtensionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmExtensionPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone VM extension policy to delete.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for vmExtensionPolicy. + */ + public com.google.protobuf.ByteString getVmExtensionPolicyBytes() { + java.lang.Object ref = vmExtensionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmExtensionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone VM extension policy to delete.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The vmExtensionPolicy to set. + * @return This builder for chaining. + */ + public Builder setVmExtensionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmExtensionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone VM extension policy to delete.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVmExtensionPolicy() { + vmExtensionPolicy_ = getDefaultInstance().getVmExtensionPolicy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone VM extension policy to delete.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for vmExtensionPolicy to set. + * @return This builder for chaining. + */ + public Builder setVmExtensionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmExtensionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) + private static final com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest(); + } + + public static com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteZoneVmExtensionPolicyRequest 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.compute.v1.DeleteZoneVmExtensionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..511070007846 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteZoneVmExtensionPolicyRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DeleteZoneVmExtensionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Name of the zone VM extension policy to delete.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmExtensionPolicy. + */ + java.lang.String getVmExtensionPolicy(); + + /** + * + * + *
+   * Name of the zone VM extension policy to delete.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmExtensionPolicy. + */ + com.google.protobuf.ByteString getVmExtensionPolicyBytes(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequest.java new file mode 100644 index 000000000000..fb5853578a15 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequest.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DiskUpdateKmsKeyRequest} + */ +@com.google.protobuf.Generated +public final class DiskUpdateKmsKeyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DiskUpdateKmsKeyRequest) + DiskUpdateKmsKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DiskUpdateKmsKeyRequest"); + } + + // Use DiskUpdateKmsKeyRequest.newBuilder() to construct. + private DiskUpdateKmsKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DiskUpdateKmsKeyRequest() { + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 484373913; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + @java.lang.Override + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 484373913, kmsKeyName_); + } + 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.GeneratedMessage.computeStringSize(484373913, kmsKeyName_); + } + 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.compute.v1.DiskUpdateKmsKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest other = + (com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest) obj; + + if (hasKmsKeyName() != other.hasKmsKeyName()) return false; + if (hasKmsKeyName()) { + if (!getKmsKeyName().equals(other.getKmsKeyName())) 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 (hasKmsKeyName()) { + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest 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.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.DiskUpdateKmsKeyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.DiskUpdateKmsKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DiskUpdateKmsKeyRequest) + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_DiskUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest build() { + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest buildPartial() { + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest result = + new com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest) { + return mergeFrom((com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest other) { + if (other == com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance()) + return this; + if (other.hasKmsKeyName()) { + kmsKeyName_ = other.kmsKeyName_; + 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 -419975990: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -419975990 + 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 kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DiskUpdateKmsKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DiskUpdateKmsKeyRequest) + private static final com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest(); + } + + public static com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskUpdateKmsKeyRequest 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.compute.v1.DiskUpdateKmsKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequestOrBuilder.java new file mode 100644 index 000000000000..7e747ed34460 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DiskUpdateKmsKeyRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface DiskUpdateKmsKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.DiskUpdateKmsKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + boolean hasKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Error.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Error.java index a2522aa4e683..2284adb5528d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Error.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Error.java @@ -24,7 +24,7 @@ * * *
- * Output only. [Output Only] Encountered errors.
+ * Output only. Encountered errors.
  * 
* * Protobuf type {@code google.cloud.compute.v1.Error} @@ -315,7 +315,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * Protobuf type {@code google.cloud.compute.v1.Error} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservation.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservation.java index 501708d3ceac..aa8ff30353aa 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservation.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservation.java @@ -52,6 +52,7 @@ private FutureReservation(com.google.protobuf.GeneratedMessage.Builder builde private FutureReservation() { autoCreatedReservationsDeleteTime_ = ""; + confidentialComputeType_ = ""; creationTimestamp_ = ""; deploymentType_ = ""; description_ = ""; @@ -82,6 +83,161 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.compute.v1.FutureReservation.Builder.class); } + /** + * + * + *
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.FutureReservation.ConfidentialComputeType} + */ + public enum ConfidentialComputeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + */ + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE(0), + /** + * + * + *
+     * Intel Trust Domain Extensions.
+     * 
+ * + * CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + */ + CONFIDENTIAL_COMPUTE_TYPE_TDX(301241954), + /** CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; */ + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED(42227601), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfidentialComputeType"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + */ + public static final int UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE_VALUE = 0; + + /** + * + * + *
+     * Intel Trust Domain Extensions.
+     * 
+ * + * CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + */ + public static final int CONFIDENTIAL_COMPUTE_TYPE_TDX_VALUE = 301241954; + + /** CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; */ + public static final int CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED_VALUE = 42227601; + + 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 ConfidentialComputeType 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 ConfidentialComputeType forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE; + case 301241954: + return CONFIDENTIAL_COMPUTE_TYPE_TDX; + case 42227601: + return CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED; + 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 ConfidentialComputeType findValueByNumber(int number) { + return ConfidentialComputeType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(0); + } + + private static final ConfidentialComputeType[] VALUES = values(); + + public static ConfidentialComputeType 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 ConfidentialComputeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.FutureReservation.ConfidentialComputeType) + } + /** * * @@ -211,7 +367,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(1); } private static final DeploymentType[] VALUES = values(); @@ -387,7 +543,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(2); } private static final PlanningStatus[] VALUES = values(); @@ -571,7 +727,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(2); + return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(3); } private static final ReservationMode[] VALUES = values(); @@ -766,7 +922,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.compute.v1.FutureReservation.getDescriptor().getEnumTypes().get(4); } private static final SchedulingType[] VALUES = values(); @@ -1110,6 +1266,78 @@ public com.google.cloud.compute.v1.FutureReservationCommitmentInfo getCommitment : commitmentInfo_; } + public static final int CONFIDENTIAL_COMPUTE_TYPE_FIELD_NUMBER = 386447257; + + @SuppressWarnings("serial") + private volatile java.lang.Object confidentialComputeType_ = ""; + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return Whether the confidentialComputeType field is set. + */ + @java.lang.Override + public boolean hasConfidentialComputeType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The confidentialComputeType. + */ + @java.lang.Override + public java.lang.String getConfidentialComputeType() { + java.lang.Object ref = confidentialComputeType_; + 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(); + confidentialComputeType_ = s; + return s; + } + } + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The bytes for confidentialComputeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfidentialComputeTypeBytes() { + java.lang.Object ref = confidentialComputeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confidentialComputeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; @SuppressWarnings("serial") @@ -1129,7 +1357,7 @@ public com.google.cloud.compute.v1.FutureReservationCommitmentInfo getCommitment */ @java.lang.Override public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1201,7 +1429,7 @@ public com.google.protobuf.ByteString getCreationTimestampBytes() { */ @java.lang.Override public boolean hasDeploymentType() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1273,7 +1501,7 @@ public com.google.protobuf.ByteString getDeploymentTypeBytes() { */ @java.lang.Override public boolean hasDescription() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -1342,7 +1570,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { */ @java.lang.Override public boolean hasEnableEmergentMaintenance() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -1378,7 +1606,7 @@ public boolean getEnableEmergentMaintenance() { */ @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -1416,7 +1644,7 @@ public long getId() { */ @java.lang.Override public boolean hasKind() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1492,7 +1720,7 @@ public com.google.protobuf.ByteString getKindBytes() { */ @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -1578,7 +1806,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasNamePrefix() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -1635,6 +1863,62 @@ public com.google.protobuf.ByteString getNamePrefixBytes() { } } + public static final int PARAMS_FIELD_NUMBER = 78313862; + private com.google.cloud.compute.v1.FutureReservationParams params_; + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + * + * @return The params. + */ + @java.lang.Override + public com.google.cloud.compute.v1.FutureReservationParams getParams() { + return params_ == null + ? com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance() + : params_; + } + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + @java.lang.Override + public com.google.cloud.compute.v1.FutureReservationParamsOrBuilder getParamsOrBuilder() { + return params_ == null + ? com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance() + : params_; + } + public static final int PLANNING_STATUS_FIELD_NUMBER = 19714836; @SuppressWarnings("serial") @@ -1654,7 +1938,7 @@ public com.google.protobuf.ByteString getNamePrefixBytes() { */ @java.lang.Override public boolean hasPlanningStatus() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -1727,7 +2011,7 @@ public com.google.protobuf.ByteString getPlanningStatusBytes() { */ @java.lang.Override public boolean hasReservationMode() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -1804,7 +2088,7 @@ public com.google.protobuf.ByteString getReservationModeBytes() { */ @java.lang.Override public boolean hasReservationName() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -1882,7 +2166,7 @@ public com.google.protobuf.ByteString getReservationNameBytes() { */ @java.lang.Override public boolean hasSchedulingType() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -1953,7 +2237,7 @@ public com.google.protobuf.ByteString getSchedulingTypeBytes() { */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -2022,7 +2306,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -2089,7 +2373,7 @@ public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { */ @java.lang.Override public boolean hasShareSettings() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -2144,7 +2428,7 @@ public com.google.cloud.compute.v1.ShareSettingsOrBuilder getShareSettingsOrBuil */ @java.lang.Override public boolean hasSpecificReservationRequired() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -2184,7 +2468,7 @@ public boolean getSpecificReservationRequired() { */ @java.lang.Override public boolean hasSpecificSkuProperties() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -2245,7 +2529,7 @@ public boolean hasSpecificSkuProperties() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -2299,7 +2583,7 @@ public com.google.cloud.compute.v1.FutureReservationStatusOrBuilder getStatusOrB */ @java.lang.Override public boolean hasTimeWindow() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -2356,7 +2640,7 @@ public com.google.cloud.compute.v1.FutureReservationTimeWindowOrBuilder getTimeW */ @java.lang.Override public boolean hasZone() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -2421,74 +2705,80 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeUInt64(3355, id_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 19714836, planningStatus_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 44520962, selfLinkWithId_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(78313862, getParams()); + } + if (((bitField0_ & 0x00800000) != 0)) { output.writeMessage(108887106, getSpecificSkuProperties()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(164362136, getCommitmentInfo()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { output.writeMessage(181260274, getStatus()); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 199835397, schedulingType_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { output.writeBool(226550687, specificReservationRequired_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 236409542, namePrefix_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString( output, 242855120, autoCreatedReservationsDeleteTime_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeMessage(266668163, getShareSettings()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 277294646, reservationMode_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 277311262, reservationName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(291567948, getAggregateReservation()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(353759497, enableEmergentMaintenance_); } - if (((bitField0_ & 0x00000040) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 396722292, deploymentType_); + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 386447257, confidentialComputeType_); } if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 396722292, deploymentType_); + } + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(422983074, getTimeWindow()); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -2506,28 +2796,31 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(19714836, planningStatus_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(44520962, selfLinkWithId_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(78313862, getParams()); + } + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 108887106, getSpecificSkuProperties()); @@ -2536,18 +2829,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(164362136, getCommitmentInfo()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(181260274, getStatus()); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(199835397, schedulingType_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 226550687, specificReservationRequired_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(236409542, namePrefix_); } if (((bitField0_ & 0x00000002) != 0)) { @@ -2555,14 +2848,14 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessage.computeStringSize( 242855120, autoCreatedReservationsDeleteTime_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(266668163, getShareSettings()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(277294646, reservationMode_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(277311262, reservationName_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -2570,21 +2863,26 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 291567948, getAggregateReservation()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 353759497, enableEmergentMaintenance_); } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(396722292, deploymentType_); + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 386447257, confidentialComputeType_); } if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(396722292, deploymentType_); + } + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(422983074, getTimeWindow()); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -2639,6 +2937,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCommitmentInfo()) { if (!getCommitmentInfo().equals(other.getCommitmentInfo())) return false; } + if (hasConfidentialComputeType() != other.hasConfidentialComputeType()) return false; + if (hasConfidentialComputeType()) { + if (!getConfidentialComputeType().equals(other.getConfidentialComputeType())) return false; + } if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; if (hasCreationTimestamp()) { if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; @@ -2671,6 +2973,10 @@ public boolean equals(final java.lang.Object obj) { if (hasNamePrefix()) { if (!getNamePrefix().equals(other.getNamePrefix())) return false; } + if (hasParams() != other.hasParams()) return false; + if (hasParams()) { + if (!getParams().equals(other.getParams())) return false; + } if (hasPlanningStatus() != other.hasPlanningStatus()) return false; if (hasPlanningStatus()) { if (!getPlanningStatus().equals(other.getPlanningStatus())) return false; @@ -2752,6 +3058,10 @@ public int hashCode() { hash = (37 * hash) + COMMITMENT_INFO_FIELD_NUMBER; hash = (53 * hash) + getCommitmentInfo().hashCode(); } + if (hasConfidentialComputeType()) { + hash = (37 * hash) + CONFIDENTIAL_COMPUTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialComputeType().hashCode(); + } if (hasCreationTimestamp()) { hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getCreationTimestamp().hashCode(); @@ -2784,6 +3094,10 @@ public int hashCode() { hash = (37 * hash) + NAME_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getNamePrefix().hashCode(); } + if (hasParams()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParams().hashCode(); + } if (hasPlanningStatus()) { hash = (37 * hash) + PLANNING_STATUS_FIELD_NUMBER; hash = (53 * hash) + getPlanningStatus().hashCode(); @@ -2976,6 +3290,7 @@ private void maybeForceBuilderInitialization() { internalGetAggregateReservationFieldBuilder(); internalGetAutoCreatedReservationsDurationFieldBuilder(); internalGetCommitmentInfoFieldBuilder(); + internalGetParamsFieldBuilder(); internalGetShareSettingsFieldBuilder(); internalGetSpecificSkuPropertiesFieldBuilder(); internalGetStatusFieldBuilder(); @@ -3004,6 +3319,7 @@ public Builder clear() { commitmentInfoBuilder_.dispose(); commitmentInfoBuilder_ = null; } + confidentialComputeType_ = ""; creationTimestamp_ = ""; deploymentType_ = ""; description_ = ""; @@ -3012,6 +3328,11 @@ public Builder clear() { kind_ = ""; name_ = ""; namePrefix_ = ""; + params_ = null; + if (paramsBuilder_ != null) { + paramsBuilder_.dispose(); + paramsBuilder_ = null; + } planningStatus_ = ""; reservationMode_ = ""; reservationName_ = ""; @@ -3105,89 +3426,97 @@ private void buildPartial0(com.google.cloud.compute.v1.FutureReservation result) to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.creationTimestamp_ = creationTimestamp_; + result.confidentialComputeType_ = confidentialComputeType_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.deploymentType_ = deploymentType_; + result.creationTimestamp_ = creationTimestamp_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.description_ = description_; + result.deploymentType_ = deploymentType_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.enableEmergentMaintenance_ = enableEmergentMaintenance_; + result.description_ = description_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.id_ = id_; + result.enableEmergentMaintenance_ = enableEmergentMaintenance_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.kind_ = kind_; + result.id_ = id_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.name_ = name_; + result.kind_ = kind_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.namePrefix_ = namePrefix_; + result.name_ = name_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.planningStatus_ = planningStatus_; + result.namePrefix_ = namePrefix_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.reservationMode_ = reservationMode_; + result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.reservationName_ = reservationName_; + result.planningStatus_ = planningStatus_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.schedulingType_ = schedulingType_; + result.reservationMode_ = reservationMode_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.selfLink_ = selfLink_; + result.reservationName_ = reservationName_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.selfLinkWithId_ = selfLinkWithId_; + result.schedulingType_ = schedulingType_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.shareSettings_ = - shareSettingsBuilder_ == null ? shareSettings_ : shareSettingsBuilder_.build(); + result.selfLink_ = selfLink_; to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.specificReservationRequired_ = specificReservationRequired_; + result.selfLinkWithId_ = selfLinkWithId_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.specificSkuProperties_ = - specificSkuPropertiesBuilder_ == null - ? specificSkuProperties_ - : specificSkuPropertiesBuilder_.build(); + result.shareSettings_ = + shareSettingsBuilder_ == null ? shareSettings_ : shareSettingsBuilder_.build(); to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.specificReservationRequired_ = specificReservationRequired_; to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x00800000) != 0)) { - result.timeWindow_ = timeWindowBuilder_ == null ? timeWindow_ : timeWindowBuilder_.build(); + result.specificSkuProperties_ = + specificSkuPropertiesBuilder_ == null + ? specificSkuProperties_ + : specificSkuPropertiesBuilder_.build(); to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.zone_ = zone_; + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x01000000; } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.timeWindow_ = timeWindowBuilder_ == null ? timeWindow_ : timeWindowBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x04000000; + } result.bitField0_ |= to_bitField0_; } @@ -3220,19 +3549,24 @@ public Builder mergeFrom(com.google.cloud.compute.v1.FutureReservation other) { if (other.hasCommitmentInfo()) { mergeCommitmentInfo(other.getCommitmentInfo()); } + if (other.hasConfidentialComputeType()) { + confidentialComputeType_ = other.confidentialComputeType_; + bitField0_ |= 0x00000020; + onChanged(); + } if (other.hasCreationTimestamp()) { creationTimestamp_ = other.creationTimestamp_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasDeploymentType()) { deploymentType_ = other.deploymentType_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasDescription()) { description_ = other.description_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasEnableEmergentMaintenance()) { @@ -3243,47 +3577,50 @@ public Builder mergeFrom(com.google.cloud.compute.v1.FutureReservation other) { } if (other.hasKind()) { kind_ = other.kind_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasName()) { name_ = other.name_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasNamePrefix()) { namePrefix_ = other.namePrefix_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } + if (other.hasParams()) { + mergeParams(other.getParams()); + } if (other.hasPlanningStatus()) { planningStatus_ = other.planningStatus_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasReservationMode()) { reservationMode_ = other.reservationMode_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasReservationName()) { reservationName_ = other.reservationName_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasSchedulingType()) { schedulingType_ = other.schedulingType_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasSelfLinkWithId()) { selfLinkWithId_ = other.selfLinkWithId_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasShareSettings()) { @@ -3303,7 +3640,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.FutureReservation other) { } if (other.hasZone()) { zone_ = other.zone_; - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3335,50 +3672,56 @@ public Builder mergeFrom( case 26840: { id_ = input.readUInt64(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 26840 case 26336418: { kind_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 26336418 case 26989658: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 26989658 case 29957474: { zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } // case 29957474 case 157718690: { planningStatus_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 157718690 case 244202930: { creationTimestamp_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 244202930 case 356167698: { selfLinkWithId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 356167698 + case 626510898: + { + input.readMessage(internalGetParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 626510898 case 871096850: { input.readMessage( internalGetSpecificSkuPropertiesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; break; } // case 871096850 case 1314897090: @@ -3391,25 +3734,25 @@ public Builder mergeFrom( case 1450082194: { input.readMessage(internalGetStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; break; } // case 1450082194 case 1598683178: { schedulingType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; break; } // case 1598683178 case 1812405496: { specificReservationRequired_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; break; } // case 1812405496 case 1891276338: { namePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 1891276338 case 1942840962: @@ -3422,19 +3765,19 @@ public Builder mergeFrom( { input.readMessage( internalGetShareSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; break; } // case 2133345306 case -2076610126: { reservationMode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case -2076610126 case -2076477198: { reservationName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case -2076477198 case -1962423710: @@ -3447,32 +3790,38 @@ public Builder mergeFrom( case -1464891320: { enableEmergentMaintenance_ = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case -1464891320 + case -1203389238: + { + confidentialComputeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case -1203389238 case -1121188958: { deploymentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case -1121188958 case -911466526: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case -911466526 case -911102702: { input.readMessage( internalGetTimeWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; break; } // case -911102702 case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case -645248918 case -364147376: @@ -4447,6 +4796,138 @@ public Builder clearCommitmentInfo() { return commitmentInfoBuilder_; } + private java.lang.Object confidentialComputeType_ = ""; + + /** + * + * + *
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
+     * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return Whether the confidentialComputeType field is set. + */ + public boolean hasConfidentialComputeType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
+     * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The confidentialComputeType. + */ + public java.lang.String getConfidentialComputeType() { + java.lang.Object ref = confidentialComputeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confidentialComputeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
+     * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The bytes for confidentialComputeType. + */ + public com.google.protobuf.ByteString getConfidentialComputeTypeBytes() { + java.lang.Object ref = confidentialComputeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confidentialComputeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
+     * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @param value The confidentialComputeType to set. + * @return This builder for chaining. + */ + public Builder setConfidentialComputeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + confidentialComputeType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
+     * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return This builder for chaining. + */ + public Builder clearConfidentialComputeType() { + confidentialComputeType_ = getDefaultInstance().getConfidentialComputeType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
+     * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @param value The bytes for confidentialComputeType to set. + * @return This builder for chaining. + */ + public Builder setConfidentialComputeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + confidentialComputeType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + private java.lang.Object creationTimestamp_ = ""; /** @@ -4462,7 +4943,7 @@ public Builder clearCommitmentInfo() { * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -4531,7 +5012,7 @@ public Builder setCreationTimestamp(java.lang.String value) { throw new NullPointerException(); } creationTimestamp_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4550,7 +5031,7 @@ public Builder setCreationTimestamp(java.lang.String value) { */ public Builder clearCreationTimestamp() { creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4574,7 +5055,7 @@ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); creationTimestamp_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4594,7 +5075,7 @@ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { * @return Whether the deploymentType field is set. */ public boolean hasDeploymentType() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -4663,7 +5144,7 @@ public Builder setDeploymentType(java.lang.String value) { throw new NullPointerException(); } deploymentType_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4682,7 +5163,7 @@ public Builder setDeploymentType(java.lang.String value) { */ public Builder clearDeploymentType() { deploymentType_ = getDefaultInstance().getDeploymentType(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4706,7 +5187,7 @@ public Builder setDeploymentTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); deploymentType_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4726,7 +5207,7 @@ public Builder setDeploymentTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the description field is set. */ public boolean hasDescription() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -4795,7 +5276,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4814,7 +5295,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4838,7 +5319,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4858,7 +5339,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasEnableEmergentMaintenance() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4892,7 +5373,7 @@ public boolean getEnableEmergentMaintenance() { public Builder setEnableEmergentMaintenance(boolean value) { enableEmergentMaintenance_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4909,7 +5390,7 @@ public Builder setEnableEmergentMaintenance(boolean value) { * @return This builder for chaining. */ public Builder clearEnableEmergentMaintenance() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); enableEmergentMaintenance_ = false; onChanged(); return this; @@ -4931,7 +5412,7 @@ public Builder clearEnableEmergentMaintenance() { */ @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -4967,7 +5448,7 @@ public long getId() { public Builder setId(long value) { id_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4985,7 +5466,7 @@ public Builder setId(long value) { * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); id_ = 0L; onChanged(); return this; @@ -5005,7 +5486,7 @@ public Builder clearId() { * @return Whether the kind field is set. */ public boolean hasKind() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -5071,7 +5552,7 @@ public Builder setKind(java.lang.String value) { throw new NullPointerException(); } kind_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5089,7 +5570,7 @@ public Builder setKind(java.lang.String value) { */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -5112,7 +5593,7 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kind_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5138,7 +5619,7 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5225,7 +5706,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5250,7 +5731,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -5280,7 +5761,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5302,7 +5783,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the namePrefix field is set. */ public boolean hasNamePrefix() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5377,7 +5858,7 @@ public Builder setNamePrefix(java.lang.String value) { throw new NullPointerException(); } namePrefix_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5398,7 +5879,7 @@ public Builder setNamePrefix(java.lang.String value) { */ public Builder clearNamePrefix() { namePrefix_ = getDefaultInstance().getNamePrefix(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -5424,11 +5905,216 @@ public Builder setNamePrefixBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); namePrefix_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.FutureReservationParams params_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.FutureReservationParams, + com.google.cloud.compute.v1.FutureReservationParams.Builder, + com.google.cloud.compute.v1.FutureReservationParamsOrBuilder> + paramsBuilder_; + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + * + * @return Whether the params field is set. + */ + public boolean hasParams() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + * + * @return The params. + */ + public com.google.cloud.compute.v1.FutureReservationParams getParams() { + if (paramsBuilder_ == null) { + return params_ == null + ? com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance() + : params_; + } else { + return paramsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + public Builder setParams(com.google.cloud.compute.v1.FutureReservationParams value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + params_ = value; + } else { + paramsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + public Builder setParams( + com.google.cloud.compute.v1.FutureReservationParams.Builder builderForValue) { + if (paramsBuilder_ == null) { + params_ = builderForValue.build(); + } else { + paramsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + public Builder mergeParams(com.google.cloud.compute.v1.FutureReservationParams value) { + if (paramsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && params_ != null + && params_ + != com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance()) { + getParamsBuilder().mergeFrom(value); + } else { + params_ = value; + } + } else { + paramsBuilder_.mergeFrom(value); + } + if (params_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + public Builder clearParams() { + bitField0_ = (bitField0_ & ~0x00004000); + params_ = null; + if (paramsBuilder_ != null) { + paramsBuilder_.dispose(); + paramsBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + public com.google.cloud.compute.v1.FutureReservationParams.Builder getParamsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + public com.google.cloud.compute.v1.FutureReservationParamsOrBuilder getParamsOrBuilder() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilder(); + } else { + return params_ == null + ? com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance() + : params_; + } + } + + /** + * + * + *
+     * Input only. Additional params passed with the request, but not persisted
+     * as part of resource payload.
+     * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.FutureReservationParams, + com.google.cloud.compute.v1.FutureReservationParams.Builder, + com.google.cloud.compute.v1.FutureReservationParamsOrBuilder> + internalGetParamsFieldBuilder() { + if (paramsBuilder_ == null) { + paramsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.FutureReservationParams, + com.google.cloud.compute.v1.FutureReservationParams.Builder, + com.google.cloud.compute.v1.FutureReservationParamsOrBuilder>( + getParams(), getParentForChildren(), isClean()); + params_ = null; + } + return paramsBuilder_; + } + private java.lang.Object planningStatus_ = ""; /** @@ -5444,7 +6130,7 @@ public Builder setNamePrefixBytes(com.google.protobuf.ByteString value) { * @return Whether the planningStatus field is set. */ public boolean hasPlanningStatus() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5513,7 +6199,7 @@ public Builder setPlanningStatus(java.lang.String value) { throw new NullPointerException(); } planningStatus_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5532,7 +6218,7 @@ public Builder setPlanningStatus(java.lang.String value) { */ public Builder clearPlanningStatus() { planningStatus_ = getDefaultInstance().getPlanningStatus(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -5556,7 +6242,7 @@ public Builder setPlanningStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); planningStatus_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5577,7 +6263,7 @@ public Builder setPlanningStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the reservationMode field is set. */ public boolean hasReservationMode() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5649,7 +6335,7 @@ public Builder setReservationMode(java.lang.String value) { throw new NullPointerException(); } reservationMode_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5669,7 +6355,7 @@ public Builder setReservationMode(java.lang.String value) { */ public Builder clearReservationMode() { reservationMode_ = getDefaultInstance().getReservationMode(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -5694,7 +6380,7 @@ public Builder setReservationModeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); reservationMode_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5717,7 +6403,7 @@ public Builder setReservationModeBytes(com.google.protobuf.ByteString value) { * @return Whether the reservationName field is set. */ public boolean hasReservationName() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -5795,7 +6481,7 @@ public Builder setReservationName(java.lang.String value) { throw new NullPointerException(); } reservationName_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5817,7 +6503,7 @@ public Builder setReservationName(java.lang.String value) { */ public Builder clearReservationName() { reservationName_ = getDefaultInstance().getReservationName(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -5844,7 +6530,7 @@ public Builder setReservationNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); reservationName_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5864,7 +6550,7 @@ public Builder setReservationNameBytes(com.google.protobuf.ByteString value) { * @return Whether the schedulingType field is set. */ public boolean hasSchedulingType() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -5933,7 +6619,7 @@ public Builder setSchedulingType(java.lang.String value) { throw new NullPointerException(); } schedulingType_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5952,7 +6638,7 @@ public Builder setSchedulingType(java.lang.String value) { */ public Builder clearSchedulingType() { schedulingType_ = getDefaultInstance().getSchedulingType(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -5976,7 +6662,7 @@ public Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); schedulingType_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5995,7 +6681,7 @@ public Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6061,7 +6747,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6079,7 +6765,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -6102,7 +6788,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6121,7 +6807,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLinkWithId field is set. */ public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -6187,7 +6873,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { throw new NullPointerException(); } selfLinkWithId_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6205,7 +6891,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { */ public Builder clearSelfLinkWithId() { selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -6228,7 +6914,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLinkWithId_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6252,7 +6938,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { * @return Whether the shareSettings field is set. */ public boolean hasShareSettings() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -6294,7 +6980,7 @@ public Builder setShareSettings(com.google.cloud.compute.v1.ShareSettings value) } else { shareSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6315,7 +7001,7 @@ public Builder setShareSettings( } else { shareSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6331,7 +7017,7 @@ public Builder setShareSettings( */ public Builder mergeShareSettings(com.google.cloud.compute.v1.ShareSettings value) { if (shareSettingsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00200000) != 0) && shareSettings_ != null && shareSettings_ != com.google.cloud.compute.v1.ShareSettings.getDefaultInstance()) { getShareSettingsBuilder().mergeFrom(value); @@ -6342,7 +7028,7 @@ public Builder mergeShareSettings(com.google.cloud.compute.v1.ShareSettings valu shareSettingsBuilder_.mergeFrom(value); } if (shareSettings_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -6358,7 +7044,7 @@ public Builder mergeShareSettings(com.google.cloud.compute.v1.ShareSettings valu * optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163; */ public Builder clearShareSettings() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); shareSettings_ = null; if (shareSettingsBuilder_ != null) { shareSettingsBuilder_.dispose(); @@ -6378,7 +7064,7 @@ public Builder clearShareSettings() { * optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163; */ public com.google.cloud.compute.v1.ShareSettings.Builder getShareSettingsBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return internalGetShareSettingsFieldBuilder().getBuilder(); } @@ -6445,7 +7131,7 @@ public com.google.cloud.compute.v1.ShareSettingsOrBuilder getShareSettingsOrBuil */ @java.lang.Override public boolean hasSpecificReservationRequired() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -6483,7 +7169,7 @@ public boolean getSpecificReservationRequired() { public Builder setSpecificReservationRequired(boolean value) { specificReservationRequired_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6502,7 +7188,7 @@ public Builder setSpecificReservationRequired(boolean value) { * @return This builder for chaining. */ public Builder clearSpecificReservationRequired() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00400000); specificReservationRequired_ = false; onChanged(); return this; @@ -6531,7 +7217,7 @@ public Builder clearSpecificReservationRequired() { * @return Whether the specificSkuProperties field is set. */ public boolean hasSpecificSkuProperties() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -6582,7 +7268,7 @@ public Builder setSpecificSkuProperties( } else { specificSkuPropertiesBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6607,7 +7293,7 @@ public Builder setSpecificSkuProperties( } else { specificSkuPropertiesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6627,7 +7313,7 @@ public Builder setSpecificSkuProperties( public Builder mergeSpecificSkuProperties( com.google.cloud.compute.v1.FutureReservationSpecificSKUProperties value) { if (specificSkuPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00800000) != 0) && specificSkuProperties_ != null && specificSkuProperties_ != com.google.cloud.compute.v1.FutureReservationSpecificSKUProperties @@ -6640,7 +7326,7 @@ public Builder mergeSpecificSkuProperties( specificSkuPropertiesBuilder_.mergeFrom(value); } if (specificSkuProperties_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -6659,7 +7345,7 @@ public Builder mergeSpecificSkuProperties( * */ public Builder clearSpecificSkuProperties() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00800000); specificSkuProperties_ = null; if (specificSkuPropertiesBuilder_ != null) { specificSkuPropertiesBuilder_.dispose(); @@ -6683,7 +7369,7 @@ public Builder clearSpecificSkuProperties() { */ public com.google.cloud.compute.v1.FutureReservationSpecificSKUProperties.Builder getSpecificSkuPropertiesBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00800000; onChanged(); return internalGetSpecificSkuPropertiesFieldBuilder().getBuilder(); } @@ -6760,7 +7446,7 @@ public Builder clearSpecificSkuProperties() { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -6802,7 +7488,7 @@ public Builder setStatus(com.google.cloud.compute.v1.FutureReservationStatus val } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -6823,7 +7509,7 @@ public Builder setStatus( } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -6839,7 +7525,7 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.cloud.compute.v1.FutureReservationStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x01000000) != 0) && status_ != null && status_ != com.google.cloud.compute.v1.FutureReservationStatus.getDefaultInstance()) { @@ -6851,7 +7537,7 @@ public Builder mergeStatus(com.google.cloud.compute.v1.FutureReservationStatus v statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -6867,7 +7553,7 @@ public Builder mergeStatus(com.google.cloud.compute.v1.FutureReservationStatus v * optional .google.cloud.compute.v1.FutureReservationStatus status = 181260274; */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x01000000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6887,7 +7573,7 @@ public Builder clearStatus() { * optional .google.cloud.compute.v1.FutureReservationStatus status = 181260274; */ public com.google.cloud.compute.v1.FutureReservationStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x01000000; onChanged(); return internalGetStatusFieldBuilder().getBuilder(); } @@ -6957,7 +7643,7 @@ public com.google.cloud.compute.v1.FutureReservationStatusOrBuilder getStatusOrB * @return Whether the timeWindow field is set. */ public boolean hasTimeWindow() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -7001,7 +7687,7 @@ public Builder setTimeWindow(com.google.cloud.compute.v1.FutureReservationTimeWi } else { timeWindowBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7023,7 +7709,7 @@ public Builder setTimeWindow( } else { timeWindowBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7040,7 +7726,7 @@ public Builder setTimeWindow( */ public Builder mergeTimeWindow(com.google.cloud.compute.v1.FutureReservationTimeWindow value) { if (timeWindowBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x02000000) != 0) && timeWindow_ != null && timeWindow_ != com.google.cloud.compute.v1.FutureReservationTimeWindow.getDefaultInstance()) { @@ -7052,7 +7738,7 @@ public Builder mergeTimeWindow(com.google.cloud.compute.v1.FutureReservationTime timeWindowBuilder_.mergeFrom(value); } if (timeWindow_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -7069,7 +7755,7 @@ public Builder mergeTimeWindow(com.google.cloud.compute.v1.FutureReservationTime * */ public Builder clearTimeWindow() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); timeWindow_ = null; if (timeWindowBuilder_ != null) { timeWindowBuilder_.dispose(); @@ -7090,7 +7776,7 @@ public Builder clearTimeWindow() { * */ public com.google.cloud.compute.v1.FutureReservationTimeWindow.Builder getTimeWindowBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return internalGetTimeWindowFieldBuilder().getBuilder(); } @@ -7157,7 +7843,7 @@ public com.google.cloud.compute.v1.FutureReservationTimeWindow.Builder getTimeWi * @return Whether the zone field is set. */ public boolean hasZone() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -7223,7 +7909,7 @@ public Builder setZone(java.lang.String value) { throw new NullPointerException(); } zone_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -7241,7 +7927,7 @@ public Builder setZone(java.lang.String value) { */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } @@ -7264,7 +7950,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); zone_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationOrBuilder.java index 29b688a6ce5d..ed92dcc8d5ea 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationOrBuilder.java @@ -256,6 +256,48 @@ public interface FutureReservationOrBuilder */ com.google.cloud.compute.v1.FutureReservationCommitmentInfoOrBuilder getCommitmentInfoOrBuilder(); + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return Whether the confidentialComputeType field is set. + */ + boolean hasConfidentialComputeType(); + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The confidentialComputeType. + */ + java.lang.String getConfidentialComputeType(); + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The bytes for confidentialComputeType. + */ + com.google.protobuf.ByteString getConfidentialComputeTypeBytes(); + /** * * @@ -583,6 +625,46 @@ public interface FutureReservationOrBuilder */ com.google.protobuf.ByteString getNamePrefixBytes(); + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + * + * @return Whether the params field is set. + */ + boolean hasParams(); + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + * + * @return The params. + */ + com.google.cloud.compute.v1.FutureReservationParams getParams(); + + /** + * + * + *
+   * Input only. Additional params passed with the request, but not persisted
+   * as part of resource payload.
+   * 
+ * + * optional .google.cloud.compute.v1.FutureReservationParams params = 78313862; + */ + com.google.cloud.compute.v1.FutureReservationParamsOrBuilder getParamsOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParams.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParams.java new file mode 100644 index 000000000000..3fc6221ac908 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParams.java @@ -0,0 +1,839 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Additional future reservation params.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.FutureReservationParams} + */ +@com.google.protobuf.Generated +public final class FutureReservationParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.FutureReservationParams) + FutureReservationParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FutureReservationParams"); + } + + // Use FutureReservationParams.newBuilder() to construct. + private FutureReservationParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FutureReservationParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 377671164: + return internalGetResourceManagerTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FutureReservationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.FutureReservationParams.class, + com.google.cloud.compute.v1.FutureReservationParams.Builder.class); + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 377671164; + + private static final class ResourceManagerTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FutureReservationParams_ResourceManagerTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().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.GeneratedMessage.serializeStringMapTo( + output, + internalGetResourceManagerTags(), + ResourceManagerTagsDefaultEntryHolder.defaultEntry, + 377671164); + 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 : + internalGetResourceManagerTags().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceManagerTags__ = + ResourceManagerTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 377671164, resourceManagerTags__); + } + 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.compute.v1.FutureReservationParams)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.FutureReservationParams other = + (com.google.cloud.compute.v1.FutureReservationParams) obj; + + if (!internalGetResourceManagerTags().equals(other.internalGetResourceManagerTags())) + 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 (!internalGetResourceManagerTags().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.FutureReservationParams 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.compute.v1.FutureReservationParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.FutureReservationParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.FutureReservationParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Additional future reservation params.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.FutureReservationParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.FutureReservationParams) + com.google.cloud.compute.v1.FutureReservationParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 377671164: + return internalGetResourceManagerTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 377671164: + return internalGetMutableResourceManagerTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FutureReservationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.FutureReservationParams.class, + com.google.cloud.compute.v1.FutureReservationParams.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.FutureReservationParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableResourceManagerTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FutureReservationParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.FutureReservationParams getDefaultInstanceForType() { + return com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.FutureReservationParams build() { + com.google.cloud.compute.v1.FutureReservationParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.FutureReservationParams buildPartial() { + com.google.cloud.compute.v1.FutureReservationParams result = + new com.google.cloud.compute.v1.FutureReservationParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.FutureReservationParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceManagerTags_ = internalGetResourceManagerTags(); + result.resourceManagerTags_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.FutureReservationParams) { + return mergeFrom((com.google.cloud.compute.v1.FutureReservationParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.FutureReservationParams other) { + if (other == com.google.cloud.compute.v1.FutureReservationParams.getDefaultInstance()) + return this; + internalGetMutableResourceManagerTags().mergeFrom(other.internalGetResourceManagerTags()); + 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 -1273597982: + { + com.google.protobuf.MapEntry + resourceManagerTags__ = + input.readMessage( + ResourceManagerTagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceManagerTags() + .getMutableMap() + .put(resourceManagerTags__.getKey(), resourceManagerTags__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case -1273597982 + 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 resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceManagerTags() { + if (resourceManagerTags_ == null) { + resourceManagerTags_ = + com.google.protobuf.MapField.newMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + if (!resourceManagerTags_.isMutable()) { + resourceManagerTags_ = resourceManagerTags_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableResourceManagerTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + public Builder removeResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceManagerTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceManagerTags() { + bitField0_ |= 0x00000001; + return internalGetMutableResourceManagerTags().getMutableMap(); + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + public Builder putResourceManagerTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourceManagerTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+     * values have the same definition as resource
+     * manager tags. Keys and values can be either in numeric format,
+     * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+     * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+     * `{tag_value_short_name}`. The field is ignored (both PUT &
+     * PATCH) when empty.
+     * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + public Builder putAllResourceManagerTags( + java.util.Map values) { + internalGetMutableResourceManagerTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.FutureReservationParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.FutureReservationParams) + private static final com.google.cloud.compute.v1.FutureReservationParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.FutureReservationParams(); + } + + public static com.google.cloud.compute.v1.FutureReservationParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FutureReservationParams 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.compute.v1.FutureReservationParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParamsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParamsOrBuilder.java new file mode 100644 index 000000000000..dc9717e2d65f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FutureReservationParamsOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface FutureReservationParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.FutureReservationParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + int getResourceManagerTagsCount(); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + boolean containsResourceManagerTags(java.lang.String key); + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceManagerTags(); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + java.util.Map getResourceManagerTagsMap(); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + /* nullable */ + java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Input only. Resource manager tags to be bound to the future reservation. Tag keys and
+   * values have the same definition as resource
+   * manager tags. Keys and values can be either in numeric format,
+   * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
+   * namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
+   * `{tag_value_short_name}`. The field is ignored (both PUT &
+   * PATCH) when empty.
+   * 
+ * + * map<string, string> resource_manager_tags = 377671164; + */ + java.lang.String getResourceManagerTagsOrThrow(java.lang.String key); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequest.java new file mode 100644 index 000000000000..68258d9c11b8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequest.java @@ -0,0 +1,999 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionCompositeHealthChecks.GetHealth. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} + */ +@com.google.protobuf.Generated +public final class GetHealthRegionCompositeHealthCheckRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) + GetHealthRegionCompositeHealthCheckRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetHealthRegionCompositeHealthCheckRequest"); + } + + // Use GetHealthRegionCompositeHealthCheckRequest.newBuilder() to construct. + private GetHealthRegionCompositeHealthCheckRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetHealthRegionCompositeHealthCheckRequest() { + compositeHealthCheck_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.class, + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.Builder.class); + } + + public static final int COMPOSITE_HEALTH_CHECK_FIELD_NUMBER = 466984989; + + @SuppressWarnings("serial") + private volatile java.lang.Object compositeHealthCheck_ = ""; + + /** + * + * + *
+   * Name of the CompositeHealthCheck resource to get health for.
+   * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The compositeHealthCheck. + */ + @java.lang.Override + public java.lang.String getCompositeHealthCheck() { + java.lang.Object ref = compositeHealthCheck_; + 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(); + compositeHealthCheck_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the CompositeHealthCheck resource to get health for.
+   * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for compositeHealthCheck. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompositeHealthCheckBytes() { + java.lang.Object ref = compositeHealthCheck_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compositeHealthCheck_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(compositeHealthCheck_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 466984989, compositeHealthCheck_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(compositeHealthCheck_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(466984989, compositeHealthCheck_); + } + 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.compute.v1.GetHealthRegionCompositeHealthCheckRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest other = + (com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) obj; + + if (!getCompositeHealthCheck().equals(other.getCompositeHealthCheck())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) 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) + COMPOSITE_HEALTH_CHECK_FIELD_NUMBER; + hash = (53 * hash) + getCompositeHealthCheck().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest 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.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetHealthRegionCompositeHealthCheckRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionCompositeHealthChecks.GetHealth. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.class, + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + compositeHealthCheck_ = ""; + project_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionCompositeHealthCheckRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest build() { + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest buildPartial() { + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest result = + new com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.compositeHealthCheck_ = compositeHealthCheck_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest other) { + if (other + == com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + .getDefaultInstance()) return this; + if (!other.getCompositeHealthCheck().isEmpty()) { + compositeHealthCheck_ = other.compositeHealthCheck_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -559087382: + { + compositeHealthCheck_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -559087382 + 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 compositeHealthCheck_ = ""; + + /** + * + * + *
+     * Name of the CompositeHealthCheck resource to get health for.
+     * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The compositeHealthCheck. + */ + public java.lang.String getCompositeHealthCheck() { + java.lang.Object ref = compositeHealthCheck_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compositeHealthCheck_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the CompositeHealthCheck resource to get health for.
+     * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for compositeHealthCheck. + */ + public com.google.protobuf.ByteString getCompositeHealthCheckBytes() { + java.lang.Object ref = compositeHealthCheck_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compositeHealthCheck_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the CompositeHealthCheck resource to get health for.
+     * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The compositeHealthCheck to set. + * @return This builder for chaining. + */ + public Builder setCompositeHealthCheck(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + compositeHealthCheck_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the CompositeHealthCheck resource to get health for.
+     * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompositeHealthCheck() { + compositeHealthCheck_ = getDefaultInstance().getCompositeHealthCheck(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the CompositeHealthCheck resource to get health for.
+     * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for compositeHealthCheck to set. + * @return This builder for chaining. + */ + public Builder setCompositeHealthCheckBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + compositeHealthCheck_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) + private static final com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest(); + } + + public static com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHealthRegionCompositeHealthCheckRequest 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.compute.v1.GetHealthRegionCompositeHealthCheckRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequestOrBuilder.java new file mode 100644 index 000000000000..3dc9ea093e3b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionCompositeHealthCheckRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetHealthRegionCompositeHealthCheckRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the CompositeHealthCheck resource to get health for.
+   * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The compositeHealthCheck. + */ + java.lang.String getCompositeHealthCheck(); + + /** + * + * + *
+   * Name of the CompositeHealthCheck resource to get health for.
+   * 
+ * + * string composite_health_check = 466984989 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for compositeHealthCheck. + */ + com.google.protobuf.ByteString getCompositeHealthCheckBytes(); + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequest.java new file mode 100644 index 000000000000..f8e2f763b9f3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequest.java @@ -0,0 +1,982 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionHealthSources.GetHealth. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} + */ +@com.google.protobuf.Generated +public final class GetHealthRegionHealthSourceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) + GetHealthRegionHealthSourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetHealthRegionHealthSourceRequest"); + } + + // Use GetHealthRegionHealthSourceRequest.newBuilder() to construct. + private GetHealthRegionHealthSourceRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetHealthRegionHealthSourceRequest() { + healthSource_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.class, + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.Builder.class); + } + + public static final int HEALTH_SOURCE_FIELD_NUMBER = 376521566; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthSource_ = ""; + + /** + * + * + *
+   * Name of the HealthSource resource to get health for.
+   * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The healthSource. + */ + @java.lang.Override + public java.lang.String getHealthSource() { + java.lang.Object ref = healthSource_; + 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(); + healthSource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the HealthSource resource to get health for.
+   * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for healthSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthSourceBytes() { + java.lang.Object ref = healthSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(healthSource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 376521566, healthSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(healthSource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(376521566, healthSource_); + } + 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.compute.v1.GetHealthRegionHealthSourceRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest other = + (com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) obj; + + if (!getHealthSource().equals(other.getHealthSource())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) 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) + HEALTH_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getHealthSource().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest 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.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetHealthRegionHealthSourceRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionHealthSources.GetHealth. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetHealthRegionHealthSourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.class, + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + healthSource_ = ""; + project_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetHealthRegionHealthSourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest build() { + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest buildPartial() { + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest result = + new com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.healthSource_ = healthSource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest other) { + if (other + == com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest.getDefaultInstance()) + return this; + if (!other.getHealthSource().isEmpty()) { + healthSource_ = other.healthSource_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -1282794766: + { + healthSource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1282794766 + 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 healthSource_ = ""; + + /** + * + * + *
+     * Name of the HealthSource resource to get health for.
+     * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The healthSource. + */ + public java.lang.String getHealthSource() { + java.lang.Object ref = healthSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the HealthSource resource to get health for.
+     * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for healthSource. + */ + public com.google.protobuf.ByteString getHealthSourceBytes() { + java.lang.Object ref = healthSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the HealthSource resource to get health for.
+     * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The healthSource to set. + * @return This builder for chaining. + */ + public Builder setHealthSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + healthSource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the HealthSource resource to get health for.
+     * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHealthSource() { + healthSource_ = getDefaultInstance().getHealthSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the HealthSource resource to get health for.
+     * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for healthSource to set. + * @return This builder for chaining. + */ + public Builder setHealthSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthSource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the project scoping this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) + private static final com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest(); + } + + public static com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHealthRegionHealthSourceRequest 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.compute.v1.GetHealthRegionHealthSourceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequestOrBuilder.java new file mode 100644 index 000000000000..9a865120cec6 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetHealthRegionHealthSourceRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetHealthRegionHealthSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetHealthRegionHealthSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the HealthSource resource to get health for.
+   * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The healthSource. + */ + java.lang.String getHealthSource(); + + /** + * + * + *
+   * Name of the HealthSource resource to get health for.
+   * 
+ * + * string health_source = 376521566 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for healthSource. + */ + com.google.protobuf.ByteString getHealthSourceBytes(); + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Name of the project scoping this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..11146fed222e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequest.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.GetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetIamPolicyInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) + GetIamPolicyInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetIamPolicyInstantSnapshotGroupRequest"); + } + + // Use GetIamPolicyInstantSnapshotGroupRequest.newBuilder() to construct. + private GetIamPolicyInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetIamPolicyInstantSnapshotGroupRequest() { + project_ = ""; + resource_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER = 499220029; + private int optionsRequestedPolicyVersion_ = 0; + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(499220029, optionsRequestedPolicyVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 499220029, optionsRequestedPolicyVersion_); + } + 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.compute.v1.GetIamPolicyInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) obj; + + if (hasOptionsRequestedPolicyVersion() != other.hasOptionsRequestedPolicyVersion()) + return false; + if (hasOptionsRequestedPolicyVersion()) { + if (getOptionsRequestedPolicyVersion() != other.getOptionsRequestedPolicyVersion()) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getZone().equals(other.getZone())) 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 (hasOptionsRequestedPolicyVersion()) { + hash = (37 * hash) + OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOptionsRequestedPolicyVersion(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest 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.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetIamPolicyInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.GetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + optionsRequestedPolicyVersion_ = 0; + project_ = ""; + resource_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.optionsRequestedPolicyVersion_ = optionsRequestedPolicyVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (other.hasOptionsRequestedPolicyVersion()) { + setOptionsRequestedPolicyVersion(other.getOptionsRequestedPolicyVersion()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 29957474 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -301207064: + { + optionsRequestedPolicyVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case -301207064 + 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 optionsRequestedPolicyVersion_; + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @param value The optionsRequestedPolicyVersion to set. + * @return This builder for chaining. + */ + public Builder setOptionsRequestedPolicyVersion(int value) { + + optionsRequestedPolicyVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return This builder for chaining. + */ + public Builder clearOptionsRequestedPolicyVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + optionsRequestedPolicyVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIamPolicyInstantSnapshotGroupRequest 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.compute.v1.GetIamPolicyInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..0e9eb5e23e27 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetIamPolicyInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + boolean hasOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + int getOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequest.java new file mode 100644 index 000000000000..6f7b3c3c5f05 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequest.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.GetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class GetIamPolicyRegionBackendBucketRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) + GetIamPolicyRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetIamPolicyRegionBackendBucketRequest"); + } + + // Use GetIamPolicyRegionBackendBucketRequest.newBuilder() to construct. + private GetIamPolicyRegionBackendBucketRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetIamPolicyRegionBackendBucketRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.Builder.class); + } + + private int bitField0_; + public static final int OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER = 499220029; + private int optionsRequestedPolicyVersion_ = 0; + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(499220029, optionsRequestedPolicyVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 499220029, optionsRequestedPolicyVersion_); + } + 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.compute.v1.GetIamPolicyRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) obj; + + if (hasOptionsRequestedPolicyVersion() != other.hasOptionsRequestedPolicyVersion()) + return false; + if (hasOptionsRequestedPolicyVersion()) { + if (getOptionsRequestedPolicyVersion() != other.getOptionsRequestedPolicyVersion()) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResource().equals(other.getResource())) 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 (hasOptionsRequestedPolicyVersion()) { + hash = (37 * hash) + OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOptionsRequestedPolicyVersion(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest 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.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetIamPolicyRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.GetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + optionsRequestedPolicyVersion_ = 0; + project_ = ""; + region_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.optionsRequestedPolicyVersion_ = optionsRequestedPolicyVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest other) { + if (other + == com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + .getDefaultInstance()) return this; + if (other.hasOptionsRequestedPolicyVersion()) { + setOptionsRequestedPolicyVersion(other.getOptionsRequestedPolicyVersion()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -301207064: + { + optionsRequestedPolicyVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case -301207064 + 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 optionsRequestedPolicyVersion_; + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @param value The optionsRequestedPolicyVersion to set. + * @return This builder for chaining. + */ + public Builder setOptionsRequestedPolicyVersion(int value) { + + optionsRequestedPolicyVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return This builder for chaining. + */ + public Builder clearOptionsRequestedPolicyVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + optionsRequestedPolicyVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIamPolicyRegionBackendBucketRequest 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.compute.v1.GetIamPolicyRegionBackendBucketRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..886d686cf986 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetIamPolicyRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + boolean hasOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + int getOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..70dee805eb24 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequest.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.GetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetIamPolicyRegionInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) + GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetIamPolicyRegionInstantSnapshotGroupRequest"); + } + + // Use GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() to construct. + private GetIamPolicyRegionInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetIamPolicyRegionInstantSnapshotGroupRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER = 499220029; + private int optionsRequestedPolicyVersion_ = 0; + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(499220029, optionsRequestedPolicyVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 499220029, optionsRequestedPolicyVersion_); + } + 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.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) obj; + + if (hasOptionsRequestedPolicyVersion() != other.hasOptionsRequestedPolicyVersion()) + return false; + if (hasOptionsRequestedPolicyVersion()) { + if (getOptionsRequestedPolicyVersion() != other.getOptionsRequestedPolicyVersion()) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResource().equals(other.getResource())) 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 (hasOptionsRequestedPolicyVersion()) { + hash = (37 * hash) + OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOptionsRequestedPolicyVersion(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest 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.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.GetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + optionsRequestedPolicyVersion_ = 0; + project_ = ""; + region_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + buildPartial() { + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.optionsRequestedPolicyVersion_ = optionsRequestedPolicyVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (other.hasOptionsRequestedPolicyVersion()) { + setOptionsRequestedPolicyVersion(other.getOptionsRequestedPolicyVersion()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -301207064: + { + optionsRequestedPolicyVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case -301207064 + 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 optionsRequestedPolicyVersion_; + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @param value The optionsRequestedPolicyVersion to set. + * @return This builder for chaining. + */ + public Builder setOptionsRequestedPolicyVersion(int value) { + + optionsRequestedPolicyVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return This builder for chaining. + */ + public Builder clearOptionsRequestedPolicyVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + optionsRequestedPolicyVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIamPolicyRegionInstantSnapshotGroupRequest 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.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..f49dee869170 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + boolean hasOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + int getOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequest.java new file mode 100644 index 000000000000..4b43c914c6e2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequest.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.GetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class GetIamPolicyRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) + GetIamPolicyRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetIamPolicyRegionSnapshotRequest"); + } + + // Use GetIamPolicyRegionSnapshotRequest.newBuilder() to construct. + private GetIamPolicyRegionSnapshotRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetIamPolicyRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.class, + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER = 499220029; + private int optionsRequestedPolicyVersion_ = 0; + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(499220029, optionsRequestedPolicyVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 499220029, optionsRequestedPolicyVersion_); + } + 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.compute.v1.GetIamPolicyRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest other = + (com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) obj; + + if (hasOptionsRequestedPolicyVersion() != other.hasOptionsRequestedPolicyVersion()) + return false; + if (hasOptionsRequestedPolicyVersion()) { + if (getOptionsRequestedPolicyVersion() != other.getOptionsRequestedPolicyVersion()) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResource().equals(other.getResource())) 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 (hasOptionsRequestedPolicyVersion()) { + hash = (37 * hash) + OPTIONS_REQUESTED_POLICY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOptionsRequestedPolicyVersion(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest 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.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetIamPolicyRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.GetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.class, + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + optionsRequestedPolicyVersion_ = 0; + project_ = ""; + region_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetIamPolicyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest build() { + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest result = + new com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.optionsRequestedPolicyVersion_ = optionsRequestedPolicyVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest other) { + if (other + == com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest.getDefaultInstance()) + return this; + if (other.hasOptionsRequestedPolicyVersion()) { + setOptionsRequestedPolicyVersion(other.getOptionsRequestedPolicyVersion()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -301207064: + { + optionsRequestedPolicyVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case -301207064 + 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 optionsRequestedPolicyVersion_; + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + @java.lang.Override + public boolean hasOptionsRequestedPolicyVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + @java.lang.Override + public int getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion_; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @param value The optionsRequestedPolicyVersion to set. + * @return This builder for chaining. + */ + public Builder setOptionsRequestedPolicyVersion(int value) { + + optionsRequestedPolicyVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Requested IAM Policy version.
+     * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return This builder for chaining. + */ + public Builder clearOptionsRequestedPolicyVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + optionsRequestedPolicyVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIamPolicyRegionSnapshotRequest 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.compute.v1.GetIamPolicyRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..f43420c14ddb --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetIamPolicyRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetIamPolicyRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return Whether the optionsRequestedPolicyVersion field is set. + */ + boolean hasOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Requested IAM Policy version.
+   * 
+ * + * optional int32 options_requested_policy_version = 499220029; + * + * @return The optionsRequestedPolicyVersion. + */ + int getOptionsRequestedPolicyVersion(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..394d37382d81 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequest.java @@ -0,0 +1,983 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetInstantSnapshotGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetInstantSnapshotGroupRequest) + GetInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetInstantSnapshotGroupRequest"); + } + + // Use GetInstantSnapshotGroupRequest.newBuilder() to construct. + private GetInstantSnapshotGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetInstantSnapshotGroupRequest() { + instantSnapshotGroup_ = ""; + project_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.Builder.class); + } + + public static final int INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER = 223180386; + + @SuppressWarnings("serial") + private volatile java.lang.Object instantSnapshotGroup_ = ""; + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + 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(); + instantSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.GetInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest) obj; + + if (!getInstantSnapshotGroup().equals(other.getInstantSnapshotGroup())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getZone().equals(other.getZone())) 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) + INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroup().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest 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.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instantSnapshotGroup_ = ""; + project_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instantSnapshotGroup_ = instantSnapshotGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.zone_ = zone_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest other) { + if (other == com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest.getDefaultInstance()) + return this; + if (!other.getInstantSnapshotGroup().isEmpty()) { + instantSnapshotGroup_ = other.instantSnapshotGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 29957474 + case 1785443090: + { + instantSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1785443090 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 instantSnapshotGroup_ = ""; + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instantSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstantSnapshotGroup() { + instantSnapshotGroup_ = getDefaultInstance().getInstantSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstantSnapshotGroupRequest 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.compute.v1.GetInstantSnapshotGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..dfba54e49f79 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + java.lang.String getInstantSnapshotGroup(); + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + com.google.protobuf.ByteString getInstantSnapshotGroupBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequest.java new file mode 100644 index 000000000000..28fa7ed1d0cc --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequest.java @@ -0,0 +1,975 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class GetRegionBackendBucketRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetRegionBackendBucketRequest) + GetRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetRegionBackendBucketRequest"); + } + + // Use GetRegionBackendBucketRequest.newBuilder() to construct. + private GetRegionBackendBucketRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetRegionBackendBucketRequest() { + backendBucket_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.GetRegionBackendBucketRequest.Builder.class); + } + + public static final int BACKEND_BUCKET_FIELD_NUMBER = 91714037; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendBucket_ = ""; + + /** + * + * + *
+   * Name of the BackendBucket resource to return.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + @java.lang.Override + public java.lang.String getBackendBucket() { + java.lang.Object ref = backendBucket_; + 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(); + backendBucket_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the BackendBucket resource to return.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendBucketBytes() { + java.lang.Object ref = backendBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessage.isStringEmpty(backendBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 91714037, backendBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(91714037, backendBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.GetRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.GetRegionBackendBucketRequest) obj; + + if (!getBackendBucket().equals(other.getBackendBucket())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) 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) + BACKEND_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucket().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest 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.compute.v1.GetRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetRegionBackendBucketRequest) + com.google.cloud.compute.v1.GetRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.GetRegionBackendBucketRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetRegionBackendBucketRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backendBucket_ = ""; + project_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionBackendBucketRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetRegionBackendBucketRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.GetRegionBackendBucketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.GetRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.GetRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.GetRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backendBucket_ = backendBucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetRegionBackendBucketRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetRegionBackendBucketRequest other) { + if (other == com.google.cloud.compute.v1.GetRegionBackendBucketRequest.getDefaultInstance()) + return this; + if (!other.getBackendBucket().isEmpty()) { + backendBucket_ = other.backendBucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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 733712298: + { + backendBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 733712298 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 backendBucket_ = ""; + + /** + * + * + *
+     * Name of the BackendBucket resource to return.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + public java.lang.String getBackendBucket() { + java.lang.Object ref = backendBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the BackendBucket resource to return.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + public com.google.protobuf.ByteString getBackendBucketBytes() { + java.lang.Object ref = backendBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the BackendBucket resource to return.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backendBucket to set. + * @return This builder for chaining. + */ + public Builder setBackendBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the BackendBucket resource to return.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackendBucket() { + backendBucket_ = getDefaultInstance().getBackendBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the BackendBucket resource to return.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backendBucket to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.GetRegionBackendBucketRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.GetRegionBackendBucketRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRegionBackendBucketRequest 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.compute.v1.GetRegionBackendBucketRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..947beb9ebcbf --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the BackendBucket resource to return.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + java.lang.String getBackendBucket(); + + /** + * + * + *
+   * Name of the BackendBucket resource to return.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + com.google.protobuf.ByteString getBackendBucketBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequest.java new file mode 100644 index 000000000000..8368fc2b4966 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequest.java @@ -0,0 +1,1224 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstanceGroupManagerResizeRequests.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} + */ +@com.google.protobuf.Generated +public final class GetRegionInstanceGroupManagerResizeRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) + GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetRegionInstanceGroupManagerResizeRequestRequest"); + } + + // Use GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder() to construct. + private GetRegionInstanceGroupManagerResizeRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetRegionInstanceGroupManagerResizeRequestRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + resizeRequest_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.class, + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.Builder + .class); + } + + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESIZE_REQUEST_FIELD_NUMBER = 216941060; + + @SuppressWarnings("serial") + private volatile java.lang.Object resizeRequest_ = ""; + + /** + * + * + *
+   * The name of the resize request.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + @java.lang.Override + public java.lang.String getResizeRequest() { + java.lang.Object ref = resizeRequest_; + 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(); + resizeRequest_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the resize request.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResizeRequestBytes() { + java.lang.Object ref = resizeRequest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resizeRequest_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resizeRequest_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 216941060, resizeRequest_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 249363395, instanceGroupManager_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resizeRequest_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(216941060, resizeRequest_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(249363395, instanceGroupManager_); + } + 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.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest other = + (com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResizeRequest().equals(other.getResizeRequest())) 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESIZE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getResizeRequest().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + 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.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstanceGroupManagerResizeRequests.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.class, + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + resizeRequest_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest build() { + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + buildPartial() { + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest result = + new com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resizeRequest_ = resizeRequest_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest other) { + if (other + == com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getResizeRequest().isEmpty()) { + resizeRequest_ = other.resizeRequest_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1735528482: + { + resizeRequest_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1735528482 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + 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 instanceGroupManager_ = ""; + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object resizeRequest_ = ""; + + /** + * + * + *
+     * The name of the resize request.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + public java.lang.String getResizeRequest() { + java.lang.Object ref = resizeRequest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resizeRequest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the resize request.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + public com.google.protobuf.ByteString getResizeRequestBytes() { + java.lang.Object ref = resizeRequest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resizeRequest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the resize request.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resizeRequest to set. + * @return This builder for chaining. + */ + public Builder setResizeRequest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resizeRequest_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resize request.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResizeRequest() { + resizeRequest_ = getDefaultInstance().getResizeRequest(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the resize request.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resizeRequest to set. + * @return This builder for chaining. + */ + public Builder setResizeRequestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resizeRequest_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) + private static final com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest(); + } + + public static com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + GetRegionInstanceGroupManagerResizeRequestRequest>() { + @java.lang.Override + public GetRegionInstanceGroupManagerResizeRequestRequest 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.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java new file mode 100644 index 000000000000..9d095fb55a53 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetRegionInstanceGroupManagerResizeRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + + /** + * + * + *
+   * The name of the managed instance group.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The name of the resize request.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resizeRequest. + */ + java.lang.String getResizeRequest(); + + /** + * + * + *
+   * The name of the resize request.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string resize_request = 216941060 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resizeRequest. + */ + com.google.protobuf.ByteString getResizeRequestBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..267db3129254 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequest.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class GetRegionInstantSnapshotGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) + GetRegionInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetRegionInstantSnapshotGroupRequest"); + } + + // Use GetRegionInstantSnapshotGroupRequest.newBuilder() to construct. + private GetRegionInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetRegionInstantSnapshotGroupRequest() { + instantSnapshotGroup_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.Builder.class); + } + + public static final int INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER = 223180386; + + @SuppressWarnings("serial") + private volatile java.lang.Object instantSnapshotGroup_ = ""; + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + 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(); + instantSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instantSnapshotGroup_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(223180386, instantSnapshotGroup_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.GetRegionInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) obj; + + if (!getInstantSnapshotGroup().equals(other.getInstantSnapshotGroup())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) 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) + INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroup().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest 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.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetRegionInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instantSnapshotGroup_ = ""; + project_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instantSnapshotGroup_ = instantSnapshotGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest.getDefaultInstance()) + return this; + if (!other.getInstantSnapshotGroup().isEmpty()) { + instantSnapshotGroup_ = other.instantSnapshotGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1785443090: + { + instantSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1785443090 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 instantSnapshotGroup_ = ""; + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + public java.lang.String getInstantSnapshotGroup() { + java.lang.Object ref = instantSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instantSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + public com.google.protobuf.ByteString getInstantSnapshotGroupBytes() { + java.lang.Object ref = instantSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstantSnapshotGroup() { + instantSnapshotGroup_ = getDefaultInstance().getInstantSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the InstantSnapshotGroup resource to return.
+     * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setInstantSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRegionInstantSnapshotGroupRequest 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.compute.v1.GetRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..e5a004f5323c --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetRegionInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroup. + */ + java.lang.String getInstantSnapshotGroup(); + + /** + * + * + *
+   * Name of the InstantSnapshotGroup resource to return.
+   * 
+ * + * string instant_snapshot_group = 223180386 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instantSnapshotGroup. + */ + com.google.protobuf.ByteString getInstantSnapshotGroupBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequest.java new file mode 100644 index 000000000000..a3b8ddeb1d4a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequest.java @@ -0,0 +1,974 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class GetRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetRegionSnapshotRequest) + GetRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetRegionSnapshotRequest"); + } + + // Use GetRegionSnapshotRequest.newBuilder() to construct. + private GetRegionSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + snapshot_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionSnapshotRequest.class, + com.google.cloud.compute.v1.GetRegionSnapshotRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_FIELD_NUMBER = 284874180; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; + + /** + * + * + *
+   * Name of the Snapshot resource to return.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + @java.lang.Override + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + 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(); + snapshot_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the Snapshot resource to return.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 284874180, snapshot_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(284874180, snapshot_); + } + 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.compute.v1.GetRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetRegionSnapshotRequest other = + (com.google.cloud.compute.v1.GetRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getSnapshot().equals(other.getSnapshot())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest 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.compute.v1.GetRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetRegionSnapshotRequest) + com.google.cloud.compute.v1.GetRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionSnapshotRequest.class, + com.google.cloud.compute.v1.GetRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetRegionSnapshotRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + snapshot_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionSnapshotRequest build() { + com.google.cloud.compute.v1.GetRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.GetRegionSnapshotRequest result = + new com.google.cloud.compute.v1.GetRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.GetRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshot_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetRegionSnapshotRequest other) { + if (other == com.google.cloud.compute.v1.GetRegionSnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2015973854: + { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case -2015973854 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object snapshot_ = ""; + + /** + * + * + *
+     * Name of the Snapshot resource to return.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the Snapshot resource to return.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the Snapshot resource to return.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the Snapshot resource to return.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSnapshot() { + snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the Snapshot resource to return.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.GetRegionSnapshotRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRegionSnapshotRequest 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.compute.v1.GetRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..b899b7b5a288 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name of the Snapshot resource to return.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + java.lang.String getSnapshot(); + + /** + * + * + *
+   * Name of the Snapshot resource to return.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString getSnapshotBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequest.java new file mode 100644 index 000000000000..3a5ce7d976b0 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequest.java @@ -0,0 +1,786 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshotSettings.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionSnapshotSettingRequest} + */ +@com.google.protobuf.Generated +public final class GetRegionSnapshotSettingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetRegionSnapshotSettingRequest) + GetRegionSnapshotSettingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetRegionSnapshotSettingRequest"); + } + + // Use GetRegionSnapshotSettingRequest.newBuilder() to construct. + private GetRegionSnapshotSettingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetRegionSnapshotSettingRequest() { + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.class, + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.GetRegionSnapshotSettingRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest other = + (com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest 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.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetRegionSnapshotSettingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshotSettings.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetRegionSnapshotSettingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetRegionSnapshotSettingRequest) + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.class, + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetRegionSnapshotSettingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest build() { + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest buildPartial() { + com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest result = + new com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest other) { + if (other == com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetRegionSnapshotSettingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetRegionSnapshotSettingRequest) + private static final com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest(); + } + + public static com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRegionSnapshotSettingRequest 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.compute.v1.GetRegionSnapshotSettingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequestOrBuilder.java new file mode 100644 index 000000000000..02c128a9e52d --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetRegionSnapshotSettingRequestOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetRegionSnapshotSettingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetRegionSnapshotSettingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequest.java new file mode 100644 index 000000000000..fcd43d721b1a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequest.java @@ -0,0 +1,980 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for ZoneVmExtensionPolicies.Get. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetZoneVmExtensionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) + GetZoneVmExtensionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetZoneVmExtensionPolicyRequest"); + } + + // Use GetZoneVmExtensionPolicyRequest.newBuilder() to construct. + private GetZoneVmExtensionPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetZoneVmExtensionPolicyRequest() { + project_ = ""; + vmExtensionPolicy_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_EXTENSION_POLICY_FIELD_NUMBER = 331532730; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmExtensionPolicy_ = ""; + + /** + * + * + *
+   * Name of the VM extension policy resource to return.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmExtensionPolicy. + */ + @java.lang.Override + public java.lang.String getVmExtensionPolicy() { + java.lang.Object ref = vmExtensionPolicy_; + 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(); + vmExtensionPolicy_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the VM extension policy resource to return.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmExtensionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmExtensionPolicyBytes() { + java.lang.Object ref = vmExtensionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmExtensionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vmExtensionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 331532730, vmExtensionPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vmExtensionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(331532730, vmExtensionPolicy_); + } + 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.compute.v1.GetZoneVmExtensionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest other = + (com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getVmExtensionPolicy().equals(other.getVmExtensionPolicy())) return false; + if (!getZone().equals(other.getZone())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + VM_EXTENSION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getVmExtensionPolicy().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest 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.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.GetZoneVmExtensionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for ZoneVmExtensionPolicies.Get. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + vmExtensionPolicy_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_GetZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest build() { + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest buildPartial() { + com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest result = + new com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vmExtensionPolicy_ = vmExtensionPolicy_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.zone_ = zone_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) { + return mergeFrom((com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest other) { + if (other == com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVmExtensionPolicy().isEmpty()) { + vmExtensionPolicy_ = other.vmExtensionPolicy_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 29957474 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -1642705454: + { + vmExtensionPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -1642705454 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object vmExtensionPolicy_ = ""; + + /** + * + * + *
+     * Name of the VM extension policy resource to return.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicy. + */ + public java.lang.String getVmExtensionPolicy() { + java.lang.Object ref = vmExtensionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmExtensionPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the VM extension policy resource to return.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for vmExtensionPolicy. + */ + public com.google.protobuf.ByteString getVmExtensionPolicyBytes() { + java.lang.Object ref = vmExtensionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmExtensionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the VM extension policy resource to return.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The vmExtensionPolicy to set. + * @return This builder for chaining. + */ + public Builder setVmExtensionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmExtensionPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the VM extension policy resource to return.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVmExtensionPolicy() { + vmExtensionPolicy_ = getDefaultInstance().getVmExtensionPolicy(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the VM extension policy resource to return.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for vmExtensionPolicy to set. + * @return This builder for chaining. + */ + public Builder setVmExtensionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmExtensionPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) + private static final com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest(); + } + + public static com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetZoneVmExtensionPolicyRequest 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.compute.v1.GetZoneVmExtensionPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..26b2855de344 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GetZoneVmExtensionPolicyRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface GetZoneVmExtensionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the VM extension policy resource to return.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmExtensionPolicy. + */ + java.lang.String getVmExtensionPolicy(); + + /** + * + * + *
+   * Name of the VM extension policy resource to return.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmExtensionPolicy. + */ + com.google.protobuf.ByteString getVmExtensionPolicyBytes(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java index d957dc1f6f2f..1557b6d5e790 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java @@ -89,6 +89,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -341,6 +342,7 @@ private Type(int value) { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -376,6 +378,7 @@ public boolean hasType() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -419,6 +422,7 @@ public java.lang.String getType() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -781,6 +785,7 @@ public Builder mergeFrom( * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -815,6 +820,7 @@ public boolean hasType() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -857,6 +863,7 @@ public java.lang.String getType() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -899,6 +906,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -940,6 +948,7 @@ public Builder setType(java.lang.String value) { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -977,6 +986,7 @@ public Builder clearType() { * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeatureOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeatureOrBuilder.java index 3d49411897e4..585aecbf5481 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeatureOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/GuestOsFeatureOrBuilder.java @@ -45,6 +45,7 @@ public interface GuestOsFeatureOrBuilder * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -77,6 +78,7 @@ public interface GuestOsFeatureOrBuilder * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see @@ -109,6 +111,7 @@ public interface GuestOsFeatureOrBuilder * - TDX_CAPABLE * - IDPF * - SNP_SVSM_CAPABLE + * - CCA_CAPABLE * * * For more information, see diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealth.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealth.java new file mode 100644 index 000000000000..6b5685773819 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealth.java @@ -0,0 +1,1607 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Response message for RegionHealthSources.GetHealth
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.HealthSourceHealth} + */ +@com.google.protobuf.Generated +public final class HealthSourceHealth extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.HealthSourceHealth) + HealthSourceHealthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthSourceHealth"); + } + + // Use HealthSourceHealth.newBuilder() to construct. + private HealthSourceHealth(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HealthSourceHealth() { + healthState_ = ""; + kind_ = ""; + sources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourceHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourceHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.HealthSourceHealth.class, + com.google.cloud.compute.v1.HealthSourceHealth.Builder.class); + } + + /** + * + * + *
+   * Health state of the HealthSource.
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.HealthSourceHealth.HealthState} + */ + public enum HealthState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_HEALTH_STATE = 0; + */ + UNDEFINED_HEALTH_STATE(0), + /** HEALTHY = 439801213; */ + HEALTHY(439801213), + /** UNHEALTHY = 462118084; */ + UNHEALTHY(462118084), + /** UNKNOWN = 433141802; */ + UNKNOWN(433141802), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthState"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_HEALTH_STATE = 0; + */ + public static final int UNDEFINED_HEALTH_STATE_VALUE = 0; + + /** HEALTHY = 439801213; */ + public static final int HEALTHY_VALUE = 439801213; + + /** UNHEALTHY = 462118084; */ + public static final int UNHEALTHY_VALUE = 462118084; + + /** UNKNOWN = 433141802; */ + public static final int UNKNOWN_VALUE = 433141802; + + 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 HealthState 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 HealthState forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_HEALTH_STATE; + case 439801213: + return HEALTHY; + case 462118084: + return UNHEALTHY; + case 433141802: + return UNKNOWN; + 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 HealthState findValueByNumber(int number) { + return HealthState.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.HealthSourceHealth.getDescriptor().getEnumTypes().get(0); + } + + private static final HealthState[] VALUES = values(); + + public static HealthState 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 HealthState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.HealthSourceHealth.HealthState) + } + + private int bitField0_; + public static final int HEALTH_STATE_FIELD_NUMBER = 324007150; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthState_ = ""; + + /** + * + * + *
+   * Health state of the HealthSource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + @java.lang.Override + public boolean hasHealthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Health state of the HealthSource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + @java.lang.Override + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + 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(); + healthState_ = s; + return s; + } + } + + /** + * + * + *
+   * Health state of the HealthSource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCES_FIELD_NUMBER = 125606840; + + @SuppressWarnings("serial") + private java.util.List + sources_; + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + @java.lang.Override + public java.util.List + getSourcesList() { + return sources_; + } + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder> + getSourcesOrBuilderList() { + return sources_; + } + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + @java.lang.Override + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo getSources( + int index) { + return sources_.get(index); + } + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder + getSourcesOrBuilder(int index) { + return sources_.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_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + for (int i = 0; i < sources_.size(); i++) { + output.writeMessage(125606840, sources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 324007150, healthState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + for (int i = 0; i < sources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(125606840, sources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(324007150, healthState_); + } + 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.compute.v1.HealthSourceHealth)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.HealthSourceHealth other = + (com.google.cloud.compute.v1.HealthSourceHealth) obj; + + if (hasHealthState() != other.hasHealthState()) return false; + if (hasHealthState()) { + if (!getHealthState().equals(other.getHealthState())) return false; + } + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (!getSourcesList().equals(other.getSourcesList())) 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 (hasHealthState()) { + hash = (37 * hash) + HEALTH_STATE_FIELD_NUMBER; + hash = (53 * hash) + getHealthState().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth 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.compute.v1.HealthSourceHealth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.HealthSourceHealth 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for RegionHealthSources.GetHealth
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.HealthSourceHealth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.HealthSourceHealth) + com.google.cloud.compute.v1.HealthSourceHealthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourceHealth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourceHealth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.HealthSourceHealth.class, + com.google.cloud.compute.v1.HealthSourceHealth.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.HealthSourceHealth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + healthState_ = ""; + kind_ = ""; + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + } else { + sources_ = null; + sourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourceHealth_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourceHealth getDefaultInstanceForType() { + return com.google.cloud.compute.v1.HealthSourceHealth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourceHealth build() { + com.google.cloud.compute.v1.HealthSourceHealth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourceHealth buildPartial() { + com.google.cloud.compute.v1.HealthSourceHealth result = + new com.google.cloud.compute.v1.HealthSourceHealth(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.compute.v1.HealthSourceHealth result) { + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sources_ = java.util.Collections.unmodifiableList(sources_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sources_ = sources_; + } else { + result.sources_ = sourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.HealthSourceHealth result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.healthState_ = healthState_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.HealthSourceHealth) { + return mergeFrom((com.google.cloud.compute.v1.HealthSourceHealth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.HealthSourceHealth other) { + if (other == com.google.cloud.compute.v1.HealthSourceHealth.getDefaultInstance()) return this; + if (other.hasHealthState()) { + healthState_ = other.healthState_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (sourcesBuilder_ == null) { + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + onChanged(); + } + } else { + if (!other.sources_.isEmpty()) { + if (sourcesBuilder_.isEmpty()) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000004); + sourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSourcesFieldBuilder() + : null; + } else { + sourcesBuilder_.addAllMessages(other.sources_); + } + } + } + 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 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26336418 + case 1004854722: + { + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo m = + input.readMessage( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + .parser(), + extensionRegistry); + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(m); + } else { + sourcesBuilder_.addMessage(m); + } + break; + } // case 1004854722 + case -1702910094: + { + healthState_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1702910094 + 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 healthState_ = ""; + + /** + * + * + *
+     * Health state of the HealthSource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + public boolean hasHealthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Health state of the HealthSource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + public java.lang.String getHealthState() { + java.lang.Object ref = healthState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Health state of the HealthSource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + public com.google.protobuf.ByteString getHealthStateBytes() { + java.lang.Object ref = healthState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Health state of the HealthSource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @param value The healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthState(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + healthState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Health state of the HealthSource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @return This builder for chaining. + */ + public Builder clearHealthState() { + healthState_ = getDefaultInstance().getHealthState(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Health state of the HealthSource.
+     * Check the HealthState enum for the list of possible values.
+     * 
+ * + * optional string health_state = 324007150; + * + * @param value The bytes for healthState to set. + * @return This builder for chaining. + */ + public Builder setHealthStateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + sources_ = java.util.Collections.emptyList(); + + private void ensureSourcesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sources_ = + new java.util.ArrayList< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo>(sources_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder> + sourcesBuilder_; + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public java.util.List + getSourcesList() { + if (sourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sources_); + } else { + return sourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public int getSourcesCount() { + if (sourcesBuilder_ == null) { + return sources_.size(); + } else { + return sourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo getSources( + int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder setSources( + int index, com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.set(index, value); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder setSources( + int index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.set(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder addSources( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(value); + onChanged(); + } else { + sourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder addSources( + int index, com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(index, value); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder addSources( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder addSources( + int index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder + builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder addAllSources( + java.lang.Iterable< + ? extends com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo> + values) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + onChanged(); + } else { + sourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder clearSources() { + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public Builder removeSources(int index) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.remove(index); + onChanged(); + } else { + sourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder + getSourcesBuilder(int index) { + return internalGetSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder + getSourcesOrBuilder(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public java.util.List< + ? extends com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder> + getSourcesOrBuilderList() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sources_); + } + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder + addSourcesBuilder() { + return internalGetSourcesFieldBuilder() + .addBuilder( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + .getDefaultInstance()); + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder + addSourcesBuilder(int index) { + return internalGetSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + .getDefaultInstance()); + } + + /** + * + * + *
+     * Health state details of the sources.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + public java.util.List< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder> + getSourcesBuilderList() { + return internalGetSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder> + internalGetSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder>( + sources_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + sources_ = null; + } + return sourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.HealthSourceHealth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.HealthSourceHealth) + private static final com.google.cloud.compute.v1.HealthSourceHealth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.HealthSourceHealth(); + } + + public static com.google.cloud.compute.v1.HealthSourceHealth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HealthSourceHealth 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.compute.v1.HealthSourceHealth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealthOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealthOrBuilder.java new file mode 100644 index 000000000000..cabe329570f1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourceHealthOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface HealthSourceHealthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.HealthSourceHealth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Health state of the HealthSource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return Whether the healthState field is set. + */ + boolean hasHealthState(); + + /** + * + * + *
+   * Health state of the HealthSource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The healthState. + */ + java.lang.String getHealthState(); + + /** + * + * + *
+   * Health state of the HealthSource.
+   * Check the HealthState enum for the list of possible values.
+   * 
+ * + * optional string health_state = 324007150; + * + * @return The bytes for healthState. + */ + com.google.protobuf.ByteString getHealthStateBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + java.util.List + getSourcesList(); + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo getSources(int index); + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + int getSourcesCount(); + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + java.util.List< + ? extends com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder> + getSourcesOrBuilderList(); + + /** + * + * + *
+   * Health state details of the sources.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + * + */ + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder getSourcesOrBuilder( + int index); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfo.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfo.java new file mode 100644 index 000000000000..90c690419220 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfo.java @@ -0,0 +1,1548 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} + */ +@com.google.protobuf.Generated +public final class HealthSourcesGetHealthResponseSourceInfo + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) + HealthSourcesGetHealthResponseSourceInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthSourcesGetHealthResponseSourceInfo"); + } + + // Use HealthSourcesGetHealthResponseSourceInfo.newBuilder() to construct. + private HealthSourcesGetHealthResponseSourceInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HealthSourcesGetHealthResponseSourceInfo() { + backends_ = java.util.Collections.emptyList(); + forwardingRule_ = ""; + source_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.class, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder.class); + } + + private int bitField0_; + public static final int BACKENDS_FIELD_NUMBER = 510839903; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo> + backends_; + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo> + getBackendsList() { + return backends_; + } + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder> + getBackendsOrBuilderList() { + return backends_; + } + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + @java.lang.Override + public int getBackendsCount() { + return backends_.size(); + } + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + getBackends(int index) { + return backends_.get(index); + } + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder + getBackendsOrBuilder(int index) { + return backends_.get(index); + } + + public static final int FORWARDING_RULE_FIELD_NUMBER = 269964030; + + @SuppressWarnings("serial") + private volatile java.lang.Object forwardingRule_ = ""; + + /** + * + * + *
+   * Fully qualified URL of the forwarding rule associated with the source
+   * resource if it is a L4ILB backend service.
+   * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return Whether the forwardingRule field is set. + */ + @java.lang.Override + public boolean hasForwardingRule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Fully qualified URL of the forwarding rule associated with the source
+   * resource if it is a L4ILB backend service.
+   * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return The forwardingRule. + */ + @java.lang.Override + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + 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(); + forwardingRule_ = s; + return s; + } + } + + /** + * + * + *
+   * Fully qualified URL of the forwarding rule associated with the source
+   * resource if it is a L4ILB backend service.
+   * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return The bytes for forwardingRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 177235995; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Fully qualified URL of the associated source resource. This is always a
+   * backend service URL.
+   * 
+ * + * optional string source = 177235995; + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Fully qualified URL of the associated source resource. This is always a
+   * backend service URL.
+   * 
+ * + * optional string source = 177235995; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Fully qualified URL of the associated source resource. This is always a
+   * backend service URL.
+   * 
+ * + * optional string source = 177235995; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 177235995, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 269964030, forwardingRule_); + } + for (int i = 0; i < backends_.size(); i++) { + output.writeMessage(510839903, backends_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(177235995, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(269964030, forwardingRule_); + } + for (int i = 0; i < backends_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(510839903, backends_.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.compute.v1.HealthSourcesGetHealthResponseSourceInfo)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo other = + (com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) obj; + + if (!getBackendsList().equals(other.getBackendsList())) return false; + if (hasForwardingRule() != other.hasForwardingRule()) return false; + if (hasForwardingRule()) { + if (!getForwardingRule().equals(other.getForwardingRule())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) 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 (getBackendsCount() > 0) { + hash = (37 * hash) + BACKENDS_FIELD_NUMBER; + hash = (53 * hash) + getBackendsList().hashCode(); + } + if (hasForwardingRule()) { + hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRule().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo 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.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.HealthSourcesGetHealthResponseSourceInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.class, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backendsBuilder_ == null) { + backends_ = java.util.Collections.emptyList(); + } else { + backends_ = null; + backendsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + forwardingRule_ = ""; + source_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo build() { + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo buildPartial() { + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo result = + new com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo result) { + if (backendsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backends_ = java.util.Collections.unmodifiableList(backends_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backends_ = backends_; + } else { + result.backends_ = backendsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.forwardingRule_ = forwardingRule_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = source_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) { + return mergeFrom( + (com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo other) { + if (other + == com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + .getDefaultInstance()) return this; + if (backendsBuilder_ == null) { + if (!other.backends_.isEmpty()) { + if (backends_.isEmpty()) { + backends_ = other.backends_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackendsIsMutable(); + backends_.addAll(other.backends_); + } + onChanged(); + } + } else { + if (!other.backends_.isEmpty()) { + if (backendsBuilder_.isEmpty()) { + backendsBuilder_.dispose(); + backendsBuilder_ = null; + backends_ = other.backends_; + bitField0_ = (bitField0_ & ~0x00000001); + backendsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackendsFieldBuilder() + : null; + } else { + backendsBuilder_.addAllMessages(other.backends_); + } + } + } + if (other.hasForwardingRule()) { + forwardingRule_ = other.forwardingRule_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSource()) { + source_ = other.source_; + 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 1417887962: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1417887962 + case -2135255054: + { + forwardingRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -2135255054 + case -208248070: + { + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo m = + input.readMessage( + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfo.parser(), + extensionRegistry); + if (backendsBuilder_ == null) { + ensureBackendsIsMutable(); + backends_.add(m); + } else { + backendsBuilder_.addMessage(m); + } + break; + } // case -208248070 + 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.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo> + backends_ = java.util.Collections.emptyList(); + + private void ensureBackendsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backends_ = + new java.util.ArrayList< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo>( + backends_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder, + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder> + backendsBuilder_; + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public java.util.List< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo> + getBackendsList() { + if (backendsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backends_); + } else { + return backendsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public int getBackendsCount() { + if (backendsBuilder_ == null) { + return backends_.size(); + } else { + return backendsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + getBackends(int index) { + if (backendsBuilder_ == null) { + return backends_.get(index); + } else { + return backendsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder setBackends( + int index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo value) { + if (backendsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendsIsMutable(); + backends_.set(index, value); + onChanged(); + } else { + backendsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder setBackends( + int index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + builderForValue) { + if (backendsBuilder_ == null) { + ensureBackendsIsMutable(); + backends_.set(index, builderForValue.build()); + onChanged(); + } else { + backendsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder addBackends( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo value) { + if (backendsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendsIsMutable(); + backends_.add(value); + onChanged(); + } else { + backendsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder addBackends( + int index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo value) { + if (backendsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackendsIsMutable(); + backends_.add(index, value); + onChanged(); + } else { + backendsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder addBackends( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + builderForValue) { + if (backendsBuilder_ == null) { + ensureBackendsIsMutable(); + backends_.add(builderForValue.build()); + onChanged(); + } else { + backendsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder addBackends( + int index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + builderForValue) { + if (backendsBuilder_ == null) { + ensureBackendsIsMutable(); + backends_.add(index, builderForValue.build()); + onChanged(); + } else { + backendsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder addAllBackends( + java.lang.Iterable< + ? extends + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo> + values) { + if (backendsBuilder_ == null) { + ensureBackendsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backends_); + onChanged(); + } else { + backendsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder clearBackends() { + if (backendsBuilder_ == null) { + backends_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backendsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public Builder removeBackends(int index) { + if (backendsBuilder_ == null) { + ensureBackendsIsMutable(); + backends_.remove(index); + onChanged(); + } else { + backendsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + getBackendsBuilder(int index) { + return internalGetBackendsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder + getBackendsOrBuilder(int index) { + if (backendsBuilder_ == null) { + return backends_.get(index); + } else { + return backendsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public java.util.List< + ? extends + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder> + getBackendsOrBuilderList() { + if (backendsBuilder_ != null) { + return backendsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backends_); + } + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + addBackendsBuilder() { + return internalGetBackendsFieldBuilder() + .addBuilder( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + .getDefaultInstance()); + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + addBackendsBuilder(int index) { + return internalGetBackendsFieldBuilder() + .addBuilder( + index, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + .getDefaultInstance()); + } + + /** + * + * + *
+     * Represents an instance group or network endpoint group behind the source
+     * backend service. Only used if the sourceType of the regionHealthSource
+     * is BACKEND_SERVICE.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + public java.util.List< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder> + getBackendsBuilderList() { + return internalGetBackendsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder, + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder> + internalGetBackendsFieldBuilder() { + if (backendsBuilder_ == null) { + backendsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + .Builder, + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder>( + backends_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backends_ = null; + } + return backendsBuilder_; + } + + private java.lang.Object forwardingRule_ = ""; + + /** + * + * + *
+     * Fully qualified URL of the forwarding rule associated with the source
+     * resource if it is a L4ILB backend service.
+     * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return Whether the forwardingRule field is set. + */ + public boolean hasForwardingRule() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Fully qualified URL of the forwarding rule associated with the source
+     * resource if it is a L4ILB backend service.
+     * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return The forwardingRule. + */ + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of the forwarding rule associated with the source
+     * resource if it is a L4ILB backend service.
+     * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return The bytes for forwardingRule. + */ + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of the forwarding rule associated with the source
+     * resource if it is a L4ILB backend service.
+     * 
+ * + * optional string forwarding_rule = 269964030; + * + * @param value The forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + forwardingRule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of the forwarding rule associated with the source
+     * resource if it is a L4ILB backend service.
+     * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return This builder for chaining. + */ + public Builder clearForwardingRule() { + forwardingRule_ = getDefaultInstance().getForwardingRule(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of the forwarding rule associated with the source
+     * resource if it is a L4ILB backend service.
+     * 
+ * + * optional string forwarding_rule = 269964030; + * + * @param value The bytes for forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + forwardingRule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + + /** + * + * + *
+     * Fully qualified URL of the associated source resource. This is always a
+     * backend service URL.
+     * 
+ * + * optional string source = 177235995; + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Fully qualified URL of the associated source resource. This is always a
+     * backend service URL.
+     * 
+ * + * optional string source = 177235995; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of the associated source resource. This is always a
+     * backend service URL.
+     * 
+ * + * optional string source = 177235995; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of the associated source resource. This is always a
+     * backend service URL.
+     * 
+ * + * optional string source = 177235995; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of the associated source resource. This is always a
+     * backend service URL.
+     * 
+ * + * optional string source = 177235995; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of the associated source resource. This is always a
+     * backend service URL.
+     * 
+ * + * optional string source = 177235995; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) + private static final com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo(); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HealthSourcesGetHealthResponseSourceInfo 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.compute.v1.HealthSourcesGetHealthResponseSourceInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java new file mode 100644 index 000000000000..52d675c3958b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java @@ -0,0 +1,963 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} + */ +@com.google.protobuf.Generated +public final class HealthSourcesGetHealthResponseSourceInfoBackendInfo + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthSourcesGetHealthResponseSourceInfoBackendInfo"); + } + + // Use HealthSourcesGetHealthResponseSourceInfoBackendInfo.newBuilder() to construct. + private HealthSourcesGetHealthResponseSourceInfoBackendInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HealthSourcesGetHealthResponseSourceInfoBackendInfo() { + group_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.class, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder + .class); + } + + private int bitField0_; + public static final int ENDPOINT_COUNT_FIELD_NUMBER = 486641125; + private int endpointCount_ = 0; + + /** + * + * + *
+   * Total number of endpoints when determining the health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return Whether the endpointCount field is set. + */ + @java.lang.Override + public boolean hasEndpointCount() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Total number of endpoints when determining the health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return The endpointCount. + */ + @java.lang.Override + public int getEndpointCount() { + return endpointCount_; + } + + public static final int GROUP_FIELD_NUMBER = 98629247; + + @SuppressWarnings("serial") + private volatile java.lang.Object group_ = ""; + + /** + * + * + *
+   * Fully qualified URL of an instance group or network endpoint group
+   * behind the source backend service.
+   * 
+ * + * optional string group = 98629247; + * + * @return Whether the group field is set. + */ + @java.lang.Override + public boolean hasGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Fully qualified URL of an instance group or network endpoint group
+   * behind the source backend service.
+   * 
+ * + * optional string group = 98629247; + * + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = group_; + 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(); + group_ = s; + return s; + } + } + + /** + * + * + *
+   * Fully qualified URL of an instance group or network endpoint group
+   * behind the source backend service.
+   * 
+ * + * optional string group = 98629247; + * + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTHY_ENDPOINT_COUNT_FIELD_NUMBER = 291284167; + private int healthyEndpointCount_ = 0; + + /** + * + * + *
+   * Number of endpoints considered healthy when determining health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return Whether the healthyEndpointCount field is set. + */ + @java.lang.Override + public boolean hasHealthyEndpointCount() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Number of endpoints considered healthy when determining health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return The healthyEndpointCount. + */ + @java.lang.Override + public int getHealthyEndpointCount() { + return healthyEndpointCount_; + } + + 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_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 98629247, group_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(291284167, healthyEndpointCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(486641125, endpointCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(98629247, group_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(291284167, healthyEndpointCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(486641125, endpointCount_); + } + 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.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo other = + (com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) obj; + + if (hasEndpointCount() != other.hasEndpointCount()) return false; + if (hasEndpointCount()) { + if (getEndpointCount() != other.getEndpointCount()) return false; + } + if (hasGroup() != other.hasGroup()) return false; + if (hasGroup()) { + if (!getGroup().equals(other.getGroup())) return false; + } + if (hasHealthyEndpointCount() != other.hasHealthyEndpointCount()) return false; + if (hasHealthyEndpointCount()) { + if (getHealthyEndpointCount() != other.getHealthyEndpointCount()) 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 (hasEndpointCount()) { + hash = (37 * hash) + ENDPOINT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEndpointCount(); + } + if (hasGroup()) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + } + if (hasHealthyEndpointCount()) { + hash = (37 * hash) + HEALTHY_ENDPOINT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getHealthyEndpointCount(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + 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.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.class, + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpointCount_ = 0; + group_ = ""; + healthyEndpointCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_HealthSourcesGetHealthResponseSourceInfoBackendInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo build() { + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + buildPartial() { + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo result = + new com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpointCount_ = endpointCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.group_ = group_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.healthyEndpointCount_ = healthyEndpointCount_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) { + return mergeFrom( + (com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo other) { + if (other + == com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + .getDefaultInstance()) return this; + if (other.hasEndpointCount()) { + setEndpointCount(other.getEndpointCount()); + } + if (other.hasGroup()) { + group_ = other.group_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasHealthyEndpointCount()) { + setHealthyEndpointCount(other.getHealthyEndpointCount()); + } + 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 789033978: + { + group_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 789033978 + case -1964693960: + { + healthyEndpointCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case -1964693960 + case -401838296: + { + endpointCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case -401838296 + 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 endpointCount_; + + /** + * + * + *
+     * Total number of endpoints when determining the health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return Whether the endpointCount field is set. + */ + @java.lang.Override + public boolean hasEndpointCount() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Total number of endpoints when determining the health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return The endpointCount. + */ + @java.lang.Override + public int getEndpointCount() { + return endpointCount_; + } + + /** + * + * + *
+     * Total number of endpoints when determining the health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @param value The endpointCount to set. + * @return This builder for chaining. + */ + public Builder setEndpointCount(int value) { + + endpointCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of endpoints when determining the health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return This builder for chaining. + */ + public Builder clearEndpointCount() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object group_ = ""; + + /** + * + * + *
+     * Fully qualified URL of an instance group or network endpoint group
+     * behind the source backend service.
+     * 
+ * + * optional string group = 98629247; + * + * @return Whether the group field is set. + */ + public boolean hasGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Fully qualified URL of an instance group or network endpoint group
+     * behind the source backend service.
+     * 
+ * + * optional string group = 98629247; + * + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of an instance group or network endpoint group
+     * behind the source backend service.
+     * 
+ * + * optional string group = 98629247; + * + * @return The bytes for group. + */ + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Fully qualified URL of an instance group or network endpoint group
+     * behind the source backend service.
+     * 
+ * + * optional string group = 98629247; + * + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of an instance group or network endpoint group
+     * behind the source backend service.
+     * 
+ * + * optional string group = 98629247; + * + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Fully qualified URL of an instance group or network endpoint group
+     * behind the source backend service.
+     * 
+ * + * optional string group = 98629247; + * + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int healthyEndpointCount_; + + /** + * + * + *
+     * Number of endpoints considered healthy when determining health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return Whether the healthyEndpointCount field is set. + */ + @java.lang.Override + public boolean hasHealthyEndpointCount() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Number of endpoints considered healthy when determining health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return The healthyEndpointCount. + */ + @java.lang.Override + public int getHealthyEndpointCount() { + return healthyEndpointCount_; + } + + /** + * + * + *
+     * Number of endpoints considered healthy when determining health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @param value The healthyEndpointCount to set. + * @return This builder for chaining. + */ + public Builder setHealthyEndpointCount(int value) { + + healthyEndpointCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Number of endpoints considered healthy when determining health of the
+     * regionHealthSource.
+     * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return This builder for chaining. + */ + public Builder clearHealthyEndpointCount() { + bitField0_ = (bitField0_ & ~0x00000004); + healthyEndpointCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + private static final com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo(); + } + + public static com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + HealthSourcesGetHealthResponseSourceInfoBackendInfo> + PARSER = + new com.google.protobuf.AbstractParser< + HealthSourcesGetHealthResponseSourceInfoBackendInfo>() { + @java.lang.Override + public HealthSourcesGetHealthResponseSourceInfoBackendInfo 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.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder.java new file mode 100644 index 000000000000..175225858bd2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Total number of endpoints when determining the health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return Whether the endpointCount field is set. + */ + boolean hasEndpointCount(); + + /** + * + * + *
+   * Total number of endpoints when determining the health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 endpoint_count = 486641125; + * + * @return The endpointCount. + */ + int getEndpointCount(); + + /** + * + * + *
+   * Fully qualified URL of an instance group or network endpoint group
+   * behind the source backend service.
+   * 
+ * + * optional string group = 98629247; + * + * @return Whether the group field is set. + */ + boolean hasGroup(); + + /** + * + * + *
+   * Fully qualified URL of an instance group or network endpoint group
+   * behind the source backend service.
+   * 
+ * + * optional string group = 98629247; + * + * @return The group. + */ + java.lang.String getGroup(); + + /** + * + * + *
+   * Fully qualified URL of an instance group or network endpoint group
+   * behind the source backend service.
+   * 
+ * + * optional string group = 98629247; + * + * @return The bytes for group. + */ + com.google.protobuf.ByteString getGroupBytes(); + + /** + * + * + *
+   * Number of endpoints considered healthy when determining health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return Whether the healthyEndpointCount field is set. + */ + boolean hasHealthyEndpointCount(); + + /** + * + * + *
+   * Number of endpoints considered healthy when determining health of the
+   * regionHealthSource.
+   * 
+ * + * optional int32 healthy_endpoint_count = 291284167; + * + * @return The healthyEndpointCount. + */ + int getHealthyEndpointCount(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoOrBuilder.java new file mode 100644 index 000000000000..ee0dd0ea5480 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/HealthSourcesGetHealthResponseSourceInfoOrBuilder.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface HealthSourcesGetHealthResponseSourceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + java.util.List + getBackendsList(); + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo getBackends( + int index); + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + int getBackendsCount(); + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + java.util.List< + ? extends + com.google.cloud.compute.v1 + .HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder> + getBackendsOrBuilderList(); + + /** + * + * + *
+   * Represents an instance group or network endpoint group behind the source
+   * backend service. Only used if the sourceType of the regionHealthSource
+   * is BACKEND_SERVICE.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + * + */ + com.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder + getBackendsOrBuilder(int index); + + /** + * + * + *
+   * Fully qualified URL of the forwarding rule associated with the source
+   * resource if it is a L4ILB backend service.
+   * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return Whether the forwardingRule field is set. + */ + boolean hasForwardingRule(); + + /** + * + * + *
+   * Fully qualified URL of the forwarding rule associated with the source
+   * resource if it is a L4ILB backend service.
+   * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return The forwardingRule. + */ + java.lang.String getForwardingRule(); + + /** + * + * + *
+   * Fully qualified URL of the forwarding rule associated with the source
+   * resource if it is a L4ILB backend service.
+   * 
+ * + * optional string forwarding_rule = 269964030; + * + * @return The bytes for forwardingRule. + */ + com.google.protobuf.ByteString getForwardingRuleBytes(); + + /** + * + * + *
+   * Fully qualified URL of the associated source resource. This is always a
+   * backend service URL.
+   * 
+ * + * optional string source = 177235995; + * + * @return Whether the source field is set. + */ + boolean hasSource(); + + /** + * + * + *
+   * Fully qualified URL of the associated source resource. This is always a
+   * backend service URL.
+   * 
+ * + * optional string source = 177235995; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Fully qualified URL of the associated source resource. This is always a
+   * backend service URL.
+   * 
+ * + * optional string source = 177235995; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..a3e0c2466ff9 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequest.java @@ -0,0 +1,1711 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.Insert. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class InsertInstantSnapshotGroupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) + InsertInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InsertInstantSnapshotGroupRequest"); + } + + // Use InsertInstantSnapshotGroupRequest.newBuilder() to construct. + private InsertInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InsertInstantSnapshotGroupRequest() { + project_ = ""; + requestId_ = ""; + sourceConsistencyGroup_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANT_SNAPSHOT_GROUP_RESOURCE_FIELD_NUMBER = 145067339; + private com.google.cloud.compute.v1.InstantSnapshotGroup instantSnapshotGroupResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instantSnapshotGroupResource field is set. + */ + @java.lang.Override + public boolean hasInstantSnapshotGroupResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroupResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroup getInstantSnapshotGroupResource() { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder + getInstantSnapshotGroupResourceOrBuilder() { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SOURCE_CONSISTENCY_GROUP_FIELD_NUMBER = 531359348; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceConsistencyGroup_ = ""; + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + @java.lang.Override + public boolean hasSourceConsistencyGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + @java.lang.Override + public java.lang.String getSourceConsistencyGroup() { + java.lang.Object ref = sourceConsistencyGroup_; + 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(); + sourceConsistencyGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceConsistencyGroupBytes() { + java.lang.Object ref = sourceConsistencyGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceConsistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(145067339, getInstantSnapshotGroupResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 531359348, sourceConsistencyGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 145067339, getInstantSnapshotGroupResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 531359348, sourceConsistencyGroup_); + } + 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.compute.v1.InsertInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) obj; + + if (hasInstantSnapshotGroupResource() != other.hasInstantSnapshotGroupResource()) return false; + if (hasInstantSnapshotGroupResource()) { + if (!getInstantSnapshotGroupResource().equals(other.getInstantSnapshotGroupResource())) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (hasSourceConsistencyGroup() != other.hasSourceConsistencyGroup()) return false; + if (hasSourceConsistencyGroup()) { + if (!getSourceConsistencyGroup().equals(other.getSourceConsistencyGroup())) return false; + } + if (!getZone().equals(other.getZone())) 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 (hasInstantSnapshotGroupResource()) { + hash = (37 * hash) + INSTANT_SNAPSHOT_GROUP_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroupResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + if (hasSourceConsistencyGroup()) { + hash = (37 * hash) + SOURCE_CONSISTENCY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceConsistencyGroup().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest 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.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InsertInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.Insert. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInstantSnapshotGroupResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instantSnapshotGroupResource_ = null; + if (instantSnapshotGroupResourceBuilder_ != null) { + instantSnapshotGroupResourceBuilder_.dispose(); + instantSnapshotGroupResourceBuilder_ = null; + } + project_ = ""; + requestId_ = ""; + sourceConsistencyGroup_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instantSnapshotGroupResource_ = + instantSnapshotGroupResourceBuilder_ == null + ? instantSnapshotGroupResource_ + : instantSnapshotGroupResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sourceConsistencyGroup_ = sourceConsistencyGroup_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) { + return mergeFrom((com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest.getDefaultInstance()) + return this; + if (other.hasInstantSnapshotGroupResource()) { + mergeInstantSnapshotGroupResource(other.getInstantSnapshotGroupResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSourceConsistencyGroup()) { + sourceConsistencyGroup_ = other.sourceConsistencyGroup_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 296879706 + case 1160538714: + { + input.readMessage( + internalGetInstantSnapshotGroupResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 1160538714 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -44092510: + { + sourceConsistencyGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case -44092510 + 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.compute.v1.InstantSnapshotGroup instantSnapshotGroupResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder> + instantSnapshotGroupResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instantSnapshotGroupResource field is set. + */ + public boolean hasInstantSnapshotGroupResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroupResource. + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup getInstantSnapshotGroupResource() { + if (instantSnapshotGroupResourceBuilder_ == null) { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } else { + return instantSnapshotGroupResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstantSnapshotGroupResource( + com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (instantSnapshotGroupResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroupResource_ = value; + } else { + instantSnapshotGroupResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstantSnapshotGroupResource( + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder builderForValue) { + if (instantSnapshotGroupResourceBuilder_ == null) { + instantSnapshotGroupResource_ = builderForValue.build(); + } else { + instantSnapshotGroupResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstantSnapshotGroupResource( + com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (instantSnapshotGroupResourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && instantSnapshotGroupResource_ != null + && instantSnapshotGroupResource_ + != com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance()) { + getInstantSnapshotGroupResourceBuilder().mergeFrom(value); + } else { + instantSnapshotGroupResource_ = value; + } + } else { + instantSnapshotGroupResourceBuilder_.mergeFrom(value); + } + if (instantSnapshotGroupResource_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstantSnapshotGroupResource() { + bitField0_ = (bitField0_ & ~0x00000001); + instantSnapshotGroupResource_ = null; + if (instantSnapshotGroupResourceBuilder_ != null) { + instantSnapshotGroupResourceBuilder_.dispose(); + instantSnapshotGroupResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup.Builder + getInstantSnapshotGroupResourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetInstantSnapshotGroupResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder + getInstantSnapshotGroupResourceOrBuilder() { + if (instantSnapshotGroupResourceBuilder_ != null) { + return instantSnapshotGroupResourceBuilder_.getMessageOrBuilder(); + } else { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder> + internalGetInstantSnapshotGroupResourceFieldBuilder() { + if (instantSnapshotGroupResourceBuilder_ == null) { + instantSnapshotGroupResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder>( + getInstantSnapshotGroupResource(), getParentForChildren(), isClean()); + instantSnapshotGroupResource_ = null; + } + return instantSnapshotGroupResourceBuilder_; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object sourceConsistencyGroup_ = ""; + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + public boolean hasSourceConsistencyGroup() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + public java.lang.String getSourceConsistencyGroup() { + java.lang.Object ref = sourceConsistencyGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceConsistencyGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + public com.google.protobuf.ByteString getSourceConsistencyGroupBytes() { + java.lang.Object ref = sourceConsistencyGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceConsistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @param value The sourceConsistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceConsistencyGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceConsistencyGroup_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return This builder for chaining. + */ + public Builder clearSourceConsistencyGroup() { + sourceConsistencyGroup_ = getDefaultInstance().getSourceConsistencyGroup(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @param value The bytes for sourceConsistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceConsistencyGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceConsistencyGroup_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertInstantSnapshotGroupRequest 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.compute.v1.InsertInstantSnapshotGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..7f364855239e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InsertInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instantSnapshotGroupResource field is set. + */ + boolean hasInstantSnapshotGroupResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroupResource. + */ + com.google.cloud.compute.v1.InstantSnapshotGroup getInstantSnapshotGroupResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder + getInstantSnapshotGroupResourceOrBuilder(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + boolean hasSourceConsistencyGroup(); + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + java.lang.String getSourceConsistencyGroup(); + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + com.google.protobuf.ByteString getSourceConsistencyGroupBytes(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequest.java new file mode 100644 index 000000000000..c0601bca41b2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequest.java @@ -0,0 +1,1476 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.Insert. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class InsertRegionBackendBucketRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InsertRegionBackendBucketRequest) + InsertRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InsertRegionBackendBucketRequest"); + } + + // Use InsertRegionBackendBucketRequest.newBuilder() to construct. + private InsertRegionBackendBucketRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InsertRegionBackendBucketRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.Builder.class); + } + + private int bitField0_; + public static final int BACKEND_BUCKET_RESOURCE_FIELD_NUMBER = 380757784; + private com.google.cloud.compute.v1.BackendBucket backendBucketResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendBucketResource field is set. + */ + @java.lang.Override + public boolean hasBackendBucketResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendBucketResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucket getBackendBucketResource() { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketResourceOrBuilder() { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(380757784, getBackendBucketResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 380757784, getBackendBucketResource()); + } + 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.compute.v1.InsertRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.InsertRegionBackendBucketRequest) obj; + + if (hasBackendBucketResource() != other.hasBackendBucketResource()) return false; + if (hasBackendBucketResource()) { + if (!getBackendBucketResource().equals(other.getBackendBucketResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + 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(); + if (hasBackendBucketResource()) { + hash = (37 * hash) + BACKEND_BUCKET_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucketResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + 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.compute.v1.InsertRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest 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.compute.v1.InsertRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InsertRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.Insert. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InsertRegionBackendBucketRequest) + com.google.cloud.compute.v1.InsertRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackendBucketResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backendBucketResource_ = null; + if (backendBucketResourceBuilder_ != null) { + backendBucketResourceBuilder_.dispose(); + backendBucketResourceBuilder_ = null; + } + project_ = ""; + region_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionBackendBucketRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.InsertRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InsertRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backendBucketResource_ = + backendBucketResourceBuilder_ == null + ? backendBucketResource_ + : backendBucketResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InsertRegionBackendBucketRequest) { + return mergeFrom((com.google.cloud.compute.v1.InsertRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InsertRegionBackendBucketRequest other) { + if (other + == com.google.cloud.compute.v1.InsertRegionBackendBucketRequest.getDefaultInstance()) + return this; + if (other.hasBackendBucketResource()) { + mergeBackendBucketResource(other.getBackendBucketResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -1248905022: + { + input.readMessage( + internalGetBackendBucketResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case -1248905022 + 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.compute.v1.BackendBucket backendBucketResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + backendBucketResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendBucketResource field is set. + */ + public boolean hasBackendBucketResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendBucketResource. + */ + public com.google.cloud.compute.v1.BackendBucket getBackendBucketResource() { + if (backendBucketResourceBuilder_ == null) { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } else { + return backendBucketResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendBucketResource(com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendBucketResource_ = value; + } else { + backendBucketResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendBucketResource( + com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (backendBucketResourceBuilder_ == null) { + backendBucketResource_ = builderForValue.build(); + } else { + backendBucketResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackendBucketResource(com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketResourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && backendBucketResource_ != null + && backendBucketResource_ + != com.google.cloud.compute.v1.BackendBucket.getDefaultInstance()) { + getBackendBucketResourceBuilder().mergeFrom(value); + } else { + backendBucketResource_ = value; + } + } else { + backendBucketResourceBuilder_.mergeFrom(value); + } + if (backendBucketResource_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackendBucketResource() { + bitField0_ = (bitField0_ & ~0x00000001); + backendBucketResource_ = null; + if (backendBucketResourceBuilder_ != null) { + backendBucketResourceBuilder_.dispose(); + backendBucketResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.BackendBucket.Builder getBackendBucketResourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBackendBucketResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketResourceOrBuilder() { + if (backendBucketResourceBuilder_ != null) { + return backendBucketResourceBuilder_.getMessageOrBuilder(); + } else { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + internalGetBackendBucketResourceFieldBuilder() { + if (backendBucketResourceBuilder_ == null) { + backendBucketResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder>( + getBackendBucketResource(), getParentForChildren(), isClean()); + backendBucketResource_ = null; + } + return backendBucketResourceBuilder_; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InsertRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InsertRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.InsertRegionBackendBucketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InsertRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.InsertRegionBackendBucketRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertRegionBackendBucketRequest 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.compute.v1.InsertRegionBackendBucketRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..eef77b9ccfc8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InsertRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendBucketResource field is set. + */ + boolean hasBackendBucketResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendBucketResource. + */ + com.google.cloud.compute.v1.BackendBucket getBackendBucketResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketResourceOrBuilder(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequest.java new file mode 100644 index 000000000000..770333838118 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequest.java @@ -0,0 +1,1736 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstanceGroupManagerResizeRequests.Insert. See the method description for details.
+ * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} + */ +@com.google.protobuf.Generated +public final class InsertRegionInstanceGroupManagerResizeRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InsertRegionInstanceGroupManagerResizeRequestRequest"); + } + + // Use InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder() to construct. + private InsertRegionInstanceGroupManagerResizeRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InsertRegionInstanceGroupManagerResizeRequestRequest() { + instanceGroupManager_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.class, + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.Builder + .class); + } + + private int bitField0_; + public static final int INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + + /** + * + * + *
+   * Name of the managed instance group to which the resize request is scoped.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the managed instance group to which the resize request is scoped.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_MANAGER_RESIZE_REQUEST_RESOURCE_FIELD_NUMBER = 468541293; + private com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest + instanceGroupManagerResizeRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagerResizeRequestResource field is set. + */ + @java.lang.Override + public boolean hasInstanceGroupManagerResizeRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagerResizeRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest + getInstanceGroupManagerResizeRequestResource() { + return instanceGroupManagerResizeRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.getDefaultInstance() + : instanceGroupManagerResizeRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder + getInstanceGroupManagerResizeRequestResourceOrBuilder() { + return instanceGroupManagerResizeRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.getDefaultInstance() + : instanceGroupManagerResizeRequestResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(468541293, getInstanceGroupManagerResizeRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 468541293, getInstanceGroupManagerResizeRequestResource()); + } + 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.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest other = + (com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) obj; + + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (hasInstanceGroupManagerResizeRequestResource() + != other.hasInstanceGroupManagerResizeRequestResource()) return false; + if (hasInstanceGroupManagerResizeRequestResource()) { + if (!getInstanceGroupManagerResizeRequestResource() + .equals(other.getInstanceGroupManagerResizeRequestResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + 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) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + if (hasInstanceGroupManagerResizeRequestResource()) { + hash = (37 * hash) + INSTANCE_GROUP_MANAGER_RESIZE_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManagerResizeRequestResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + 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.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + 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.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstanceGroupManagerResizeRequests.Insert. See the method description for details.
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + .class, + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInstanceGroupManagerResizeRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceGroupManager_ = ""; + instanceGroupManagerResizeRequestResource_ = null; + if (instanceGroupManagerResizeRequestResourceBuilder_ != null) { + instanceGroupManagerResizeRequestResourceBuilder_.dispose(); + instanceGroupManagerResizeRequestResourceBuilder_ = null; + } + project_ = ""; + region_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerResizeRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + build() { + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + buildPartial() { + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest result = + new com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceGroupManagerResizeRequestResource_ = + instanceGroupManagerResizeRequestResourceBuilder_ == null + ? instanceGroupManagerResizeRequestResource_ + : instanceGroupManagerResizeRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest other) { + if (other + == com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + .getDefaultInstance()) return this; + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInstanceGroupManagerResizeRequestResource()) { + mergeInstanceGroupManagerResizeRequestResource( + other.getInstanceGroupManagerResizeRequestResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1994907162 + case -546636950: + { + input.readMessage( + internalGetInstanceGroupManagerResizeRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case -546636950 + 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 instanceGroupManager_ = ""; + + /** + * + * + *
+     * Name of the managed instance group to which the resize request is scoped.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the managed instance group to which the resize request is scoped.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the managed instance group to which the resize request is scoped.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the managed instance group to which the resize request is scoped.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the managed instance group to which the resize request is scoped.
+     * Name should conform to RFC1035 or be a resource ID.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest + instanceGroupManagerResizeRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder> + instanceGroupManagerResizeRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagerResizeRequestResource field is set. + */ + public boolean hasInstanceGroupManagerResizeRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagerResizeRequestResource. + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest + getInstanceGroupManagerResizeRequestResource() { + if (instanceGroupManagerResizeRequestResourceBuilder_ == null) { + return instanceGroupManagerResizeRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.getDefaultInstance() + : instanceGroupManagerResizeRequestResource_; + } else { + return instanceGroupManagerResizeRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagerResizeRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest value) { + if (instanceGroupManagerResizeRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManagerResizeRequestResource_ = value; + } else { + instanceGroupManagerResizeRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstanceGroupManagerResizeRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder builderForValue) { + if (instanceGroupManagerResizeRequestResourceBuilder_ == null) { + instanceGroupManagerResizeRequestResource_ = builderForValue.build(); + } else { + instanceGroupManagerResizeRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstanceGroupManagerResizeRequestResource( + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest value) { + if (instanceGroupManagerResizeRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instanceGroupManagerResizeRequestResource_ != null + && instanceGroupManagerResizeRequestResource_ + != com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest + .getDefaultInstance()) { + getInstanceGroupManagerResizeRequestResourceBuilder().mergeFrom(value); + } else { + instanceGroupManagerResizeRequestResource_ = value; + } + } else { + instanceGroupManagerResizeRequestResourceBuilder_.mergeFrom(value); + } + if (instanceGroupManagerResizeRequestResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstanceGroupManagerResizeRequestResource() { + bitField0_ = (bitField0_ & ~0x00000002); + instanceGroupManagerResizeRequestResource_ = null; + if (instanceGroupManagerResizeRequestResourceBuilder_ != null) { + instanceGroupManagerResizeRequestResourceBuilder_.dispose(); + instanceGroupManagerResizeRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder + getInstanceGroupManagerResizeRequestResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInstanceGroupManagerResizeRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder + getInstanceGroupManagerResizeRequestResourceOrBuilder() { + if (instanceGroupManagerResizeRequestResourceBuilder_ != null) { + return instanceGroupManagerResizeRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return instanceGroupManagerResizeRequestResource_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.getDefaultInstance() + : instanceGroupManagerResizeRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder> + internalGetInstanceGroupManagerResizeRequestResourceFieldBuilder() { + if (instanceGroupManagerResizeRequestResourceBuilder_ == null) { + instanceGroupManagerResizeRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder>( + getInstanceGroupManagerResizeRequestResource(), getParentForChildren(), isClean()); + instanceGroupManagerResizeRequestResource_ = null; + } + return instanceGroupManagerResizeRequestResourceBuilder_; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + private static final com.google.cloud.compute.v1 + .InsertRegionInstanceGroupManagerResizeRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest(); + } + + public static com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + InsertRegionInstanceGroupManagerResizeRequestRequest> + PARSER = + new com.google.protobuf.AbstractParser< + InsertRegionInstanceGroupManagerResizeRequestRequest>() { + @java.lang.Override + public InsertRegionInstanceGroupManagerResizeRequestRequest 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.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java new file mode 100644 index 000000000000..f7d521da10cb --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder.java @@ -0,0 +1,240 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InsertRegionInstanceGroupManagerResizeRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the managed instance group to which the resize request is scoped.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + + /** + * + * + *
+   * Name of the managed instance group to which the resize request is scoped.
+   * Name should conform to RFC1035 or be a resource ID.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instanceGroupManagerResizeRequestResource field is set. + */ + boolean hasInstanceGroupManagerResizeRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManagerResizeRequestResource. + */ + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest + getInstanceGroupManagerResizeRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder + getInstanceGroupManagerResizeRequestResourceOrBuilder(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..6cc0a139ed32 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequest.java @@ -0,0 +1,1719 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.Insert. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class InsertRegionInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) + InsertRegionInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InsertRegionInstantSnapshotGroupRequest"); + } + + // Use InsertRegionInstantSnapshotGroupRequest.newBuilder() to construct. + private InsertRegionInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InsertRegionInstantSnapshotGroupRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + sourceConsistencyGroup_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int INSTANT_SNAPSHOT_GROUP_RESOURCE_FIELD_NUMBER = 145067339; + private com.google.cloud.compute.v1.InstantSnapshotGroup instantSnapshotGroupResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instantSnapshotGroupResource field is set. + */ + @java.lang.Override + public boolean hasInstantSnapshotGroupResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroupResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroup getInstantSnapshotGroupResource() { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder + getInstantSnapshotGroupResourceOrBuilder() { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SOURCE_CONSISTENCY_GROUP_FIELD_NUMBER = 531359348; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceConsistencyGroup_ = ""; + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + @java.lang.Override + public boolean hasSourceConsistencyGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + @java.lang.Override + public java.lang.String getSourceConsistencyGroup() { + java.lang.Object ref = sourceConsistencyGroup_; + 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(); + sourceConsistencyGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceConsistencyGroupBytes() { + java.lang.Object ref = sourceConsistencyGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceConsistencyGroup_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(145067339, getInstantSnapshotGroupResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 531359348, sourceConsistencyGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 145067339, getInstantSnapshotGroupResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 531359348, sourceConsistencyGroup_); + } + 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.compute.v1.InsertRegionInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) obj; + + if (hasInstantSnapshotGroupResource() != other.hasInstantSnapshotGroupResource()) return false; + if (hasInstantSnapshotGroupResource()) { + if (!getInstantSnapshotGroupResource().equals(other.getInstantSnapshotGroupResource())) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (hasSourceConsistencyGroup() != other.hasSourceConsistencyGroup()) return false; + if (hasSourceConsistencyGroup()) { + if (!getSourceConsistencyGroup().equals(other.getSourceConsistencyGroup())) 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 (hasInstantSnapshotGroupResource()) { + hash = (37 * hash) + INSTANT_SNAPSHOT_GROUP_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInstantSnapshotGroupResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + if (hasSourceConsistencyGroup()) { + hash = (37 * hash) + SOURCE_CONSISTENCY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceConsistencyGroup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest 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.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InsertRegionInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.Insert. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInstantSnapshotGroupResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instantSnapshotGroupResource_ = null; + if (instantSnapshotGroupResourceBuilder_ != null) { + instantSnapshotGroupResourceBuilder_.dispose(); + instantSnapshotGroupResourceBuilder_ = null; + } + project_ = ""; + region_ = ""; + requestId_ = ""; + sourceConsistencyGroup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instantSnapshotGroupResource_ = + instantSnapshotGroupResourceBuilder_ == null + ? instantSnapshotGroupResource_ + : instantSnapshotGroupResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceConsistencyGroup_ = sourceConsistencyGroup_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (other.hasInstantSnapshotGroupResource()) { + mergeInstantSnapshotGroupResource(other.getInstantSnapshotGroupResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasSourceConsistencyGroup()) { + sourceConsistencyGroup_ = other.sourceConsistencyGroup_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1160538714: + { + input.readMessage( + internalGetInstantSnapshotGroupResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 1160538714 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + case -44092510: + { + sourceConsistencyGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case -44092510 + 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.compute.v1.InstantSnapshotGroup instantSnapshotGroupResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder> + instantSnapshotGroupResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instantSnapshotGroupResource field is set. + */ + public boolean hasInstantSnapshotGroupResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroupResource. + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup getInstantSnapshotGroupResource() { + if (instantSnapshotGroupResourceBuilder_ == null) { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } else { + return instantSnapshotGroupResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstantSnapshotGroupResource( + com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (instantSnapshotGroupResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instantSnapshotGroupResource_ = value; + } else { + instantSnapshotGroupResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstantSnapshotGroupResource( + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder builderForValue) { + if (instantSnapshotGroupResourceBuilder_ == null) { + instantSnapshotGroupResource_ = builderForValue.build(); + } else { + instantSnapshotGroupResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstantSnapshotGroupResource( + com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (instantSnapshotGroupResourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && instantSnapshotGroupResource_ != null + && instantSnapshotGroupResource_ + != com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance()) { + getInstantSnapshotGroupResourceBuilder().mergeFrom(value); + } else { + instantSnapshotGroupResource_ = value; + } + } else { + instantSnapshotGroupResourceBuilder_.mergeFrom(value); + } + if (instantSnapshotGroupResource_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstantSnapshotGroupResource() { + bitField0_ = (bitField0_ & ~0x00000001); + instantSnapshotGroupResource_ = null; + if (instantSnapshotGroupResourceBuilder_ != null) { + instantSnapshotGroupResourceBuilder_.dispose(); + instantSnapshotGroupResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup.Builder + getInstantSnapshotGroupResourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetInstantSnapshotGroupResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder + getInstantSnapshotGroupResourceOrBuilder() { + if (instantSnapshotGroupResourceBuilder_ != null) { + return instantSnapshotGroupResourceBuilder_.getMessageOrBuilder(); + } else { + return instantSnapshotGroupResource_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance() + : instantSnapshotGroupResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder> + internalGetInstantSnapshotGroupResourceFieldBuilder() { + if (instantSnapshotGroupResourceBuilder_ == null) { + instantSnapshotGroupResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder>( + getInstantSnapshotGroupResource(), getParentForChildren(), isClean()); + instantSnapshotGroupResource_ = null; + } + return instantSnapshotGroupResourceBuilder_; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + private java.lang.Object sourceConsistencyGroup_ = ""; + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + public boolean hasSourceConsistencyGroup() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + public java.lang.String getSourceConsistencyGroup() { + java.lang.Object ref = sourceConsistencyGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceConsistencyGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + public com.google.protobuf.ByteString getSourceConsistencyGroupBytes() { + java.lang.Object ref = sourceConsistencyGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceConsistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @param value The sourceConsistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceConsistencyGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceConsistencyGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return This builder for chaining. + */ + public Builder clearSourceConsistencyGroup() { + sourceConsistencyGroup_ = getDefaultInstance().getSourceConsistencyGroup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * begin_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string source_consistency_group = 531359348; + * + * @param value The bytes for sourceConsistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceConsistencyGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceConsistencyGroup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertRegionInstantSnapshotGroupRequest 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.compute.v1.InsertRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..8f42ac63f2b5 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InsertRegionInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instantSnapshotGroupResource field is set. + */ + boolean hasInstantSnapshotGroupResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instantSnapshotGroupResource. + */ + com.google.cloud.compute.v1.InstantSnapshotGroup getInstantSnapshotGroupResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder + getInstantSnapshotGroupResourceOrBuilder(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + boolean hasSourceConsistencyGroup(); + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + java.lang.String getSourceConsistencyGroup(); + + /** + * + * + *
+   * begin_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + com.google.protobuf.ByteString getSourceConsistencyGroupBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequest.java new file mode 100644 index 000000000000..fae10daa7f62 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequest.java @@ -0,0 +1,1468 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.Insert. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class InsertRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InsertRegionSnapshotRequest) + InsertRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InsertRegionSnapshotRequest"); + } + + // Use InsertRegionSnapshotRequest.newBuilder() to construct. + private InsertRegionSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InsertRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionSnapshotRequest.class, + com.google.cloud.compute.v1.InsertRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SNAPSHOT_RESOURCE_FIELD_NUMBER = 481319977; + private com.google.cloud.compute.v1.Snapshot snapshotResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotResource field is set. + */ + @java.lang.Override + public boolean hasSnapshotResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Snapshot getSnapshotResource() { + return snapshotResource_ == null + ? com.google.cloud.compute.v1.Snapshot.getDefaultInstance() + : snapshotResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotOrBuilder getSnapshotResourceOrBuilder() { + return snapshotResource_ == null + ? com.google.cloud.compute.v1.Snapshot.getDefaultInstance() + : snapshotResource_; + } + + 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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(481319977, getSnapshotResource()); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 481319977, getSnapshotResource()); + } + 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.compute.v1.InsertRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InsertRegionSnapshotRequest other = + (com.google.cloud.compute.v1.InsertRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (hasSnapshotResource() != other.hasSnapshotResource()) return false; + if (hasSnapshotResource()) { + if (!getSnapshotResource().equals(other.getSnapshotResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + if (hasSnapshotResource()) { + hash = (37 * hash) + SNAPSHOT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest 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.compute.v1.InsertRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InsertRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.Insert. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InsertRegionSnapshotRequest) + com.google.cloud.compute.v1.InsertRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertRegionSnapshotRequest.class, + com.google.cloud.compute.v1.InsertRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InsertRegionSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + requestId_ = ""; + snapshotResource_ = null; + if (snapshotResourceBuilder_ != null) { + snapshotResourceBuilder_.dispose(); + snapshotResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InsertRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionSnapshotRequest build() { + com.google.cloud.compute.v1.InsertRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.InsertRegionSnapshotRequest result = + new com.google.cloud.compute.v1.InsertRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.InsertRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snapshotResource_ = + snapshotResourceBuilder_ == null ? snapshotResource_ : snapshotResourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InsertRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.InsertRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InsertRegionSnapshotRequest other) { + if (other == com.google.cloud.compute.v1.InsertRegionSnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSnapshotResource()) { + mergeSnapshotResource(other.getSnapshotResource()); + } + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -444407478: + { + input.readMessage( + internalGetSnapshotResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -444407478 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Snapshot snapshotResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Snapshot, + com.google.cloud.compute.v1.Snapshot.Builder, + com.google.cloud.compute.v1.SnapshotOrBuilder> + snapshotResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotResource field is set. + */ + public boolean hasSnapshotResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotResource. + */ + public com.google.cloud.compute.v1.Snapshot getSnapshotResource() { + if (snapshotResourceBuilder_ == null) { + return snapshotResource_ == null + ? com.google.cloud.compute.v1.Snapshot.getDefaultInstance() + : snapshotResource_; + } else { + return snapshotResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSnapshotResource(com.google.cloud.compute.v1.Snapshot value) { + if (snapshotResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotResource_ = value; + } else { + snapshotResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSnapshotResource( + com.google.cloud.compute.v1.Snapshot.Builder builderForValue) { + if (snapshotResourceBuilder_ == null) { + snapshotResource_ = builderForValue.build(); + } else { + snapshotResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSnapshotResource(com.google.cloud.compute.v1.Snapshot value) { + if (snapshotResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && snapshotResource_ != null + && snapshotResource_ != com.google.cloud.compute.v1.Snapshot.getDefaultInstance()) { + getSnapshotResourceBuilder().mergeFrom(value); + } else { + snapshotResource_ = value; + } + } else { + snapshotResourceBuilder_.mergeFrom(value); + } + if (snapshotResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSnapshotResource() { + bitField0_ = (bitField0_ & ~0x00000008); + snapshotResource_ = null; + if (snapshotResourceBuilder_ != null) { + snapshotResourceBuilder_.dispose(); + snapshotResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.Snapshot.Builder getSnapshotResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSnapshotResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.SnapshotOrBuilder getSnapshotResourceOrBuilder() { + if (snapshotResourceBuilder_ != null) { + return snapshotResourceBuilder_.getMessageOrBuilder(); + } else { + return snapshotResource_ == null + ? com.google.cloud.compute.v1.Snapshot.getDefaultInstance() + : snapshotResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Snapshot, + com.google.cloud.compute.v1.Snapshot.Builder, + com.google.cloud.compute.v1.SnapshotOrBuilder> + internalGetSnapshotResourceFieldBuilder() { + if (snapshotResourceBuilder_ == null) { + snapshotResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Snapshot, + com.google.cloud.compute.v1.Snapshot.Builder, + com.google.cloud.compute.v1.SnapshotOrBuilder>( + getSnapshotResource(), getParentForChildren(), isClean()); + snapshotResource_ = null; + } + return snapshotResourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InsertRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InsertRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.InsertRegionSnapshotRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InsertRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.InsertRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertRegionSnapshotRequest 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.compute.v1.InsertRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..7fffd8e3cb37 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InsertRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotResource field is set. + */ + boolean hasSnapshotResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotResource. + */ + com.google.cloud.compute.v1.Snapshot getSnapshotResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.Snapshot snapshot_resource = 481319977 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.SnapshotOrBuilder getSnapshotResourceOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequest.java new file mode 100644 index 000000000000..aebfd0ca5229 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequest.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for ZoneVmExtensionPolicies.Insert. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class InsertZoneVmExtensionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) + InsertZoneVmExtensionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InsertZoneVmExtensionPolicyRequest"); + } + + // Use InsertZoneVmExtensionPolicyRequest.newBuilder() to construct. + private InsertZoneVmExtensionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InsertZoneVmExtensionPolicyRequest() { + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int VM_EXTENSION_POLICY_RESOURCE_FIELD_NUMBER = 515669235; + private com.google.cloud.compute.v1.VmExtensionPolicy vmExtensionPolicyResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmExtensionPolicyResource field is set. + */ + @java.lang.Override + public boolean hasVmExtensionPolicyResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicyResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicy getVmExtensionPolicyResource() { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder + getVmExtensionPolicyResourceOrBuilder() { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(515669235, getVmExtensionPolicyResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 515669235, getVmExtensionPolicyResource()); + } + 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.compute.v1.InsertZoneVmExtensionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest other = + (com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (hasVmExtensionPolicyResource() != other.hasVmExtensionPolicyResource()) return false; + if (hasVmExtensionPolicyResource()) { + if (!getVmExtensionPolicyResource().equals(other.getVmExtensionPolicyResource())) + return false; + } + if (!getZone().equals(other.getZone())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + if (hasVmExtensionPolicyResource()) { + hash = (37 * hash) + VM_EXTENSION_POLICY_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getVmExtensionPolicyResource().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest 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.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InsertZoneVmExtensionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for ZoneVmExtensionPolicies.Insert. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetVmExtensionPolicyResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + requestId_ = ""; + vmExtensionPolicyResource_ = null; + if (vmExtensionPolicyResourceBuilder_ != null) { + vmExtensionPolicyResourceBuilder_.dispose(); + vmExtensionPolicyResourceBuilder_ = null; + } + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InsertZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest build() { + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest buildPartial() { + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest result = + new com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vmExtensionPolicyResource_ = + vmExtensionPolicyResourceBuilder_ == null + ? vmExtensionPolicyResource_ + : vmExtensionPolicyResourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) { + return mergeFrom((com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest other) { + if (other + == com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasVmExtensionPolicyResource()) { + mergeVmExtensionPolicyResource(other.getVmExtensionPolicyResource()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 296879706 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -169613414: + { + input.readMessage( + internalGetVmExtensionPolicyResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case -169613414 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.VmExtensionPolicy vmExtensionPolicyResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder> + vmExtensionPolicyResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmExtensionPolicyResource field is set. + */ + public boolean hasVmExtensionPolicyResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicyResource. + */ + public com.google.cloud.compute.v1.VmExtensionPolicy getVmExtensionPolicyResource() { + if (vmExtensionPolicyResourceBuilder_ == null) { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } else { + return vmExtensionPolicyResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmExtensionPolicyResource( + com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (vmExtensionPolicyResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmExtensionPolicyResource_ = value; + } else { + vmExtensionPolicyResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmExtensionPolicyResource( + com.google.cloud.compute.v1.VmExtensionPolicy.Builder builderForValue) { + if (vmExtensionPolicyResourceBuilder_ == null) { + vmExtensionPolicyResource_ = builderForValue.build(); + } else { + vmExtensionPolicyResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVmExtensionPolicyResource( + com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (vmExtensionPolicyResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && vmExtensionPolicyResource_ != null + && vmExtensionPolicyResource_ + != com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance()) { + getVmExtensionPolicyResourceBuilder().mergeFrom(value); + } else { + vmExtensionPolicyResource_ = value; + } + } else { + vmExtensionPolicyResourceBuilder_.mergeFrom(value); + } + if (vmExtensionPolicyResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVmExtensionPolicyResource() { + bitField0_ = (bitField0_ & ~0x00000004); + vmExtensionPolicyResource_ = null; + if (vmExtensionPolicyResourceBuilder_ != null) { + vmExtensionPolicyResourceBuilder_.dispose(); + vmExtensionPolicyResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicy.Builder + getVmExtensionPolicyResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetVmExtensionPolicyResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder + getVmExtensionPolicyResourceOrBuilder() { + if (vmExtensionPolicyResourceBuilder_ != null) { + return vmExtensionPolicyResourceBuilder_.getMessageOrBuilder(); + } else { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder> + internalGetVmExtensionPolicyResourceFieldBuilder() { + if (vmExtensionPolicyResourceBuilder_ == null) { + vmExtensionPolicyResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder>( + getVmExtensionPolicyResource(), getParentForChildren(), isClean()); + vmExtensionPolicyResource_ = null; + } + return vmExtensionPolicyResourceBuilder_; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) + private static final com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest(); + } + + public static com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InsertZoneVmExtensionPolicyRequest 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.compute.v1.InsertZoneVmExtensionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..6816762c2710 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InsertZoneVmExtensionPolicyRequestOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InsertZoneVmExtensionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmExtensionPolicyResource field is set. + */ + boolean hasVmExtensionPolicyResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicyResource. + */ + com.google.cloud.compute.v1.VmExtensionPolicy getVmExtensionPolicyResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder getVmExtensionPolicyResourceOrBuilder(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java index 7ee66c1a3428..a9c9905ac24d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java @@ -546,7 +546,7 @@ public com.google.protobuf.ByteString getBaseInstanceNameBytes() { * * *
-   * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+   * Output only. The creation timestamp for this managed instance group inRFC3339
    * text format.
    * 
* @@ -563,7 +563,7 @@ public boolean hasCreationTimestamp() { * * *
-   * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+   * Output only. The creation timestamp for this managed instance group inRFC3339
    * text format.
    * 
* @@ -588,7 +588,7 @@ public java.lang.String getCreationTimestamp() { * * *
-   * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+   * Output only. The creation timestamp for this managed instance group inRFC3339
    * text format.
    * 
* @@ -616,7 +616,7 @@ public com.google.protobuf.ByteString getCreationTimestampBytes() { * * *
-   * Output only. [Output Only] The list of instance actions and the number of instances
+   * Output only. The list of instance actions and the number of instances
    * in this managed instance group that are scheduled for each of those
    * actions.
    * 
@@ -636,7 +636,7 @@ public boolean hasCurrentActions() { * * *
-   * Output only. [Output Only] The list of instance actions and the number of instances
+   * Output only. The list of instance actions and the number of instances
    * in this managed instance group that are scheduled for each of those
    * actions.
    * 
@@ -658,7 +658,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerActionsSummary getCurrent * * *
-   * Output only. [Output Only] The list of instance actions and the number of instances
+   * Output only. The list of instance actions and the number of instances
    * in this managed instance group that are scheduled for each of those
    * actions.
    * 
@@ -897,7 +897,7 @@ public com.google.protobuf.ByteString getFingerprintBytes() { * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
+   * Output only. A unique identifier for this resource type. The server
    * generates this identifier.
    * 
* @@ -914,7 +914,7 @@ public boolean hasId() { * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
+   * Output only. A unique identifier for this resource type. The server
    * generates this identifier.
    * 
* @@ -1009,7 +1009,7 @@ public boolean hasInstanceFlexibilityPolicy() { * * *
-   * Output only. [Output Only] The URL of the Instance Group resource.
+   * Output only. The URL of the Instance Group resource.
    * 
* * optional string instance_group = 81095253; @@ -1025,7 +1025,7 @@ public boolean hasInstanceGroup() { * * *
-   * Output only. [Output Only] The URL of the Instance Group resource.
+   * Output only. The URL of the Instance Group resource.
    * 
* * optional string instance_group = 81095253; @@ -1049,7 +1049,7 @@ public java.lang.String getInstanceGroup() { * * *
-   * Output only. [Output Only] The URL of the Instance Group resource.
+   * Output only. The URL of the Instance Group resource.
    * 
* * optional string instance_group = 81095253; @@ -1220,7 +1220,7 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() { * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
    * 
* * optional string kind = 3292052; @@ -1236,7 +1236,7 @@ public boolean hasKind() { * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
    * 
* * optional string kind = 3292052; @@ -1260,7 +1260,7 @@ public java.lang.String getKind() { * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
    * 
* * optional string kind = 3292052; @@ -1647,7 +1647,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerResourcePolicies getResou * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzi = 480964257; @@ -1663,7 +1663,7 @@ public boolean hasSatisfiesPzi() { * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzi = 480964257; @@ -1682,7 +1682,7 @@ public boolean getSatisfiesPzi() { * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzs = 480964267; @@ -1698,7 +1698,7 @@ public boolean hasSatisfiesPzs() { * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzs = 480964267; @@ -1719,7 +1719,7 @@ public boolean getSatisfiesPzs() { * * *
-   * Output only. [Output Only] The URL for this managed instance group. The server defines
+   * Output only. The URL for this managed instance group. The server defines
    * this URL.
    * 
* @@ -1736,7 +1736,7 @@ public boolean hasSelfLink() { * * *
-   * Output only. [Output Only] The URL for this managed instance group. The server defines
+   * Output only. The URL for this managed instance group. The server defines
    * this URL.
    * 
* @@ -1761,7 +1761,7 @@ public java.lang.String getSelfLink() { * * *
-   * Output only. [Output Only] The URL for this managed instance group. The server defines
+   * Output only. The URL for this managed instance group. The server defines
    * this URL.
    * 
* @@ -1902,7 +1902,7 @@ public com.google.cloud.compute.v1.StatefulPolicyOrBuilder getStatefulPolicyOrBu * * *
-   * Output only. [Output Only] The status of this managed instance group.
+   * Output only. The status of this managed instance group.
    * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -1918,7 +1918,7 @@ public boolean hasStatus() { * * *
-   * Output only. [Output Only] The status of this managed instance group.
+   * Output only. The status of this managed instance group.
    * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -1936,7 +1936,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatus getStatus() { * * *
-   * Output only. [Output Only] The status of this managed instance group.
+   * Output only. The status of this managed instance group.
    * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -2413,7 +2413,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerVersionOrBuilder getVersi * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of azone
    * where the managed instance group is located (for zonal resources).
    * 
* @@ -2430,7 +2430,7 @@ public boolean hasZone() { * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of azone
    * where the managed instance group is located (for zonal resources).
    * 
* @@ -2455,7 +2455,7 @@ public java.lang.String getZone() { * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of azone
    * where the managed instance group is located (for zonal resources).
    * 
* @@ -4861,7 +4861,7 @@ public Builder setBaseInstanceNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+     * Output only. The creation timestamp for this managed instance group inRFC3339
      * text format.
      * 
* @@ -4877,7 +4877,7 @@ public boolean hasCreationTimestamp() { * * *
-     * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+     * Output only. The creation timestamp for this managed instance group inRFC3339
      * text format.
      * 
* @@ -4901,7 +4901,7 @@ public java.lang.String getCreationTimestamp() { * * *
-     * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+     * Output only. The creation timestamp for this managed instance group inRFC3339
      * text format.
      * 
* @@ -4925,7 +4925,7 @@ public com.google.protobuf.ByteString getCreationTimestampBytes() { * * *
-     * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+     * Output only. The creation timestamp for this managed instance group inRFC3339
      * text format.
      * 
* @@ -4948,7 +4948,7 @@ public Builder setCreationTimestamp(java.lang.String value) { * * *
-     * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+     * Output only. The creation timestamp for this managed instance group inRFC3339
      * text format.
      * 
* @@ -4967,7 +4967,7 @@ public Builder clearCreationTimestamp() { * * *
-     * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+     * Output only. The creation timestamp for this managed instance group inRFC3339
      * text format.
      * 
* @@ -4998,7 +4998,7 @@ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5017,7 +5017,7 @@ public boolean hasCurrentActions() { * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5042,7 +5042,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerActionsSummary getCurrent * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5070,7 +5070,7 @@ public Builder setCurrentActions( * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5095,7 +5095,7 @@ public Builder setCurrentActions( * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5130,7 +5130,7 @@ public Builder mergeCurrentActions( * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5154,7 +5154,7 @@ public Builder clearCurrentActions() { * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5174,7 +5174,7 @@ public Builder clearCurrentActions() { * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5198,7 +5198,7 @@ public Builder clearCurrentActions() { * * *
-     * Output only. [Output Only] The list of instance actions and the number of instances
+     * Output only. The list of instance actions and the number of instances
      * in this managed instance group that are scheduled for each of those
      * actions.
      * 
@@ -5733,7 +5733,7 @@ public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
+     * Output only. A unique identifier for this resource type. The server
      * generates this identifier.
      * 
* @@ -5750,7 +5750,7 @@ public boolean hasId() { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
+     * Output only. A unique identifier for this resource type. The server
      * generates this identifier.
      * 
* @@ -5767,7 +5767,7 @@ public long getId() { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
+     * Output only. A unique identifier for this resource type. The server
      * generates this identifier.
      * 
* @@ -5788,7 +5788,7 @@ public Builder setId(long value) { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
+     * Output only. A unique identifier for this resource type. The server
      * generates this identifier.
      * 
* @@ -6060,7 +6060,7 @@ public Builder clearInstanceFlexibilityPolicy() { * * *
-     * Output only. [Output Only] The URL of the Instance Group resource.
+     * Output only. The URL of the Instance Group resource.
      * 
* * optional string instance_group = 81095253; @@ -6075,7 +6075,7 @@ public boolean hasInstanceGroup() { * * *
-     * Output only. [Output Only] The URL of the Instance Group resource.
+     * Output only. The URL of the Instance Group resource.
      * 
* * optional string instance_group = 81095253; @@ -6098,7 +6098,7 @@ public java.lang.String getInstanceGroup() { * * *
-     * Output only. [Output Only] The URL of the Instance Group resource.
+     * Output only. The URL of the Instance Group resource.
      * 
* * optional string instance_group = 81095253; @@ -6121,7 +6121,7 @@ public com.google.protobuf.ByteString getInstanceGroupBytes() { * * *
-     * Output only. [Output Only] The URL of the Instance Group resource.
+     * Output only. The URL of the Instance Group resource.
      * 
* * optional string instance_group = 81095253; @@ -6143,7 +6143,7 @@ public Builder setInstanceGroup(java.lang.String value) { * * *
-     * Output only. [Output Only] The URL of the Instance Group resource.
+     * Output only. The URL of the Instance Group resource.
      * 
* * optional string instance_group = 81095253; @@ -6161,7 +6161,7 @@ public Builder clearInstanceGroup() { * * *
-     * Output only. [Output Only] The URL of the Instance Group resource.
+     * Output only. The URL of the Instance Group resource.
      * 
* * optional string instance_group = 81095253; @@ -6554,7 +6554,7 @@ public Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
      * 
* * optional string kind = 3292052; @@ -6569,7 +6569,7 @@ public boolean hasKind() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
      * 
* * optional string kind = 3292052; @@ -6592,7 +6592,7 @@ public java.lang.String getKind() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
      * 
* * optional string kind = 3292052; @@ -6615,7 +6615,7 @@ public com.google.protobuf.ByteString getKindBytes() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
      * 
* * optional string kind = 3292052; @@ -6637,7 +6637,7 @@ public Builder setKind(java.lang.String value) { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
      * 
* * optional string kind = 3292052; @@ -6655,7 +6655,7 @@ public Builder clearKind() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
      * 
* * optional string kind = 3292052; @@ -7685,7 +7685,7 @@ public Builder clearResourcePolicies() { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzi = 480964257; @@ -7701,7 +7701,7 @@ public boolean hasSatisfiesPzi() { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzi = 480964257; @@ -7717,7 +7717,7 @@ public boolean getSatisfiesPzi() { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzi = 480964257; @@ -7737,7 +7737,7 @@ public Builder setSatisfiesPzi(boolean value) { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzi = 480964257; @@ -7757,7 +7757,7 @@ public Builder clearSatisfiesPzi() { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzs = 480964267; @@ -7773,7 +7773,7 @@ public boolean hasSatisfiesPzs() { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzs = 480964267; @@ -7789,7 +7789,7 @@ public boolean getSatisfiesPzs() { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzs = 480964267; @@ -7809,7 +7809,7 @@ public Builder setSatisfiesPzs(boolean value) { * * *
-     * Output only. [Output Only] Reserved for future use.
+     * Output only. Reserved for future use.
      * 
* * optional bool satisfies_pzs = 480964267; @@ -7829,7 +7829,7 @@ public Builder clearSatisfiesPzs() { * * *
-     * Output only. [Output Only] The URL for this managed instance group. The server defines
+     * Output only. The URL for this managed instance group. The server defines
      * this URL.
      * 
* @@ -7845,7 +7845,7 @@ public boolean hasSelfLink() { * * *
-     * Output only. [Output Only] The URL for this managed instance group. The server defines
+     * Output only. The URL for this managed instance group. The server defines
      * this URL.
      * 
* @@ -7869,7 +7869,7 @@ public java.lang.String getSelfLink() { * * *
-     * Output only. [Output Only] The URL for this managed instance group. The server defines
+     * Output only. The URL for this managed instance group. The server defines
      * this URL.
      * 
* @@ -7893,7 +7893,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
-     * Output only. [Output Only] The URL for this managed instance group. The server defines
+     * Output only. The URL for this managed instance group. The server defines
      * this URL.
      * 
* @@ -7916,7 +7916,7 @@ public Builder setSelfLink(java.lang.String value) { * * *
-     * Output only. [Output Only] The URL for this managed instance group. The server defines
+     * Output only. The URL for this managed instance group. The server defines
      * this URL.
      * 
* @@ -7935,7 +7935,7 @@ public Builder clearSelfLink() { * * *
-     * Output only. [Output Only] The URL for this managed instance group. The server defines
+     * Output only. The URL for this managed instance group. The server defines
      * this URL.
      * 
* @@ -8380,7 +8380,7 @@ public com.google.cloud.compute.v1.StatefulPolicyOrBuilder getStatefulPolicyOrBu * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8395,7 +8395,7 @@ public boolean hasStatus() { * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8416,7 +8416,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatus getStatus() { * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8439,7 +8439,7 @@ public Builder setStatus(com.google.cloud.compute.v1.InstanceGroupManagerStatus * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8460,7 +8460,7 @@ public Builder setStatus( * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8489,7 +8489,7 @@ public Builder mergeStatus(com.google.cloud.compute.v1.InstanceGroupManagerStatu * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8509,7 +8509,7 @@ public Builder clearStatus() { * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8524,7 +8524,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatus.Builder getStatusB * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -8543,7 +8543,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusOrBuilder getStatus * * *
-     * Output only. [Output Only] The status of this managed instance group.
+     * Output only. The status of this managed instance group.
      * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -10036,7 +10036,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerVersion.Builder addVersio * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of azone
      * where the managed instance group is located (for zonal resources).
      * 
* @@ -10052,7 +10052,7 @@ public boolean hasZone() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of azone
      * where the managed instance group is located (for zonal resources).
      * 
* @@ -10076,7 +10076,7 @@ public java.lang.String getZone() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of azone
      * where the managed instance group is located (for zonal resources).
      * 
* @@ -10100,7 +10100,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of azone
      * where the managed instance group is located (for zonal resources).
      * 
* @@ -10123,7 +10123,7 @@ public Builder setZone(java.lang.String value) { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of azone
      * where the managed instance group is located (for zonal resources).
      * 
* @@ -10142,7 +10142,7 @@ public Builder clearZone() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of azone
      * where the managed instance group is located (for zonal resources).
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java index 70b3370a3fc6..70ab003bbba3 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] The total number of instances in the managed instance group
+   * Output only. The total number of instances in the managed instance group
    * that are scheduled to be abandoned. Abandoning an instance removes it
    * from the managed instance group without deleting it.
    * 
@@ -94,7 +94,7 @@ public boolean hasAbandoning() { * * *
-   * Output only. [Output Only] The total number of instances in the managed instance group
+   * Output only. The total number of instances in the managed instance group
    * that are scheduled to be abandoned. Abandoning an instance removes it
    * from the managed instance group without deleting it.
    * 
@@ -115,7 +115,7 @@ public int getAbandoning() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be created or are currently being created. If the group
    * fails to create any of these instances, it tries again until it creates
    * the instance successfully.
@@ -137,7 +137,7 @@ public boolean hasCreating() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be created or are currently being created. If the group
    * fails to create any of these instances, it tries again until it creates
    * the instance successfully.
@@ -162,7 +162,7 @@ public int getCreating() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances that the managed instance group
+   * Output only. The number of instances that the managed instance group
    * will attempt to create. The group attempts to create each instance
    * only once. If the group fails to create any of these instances, it
    * decreases the group's targetSize value accordingly.
@@ -181,7 +181,7 @@ public boolean hasCreatingWithoutRetries() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances that the managed instance group
+   * Output only. The number of instances that the managed instance group
    * will attempt to create. The group attempts to create each instance
    * only once. If the group fails to create any of these instances, it
    * decreases the group's targetSize value accordingly.
@@ -203,7 +203,7 @@ public int getCreatingWithoutRetries() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be deleted or are currently being deleted.
    * 
* @@ -220,7 +220,7 @@ public boolean hasDeleting() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be deleted or are currently being deleted.
    * 
* @@ -240,7 +240,7 @@ public int getDeleting() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are running and have no scheduled actions.
    * 
* @@ -257,7 +257,7 @@ public boolean hasNone() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are running and have no scheduled actions.
    * 
* @@ -277,7 +277,7 @@ public int getNone() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be recreated or are currently being being recreated.
    * Recreating an instance deletes the existing root persistent disk
    * and creates a new disk from the image that is defined in the
@@ -297,7 +297,7 @@ public boolean hasRecreating() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be recreated or are currently being being recreated.
    * Recreating an instance deletes the existing root persistent disk
    * and creates a new disk from the image that is defined in the
@@ -320,7 +320,7 @@ public int getRecreating() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being reconfigured with properties that do not require a restart
    * or a recreate action. For example, setting or removing target
    * pools for the instance.
@@ -339,7 +339,7 @@ public boolean hasRefreshing() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being reconfigured with properties that do not require a restart
    * or a recreate action. For example, setting or removing target
    * pools for the instance.
@@ -361,7 +361,7 @@ public int getRefreshing() {
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be restarted or are currently being restarted.
    * 
* @@ -378,7 +378,7 @@ public boolean hasRestarting() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be restarted or are currently being restarted.
    * 
* @@ -398,7 +398,7 @@ public int getRestarting() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be resumed or are currently being resumed.
    * 
* @@ -415,7 +415,7 @@ public boolean hasResuming() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be resumed or are currently being resumed.
    * 
* @@ -435,7 +435,7 @@ public int getResuming() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be started or are currently being started.
    * 
* @@ -452,7 +452,7 @@ public boolean hasStarting() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be started or are currently being started.
    * 
* @@ -472,7 +472,7 @@ public int getStarting() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be stopped or are currently being stopped.
    * 
* @@ -489,7 +489,7 @@ public boolean hasStopping() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be stopped or are currently being stopped.
    * 
* @@ -509,7 +509,7 @@ public int getStopping() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be suspended or are currently being suspended.
    * 
* @@ -526,7 +526,7 @@ public boolean hasSuspending() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be suspended or are currently being suspended.
    * 
* @@ -546,7 +546,7 @@ public int getSuspending() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being verified. See the managedInstances[].currentAction
    * property in the listManagedInstances method documentation.
    * 
@@ -564,7 +564,7 @@ public boolean hasVerifying() { * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being verified. See the managedInstances[].currentAction
    * property in the listManagedInstances method documentation.
    * 
@@ -1241,7 +1241,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] The total number of instances in the managed instance group
+     * Output only. The total number of instances in the managed instance group
      * that are scheduled to be abandoned. Abandoning an instance removes it
      * from the managed instance group without deleting it.
      * 
@@ -1259,7 +1259,7 @@ public boolean hasAbandoning() { * * *
-     * Output only. [Output Only] The total number of instances in the managed instance group
+     * Output only. The total number of instances in the managed instance group
      * that are scheduled to be abandoned. Abandoning an instance removes it
      * from the managed instance group without deleting it.
      * 
@@ -1277,7 +1277,7 @@ public int getAbandoning() { * * *
-     * Output only. [Output Only] The total number of instances in the managed instance group
+     * Output only. The total number of instances in the managed instance group
      * that are scheduled to be abandoned. Abandoning an instance removes it
      * from the managed instance group without deleting it.
      * 
@@ -1299,7 +1299,7 @@ public Builder setAbandoning(int value) { * * *
-     * Output only. [Output Only] The total number of instances in the managed instance group
+     * Output only. The total number of instances in the managed instance group
      * that are scheduled to be abandoned. Abandoning an instance removes it
      * from the managed instance group without deleting it.
      * 
@@ -1321,7 +1321,7 @@ public Builder clearAbandoning() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be created or are currently being created. If the group
      * fails to create any of these instances, it tries again until it creates
      * the instance successfully.
@@ -1343,7 +1343,7 @@ public boolean hasCreating() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be created or are currently being created. If the group
      * fails to create any of these instances, it tries again until it creates
      * the instance successfully.
@@ -1365,7 +1365,7 @@ public int getCreating() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be created or are currently being created. If the group
      * fails to create any of these instances, it tries again until it creates
      * the instance successfully.
@@ -1391,7 +1391,7 @@ public Builder setCreating(int value) {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be created or are currently being created. If the group
      * fails to create any of these instances, it tries again until it creates
      * the instance successfully.
@@ -1417,7 +1417,7 @@ public Builder clearCreating() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances that the managed instance group
+     * Output only. The number of instances that the managed instance group
      * will attempt to create. The group attempts to create each instance
      * only once. If the group fails to create any of these instances, it
      * decreases the group's targetSize value accordingly.
@@ -1436,7 +1436,7 @@ public boolean hasCreatingWithoutRetries() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances that the managed instance group
+     * Output only. The number of instances that the managed instance group
      * will attempt to create. The group attempts to create each instance
      * only once. If the group fails to create any of these instances, it
      * decreases the group's targetSize value accordingly.
@@ -1455,7 +1455,7 @@ public int getCreatingWithoutRetries() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances that the managed instance group
+     * Output only. The number of instances that the managed instance group
      * will attempt to create. The group attempts to create each instance
      * only once. If the group fails to create any of these instances, it
      * decreases the group's targetSize value accordingly.
@@ -1478,7 +1478,7 @@ public Builder setCreatingWithoutRetries(int value) {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances that the managed instance group
+     * Output only. The number of instances that the managed instance group
      * will attempt to create. The group attempts to create each instance
      * only once. If the group fails to create any of these instances, it
      * decreases the group's targetSize value accordingly.
@@ -1501,7 +1501,7 @@ public Builder clearCreatingWithoutRetries() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be deleted or are currently being deleted.
      * 
* @@ -1518,7 +1518,7 @@ public boolean hasDeleting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be deleted or are currently being deleted.
      * 
* @@ -1535,7 +1535,7 @@ public int getDeleting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be deleted or are currently being deleted.
      * 
* @@ -1556,7 +1556,7 @@ public Builder setDeleting(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be deleted or are currently being deleted.
      * 
* @@ -1577,7 +1577,7 @@ public Builder clearDeleting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are running and have no scheduled actions.
      * 
* @@ -1594,7 +1594,7 @@ public boolean hasNone() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are running and have no scheduled actions.
      * 
* @@ -1611,7 +1611,7 @@ public int getNone() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are running and have no scheduled actions.
      * 
* @@ -1632,7 +1632,7 @@ public Builder setNone(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are running and have no scheduled actions.
      * 
* @@ -1653,7 +1653,7 @@ public Builder clearNone() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be recreated or are currently being being recreated.
      * Recreating an instance deletes the existing root persistent disk
      * and creates a new disk from the image that is defined in the
@@ -1673,7 +1673,7 @@ public boolean hasRecreating() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be recreated or are currently being being recreated.
      * Recreating an instance deletes the existing root persistent disk
      * and creates a new disk from the image that is defined in the
@@ -1693,7 +1693,7 @@ public int getRecreating() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be recreated or are currently being being recreated.
      * Recreating an instance deletes the existing root persistent disk
      * and creates a new disk from the image that is defined in the
@@ -1717,7 +1717,7 @@ public Builder setRecreating(int value) {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be recreated or are currently being being recreated.
      * Recreating an instance deletes the existing root persistent disk
      * and creates a new disk from the image that is defined in the
@@ -1741,7 +1741,7 @@ public Builder clearRecreating() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being reconfigured with properties that do not require a restart
      * or a recreate action. For example, setting or removing target
      * pools for the instance.
@@ -1760,7 +1760,7 @@ public boolean hasRefreshing() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being reconfigured with properties that do not require a restart
      * or a recreate action. For example, setting or removing target
      * pools for the instance.
@@ -1779,7 +1779,7 @@ public int getRefreshing() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being reconfigured with properties that do not require a restart
      * or a recreate action. For example, setting or removing target
      * pools for the instance.
@@ -1802,7 +1802,7 @@ public Builder setRefreshing(int value) {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being reconfigured with properties that do not require a restart
      * or a recreate action. For example, setting or removing target
      * pools for the instance.
@@ -1825,7 +1825,7 @@ public Builder clearRefreshing() {
      *
      *
      * 
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be restarted or are currently being restarted.
      * 
* @@ -1842,7 +1842,7 @@ public boolean hasRestarting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be restarted or are currently being restarted.
      * 
* @@ -1859,7 +1859,7 @@ public int getRestarting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be restarted or are currently being restarted.
      * 
* @@ -1880,7 +1880,7 @@ public Builder setRestarting(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be restarted or are currently being restarted.
      * 
* @@ -1901,7 +1901,7 @@ public Builder clearRestarting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be resumed or are currently being resumed.
      * 
* @@ -1918,7 +1918,7 @@ public boolean hasResuming() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be resumed or are currently being resumed.
      * 
* @@ -1935,7 +1935,7 @@ public int getResuming() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be resumed or are currently being resumed.
      * 
* @@ -1956,7 +1956,7 @@ public Builder setResuming(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be resumed or are currently being resumed.
      * 
* @@ -1977,7 +1977,7 @@ public Builder clearResuming() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be started or are currently being started.
      * 
* @@ -1994,7 +1994,7 @@ public boolean hasStarting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be started or are currently being started.
      * 
* @@ -2011,7 +2011,7 @@ public int getStarting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be started or are currently being started.
      * 
* @@ -2032,7 +2032,7 @@ public Builder setStarting(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be started or are currently being started.
      * 
* @@ -2053,7 +2053,7 @@ public Builder clearStarting() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be stopped or are currently being stopped.
      * 
* @@ -2070,7 +2070,7 @@ public boolean hasStopping() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be stopped or are currently being stopped.
      * 
* @@ -2087,7 +2087,7 @@ public int getStopping() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be stopped or are currently being stopped.
      * 
* @@ -2108,7 +2108,7 @@ public Builder setStopping(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be stopped or are currently being stopped.
      * 
* @@ -2129,7 +2129,7 @@ public Builder clearStopping() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be suspended or are currently being suspended.
      * 
* @@ -2146,7 +2146,7 @@ public boolean hasSuspending() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be suspended or are currently being suspended.
      * 
* @@ -2163,7 +2163,7 @@ public int getSuspending() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be suspended or are currently being suspended.
      * 
* @@ -2184,7 +2184,7 @@ public Builder setSuspending(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are scheduled to be suspended or are currently being suspended.
      * 
* @@ -2205,7 +2205,7 @@ public Builder clearSuspending() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being verified. See the managedInstances[].currentAction
      * property in the listManagedInstances method documentation.
      * 
@@ -2223,7 +2223,7 @@ public boolean hasVerifying() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being verified. See the managedInstances[].currentAction
      * property in the listManagedInstances method documentation.
      * 
@@ -2241,7 +2241,7 @@ public int getVerifying() { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being verified. See the managedInstances[].currentAction
      * property in the listManagedInstances method documentation.
      * 
@@ -2263,7 +2263,7 @@ public Builder setVerifying(int value) { * * *
-     * Output only. [Output Only] The number of instances in the managed instance group that
+     * Output only. The number of instances in the managed instance group that
      * are being verified. See the managedInstances[].currentAction
      * property in the listManagedInstances method documentation.
      * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummaryOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummaryOrBuilder.java index c7069ae9336d..6e7464c40395 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummaryOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummaryOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The total number of instances in the managed instance group
+   * Output only. The total number of instances in the managed instance group
    * that are scheduled to be abandoned. Abandoning an instance removes it
    * from the managed instance group without deleting it.
    * 
@@ -45,7 +45,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The total number of instances in the managed instance group
+   * Output only. The total number of instances in the managed instance group
    * that are scheduled to be abandoned. Abandoning an instance removes it
    * from the managed instance group without deleting it.
    * 
@@ -60,7 +60,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be created or are currently being created. If the group
    * fails to create any of these instances, it tries again until it creates
    * the instance successfully.
@@ -79,7 +79,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be created or are currently being created. If the group
    * fails to create any of these instances, it tries again until it creates
    * the instance successfully.
@@ -98,7 +98,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances that the managed instance group
+   * Output only. The number of instances that the managed instance group
    * will attempt to create. The group attempts to create each instance
    * only once. If the group fails to create any of these instances, it
    * decreases the group's targetSize value accordingly.
@@ -114,7 +114,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances that the managed instance group
+   * Output only. The number of instances that the managed instance group
    * will attempt to create. The group attempts to create each instance
    * only once. If the group fails to create any of these instances, it
    * decreases the group's targetSize value accordingly.
@@ -130,7 +130,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be deleted or are currently being deleted.
    * 
* @@ -144,7 +144,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be deleted or are currently being deleted.
    * 
* @@ -158,7 +158,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are running and have no scheduled actions.
    * 
* @@ -172,7 +172,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are running and have no scheduled actions.
    * 
* @@ -186,7 +186,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be recreated or are currently being being recreated.
    * Recreating an instance deletes the existing root persistent disk
    * and creates a new disk from the image that is defined in the
@@ -203,7 +203,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be recreated or are currently being being recreated.
    * Recreating an instance deletes the existing root persistent disk
    * and creates a new disk from the image that is defined in the
@@ -220,7 +220,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being reconfigured with properties that do not require a restart
    * or a recreate action. For example, setting or removing target
    * pools for the instance.
@@ -236,7 +236,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being reconfigured with properties that do not require a restart
    * or a recreate action. For example, setting or removing target
    * pools for the instance.
@@ -252,7 +252,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be restarted or are currently being restarted.
    * 
* @@ -266,7 +266,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be restarted or are currently being restarted.
    * 
* @@ -280,7 +280,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be resumed or are currently being resumed.
    * 
* @@ -294,7 +294,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be resumed or are currently being resumed.
    * 
* @@ -308,7 +308,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be started or are currently being started.
    * 
* @@ -322,7 +322,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be started or are currently being started.
    * 
* @@ -336,7 +336,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be stopped or are currently being stopped.
    * 
* @@ -350,7 +350,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be stopped or are currently being stopped.
    * 
* @@ -364,7 +364,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be suspended or are currently being suspended.
    * 
* @@ -378,7 +378,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are scheduled to be suspended or are currently being suspended.
    * 
* @@ -392,7 +392,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being verified. See the managedInstances[].currentAction
    * property in the listManagedInstances method documentation.
    * 
@@ -407,7 +407,7 @@ public interface InstanceGroupManagerActionsSummaryOrBuilder * * *
-   * Output only. [Output Only] The number of instances in the managed instance group that
+   * Output only. The number of instances in the managed instance group that
    * are being verified. See the managedInstances[].currentAction
    * property in the listManagedInstances method documentation.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java index 3f673909badc..b4b7dd8aa20b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerOrBuilder.java @@ -224,7 +224,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+   * Output only. The creation timestamp for this managed instance group inRFC3339
    * text format.
    * 
* @@ -238,7 +238,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+   * Output only. The creation timestamp for this managed instance group inRFC3339
    * text format.
    * 
* @@ -252,7 +252,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339
+   * Output only. The creation timestamp for this managed instance group inRFC3339
    * text format.
    * 
* @@ -266,7 +266,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The list of instance actions and the number of instances
+   * Output only. The list of instance actions and the number of instances
    * in this managed instance group that are scheduled for each of those
    * actions.
    * 
@@ -283,7 +283,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The list of instance actions and the number of instances
+   * Output only. The list of instance actions and the number of instances
    * in this managed instance group that are scheduled for each of those
    * actions.
    * 
@@ -300,7 +300,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The list of instance actions and the number of instances
+   * Output only. The list of instance actions and the number of instances
    * in this managed instance group that are scheduled for each of those
    * actions.
    * 
@@ -455,7 +455,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
+   * Output only. A unique identifier for this resource type. The server
    * generates this identifier.
    * 
* @@ -469,7 +469,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
+   * Output only. A unique identifier for this resource type. The server
    * generates this identifier.
    * 
* @@ -537,7 +537,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL of the Instance Group resource.
+   * Output only. The URL of the Instance Group resource.
    * 
* * optional string instance_group = 81095253; @@ -550,7 +550,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL of the Instance Group resource.
+   * Output only. The URL of the Instance Group resource.
    * 
* * optional string instance_group = 81095253; @@ -563,7 +563,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL of the Instance Group resource.
+   * Output only. The URL of the Instance Group resource.
    * 
* * optional string instance_group = 81095253; @@ -669,7 +669,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
    * 
* * optional string kind = 3292052; @@ -682,7 +682,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
    * 
* * optional string kind = 3292052; @@ -695,7 +695,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
    * 
* * optional string kind = 3292052; @@ -942,7 +942,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzi = 480964257; @@ -955,7 +955,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzi = 480964257; @@ -968,7 +968,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzs = 480964267; @@ -981,7 +981,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] Reserved for future use.
+   * Output only. Reserved for future use.
    * 
* * optional bool satisfies_pzs = 480964267; @@ -994,7 +994,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL for this managed instance group. The server defines
+   * Output only. The URL for this managed instance group. The server defines
    * this URL.
    * 
* @@ -1008,7 +1008,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL for this managed instance group. The server defines
+   * Output only. The URL for this managed instance group. The server defines
    * this URL.
    * 
* @@ -1022,7 +1022,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL for this managed instance group. The server defines
+   * Output only. The URL for this managed instance group. The server defines
    * this URL.
    * 
* @@ -1117,7 +1117,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The status of this managed instance group.
+   * Output only. The status of this managed instance group.
    * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -1130,7 +1130,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The status of this managed instance group.
+   * Output only. The status of this managed instance group.
    * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -1143,7 +1143,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The status of this managed instance group.
+   * Output only. The status of this managed instance group.
    * 
* * optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274; @@ -1515,7 +1515,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of azone
    * where the managed instance group is located (for zonal resources).
    * 
* @@ -1529,7 +1529,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of azone
    * where the managed instance group is located (for zonal resources).
    * 
* @@ -1543,7 +1543,7 @@ com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy getAutoHealing * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of azone
    * where the managed instance group is located (for zonal resources).
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequest.java index 35484c5b2613..99bde2145e04 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequest.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequest.java @@ -61,6 +61,7 @@ private InstanceGroupManagerResizeRequest() { description_ = ""; kind_ = ""; name_ = ""; + region_ = ""; selfLink_ = ""; selfLinkWithId_ = ""; state_ = ""; @@ -86,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * 
* * Protobuf enum {@code google.cloud.compute.v1.InstanceGroupManagerResizeRequest.State} @@ -361,7 +362,7 @@ private State(int value) { * * *
-   * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+   * Output only. The creation timestamp for this resize request inRFC3339
    * text format.
    * 
* @@ -378,7 +379,7 @@ public boolean hasCreationTimestamp() { * * *
-   * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+   * Output only. The creation timestamp for this resize request inRFC3339
    * text format.
    * 
* @@ -403,7 +404,7 @@ public java.lang.String getCreationTimestamp() { * * *
-   * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+   * Output only. The creation timestamp for this resize request inRFC3339
    * text format.
    * 
* @@ -500,8 +501,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
-   * generates this identifier.
+   * Output only. A unique identifier for this resource type. The server generates this
+   * identifier.
    * 
* * optional uint64 id = 3355; @@ -517,8 +518,8 @@ public boolean hasId() { * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
-   * generates this identifier.
+   * Output only. A unique identifier for this resource type. The server generates this
+   * identifier.
    * 
* * optional uint64 id = 3355; @@ -539,8 +540,7 @@ public long getId() { * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-   * resize requests.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
    * 
* * optional string kind = 3292052; @@ -556,8 +556,7 @@ public boolean hasKind() { * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-   * resize requests.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
    * 
* * optional string kind = 3292052; @@ -581,8 +580,7 @@ public java.lang.String getKind() { * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-   * resize requests.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
    * 
* * optional string kind = 3292052; @@ -674,6 +672,81 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Output only. The URL of a region
+   * where the resize request is located. Populated only for regional resize
+   * requests.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The URL of a region
+   * where the resize request is located. Populated only for regional resize
+   * requests.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The URL of a region
+   * where the resize request is located. Populated only for regional resize
+   * requests.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int REQUESTED_RUN_DURATION_FIELD_NUMBER = 232146425; private com.google.cloud.compute.v1.Duration requestedRunDuration_; @@ -691,7 +764,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasRequestedRunDuration() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -748,7 +821,7 @@ public com.google.cloud.compute.v1.DurationOrBuilder getRequestedRunDurationOrBu */ @java.lang.Override public boolean hasResizeBy() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -778,8 +851,7 @@ public int getResizeBy() { * * *
-   * Output only. [Output Only] The URL for this resize request. The server defines
-   * this URL.
+   * Output only. The URL for this resize request. The server defines this URL.
    * 
* * optional string self_link = 456214797; @@ -788,15 +860,14 @@ public int getResizeBy() { */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * * *
-   * Output only. [Output Only] The URL for this resize request. The server defines
-   * this URL.
+   * Output only. The URL for this resize request. The server defines this URL.
    * 
* * optional string self_link = 456214797; @@ -820,8 +891,7 @@ public java.lang.String getSelfLink() { * * *
-   * Output only. [Output Only] The URL for this resize request. The server defines
-   * this URL.
+   * Output only. The URL for this resize request. The server defines this URL.
    * 
* * optional string self_link = 456214797; @@ -850,7 +920,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
-   * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+   * Output only. Server-defined URL for this resource with the resource id.
    * 
* * optional string self_link_with_id = 44520962; @@ -859,14 +929,14 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-   * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+   * Output only. Server-defined URL for this resource with the resource id.
    * 
* * optional string self_link_with_id = 44520962; @@ -890,7 +960,7 @@ public java.lang.String getSelfLinkWithId() { * * *
-   * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+   * Output only. Server-defined URL for this resource with the resource id.
    * 
* * optional string self_link_with_id = 44520962; @@ -919,7 +989,7 @@ public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * Check the State enum for the list of possible values.
    * 
* @@ -929,14 +999,14 @@ public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { */ @java.lang.Override public boolean hasState() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * Check the State enum for the list of possible values.
    * 
* @@ -961,7 +1031,7 @@ public java.lang.String getState() { * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * Check the State enum for the list of possible values.
    * 
* @@ -989,7 +1059,7 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-   * Output only. [Output only] Status of the request.
+   * Output only. Status of the request.
    * 
* * @@ -1000,14 +1070,14 @@ public com.google.protobuf.ByteString getStateBytes() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-   * Output only. [Output only] Status of the request.
+   * Output only. Status of the request.
    * 
* * @@ -1027,7 +1097,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus getSt * * *
-   * Output only. [Output only] Status of the request.
+   * Output only. Status of the request.
    * 
* * @@ -1051,7 +1121,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus getSt * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of a zone
    * where the resize request is located. Populated only for zonal resize
    * requests.
    * 
@@ -1062,14 +1132,14 @@ public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus getSt */ @java.lang.Override public boolean hasZone() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of a zone
    * where the resize request is located. Populated only for zonal resize
    * requests.
    * 
@@ -1095,7 +1165,7 @@ public java.lang.String getZone() { * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of a zone
    * where the resize request is located. Populated only for zonal resize
    * requests.
    * 
@@ -1140,31 +1210,34 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 44520962, selfLinkWithId_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 109757585, state_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(181260274, getStatus()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(232146425, getRequestedRunDuration()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(533735362, resizeBy_); } getUnknownFields().writeTo(output); @@ -1185,22 +1258,25 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(44520962, selfLinkWithId_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(109757585, state_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(181260274, getStatus()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 232146425, getRequestedRunDuration()); @@ -1208,10 +1284,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(533735362, resizeBy_); } size += getUnknownFields().getSerializedSize(); @@ -1250,6 +1326,10 @@ public boolean equals(final java.lang.Object obj) { if (hasName()) { if (!getName().equals(other.getName())) return false; } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion().equals(other.getRegion())) return false; + } if (hasRequestedRunDuration() != other.hasRequestedRunDuration()) return false; if (hasRequestedRunDuration()) { if (!getRequestedRunDuration().equals(other.getRequestedRunDuration())) return false; @@ -1309,6 +1389,10 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } if (hasRequestedRunDuration()) { hash = (37 * hash) + REQUESTED_RUN_DURATION_FIELD_NUMBER; hash = (53 * hash) + getRequestedRunDuration().hashCode(); @@ -1497,6 +1581,7 @@ public Builder clear() { id_ = 0L; kind_ = ""; name_ = ""; + region_ = ""; requestedRunDuration_ = null; if (requestedRunDurationBuilder_ != null) { requestedRunDurationBuilder_.dispose(); @@ -1572,36 +1657,40 @@ private void buildPartial0( to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.requestedRunDuration_ = requestedRunDurationBuilder_ == null ? requestedRunDuration_ : requestedRunDurationBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.resizeBy_ = resizeBy_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.selfLink_ = selfLink_; + result.resizeBy_ = resizeBy_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.selfLinkWithId_ = selfLinkWithId_; + result.selfLink_ = selfLink_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.state_ = state_; + result.selfLinkWithId_ = selfLinkWithId_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.state_ = state_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.zone_ = zone_; + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x00001000; + } result.bitField0_ |= to_bitField0_; } @@ -1642,6 +1731,11 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManagerResizeR bitField0_ |= 0x00000010; onChanged(); } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } if (other.hasRequestedRunDuration()) { mergeRequestedRunDuration(other.getRequestedRunDuration()); } @@ -1650,17 +1744,17 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManagerResizeR } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasSelfLinkWithId()) { selfLinkWithId_ = other.selfLinkWithId_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasState()) { state_ = other.state_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasStatus()) { @@ -1668,7 +1762,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManagerResizeR } if (other.hasZone()) { zone_ = other.zone_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1718,7 +1812,7 @@ public Builder mergeFrom( case 29957474: { zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 29957474 case 244202930: @@ -1730,26 +1824,32 @@ public Builder mergeFrom( case 356167698: { selfLinkWithId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 356167698 case 878060682: { state_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 878060682 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1111570338 case 1450082194: { input.readMessage(internalGetStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 1450082194 case 1857171402: { input.readMessage( internalGetRequestedRunDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 1857171402 case -911466526: @@ -1761,13 +1861,13 @@ public Builder mergeFrom( case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case -645248918 case -25084400: { resizeBy_ = input.readInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case -25084400 default: @@ -1795,7 +1895,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+     * Output only. The creation timestamp for this resize request inRFC3339
      * text format.
      * 
* @@ -1811,7 +1911,7 @@ public boolean hasCreationTimestamp() { * * *
-     * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+     * Output only. The creation timestamp for this resize request inRFC3339
      * text format.
      * 
* @@ -1835,7 +1935,7 @@ public java.lang.String getCreationTimestamp() { * * *
-     * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+     * Output only. The creation timestamp for this resize request inRFC3339
      * text format.
      * 
* @@ -1859,7 +1959,7 @@ public com.google.protobuf.ByteString getCreationTimestampBytes() { * * *
-     * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+     * Output only. The creation timestamp for this resize request inRFC3339
      * text format.
      * 
* @@ -1882,7 +1982,7 @@ public Builder setCreationTimestamp(java.lang.String value) { * * *
-     * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+     * Output only. The creation timestamp for this resize request inRFC3339
      * text format.
      * 
* @@ -1901,7 +2001,7 @@ public Builder clearCreationTimestamp() { * * *
-     * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+     * Output only. The creation timestamp for this resize request inRFC3339
      * text format.
      * 
* @@ -2053,8 +2153,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
-     * generates this identifier.
+     * Output only. A unique identifier for this resource type. The server generates this
+     * identifier.
      * 
* * optional uint64 id = 3355; @@ -2070,8 +2170,8 @@ public boolean hasId() { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
-     * generates this identifier.
+     * Output only. A unique identifier for this resource type. The server generates this
+     * identifier.
      * 
* * optional uint64 id = 3355; @@ -2087,8 +2187,8 @@ public long getId() { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
-     * generates this identifier.
+     * Output only. A unique identifier for this resource type. The server generates this
+     * identifier.
      * 
* * optional uint64 id = 3355; @@ -2108,8 +2208,8 @@ public Builder setId(long value) { * * *
-     * Output only. [Output Only] A unique identifier for this resource type. The server
-     * generates this identifier.
+     * Output only. A unique identifier for this resource type. The server generates this
+     * identifier.
      * 
* * optional uint64 id = 3355; @@ -2129,8 +2229,7 @@ public Builder clearId() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-     * resize requests.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
      * 
* * optional string kind = 3292052; @@ -2145,8 +2244,7 @@ public boolean hasKind() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-     * resize requests.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
      * 
* * optional string kind = 3292052; @@ -2169,8 +2267,7 @@ public java.lang.String getKind() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-     * resize requests.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
      * 
* * optional string kind = 3292052; @@ -2193,8 +2290,7 @@ public com.google.protobuf.ByteString getKindBytes() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-     * resize requests.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
      * 
* * optional string kind = 3292052; @@ -2216,8 +2312,7 @@ public Builder setKind(java.lang.String value) { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-     * resize requests.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
      * 
* * optional string kind = 3292052; @@ -2235,8 +2330,7 @@ public Builder clearKind() { * * *
-     * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-     * resize requests.
+     * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
      * 
* * optional string kind = 3292052; @@ -2387,6 +2481,144 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Output only. The URL of a region
+     * where the resize request is located. Populated only for regional resize
+     * requests.
+     * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The URL of a region
+     * where the resize request is located. Populated only for regional resize
+     * requests.
+     * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The URL of a region
+     * where the resize request is located. Populated only for regional resize
+     * requests.
+     * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The URL of a region
+     * where the resize request is located. Populated only for regional resize
+     * requests.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The URL of a region
+     * where the resize request is located. Populated only for regional resize
+     * requests.
+     * 
+ * + * optional string region = 138946292; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The URL of a region
+     * where the resize request is located. Populated only for regional resize
+     * requests.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + private com.google.cloud.compute.v1.Duration requestedRunDuration_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.compute.v1.Duration, @@ -2407,7 +2639,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the requestedRunDuration field is set. */ public boolean hasRequestedRunDuration() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2451,7 +2683,7 @@ public Builder setRequestedRunDuration(com.google.cloud.compute.v1.Duration valu } else { requestedRunDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2473,7 +2705,7 @@ public Builder setRequestedRunDuration( } else { requestedRunDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2490,7 +2722,7 @@ public Builder setRequestedRunDuration( */ public Builder mergeRequestedRunDuration(com.google.cloud.compute.v1.Duration value) { if (requestedRunDurationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && requestedRunDuration_ != null && requestedRunDuration_ != com.google.cloud.compute.v1.Duration.getDefaultInstance()) { getRequestedRunDurationBuilder().mergeFrom(value); @@ -2501,7 +2733,7 @@ public Builder mergeRequestedRunDuration(com.google.cloud.compute.v1.Duration va requestedRunDurationBuilder_.mergeFrom(value); } if (requestedRunDuration_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2518,7 +2750,7 @@ public Builder mergeRequestedRunDuration(com.google.cloud.compute.v1.Duration va * optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425; */ public Builder clearRequestedRunDuration() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); requestedRunDuration_ = null; if (requestedRunDurationBuilder_ != null) { requestedRunDurationBuilder_.dispose(); @@ -2539,7 +2771,7 @@ public Builder clearRequestedRunDuration() { * optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425; */ public com.google.cloud.compute.v1.Duration.Builder getRequestedRunDurationBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetRequestedRunDurationFieldBuilder().getBuilder(); } @@ -2608,7 +2840,7 @@ public com.google.cloud.compute.v1.DurationOrBuilder getRequestedRunDurationOrBu */ @java.lang.Override public boolean hasResizeBy() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2646,7 +2878,7 @@ public int getResizeBy() { public Builder setResizeBy(int value) { resizeBy_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2665,7 +2897,7 @@ public Builder setResizeBy(int value) { * @return This builder for chaining. */ public Builder clearResizeBy() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); resizeBy_ = 0; onChanged(); return this; @@ -2677,8 +2909,7 @@ public Builder clearResizeBy() { * * *
-     * Output only. [Output Only] The URL for this resize request. The server defines
-     * this URL.
+     * Output only. The URL for this resize request. The server defines this URL.
      * 
* * optional string self_link = 456214797; @@ -2686,15 +2917,14 @@ public Builder clearResizeBy() { * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * * *
-     * Output only. [Output Only] The URL for this resize request. The server defines
-     * this URL.
+     * Output only. The URL for this resize request. The server defines this URL.
      * 
* * optional string self_link = 456214797; @@ -2717,8 +2947,7 @@ public java.lang.String getSelfLink() { * * *
-     * Output only. [Output Only] The URL for this resize request. The server defines
-     * this URL.
+     * Output only. The URL for this resize request. The server defines this URL.
      * 
* * optional string self_link = 456214797; @@ -2741,8 +2970,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
-     * Output only. [Output Only] The URL for this resize request. The server defines
-     * this URL.
+     * Output only. The URL for this resize request. The server defines this URL.
      * 
* * optional string self_link = 456214797; @@ -2755,7 +2983,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2764,8 +2992,7 @@ public Builder setSelfLink(java.lang.String value) { * * *
-     * Output only. [Output Only] The URL for this resize request. The server defines
-     * this URL.
+     * Output only. The URL for this resize request. The server defines this URL.
      * 
* * optional string self_link = 456214797; @@ -2774,7 +3001,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2783,8 +3010,7 @@ public Builder clearSelfLink() { * * *
-     * Output only. [Output Only] The URL for this resize request. The server defines
-     * this URL.
+     * Output only. The URL for this resize request. The server defines this URL.
      * 
* * optional string self_link = 456214797; @@ -2798,7 +3024,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2809,7 +3035,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+     * Output only. Server-defined URL for this resource with the resource id.
      * 
* * optional string self_link_with_id = 44520962; @@ -2817,14 +3043,14 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLinkWithId field is set. */ public boolean hasSelfLinkWithId() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+     * Output only. Server-defined URL for this resource with the resource id.
      * 
* * optional string self_link_with_id = 44520962; @@ -2847,7 +3073,7 @@ public java.lang.String getSelfLinkWithId() { * * *
-     * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+     * Output only. Server-defined URL for this resource with the resource id.
      * 
* * optional string self_link_with_id = 44520962; @@ -2870,7 +3096,7 @@ public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { * * *
-     * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+     * Output only. Server-defined URL for this resource with the resource id.
      * 
* * optional string self_link_with_id = 44520962; @@ -2883,7 +3109,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { throw new NullPointerException(); } selfLinkWithId_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2892,7 +3118,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { * * *
-     * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+     * Output only. Server-defined URL for this resource with the resource id.
      * 
* * optional string self_link_with_id = 44520962; @@ -2901,7 +3127,7 @@ public Builder setSelfLinkWithId(java.lang.String value) { */ public Builder clearSelfLinkWithId() { selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2910,7 +3136,7 @@ public Builder clearSelfLinkWithId() { * * *
-     * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+     * Output only. Server-defined URL for this resource with the resource id.
      * 
* * optional string self_link_with_id = 44520962; @@ -2924,7 +3150,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLinkWithId_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2935,7 +3161,7 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output only] Current state of the request.
+     * Output only. Current state of the request.
      * Check the State enum for the list of possible values.
      * 
* @@ -2944,14 +3170,14 @@ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { * @return Whether the state field is set. */ public boolean hasState() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-     * Output only. [Output only] Current state of the request.
+     * Output only. Current state of the request.
      * Check the State enum for the list of possible values.
      * 
* @@ -2975,7 +3201,7 @@ public java.lang.String getState() { * * *
-     * Output only. [Output only] Current state of the request.
+     * Output only. Current state of the request.
      * Check the State enum for the list of possible values.
      * 
* @@ -2999,7 +3225,7 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-     * Output only. [Output only] Current state of the request.
+     * Output only. Current state of the request.
      * Check the State enum for the list of possible values.
      * 
* @@ -3013,7 +3239,7 @@ public Builder setState(java.lang.String value) { throw new NullPointerException(); } state_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3022,7 +3248,7 @@ public Builder setState(java.lang.String value) { * * *
-     * Output only. [Output only] Current state of the request.
+     * Output only. Current state of the request.
      * Check the State enum for the list of possible values.
      * 
* @@ -3032,7 +3258,7 @@ public Builder setState(java.lang.String value) { */ public Builder clearState() { state_ = getDefaultInstance().getState(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3041,7 +3267,7 @@ public Builder clearState() { * * *
-     * Output only. [Output only] Current state of the request.
+     * Output only. Current state of the request.
      * Check the State enum for the list of possible values.
      * 
* @@ -3056,7 +3282,7 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); state_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3072,7 +3298,7 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3082,14 +3308,14 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3113,7 +3339,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus getSt * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3130,7 +3356,7 @@ public Builder setStatus( } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3139,7 +3365,7 @@ public Builder setStatus( * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3154,7 +3380,7 @@ public Builder setStatus( } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3163,7 +3389,7 @@ public Builder setStatus( * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3173,7 +3399,7 @@ public Builder setStatus( public Builder mergeStatus( com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && status_ != null && status_ != com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus @@ -3186,7 +3412,7 @@ public Builder mergeStatus( statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3196,7 +3422,7 @@ public Builder mergeStatus( * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3204,7 +3430,7 @@ public Builder mergeStatus( * */ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -3218,7 +3444,7 @@ public Builder clearStatus() { * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3227,7 +3453,7 @@ public Builder clearStatus() { */ public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetStatusFieldBuilder().getBuilder(); } @@ -3236,7 +3462,7 @@ public Builder clearStatus() { * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3259,7 +3485,7 @@ public Builder clearStatus() { * * *
-     * Output only. [Output only] Status of the request.
+     * Output only. Status of the request.
      * 
* * @@ -3289,7 +3515,7 @@ public Builder clearStatus() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of a zone
      * where the resize request is located. Populated only for zonal resize
      * requests.
      * 
@@ -3299,14 +3525,14 @@ public Builder clearStatus() { * @return Whether the zone field is set. */ public boolean hasZone() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of a zone
      * where the resize request is located. Populated only for zonal resize
      * requests.
      * 
@@ -3331,7 +3557,7 @@ public java.lang.String getZone() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of a zone
      * where the resize request is located. Populated only for zonal resize
      * requests.
      * 
@@ -3356,7 +3582,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of a zone
      * where the resize request is located. Populated only for zonal resize
      * requests.
      * 
@@ -3371,7 +3597,7 @@ public Builder setZone(java.lang.String value) { throw new NullPointerException(); } zone_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3380,7 +3606,7 @@ public Builder setZone(java.lang.String value) { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of a zone
      * where the resize request is located. Populated only for zonal resize
      * requests.
      * 
@@ -3391,7 +3617,7 @@ public Builder setZone(java.lang.String value) { */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -3400,7 +3626,7 @@ public Builder clearZone() { * * *
-     * Output only. [Output Only] The URL of azone
+     * Output only. The URL of a zone
      * where the resize request is located. Populated only for zonal resize
      * requests.
      * 
@@ -3416,7 +3642,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); zone_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestOrBuilder.java index 0fb977ef6c08..71f3d603f7a4 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+   * Output only. The creation timestamp for this resize request inRFC3339
    * text format.
    * 
* @@ -44,7 +44,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+   * Output only. The creation timestamp for this resize request inRFC3339
    * text format.
    * 
* @@ -58,7 +58,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The creation timestamp for this resize request inRFC3339
+   * Output only. The creation timestamp for this resize request inRFC3339
    * text format.
    * 
* @@ -111,8 +111,8 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
-   * generates this identifier.
+   * Output only. A unique identifier for this resource type. The server generates this
+   * identifier.
    * 
* * optional uint64 id = 3355; @@ -125,8 +125,8 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] A unique identifier for this resource type. The server
-   * generates this identifier.
+   * Output only. A unique identifier for this resource type. The server generates this
+   * identifier.
    * 
* * optional uint64 id = 3355; @@ -139,8 +139,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-   * resize requests.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
    * 
* * optional string kind = 3292052; @@ -153,8 +152,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-   * resize requests.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
    * 
* * optional string kind = 3292052; @@ -167,8 +165,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for
-   * resize requests.
+   * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
    * 
* * optional string kind = 3292052; @@ -219,6 +216,51 @@ public interface InstanceGroupManagerResizeRequestOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Output only. The URL of a region
+   * where the resize request is located. Populated only for regional resize
+   * requests.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * + * + *
+   * Output only. The URL of a region
+   * where the resize request is located. Populated only for regional resize
+   * requests.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Output only. The URL of a region
+   * where the resize request is located. Populated only for regional resize
+   * requests.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + /** * * @@ -293,8 +335,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The URL for this resize request. The server defines
-   * this URL.
+   * Output only. The URL for this resize request. The server defines this URL.
    * 
* * optional string self_link = 456214797; @@ -307,8 +348,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The URL for this resize request. The server defines
-   * this URL.
+   * Output only. The URL for this resize request. The server defines this URL.
    * 
* * optional string self_link = 456214797; @@ -321,8 +361,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The URL for this resize request. The server defines
-   * this URL.
+   * Output only. The URL for this resize request. The server defines this URL.
    * 
* * optional string self_link = 456214797; @@ -335,7 +374,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+   * Output only. Server-defined URL for this resource with the resource id.
    * 
* * optional string self_link_with_id = 44520962; @@ -348,7 +387,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+   * Output only. Server-defined URL for this resource with the resource id.
    * 
* * optional string self_link_with_id = 44520962; @@ -361,7 +400,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] Server-defined URL for this resource with the resource id.
+   * Output only. Server-defined URL for this resource with the resource id.
    * 
* * optional string self_link_with_id = 44520962; @@ -374,7 +413,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * Check the State enum for the list of possible values.
    * 
* @@ -388,7 +427,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * Check the State enum for the list of possible values.
    * 
* @@ -402,7 +441,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output only] Current state of the request.
+   * Output only. Current state of the request.
    * Check the State enum for the list of possible values.
    * 
* @@ -416,7 +455,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output only] Status of the request.
+   * Output only. Status of the request.
    * 
* * @@ -431,7 +470,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output only] Status of the request.
+   * Output only. Status of the request.
    * 
* * @@ -446,7 +485,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output only] Status of the request.
+   * Output only. Status of the request.
    * 
* * @@ -459,7 +498,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of a zone
    * where the resize request is located. Populated only for zonal resize
    * requests.
    * 
@@ -474,7 +513,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of a zone
    * where the resize request is located. Populated only for zonal resize
    * requests.
    * 
@@ -489,7 +528,7 @@ public interface InstanceGroupManagerResizeRequestOrBuilder * * *
-   * Output only. [Output Only] The URL of azone
+   * Output only. The URL of a zone
    * where the resize request is located. Populated only for zonal resize
    * requests.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatus.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatus.java index 9ac36642e489..b6f8334418b5 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatus.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatus.java @@ -77,11 +77,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output only] Fatal errors encountered during the queueing or
-   * provisioning phases of the ResizeRequest that caused the transition to
-   * the FAILED state. Contrary to the last_attempt errors, this field is
-   * final and errors are never removed from here, as the ResizeRequest is not
-   * going to retry.
+   * Output only. Fatal errors encountered during the queueing or provisioning phases of
+   * the ResizeRequest that caused the transition to the FAILED state.
+   * Contrary to the last_attempt errors, this field is final and errors are
+   * never removed from here, as the ResizeRequest is not going to retry.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -97,11 +96,10 @@ public boolean hasError() { * * *
-   * Output only. [Output only] Fatal errors encountered during the queueing or
-   * provisioning phases of the ResizeRequest that caused the transition to
-   * the FAILED state. Contrary to the last_attempt errors, this field is
-   * final and errors are never removed from here, as the ResizeRequest is not
-   * going to retry.
+   * Output only. Fatal errors encountered during the queueing or provisioning phases of
+   * the ResizeRequest that caused the transition to the FAILED state.
+   * Contrary to the last_attempt errors, this field is final and errors are
+   * never removed from here, as the ResizeRequest is not going to retry.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -117,11 +115,10 @@ public com.google.cloud.compute.v1.Error getError() { * * *
-   * Output only. [Output only] Fatal errors encountered during the queueing or
-   * provisioning phases of the ResizeRequest that caused the transition to
-   * the FAILED state. Contrary to the last_attempt errors, this field is
-   * final and errors are never removed from here, as the ResizeRequest is not
-   * going to retry.
+   * Output only. Fatal errors encountered during the queueing or provisioning phases of
+   * the ResizeRequest that caused the transition to the FAILED state.
+   * Contrary to the last_attempt errors, this field is final and errors are
+   * never removed from here, as the ResizeRequest is not going to retry.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -139,14 +136,14 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-   * Output only. [Output only] Information about the last attempt to fulfill the request.
-   * The value is temporary since the ResizeRequest can retry, as long as it's
-   * still active and the last attempt value can either be cleared or replaced
-   * with a different error. Since ResizeRequest retries infrequently, the
-   * value may be stale and no longer show an active problem. The value is
-   * cleared when ResizeRequest transitions to the final state (becomes
-   * inactive). If the final state is FAILED the error describing it will be
-   * storred in the "error" field only.
+   * Output only. Information about the last attempt to fulfill the request. The value is
+   * temporary since the ResizeRequest can retry, as long as it's still active
+   * and the last attempt value can either be cleared or replaced with a
+   * different error. Since ResizeRequest retries infrequently, the value may
+   * be stale and no longer show an active problem. The value is cleared when
+   * ResizeRequest transitions to the final state (becomes inactive). If the
+   * final state is FAILED the error describing it will be stored in the
+   * "error" field only.
    * 
* * @@ -164,14 +161,14 @@ public boolean hasLastAttempt() { * * *
-   * Output only. [Output only] Information about the last attempt to fulfill the request.
-   * The value is temporary since the ResizeRequest can retry, as long as it's
-   * still active and the last attempt value can either be cleared or replaced
-   * with a different error. Since ResizeRequest retries infrequently, the
-   * value may be stale and no longer show an active problem. The value is
-   * cleared when ResizeRequest transitions to the final state (becomes
-   * inactive). If the final state is FAILED the error describing it will be
-   * storred in the "error" field only.
+   * Output only. Information about the last attempt to fulfill the request. The value is
+   * temporary since the ResizeRequest can retry, as long as it's still active
+   * and the last attempt value can either be cleared or replaced with a
+   * different error. Since ResizeRequest retries infrequently, the value may
+   * be stale and no longer show an active problem. The value is cleared when
+   * ResizeRequest transitions to the final state (becomes inactive). If the
+   * final state is FAILED the error describing it will be stored in the
+   * "error" field only.
    * 
* * @@ -193,14 +190,14 @@ public boolean hasLastAttempt() { * * *
-   * Output only. [Output only] Information about the last attempt to fulfill the request.
-   * The value is temporary since the ResizeRequest can retry, as long as it's
-   * still active and the last attempt value can either be cleared or replaced
-   * with a different error. Since ResizeRequest retries infrequently, the
-   * value may be stale and no longer show an active problem. The value is
-   * cleared when ResizeRequest transitions to the final state (becomes
-   * inactive). If the final state is FAILED the error describing it will be
-   * storred in the "error" field only.
+   * Output only. Information about the last attempt to fulfill the request. The value is
+   * temporary since the ResizeRequest can retry, as long as it's still active
+   * and the last attempt value can either be cleared or replaced with a
+   * different error. Since ResizeRequest retries infrequently, the value may
+   * be stale and no longer show an active problem. The value is cleared when
+   * ResizeRequest transitions to the final state (becomes inactive). If the
+   * final state is FAILED the error describing it will be stored in the
+   * "error" field only.
    * 
* * @@ -599,11 +596,10 @@ public Builder mergeFrom( * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -618,11 +614,10 @@ public boolean hasError() { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -641,11 +636,10 @@ public com.google.cloud.compute.v1.Error getError() { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -668,11 +662,10 @@ public Builder setError(com.google.cloud.compute.v1.Error value) { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -692,11 +685,10 @@ public Builder setError(com.google.cloud.compute.v1.Error.Builder builderForValu * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -724,11 +716,10 @@ public Builder mergeError(com.google.cloud.compute.v1.Error value) { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -748,11 +739,10 @@ public Builder clearError() { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -767,11 +757,10 @@ public com.google.cloud.compute.v1.Error.Builder getErrorBuilder() { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -788,11 +777,10 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. [Output only] Fatal errors encountered during the queueing or
-     * provisioning phases of the ResizeRequest that caused the transition to
-     * the FAILED state. Contrary to the last_attempt errors, this field is
-     * final and errors are never removed from here, as the ResizeRequest is not
-     * going to retry.
+     * Output only. Fatal errors encountered during the queueing or provisioning phases of
+     * the ResizeRequest that caused the transition to the FAILED state.
+     * Contrary to the last_attempt errors, this field is final and errors are
+     * never removed from here, as the ResizeRequest is not going to retry.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -826,14 +814,14 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -850,14 +838,14 @@ public boolean hasLastAttempt() { * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -882,14 +870,14 @@ public boolean hasLastAttempt() { * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -915,14 +903,14 @@ public Builder setLastAttempt( * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -946,14 +934,14 @@ public Builder setLastAttempt( * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -986,14 +974,14 @@ public Builder mergeLastAttempt( * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -1015,14 +1003,14 @@ public Builder clearLastAttempt() { * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -1040,14 +1028,14 @@ public Builder clearLastAttempt() { * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * @@ -1070,14 +1058,14 @@ public Builder clearLastAttempt() { * * *
-     * Output only. [Output only] Information about the last attempt to fulfill the request.
-     * The value is temporary since the ResizeRequest can retry, as long as it's
-     * still active and the last attempt value can either be cleared or replaced
-     * with a different error. Since ResizeRequest retries infrequently, the
-     * value may be stale and no longer show an active problem. The value is
-     * cleared when ResizeRequest transitions to the final state (becomes
-     * inactive). If the final state is FAILED the error describing it will be
-     * storred in the "error" field only.
+     * Output only. Information about the last attempt to fulfill the request. The value is
+     * temporary since the ResizeRequest can retry, as long as it's still active
+     * and the last attempt value can either be cleared or replaced with a
+     * different error. Since ResizeRequest retries infrequently, the value may
+     * be stale and no longer show an active problem. The value is cleared when
+     * ResizeRequest transitions to the final state (becomes inactive). If the
+     * final state is FAILED the error describing it will be stored in the
+     * "error" field only.
      * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatusOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatusOrBuilder.java index 1f859ce8c4de..11e9576936a6 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatusOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestStatusOrBuilder.java @@ -30,11 +30,10 @@ public interface InstanceGroupManagerResizeRequestStatusOrBuilder * * *
-   * Output only. [Output only] Fatal errors encountered during the queueing or
-   * provisioning phases of the ResizeRequest that caused the transition to
-   * the FAILED state. Contrary to the last_attempt errors, this field is
-   * final and errors are never removed from here, as the ResizeRequest is not
-   * going to retry.
+   * Output only. Fatal errors encountered during the queueing or provisioning phases of
+   * the ResizeRequest that caused the transition to the FAILED state.
+   * Contrary to the last_attempt errors, this field is final and errors are
+   * never removed from here, as the ResizeRequest is not going to retry.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -47,11 +46,10 @@ public interface InstanceGroupManagerResizeRequestStatusOrBuilder * * *
-   * Output only. [Output only] Fatal errors encountered during the queueing or
-   * provisioning phases of the ResizeRequest that caused the transition to
-   * the FAILED state. Contrary to the last_attempt errors, this field is
-   * final and errors are never removed from here, as the ResizeRequest is not
-   * going to retry.
+   * Output only. Fatal errors encountered during the queueing or provisioning phases of
+   * the ResizeRequest that caused the transition to the FAILED state.
+   * Contrary to the last_attempt errors, this field is final and errors are
+   * never removed from here, as the ResizeRequest is not going to retry.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -64,11 +62,10 @@ public interface InstanceGroupManagerResizeRequestStatusOrBuilder * * *
-   * Output only. [Output only] Fatal errors encountered during the queueing or
-   * provisioning phases of the ResizeRequest that caused the transition to
-   * the FAILED state. Contrary to the last_attempt errors, this field is
-   * final and errors are never removed from here, as the ResizeRequest is not
-   * going to retry.
+   * Output only. Fatal errors encountered during the queueing or provisioning phases of
+   * the ResizeRequest that caused the transition to the FAILED state.
+   * Contrary to the last_attempt errors, this field is final and errors are
+   * never removed from here, as the ResizeRequest is not going to retry.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -79,14 +76,14 @@ public interface InstanceGroupManagerResizeRequestStatusOrBuilder * * *
-   * Output only. [Output only] Information about the last attempt to fulfill the request.
-   * The value is temporary since the ResizeRequest can retry, as long as it's
-   * still active and the last attempt value can either be cleared or replaced
-   * with a different error. Since ResizeRequest retries infrequently, the
-   * value may be stale and no longer show an active problem. The value is
-   * cleared when ResizeRequest transitions to the final state (becomes
-   * inactive). If the final state is FAILED the error describing it will be
-   * storred in the "error" field only.
+   * Output only. Information about the last attempt to fulfill the request. The value is
+   * temporary since the ResizeRequest can retry, as long as it's still active
+   * and the last attempt value can either be cleared or replaced with a
+   * different error. Since ResizeRequest retries infrequently, the value may
+   * be stale and no longer show an active problem. The value is cleared when
+   * ResizeRequest transitions to the final state (becomes inactive). If the
+   * final state is FAILED the error describing it will be stored in the
+   * "error" field only.
    * 
* * @@ -101,14 +98,14 @@ public interface InstanceGroupManagerResizeRequestStatusOrBuilder * * *
-   * Output only. [Output only] Information about the last attempt to fulfill the request.
-   * The value is temporary since the ResizeRequest can retry, as long as it's
-   * still active and the last attempt value can either be cleared or replaced
-   * with a different error. Since ResizeRequest retries infrequently, the
-   * value may be stale and no longer show an active problem. The value is
-   * cleared when ResizeRequest transitions to the final state (becomes
-   * inactive). If the final state is FAILED the error describing it will be
-   * storred in the "error" field only.
+   * Output only. Information about the last attempt to fulfill the request. The value is
+   * temporary since the ResizeRequest can retry, as long as it's still active
+   * and the last attempt value can either be cleared or replaced with a
+   * different error. Since ResizeRequest retries infrequently, the value may
+   * be stale and no longer show an active problem. The value is cleared when
+   * ResizeRequest transitions to the final state (becomes inactive). If the
+   * final state is FAILED the error describing it will be stored in the
+   * "error" field only.
    * 
* * @@ -123,14 +120,14 @@ public interface InstanceGroupManagerResizeRequestStatusOrBuilder * * *
-   * Output only. [Output only] Information about the last attempt to fulfill the request.
-   * The value is temporary since the ResizeRequest can retry, as long as it's
-   * still active and the last attempt value can either be cleared or replaced
-   * with a different error. Since ResizeRequest retries infrequently, the
-   * value may be stale and no longer show an active problem. The value is
-   * cleared when ResizeRequest transitions to the final state (becomes
-   * inactive). If the final state is FAILED the error describing it will be
-   * storred in the "error" field only.
+   * Output only. Information about the last attempt to fulfill the request. The value is
+   * temporary since the ResizeRequest can retry, as long as it's still active
+   * and the last attempt value can either be cleared or replaced with a
+   * different error. Since ResizeRequest retries infrequently, the value may
+   * be stale and no longer show an active problem. The value is cleared when
+   * ResizeRequest transitions to the final state (becomes inactive). If the
+   * final state is FAILED the error describing it will be stored in the
+   * "error" field only.
    * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java index e8ee2e68ba9f..f55f2ec214d4 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output only] Status of all-instances configuration on the group.
+   * Output only. Status of all-instances configuration on the group.
    * 
* * @@ -97,7 +97,7 @@ public boolean hasAllInstancesConfig() { * * *
-   * Output only. [Output only] Status of all-instances configuration on the group.
+   * Output only. Status of all-instances configuration on the group.
    * 
* * @@ -119,7 +119,7 @@ public boolean hasAllInstancesConfig() { * * *
-   * Output only. [Output only] Status of all-instances configuration on the group.
+   * Output only. Status of all-instances configuration on the group.
    * 
* * @@ -145,7 +145,7 @@ public boolean hasAllInstancesConfig() { * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -163,7 +163,7 @@ public boolean hasAllInstancesConfig() { * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -183,7 +183,7 @@ public boolean hasAllInstancesConfig() { * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -200,7 +200,7 @@ public int getAppliedAcceleratorTopologiesCount() { * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -218,7 +218,7 @@ public int getAppliedAcceleratorTopologiesCount() { * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -241,7 +241,7 @@ public int getAppliedAcceleratorTopologiesCount() { * * *
-   * Output only. [Output Only] The URL of theAutoscaler
+   * Output only. The URL of theAutoscaler
    * that targets this instance group manager.
    * 
* @@ -258,7 +258,7 @@ public boolean hasAutoscaler() { * * *
-   * Output only. [Output Only] The URL of theAutoscaler
+   * Output only. The URL of theAutoscaler
    * that targets this instance group manager.
    * 
* @@ -283,7 +283,7 @@ public java.lang.String getAutoscaler() { * * *
-   * Output only. [Output Only] The URL of theAutoscaler
+   * Output only. The URL of theAutoscaler
    * that targets this instance group manager.
    * 
* @@ -312,7 +312,7 @@ public com.google.protobuf.ByteString getAutoscalerBytes() { * * *
-   * Output only. [Output Only] The status of bulk instance operation.
+   * Output only. The status of bulk instance operation.
    * 
* * @@ -330,7 +330,7 @@ public boolean hasBulkInstanceOperation() { * * *
-   * Output only. [Output Only] The status of bulk instance operation.
+   * Output only. The status of bulk instance operation.
    * 
* * @@ -352,7 +352,7 @@ public boolean hasBulkInstanceOperation() { * * *
-   * Output only. [Output Only] The status of bulk instance operation.
+   * Output only. The status of bulk instance operation.
    * 
* * @@ -368,6 +368,76 @@ public boolean hasBulkInstanceOperation() { : bulkInstanceOperation_; } + public static final int CURRENT_INSTANCE_STATUSES_FIELD_NUMBER = 269432644; + private com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + currentInstanceStatuses_; + + /** + * + * + *
+   * Output only. The list of instance statuses and the number of instances
+   * in this managed instance group that have the status. Currently only shown
+   * for TPU MIGs
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + * + * @return Whether the currentInstanceStatuses field is set. + */ + @java.lang.Override + public boolean hasCurrentInstanceStatuses() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The list of instance statuses and the number of instances
+   * in this managed instance group that have the status. Currently only shown
+   * for TPU MIGs
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + * + * @return The currentInstanceStatuses. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + getCurrentInstanceStatuses() { + return currentInstanceStatuses_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance() + : currentInstanceStatuses_; + } + + /** + * + * + *
+   * Output only. The list of instance statuses and the number of instances
+   * in this managed instance group that have the status. Currently only shown
+   * for TPU MIGs
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder + getCurrentInstanceStatusesOrBuilder() { + return currentInstanceStatuses_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance() + : currentInstanceStatuses_; + } + public static final int IS_STABLE_FIELD_NUMBER = 108410864; private boolean isStable_ = false; @@ -375,7 +445,7 @@ public boolean hasBulkInstanceOperation() { * * *
-   * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+   * Output only. A bit indicating whether the managed instance group is in a
    * stable state. A stable state means that: none of the instances in the
    * managed instance group is currently undergoing any type of change (for
    * example, creation, restart, or deletion); no future changes are scheduled
@@ -389,14 +459,14 @@ public boolean hasBulkInstanceOperation() {
    */
   @java.lang.Override
   public boolean hasIsStable() {
-    return ((bitField0_ & 0x00000008) != 0);
+    return ((bitField0_ & 0x00000010) != 0);
   }
 
   /**
    *
    *
    * 
-   * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+   * Output only. A bit indicating whether the managed instance group is in a
    * stable state. A stable state means that: none of the instances in the
    * managed instance group is currently undergoing any type of change (for
    * example, creation, restart, or deletion); no future changes are scheduled
@@ -420,7 +490,7 @@ public boolean getIsStable() {
    *
    *
    * 
-   * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+   * Output only. Stateful status of the given Instance Group Manager.
    * 
* * @@ -431,14 +501,14 @@ public boolean getIsStable() { */ @java.lang.Override public boolean hasStateful() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-   * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+   * Output only. Stateful status of the given Instance Group Manager.
    * 
* * @@ -458,7 +528,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful getStatefu * * *
-   * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+   * Output only. Stateful status of the given Instance Group Manager.
    * 
* * @@ -480,7 +550,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful getStatefu * * *
-   * Output only. [Output Only] A status of consistency of Instances' versions with their
+   * Output only. A status of consistency of Instances' versions with their
    * target version specified by version field on Instance Group
    * Manager.
    * 
@@ -493,14 +563,14 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful getStatefu */ @java.lang.Override public boolean hasVersionTarget() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-   * Output only. [Output Only] A status of consistency of Instances' versions with their
+   * Output only. A status of consistency of Instances' versions with their
    * target version specified by version field on Instance Group
    * Manager.
    * 
@@ -522,7 +592,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget getVe * * *
-   * Output only. [Output Only] A status of consistency of Instances' versions with their
+   * Output only. A status of consistency of Instances' versions with their
    * target version specified by version field on Instance Group
    * Manager.
    * 
@@ -553,16 +623,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(108410864, isStable_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(112596737, getAllInstancesConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(244462412, getStateful()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(269432644, getCurrentInstanceStatuses()); + } + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(289386200, getVersionTarget()); } for (int i = 0; i < appliedAcceleratorTopologies_.size(); i++) { @@ -583,7 +656,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(108410864, isStable_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -591,10 +664,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 112596737, getAllInstancesConfig()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(244462412, getStateful()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 269432644, getCurrentInstanceStatuses()); + } + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(289386200, getVersionTarget()); } @@ -641,6 +719,10 @@ public boolean equals(final java.lang.Object obj) { if (hasBulkInstanceOperation()) { if (!getBulkInstanceOperation().equals(other.getBulkInstanceOperation())) return false; } + if (hasCurrentInstanceStatuses() != other.hasCurrentInstanceStatuses()) return false; + if (hasCurrentInstanceStatuses()) { + if (!getCurrentInstanceStatuses().equals(other.getCurrentInstanceStatuses())) return false; + } if (hasIsStable() != other.hasIsStable()) return false; if (hasIsStable()) { if (getIsStable() != other.getIsStable()) return false; @@ -680,6 +762,10 @@ public int hashCode() { hash = (37 * hash) + BULK_INSTANCE_OPERATION_FIELD_NUMBER; hash = (53 * hash) + getBulkInstanceOperation().hashCode(); } + if (hasCurrentInstanceStatuses()) { + hash = (37 * hash) + CURRENT_INSTANCE_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getCurrentInstanceStatuses().hashCode(); + } if (hasIsStable()) { hash = (37 * hash) + IS_STABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsStable()); @@ -836,6 +922,7 @@ private void maybeForceBuilderInitialization() { internalGetAllInstancesConfigFieldBuilder(); internalGetAppliedAcceleratorTopologiesFieldBuilder(); internalGetBulkInstanceOperationFieldBuilder(); + internalGetCurrentInstanceStatusesFieldBuilder(); internalGetStatefulFieldBuilder(); internalGetVersionTargetFieldBuilder(); } @@ -863,6 +950,11 @@ public Builder clear() { bulkInstanceOperationBuilder_.dispose(); bulkInstanceOperationBuilder_ = null; } + currentInstanceStatuses_ = null; + if (currentInstanceStatusesBuilder_ != null) { + currentInstanceStatusesBuilder_.dispose(); + currentInstanceStatusesBuilder_ = null; + } isStable_ = false; stateful_ = null; if (statefulBuilder_ != null) { @@ -945,17 +1037,24 @@ private void buildPartial0(com.google.cloud.compute.v1.InstanceGroupManagerStatu to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.isStable_ = isStable_; + result.currentInstanceStatuses_ = + currentInstanceStatusesBuilder_ == null + ? currentInstanceStatuses_ + : currentInstanceStatusesBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.stateful_ = statefulBuilder_ == null ? stateful_ : statefulBuilder_.build(); + result.isStable_ = isStable_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.stateful_ = statefulBuilder_ == null ? stateful_ : statefulBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.versionTarget_ = versionTargetBuilder_ == null ? versionTarget_ : versionTargetBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @@ -1012,6 +1111,9 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManagerStatus if (other.hasBulkInstanceOperation()) { mergeBulkInstanceOperation(other.getBulkInstanceOperation()); } + if (other.hasCurrentInstanceStatuses()) { + mergeCurrentInstanceStatuses(other.getCurrentInstanceStatuses()); + } if (other.hasIsStable()) { setIsStable(other.getIsStable()); } @@ -1050,7 +1152,7 @@ public Builder mergeFrom( case 867286912: { isStable_ = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 867286912 case 900773898: @@ -1064,14 +1166,22 @@ public Builder mergeFrom( { input.readMessage( internalGetStatefulFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 1955699298 + case -2139506142: + { + input.readMessage( + internalGetCurrentInstanceStatusesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case -2139506142 case -1979877694: { input.readMessage( internalGetVersionTargetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case -1979877694 case -443826918: @@ -1133,7 +1243,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1150,7 +1260,7 @@ public boolean hasAllInstancesConfig() { * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1175,7 +1285,7 @@ public boolean hasAllInstancesConfig() { * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1201,7 +1311,7 @@ public Builder setAllInstancesConfig( * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1225,7 +1335,7 @@ public Builder setAllInstancesConfig( * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1258,7 +1368,7 @@ public Builder mergeAllInstancesConfig( * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1280,7 +1390,7 @@ public Builder clearAllInstancesConfig() { * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1298,7 +1408,7 @@ public Builder clearAllInstancesConfig() { * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1321,7 +1431,7 @@ public Builder clearAllInstancesConfig() { * * *
-     * Output only. [Output only] Status of all-instances configuration on the group.
+     * Output only. Status of all-instances configuration on the group.
      * 
* * @@ -1369,7 +1479,7 @@ private void ensureAppliedAcceleratorTopologiesIsMutable() { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1390,7 +1500,7 @@ private void ensureAppliedAcceleratorTopologiesIsMutable() { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1410,7 +1520,7 @@ public int getAppliedAcceleratorTopologiesCount() { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1431,7 +1541,7 @@ public int getAppliedAcceleratorTopologiesCount() { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1459,7 +1569,7 @@ public Builder setAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1485,7 +1595,7 @@ public Builder setAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1512,7 +1622,7 @@ public Builder addAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1540,7 +1650,7 @@ public Builder addAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1565,7 +1675,7 @@ public Builder addAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1591,7 +1701,7 @@ public Builder addAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1618,7 +1728,7 @@ public Builder addAllAppliedAcceleratorTopologies( * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1641,7 +1751,7 @@ public Builder clearAppliedAcceleratorTopologies() { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1664,7 +1774,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1681,7 +1791,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1702,7 +1812,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1725,7 +1835,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1745,7 +1855,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1766,7 +1876,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The accelerator topology applied to this MIG.
+     * Output only. The accelerator topology applied to this MIG.
      * Currently only one accelerator topology is supported.
      * 
* @@ -1806,7 +1916,7 @@ public Builder removeAppliedAcceleratorTopologies(int index) { * * *
-     * Output only. [Output Only] The URL of theAutoscaler
+     * Output only. The URL of theAutoscaler
      * that targets this instance group manager.
      * 
* @@ -1822,7 +1932,7 @@ public boolean hasAutoscaler() { * * *
-     * Output only. [Output Only] The URL of theAutoscaler
+     * Output only. The URL of theAutoscaler
      * that targets this instance group manager.
      * 
* @@ -1846,7 +1956,7 @@ public java.lang.String getAutoscaler() { * * *
-     * Output only. [Output Only] The URL of theAutoscaler
+     * Output only. The URL of theAutoscaler
      * that targets this instance group manager.
      * 
* @@ -1870,7 +1980,7 @@ public com.google.protobuf.ByteString getAutoscalerBytes() { * * *
-     * Output only. [Output Only] The URL of theAutoscaler
+     * Output only. The URL of theAutoscaler
      * that targets this instance group manager.
      * 
* @@ -1893,7 +2003,7 @@ public Builder setAutoscaler(java.lang.String value) { * * *
-     * Output only. [Output Only] The URL of theAutoscaler
+     * Output only. The URL of theAutoscaler
      * that targets this instance group manager.
      * 
* @@ -1912,7 +2022,7 @@ public Builder clearAutoscaler() { * * *
-     * Output only. [Output Only] The URL of theAutoscaler
+     * Output only. The URL of theAutoscaler
      * that targets this instance group manager.
      * 
* @@ -1944,7 +2054,7 @@ public Builder setAutoscalerBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -1961,7 +2071,7 @@ public boolean hasBulkInstanceOperation() { * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -1986,7 +2096,7 @@ public boolean hasBulkInstanceOperation() { * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2012,7 +2122,7 @@ public Builder setBulkInstanceOperation( * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2036,7 +2146,7 @@ public Builder setBulkInstanceOperation( * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2069,7 +2179,7 @@ public Builder mergeBulkInstanceOperation( * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2091,7 +2201,7 @@ public Builder clearBulkInstanceOperation() { * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2109,7 +2219,7 @@ public Builder clearBulkInstanceOperation() { * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2132,7 +2242,7 @@ public Builder clearBulkInstanceOperation() { * * *
-     * Output only. [Output Only] The status of bulk instance operation.
+     * Output only. The status of bulk instance operation.
      * 
* * @@ -2157,13 +2267,256 @@ public Builder clearBulkInstanceOperation() { return bulkInstanceOperationBuilder_; } + private com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + currentInstanceStatuses_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder> + currentInstanceStatusesBuilder_; + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + * + * @return Whether the currentInstanceStatuses field is set. + */ + public boolean hasCurrentInstanceStatuses() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + * + * @return The currentInstanceStatuses. + */ + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + getCurrentInstanceStatuses() { + if (currentInstanceStatusesBuilder_ == null) { + return currentInstanceStatuses_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance() + : currentInstanceStatuses_; + } else { + return currentInstanceStatusesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + public Builder setCurrentInstanceStatuses( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary value) { + if (currentInstanceStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentInstanceStatuses_ = value; + } else { + currentInstanceStatusesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + public Builder setCurrentInstanceStatuses( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder + builderForValue) { + if (currentInstanceStatusesBuilder_ == null) { + currentInstanceStatuses_ = builderForValue.build(); + } else { + currentInstanceStatusesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + public Builder mergeCurrentInstanceStatuses( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary value) { + if (currentInstanceStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && currentInstanceStatuses_ != null + && currentInstanceStatuses_ + != com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance()) { + getCurrentInstanceStatusesBuilder().mergeFrom(value); + } else { + currentInstanceStatuses_ = value; + } + } else { + currentInstanceStatusesBuilder_.mergeFrom(value); + } + if (currentInstanceStatuses_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + public Builder clearCurrentInstanceStatuses() { + bitField0_ = (bitField0_ & ~0x00000010); + currentInstanceStatuses_ = null; + if (currentInstanceStatusesBuilder_ != null) { + currentInstanceStatusesBuilder_.dispose(); + currentInstanceStatusesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder + getCurrentInstanceStatusesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCurrentInstanceStatusesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder + getCurrentInstanceStatusesOrBuilder() { + if (currentInstanceStatusesBuilder_ != null) { + return currentInstanceStatusesBuilder_.getMessageOrBuilder(); + } else { + return currentInstanceStatuses_ == null + ? com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance() + : currentInstanceStatuses_; + } + } + + /** + * + * + *
+     * Output only. The list of instance statuses and the number of instances
+     * in this managed instance group that have the status. Currently only shown
+     * for TPU MIGs
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder> + internalGetCurrentInstanceStatusesFieldBuilder() { + if (currentInstanceStatusesBuilder_ == null) { + currentInstanceStatusesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder, + com.google.cloud.compute.v1 + .InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder>( + getCurrentInstanceStatuses(), getParentForChildren(), isClean()); + currentInstanceStatuses_ = null; + } + return currentInstanceStatusesBuilder_; + } + private boolean isStable_; /** * * *
-     * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+     * Output only. A bit indicating whether the managed instance group is in a
      * stable state. A stable state means that: none of the instances in the
      * managed instance group is currently undergoing any type of change (for
      * example, creation, restart, or deletion); no future changes are scheduled
@@ -2177,14 +2530,14 @@ public Builder clearBulkInstanceOperation() {
      */
     @java.lang.Override
     public boolean hasIsStable() {
-      return ((bitField0_ & 0x00000010) != 0);
+      return ((bitField0_ & 0x00000020) != 0);
     }
 
     /**
      *
      *
      * 
-     * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+     * Output only. A bit indicating whether the managed instance group is in a
      * stable state. A stable state means that: none of the instances in the
      * managed instance group is currently undergoing any type of change (for
      * example, creation, restart, or deletion); no future changes are scheduled
@@ -2205,7 +2558,7 @@ public boolean getIsStable() {
      *
      *
      * 
-     * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+     * Output only. A bit indicating whether the managed instance group is in a
      * stable state. A stable state means that: none of the instances in the
      * managed instance group is currently undergoing any type of change (for
      * example, creation, restart, or deletion); no future changes are scheduled
@@ -2221,7 +2574,7 @@ public boolean getIsStable() {
     public Builder setIsStable(boolean value) {
 
       isStable_ = value;
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -2230,7 +2583,7 @@ public Builder setIsStable(boolean value) {
      *
      *
      * 
-     * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+     * Output only. A bit indicating whether the managed instance group is in a
      * stable state. A stable state means that: none of the instances in the
      * managed instance group is currently undergoing any type of change (for
      * example, creation, restart, or deletion); no future changes are scheduled
@@ -2243,7 +2596,7 @@ public Builder setIsStable(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearIsStable() {
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000020);
       isStable_ = false;
       onChanged();
       return this;
@@ -2260,7 +2613,7 @@ public Builder clearIsStable() {
      *
      *
      * 
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2270,14 +2623,14 @@ public Builder clearIsStable() { * @return Whether the stateful field is set. */ public boolean hasStateful() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2300,7 +2653,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful getStatefu * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2317,7 +2670,7 @@ public Builder setStateful( } else { statefulBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2326,7 +2679,7 @@ public Builder setStateful( * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2340,7 +2693,7 @@ public Builder setStateful( } else { statefulBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2349,7 +2702,7 @@ public Builder setStateful( * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2359,7 +2712,7 @@ public Builder setStateful( public Builder mergeStateful( com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful value) { if (statefulBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && stateful_ != null && stateful_ != com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful @@ -2372,7 +2725,7 @@ public Builder mergeStateful( statefulBuilder_.mergeFrom(value); } if (stateful_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2382,7 +2735,7 @@ public Builder mergeStateful( * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2390,7 +2743,7 @@ public Builder mergeStateful( * */ public Builder clearStateful() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); stateful_ = null; if (statefulBuilder_ != null) { statefulBuilder_.dispose(); @@ -2404,7 +2757,7 @@ public Builder clearStateful() { * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2413,7 +2766,7 @@ public Builder clearStateful() { */ public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.Builder getStatefulBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetStatefulFieldBuilder().getBuilder(); } @@ -2422,7 +2775,7 @@ public Builder clearStateful() { * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2444,7 +2797,7 @@ public Builder clearStateful() { * * *
-     * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+     * Output only. Stateful status of the given Instance Group Manager.
      * 
* * @@ -2479,7 +2832,7 @@ public Builder clearStateful() { * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2491,14 +2844,14 @@ public Builder clearStateful() { * @return Whether the versionTarget field is set. */ public boolean hasVersionTarget() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2524,7 +2877,7 @@ public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget getVe * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2543,7 +2896,7 @@ public Builder setVersionTarget( } else { versionTargetBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2552,7 +2905,7 @@ public Builder setVersionTarget( * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2569,7 +2922,7 @@ public Builder setVersionTarget( } else { versionTargetBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2578,7 +2931,7 @@ public Builder setVersionTarget( * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2590,7 +2943,7 @@ public Builder setVersionTarget( public Builder mergeVersionTarget( com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget value) { if (versionTargetBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && versionTarget_ != null && versionTarget_ != com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget @@ -2603,7 +2956,7 @@ public Builder mergeVersionTarget( versionTargetBuilder_.mergeFrom(value); } if (versionTarget_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2613,7 +2966,7 @@ public Builder mergeVersionTarget( * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2623,7 +2976,7 @@ public Builder mergeVersionTarget( *
*/ public Builder clearVersionTarget() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); versionTarget_ = null; if (versionTargetBuilder_ != null) { versionTargetBuilder_.dispose(); @@ -2637,7 +2990,7 @@ public Builder clearVersionTarget() { * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2648,7 +3001,7 @@ public Builder clearVersionTarget() { */ public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.Builder getVersionTargetBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetVersionTargetFieldBuilder().getBuilder(); } @@ -2657,7 +3010,7 @@ public Builder clearVersionTarget() { * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
@@ -2682,7 +3035,7 @@ public Builder clearVersionTarget() { * * *
-     * Output only. [Output Only] A status of consistency of Instances' versions with their
+     * Output only. A status of consistency of Instances' versions with their
      * target version specified by version field on Instance Group
      * Manager.
      * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopology.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopology.java index d752d13868ff..31e984a9b67a 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopology.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopology.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * 
* * Protobuf enum {@code @@ -350,7 +350,7 @@ private State(int value) { * * *
-   * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+   * Output only. Topology in the format of: "16x16", "4x4x4", etc.
    * The value is the same as configured in the WorkloadPolicy.
    * 
* @@ -367,7 +367,7 @@ public boolean hasAcceleratorTopology() { * * *
-   * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+   * Output only. Topology in the format of: "16x16", "4x4x4", etc.
    * The value is the same as configured in the WorkloadPolicy.
    * 
* @@ -392,7 +392,7 @@ public java.lang.String getAcceleratorTopology() { * * *
-   * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+   * Output only. Topology in the format of: "16x16", "4x4x4", etc.
    * The value is the same as configured in the WorkloadPolicy.
    * 
* @@ -422,7 +422,7 @@ public com.google.protobuf.ByteString getAcceleratorTopologyBytes() { * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * Check the State enum for the list of possible values.
    * 
* @@ -439,7 +439,7 @@ public boolean hasState() { * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * Check the State enum for the list of possible values.
    * 
* @@ -464,7 +464,7 @@ public java.lang.String getState() { * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * Check the State enum for the list of possible values.
    * 
* @@ -494,7 +494,7 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-   * Output only. [Output Only] The result of the latest accelerator topology state
+   * Output only. The result of the latest accelerator topology state
    * check.
    * 
* @@ -513,7 +513,7 @@ public boolean hasStateDetails() { * * *
-   * Output only. [Output Only] The result of the latest accelerator topology state
+   * Output only. The result of the latest accelerator topology state
    * check.
    * 
* @@ -538,7 +538,7 @@ public boolean hasStateDetails() { * * *
-   * Output only. [Output Only] The result of the latest accelerator topology state
+   * Output only. The result of the latest accelerator topology state
    * check.
    * 
* @@ -968,7 +968,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+     * Output only. Topology in the format of: "16x16", "4x4x4", etc.
      * The value is the same as configured in the WorkloadPolicy.
      * 
* @@ -984,7 +984,7 @@ public boolean hasAcceleratorTopology() { * * *
-     * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+     * Output only. Topology in the format of: "16x16", "4x4x4", etc.
      * The value is the same as configured in the WorkloadPolicy.
      * 
* @@ -1008,7 +1008,7 @@ public java.lang.String getAcceleratorTopology() { * * *
-     * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+     * Output only. Topology in the format of: "16x16", "4x4x4", etc.
      * The value is the same as configured in the WorkloadPolicy.
      * 
* @@ -1032,7 +1032,7 @@ public com.google.protobuf.ByteString getAcceleratorTopologyBytes() { * * *
-     * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+     * Output only. Topology in the format of: "16x16", "4x4x4", etc.
      * The value is the same as configured in the WorkloadPolicy.
      * 
* @@ -1055,7 +1055,7 @@ public Builder setAcceleratorTopology(java.lang.String value) { * * *
-     * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+     * Output only. Topology in the format of: "16x16", "4x4x4", etc.
      * The value is the same as configured in the WorkloadPolicy.
      * 
* @@ -1074,7 +1074,7 @@ public Builder clearAcceleratorTopology() { * * *
-     * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+     * Output only. Topology in the format of: "16x16", "4x4x4", etc.
      * The value is the same as configured in the WorkloadPolicy.
      * 
* @@ -1100,7 +1100,7 @@ public Builder setAcceleratorTopologyBytes(com.google.protobuf.ByteString value) * * *
-     * Output only. [Output Only] The state of the accelerator topology.
+     * Output only. The state of the accelerator topology.
      * Check the State enum for the list of possible values.
      * 
* @@ -1116,7 +1116,7 @@ public boolean hasState() { * * *
-     * Output only. [Output Only] The state of the accelerator topology.
+     * Output only. The state of the accelerator topology.
      * Check the State enum for the list of possible values.
      * 
* @@ -1140,7 +1140,7 @@ public java.lang.String getState() { * * *
-     * Output only. [Output Only] The state of the accelerator topology.
+     * Output only. The state of the accelerator topology.
      * Check the State enum for the list of possible values.
      * 
* @@ -1164,7 +1164,7 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-     * Output only. [Output Only] The state of the accelerator topology.
+     * Output only. The state of the accelerator topology.
      * Check the State enum for the list of possible values.
      * 
* @@ -1187,7 +1187,7 @@ public Builder setState(java.lang.String value) { * * *
-     * Output only. [Output Only] The state of the accelerator topology.
+     * Output only. The state of the accelerator topology.
      * Check the State enum for the list of possible values.
      * 
* @@ -1206,7 +1206,7 @@ public Builder clearState() { * * *
-     * Output only. [Output Only] The state of the accelerator topology.
+     * Output only. The state of the accelerator topology.
      * Check the State enum for the list of possible values.
      * 
* @@ -1243,7 +1243,7 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1261,7 +1261,7 @@ public boolean hasStateDetails() { * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1289,7 +1289,7 @@ public boolean hasStateDetails() { * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1318,7 +1318,7 @@ public Builder setStateDetails( * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1345,7 +1345,7 @@ public Builder setStateDetails( * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1382,7 +1382,7 @@ public Builder mergeStateDetails( * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1405,7 +1405,7 @@ public Builder clearStateDetails() { * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1425,7 +1425,7 @@ public Builder clearStateDetails() { * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* @@ -1451,7 +1451,7 @@ public Builder clearStateDetails() { * * *
-     * Output only. [Output Only] The result of the latest accelerator topology state
+     * Output only. The result of the latest accelerator topology state
      * check.
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java index e01428545495..6ab5b0f33929 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -100,7 +100,7 @@ public boolean hasError() { * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -116,7 +116,7 @@ public com.google.cloud.compute.v1.Error getError() { * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -135,7 +135,7 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-   * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+   * Output only. Timestamp is shown only if there is an error. The field
    * has // RFC3339 //
    * text format.
    * 
@@ -153,7 +153,7 @@ public boolean hasTimestamp() { * * *
-   * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+   * Output only. Timestamp is shown only if there is an error. The field
    * has // RFC3339 //
    * text format.
    * 
@@ -179,7 +179,7 @@ public java.lang.String getTimestamp() { * * *
-   * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+   * Output only. Timestamp is shown only if there is an error. The field
    * has // RFC3339 //
    * text format.
    * 
@@ -633,7 +633,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -648,7 +648,7 @@ public boolean hasError() { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -667,7 +667,7 @@ public com.google.cloud.compute.v1.Error getError() { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -690,7 +690,7 @@ public Builder setError(com.google.cloud.compute.v1.Error value) { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -710,7 +710,7 @@ public Builder setError(com.google.cloud.compute.v1.Error.Builder builderForValu * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -738,7 +738,7 @@ public Builder mergeError(com.google.cloud.compute.v1.Error value) { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -758,7 +758,7 @@ public Builder clearError() { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -773,7 +773,7 @@ public com.google.cloud.compute.v1.Error.Builder getErrorBuilder() { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -790,7 +790,7 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. [Output Only] Encountered errors.
+     * Output only. Encountered errors.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -818,7 +818,7 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+     * Output only. Timestamp is shown only if there is an error. The field
      * has // RFC3339 //
      * text format.
      * 
@@ -835,7 +835,7 @@ public boolean hasTimestamp() { * * *
-     * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+     * Output only. Timestamp is shown only if there is an error. The field
      * has // RFC3339 //
      * text format.
      * 
@@ -860,7 +860,7 @@ public java.lang.String getTimestamp() { * * *
-     * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+     * Output only. Timestamp is shown only if there is an error. The field
      * has // RFC3339 //
      * text format.
      * 
@@ -885,7 +885,7 @@ public com.google.protobuf.ByteString getTimestampBytes() { * * *
-     * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+     * Output only. Timestamp is shown only if there is an error. The field
      * has // RFC3339 //
      * text format.
      * 
@@ -909,7 +909,7 @@ public Builder setTimestamp(java.lang.String value) { * * *
-     * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+     * Output only. Timestamp is shown only if there is an error. The field
      * has // RFC3339 //
      * text format.
      * 
@@ -929,7 +929,7 @@ public Builder clearTimestamp() { * * *
-     * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+     * Output only. Timestamp is shown only if there is an error. The field
      * has // RFC3339 //
      * text format.
      * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsOrBuilder.java index e55e6a1f4d52..f4b49473c2b8 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsOrBuilder.java @@ -31,7 +31,7 @@ interface InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateD * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -44,7 +44,7 @@ interface InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateD * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -57,7 +57,7 @@ interface InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateD * * *
-   * Output only. [Output Only] Encountered errors.
+   * Output only. Encountered errors.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -68,7 +68,7 @@ interface InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateD * * *
-   * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+   * Output only. Timestamp is shown only if there is an error. The field
    * has // RFC3339 //
    * text format.
    * 
@@ -83,7 +83,7 @@ interface InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateD * * *
-   * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+   * Output only. Timestamp is shown only if there is an error. The field
    * has // RFC3339 //
    * text format.
    * 
@@ -98,7 +98,7 @@ interface InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateD * * *
-   * Output only. [Output Only] Timestamp is shown only if there is an error. The field
+   * Output only. Timestamp is shown only if there is an error. The field
    * has // RFC3339 //
    * text format.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyOrBuilder.java index b8269bb52982..a7638ea48a2b 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAcceleratorTopologyOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+   * Output only. Topology in the format of: "16x16", "4x4x4", etc.
    * The value is the same as configured in the WorkloadPolicy.
    * 
* @@ -44,7 +44,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+   * Output only. Topology in the format of: "16x16", "4x4x4", etc.
    * The value is the same as configured in the WorkloadPolicy.
    * 
* @@ -58,7 +58,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc.
+   * Output only. Topology in the format of: "16x16", "4x4x4", etc.
    * The value is the same as configured in the WorkloadPolicy.
    * 
* @@ -72,7 +72,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * Check the State enum for the list of possible values.
    * 
* @@ -86,7 +86,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * Check the State enum for the list of possible values.
    * 
* @@ -100,7 +100,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] The state of the accelerator topology.
+   * Output only. The state of the accelerator topology.
    * Check the State enum for the list of possible values.
    * 
* @@ -114,7 +114,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] The result of the latest accelerator topology state
+   * Output only. The result of the latest accelerator topology state
    * check.
    * 
* @@ -130,7 +130,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] The result of the latest accelerator topology state
+   * Output only. The result of the latest accelerator topology state
    * check.
    * 
* @@ -148,7 +148,7 @@ public interface InstanceGroupManagerStatusAcceleratorTopologyOrBuilder * * *
-   * Output only. [Output Only] The result of the latest accelerator topology state
+   * Output only. The result of the latest accelerator topology state
    * check.
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfig.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfig.java index 22ee400b81c3..1d39bad678e5 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfig.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] Current all-instances configuration revision.
+   * Output only. Current all-instances configuration revision.
    * This value is in RFC3339 text format.
    * 
* @@ -98,7 +98,7 @@ public boolean hasCurrentRevision() { * * *
-   * Output only. [Output Only] Current all-instances configuration revision.
+   * Output only. Current all-instances configuration revision.
    * This value is in RFC3339 text format.
    * 
* @@ -123,7 +123,7 @@ public java.lang.String getCurrentRevision() { * * *
-   * Output only. [Output Only] Current all-instances configuration revision.
+   * Output only. Current all-instances configuration revision.
    * This value is in RFC3339 text format.
    * 
* @@ -151,7 +151,7 @@ public com.google.protobuf.ByteString getCurrentRevisionBytes() { * * *
-   * Output only. [Output Only] A bit indicating whether this configuration has
+   * Output only. A bit indicating whether this configuration has
    * been applied to all managed instances in the group.
    * 
* @@ -168,7 +168,7 @@ public boolean hasEffective() { * * *
-   * Output only. [Output Only] A bit indicating whether this configuration has
+   * Output only. A bit indicating whether this configuration has
    * been applied to all managed instances in the group.
    * 
* @@ -545,7 +545,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] Current all-instances configuration revision.
+     * Output only. Current all-instances configuration revision.
      * This value is in RFC3339 text format.
      * 
* @@ -561,7 +561,7 @@ public boolean hasCurrentRevision() { * * *
-     * Output only. [Output Only] Current all-instances configuration revision.
+     * Output only. Current all-instances configuration revision.
      * This value is in RFC3339 text format.
      * 
* @@ -585,7 +585,7 @@ public java.lang.String getCurrentRevision() { * * *
-     * Output only. [Output Only] Current all-instances configuration revision.
+     * Output only. Current all-instances configuration revision.
      * This value is in RFC3339 text format.
      * 
* @@ -609,7 +609,7 @@ public com.google.protobuf.ByteString getCurrentRevisionBytes() { * * *
-     * Output only. [Output Only] Current all-instances configuration revision.
+     * Output only. Current all-instances configuration revision.
      * This value is in RFC3339 text format.
      * 
* @@ -632,7 +632,7 @@ public Builder setCurrentRevision(java.lang.String value) { * * *
-     * Output only. [Output Only] Current all-instances configuration revision.
+     * Output only. Current all-instances configuration revision.
      * This value is in RFC3339 text format.
      * 
* @@ -651,7 +651,7 @@ public Builder clearCurrentRevision() { * * *
-     * Output only. [Output Only] Current all-instances configuration revision.
+     * Output only. Current all-instances configuration revision.
      * This value is in RFC3339 text format.
      * 
* @@ -677,7 +677,7 @@ public Builder setCurrentRevisionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. [Output Only] A bit indicating whether this configuration has
+     * Output only. A bit indicating whether this configuration has
      * been applied to all managed instances in the group.
      * 
* @@ -694,7 +694,7 @@ public boolean hasEffective() { * * *
-     * Output only. [Output Only] A bit indicating whether this configuration has
+     * Output only. A bit indicating whether this configuration has
      * been applied to all managed instances in the group.
      * 
* @@ -711,7 +711,7 @@ public boolean getEffective() { * * *
-     * Output only. [Output Only] A bit indicating whether this configuration has
+     * Output only. A bit indicating whether this configuration has
      * been applied to all managed instances in the group.
      * 
* @@ -732,7 +732,7 @@ public Builder setEffective(boolean value) { * * *
-     * Output only. [Output Only] A bit indicating whether this configuration has
+     * Output only. A bit indicating whether this configuration has
      * been applied to all managed instances in the group.
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfigOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfigOrBuilder.java index e6c3f5b8a8e2..d79680a62bb5 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfigOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusAllInstancesConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusAllInstancesConfigOrBuilder * * *
-   * Output only. [Output Only] Current all-instances configuration revision.
+   * Output only. Current all-instances configuration revision.
    * This value is in RFC3339 text format.
    * 
* @@ -44,7 +44,7 @@ public interface InstanceGroupManagerStatusAllInstancesConfigOrBuilder * * *
-   * Output only. [Output Only] Current all-instances configuration revision.
+   * Output only. Current all-instances configuration revision.
    * This value is in RFC3339 text format.
    * 
* @@ -58,7 +58,7 @@ public interface InstanceGroupManagerStatusAllInstancesConfigOrBuilder * * *
-   * Output only. [Output Only] Current all-instances configuration revision.
+   * Output only. Current all-instances configuration revision.
    * This value is in RFC3339 text format.
    * 
* @@ -72,7 +72,7 @@ public interface InstanceGroupManagerStatusAllInstancesConfigOrBuilder * * *
-   * Output only. [Output Only] A bit indicating whether this configuration has
+   * Output only. A bit indicating whether this configuration has
    * been applied to all managed instances in the group.
    * 
* @@ -86,7 +86,7 @@ public interface InstanceGroupManagerStatusAllInstancesConfigOrBuilder * * *
-   * Output only. [Output Only] A bit indicating whether this configuration has
+   * Output only. A bit indicating whether this configuration has
    * been applied to all managed instances in the group.
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperation.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperation.java index a3b36e872259..51f69a3c7aaf 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperation.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+   * Output only. Informs whether bulk instance operation is in progress.
    * 
* * optional bool in_progress = 320200711; @@ -96,7 +96,7 @@ public boolean hasInProgress() { * * *
-   * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+   * Output only. Informs whether bulk instance operation is in progress.
    * 
* * optional bool in_progress = 320200711; @@ -117,7 +117,7 @@ public boolean getInProgress() { * * *
-   * Output only. [Output Only] Information from the last progress check of bulk instance
+   * Output only. Information from the last progress check of bulk instance
    * operation.
    * 
* @@ -136,7 +136,7 @@ public boolean hasLastProgressCheck() { * * *
-   * Output only. [Output Only] Information from the last progress check of bulk instance
+   * Output only. Information from the last progress check of bulk instance
    * operation.
    * 
* @@ -160,7 +160,7 @@ public boolean hasLastProgressCheck() { * * *
-   * Output only. [Output Only] Information from the last progress check of bulk instance
+   * Output only. Information from the last progress check of bulk instance
    * operation.
    * 
* @@ -567,7 +567,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+     * Output only. Informs whether bulk instance operation is in progress.
      * 
* * optional bool in_progress = 320200711; @@ -583,7 +583,7 @@ public boolean hasInProgress() { * * *
-     * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+     * Output only. Informs whether bulk instance operation is in progress.
      * 
* * optional bool in_progress = 320200711; @@ -599,7 +599,7 @@ public boolean getInProgress() { * * *
-     * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+     * Output only. Informs whether bulk instance operation is in progress.
      * 
* * optional bool in_progress = 320200711; @@ -619,7 +619,7 @@ public Builder setInProgress(boolean value) { * * *
-     * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+     * Output only. Informs whether bulk instance operation is in progress.
      * 
* * optional bool in_progress = 320200711; @@ -649,7 +649,7 @@ public Builder clearInProgress() { * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -667,7 +667,7 @@ public boolean hasLastProgressCheck() { * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -695,7 +695,7 @@ public boolean hasLastProgressCheck() { * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -723,7 +723,7 @@ public Builder setLastProgressCheck( * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -749,7 +749,7 @@ public Builder setLastProgressCheck( * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -785,7 +785,7 @@ public Builder mergeLastProgressCheck( * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -808,7 +808,7 @@ public Builder clearLastProgressCheck() { * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -828,7 +828,7 @@ public Builder clearLastProgressCheck() { * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* @@ -854,7 +854,7 @@ public Builder clearLastProgressCheck() { * * *
-     * Output only. [Output Only] Information from the last progress check of bulk instance
+     * Output only. Information from the last progress check of bulk instance
      * operation.
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java index 2d11c8b0ad84..b64d43f3df0a 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] Errors encountered during bulk instance operation.
+   * Output only. Errors encountered during bulk instance operation.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -98,7 +98,7 @@ public boolean hasError() { * * *
-   * Output only. [Output Only] Errors encountered during bulk instance operation.
+   * Output only. Errors encountered during bulk instance operation.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -114,7 +114,7 @@ public com.google.cloud.compute.v1.Error getError() { * * *
-   * Output only. [Output Only] Errors encountered during bulk instance operation.
+   * Output only. Errors encountered during bulk instance operation.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -133,7 +133,7 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-   * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+   * Output only. Timestamp of the last progress check of bulk instance
    * operation. Timestamp is in RFC3339 text format.
    * 
* @@ -150,7 +150,7 @@ public boolean hasTimestamp() { * * *
-   * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+   * Output only. Timestamp of the last progress check of bulk instance
    * operation. Timestamp is in RFC3339 text format.
    * 
* @@ -175,7 +175,7 @@ public java.lang.String getTimestamp() { * * *
-   * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+   * Output only. Timestamp of the last progress check of bulk instance
    * operation. Timestamp is in RFC3339 text format.
    * 
* @@ -618,7 +618,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -633,7 +633,7 @@ public boolean hasError() { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -652,7 +652,7 @@ public com.google.cloud.compute.v1.Error getError() { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -675,7 +675,7 @@ public Builder setError(com.google.cloud.compute.v1.Error value) { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -695,7 +695,7 @@ public Builder setError(com.google.cloud.compute.v1.Error.Builder builderForValu * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -723,7 +723,7 @@ public Builder mergeError(com.google.cloud.compute.v1.Error value) { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -743,7 +743,7 @@ public Builder clearError() { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -758,7 +758,7 @@ public com.google.cloud.compute.v1.Error.Builder getErrorBuilder() { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -775,7 +775,7 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. [Output Only] Errors encountered during bulk instance operation.
+     * Output only. Errors encountered during bulk instance operation.
      * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -803,7 +803,7 @@ public com.google.cloud.compute.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+     * Output only. Timestamp of the last progress check of bulk instance
      * operation. Timestamp is in RFC3339 text format.
      * 
* @@ -819,7 +819,7 @@ public boolean hasTimestamp() { * * *
-     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+     * Output only. Timestamp of the last progress check of bulk instance
      * operation. Timestamp is in RFC3339 text format.
      * 
* @@ -843,7 +843,7 @@ public java.lang.String getTimestamp() { * * *
-     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+     * Output only. Timestamp of the last progress check of bulk instance
      * operation. Timestamp is in RFC3339 text format.
      * 
* @@ -867,7 +867,7 @@ public com.google.protobuf.ByteString getTimestampBytes() { * * *
-     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+     * Output only. Timestamp of the last progress check of bulk instance
      * operation. Timestamp is in RFC3339 text format.
      * 
* @@ -890,7 +890,7 @@ public Builder setTimestamp(java.lang.String value) { * * *
-     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+     * Output only. Timestamp of the last progress check of bulk instance
      * operation. Timestamp is in RFC3339 text format.
      * 
* @@ -909,7 +909,7 @@ public Builder clearTimestamp() { * * *
-     * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+     * Output only. Timestamp of the last progress check of bulk instance
      * operation. Timestamp is in RFC3339 text format.
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckOrBuilder.java index 3cd56096be0f..5fef67250088 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationLastProgressChec * * *
-   * Output only. [Output Only] Errors encountered during bulk instance operation.
+   * Output only. Errors encountered during bulk instance operation.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -43,7 +43,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationLastProgressChec * * *
-   * Output only. [Output Only] Errors encountered during bulk instance operation.
+   * Output only. Errors encountered during bulk instance operation.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -56,7 +56,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationLastProgressChec * * *
-   * Output only. [Output Only] Errors encountered during bulk instance operation.
+   * Output only. Errors encountered during bulk instance operation.
    * 
* * optional .google.cloud.compute.v1.Error error = 96784904; @@ -67,7 +67,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationLastProgressChec * * *
-   * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+   * Output only. Timestamp of the last progress check of bulk instance
    * operation. Timestamp is in RFC3339 text format.
    * 
* @@ -81,7 +81,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationLastProgressChec * * *
-   * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+   * Output only. Timestamp of the last progress check of bulk instance
    * operation. Timestamp is in RFC3339 text format.
    * 
* @@ -95,7 +95,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationLastProgressChec * * *
-   * Output only. [Output Only] Timestamp of the last progress check of bulk instance
+   * Output only. Timestamp of the last progress check of bulk instance
    * operation. Timestamp is in RFC3339 text format.
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationOrBuilder.java index 01b2ada756df..c03c25b1bb8d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusBulkInstanceOperationOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationOrBuilder * * *
-   * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+   * Output only. Informs whether bulk instance operation is in progress.
    * 
* * optional bool in_progress = 320200711; @@ -43,7 +43,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationOrBuilder * * *
-   * Output only. [Output Only] Informs whether bulk instance operation is in progress.
+   * Output only. Informs whether bulk instance operation is in progress.
    * 
* * optional bool in_progress = 320200711; @@ -56,7 +56,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationOrBuilder * * *
-   * Output only. [Output Only] Information from the last progress check of bulk instance
+   * Output only. Information from the last progress check of bulk instance
    * operation.
    * 
* @@ -72,7 +72,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationOrBuilder * * *
-   * Output only. [Output Only] Information from the last progress check of bulk instance
+   * Output only. Information from the last progress check of bulk instance
    * operation.
    * 
* @@ -89,7 +89,7 @@ public interface InstanceGroupManagerStatusBulkInstanceOperationOrBuilder * * *
-   * Output only. [Output Only] Information from the last progress check of bulk instance
+   * Output only. Information from the last progress check of bulk instance
    * operation.
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummary.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummary.java new file mode 100644 index 000000000000..30b9b07b575a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummary.java @@ -0,0 +1,2315 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * The list of instance statuses and the number of instances in this managed
+ * instance group that have the status. For more information about how to
+ * interpret each status check the instance lifecycle documentation.
+ * Currently only shown for TPU MIGs.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} + */ +@com.google.protobuf.Generated +public final class InstanceGroupManagerStatusInstanceStatusSummary + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) + InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstanceGroupManagerStatusInstanceStatusSummary"); + } + + // Use InstanceGroupManagerStatusInstanceStatusSummary.newBuilder() to construct. + private InstanceGroupManagerStatusInstanceStatusSummary( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceGroupManagerStatusInstanceStatusSummary() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.class, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder + .class); + } + + private int bitField0_; + public static final int DEPROVISIONING_FIELD_NUMBER = 462169582; + private int deprovisioning_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have DEPROVISIONING status.
+   * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return Whether the deprovisioning field is set. + */ + @java.lang.Override + public boolean hasDeprovisioning() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have DEPROVISIONING status.
+   * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return The deprovisioning. + */ + @java.lang.Override + public int getDeprovisioning() { + return deprovisioning_; + } + + public static final int NON_EXISTENT_FIELD_NUMBER = 468485062; + private int nonExistent_ = 0; + + /** + * + * + *
+   * Output only. The number of instances that have not been created yet or
+   * have been deleted. Includes only instances that would be shown in the
+   * listManagedInstances method and not all instances that have been
+   * deleted in the lifetime of the MIG.
+   * Does not include FlexStart instances that are waiting for the resources
+   * availability, they are considered as 'pending'.
+   * 
+ * + * optional int32 non_existent = 468485062; + * + * @return Whether the nonExistent field is set. + */ + @java.lang.Override + public boolean hasNonExistent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances that have not been created yet or
+   * have been deleted. Includes only instances that would be shown in the
+   * listManagedInstances method and not all instances that have been
+   * deleted in the lifetime of the MIG.
+   * Does not include FlexStart instances that are waiting for the resources
+   * availability, they are considered as 'pending'.
+   * 
+ * + * optional int32 non_existent = 468485062; + * + * @return The nonExistent. + */ + @java.lang.Override + public int getNonExistent() { + return nonExistent_; + } + + public static final int PENDING_FIELD_NUMBER = 391154071; + private int pending_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING status, that is FlexStart instances that are waiting
+   * for resources. Instances that do not exist because of the other reasons
+   * are counted as 'non_existent'.
+   * 
+ * + * optional int32 pending = 391154071; + * + * @return Whether the pending field is set. + */ + @java.lang.Override + public boolean hasPending() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING status, that is FlexStart instances that are waiting
+   * for resources. Instances that do not exist because of the other reasons
+   * are counted as 'non_existent'.
+   * 
+ * + * optional int32 pending = 391154071; + * + * @return The pending. + */ + @java.lang.Override + public int getPending() { + return pending_; + } + + public static final int PENDING_STOP_FIELD_NUMBER = 163159466; + private int pendingStop_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING_STOP status.
+   * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return Whether the pendingStop field is set. + */ + @java.lang.Override + public boolean hasPendingStop() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING_STOP status.
+   * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return The pendingStop. + */ + @java.lang.Override + public int getPendingStop() { + return pendingStop_; + } + + public static final int PROVISIONING_FIELD_NUMBER = 121098989; + private int provisioning_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PROVISIONING status.
+   * 
+ * + * optional int32 provisioning = 121098989; + * + * @return Whether the provisioning field is set. + */ + @java.lang.Override + public boolean hasProvisioning() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PROVISIONING status.
+   * 
+ * + * optional int32 provisioning = 121098989; + * + * @return The provisioning. + */ + @java.lang.Override + public int getProvisioning() { + return provisioning_; + } + + public static final int REPAIRING_FIELD_NUMBER = 311243061; + private int repairing_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have REPAIRING status.
+   * 
+ * + * optional int32 repairing = 311243061; + * + * @return Whether the repairing field is set. + */ + @java.lang.Override + public boolean hasRepairing() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have REPAIRING status.
+   * 
+ * + * optional int32 repairing = 311243061; + * + * @return The repairing. + */ + @java.lang.Override + public int getRepairing() { + return repairing_; + } + + public static final int RUNNING_FIELD_NUMBER = 477042111; + private int running_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have RUNNING status.
+   * 
+ * + * optional int32 running = 477042111; + * + * @return Whether the running field is set. + */ + @java.lang.Override + public boolean hasRunning() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have RUNNING status.
+   * 
+ * + * optional int32 running = 477042111; + * + * @return The running. + */ + @java.lang.Override + public int getRunning() { + return running_; + } + + public static final int STAGING_FIELD_NUMBER = 249960507; + private int staging_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STAGING status.
+   * 
+ * + * optional int32 staging = 249960507; + * + * @return Whether the staging field is set. + */ + @java.lang.Override + public boolean hasStaging() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STAGING status.
+   * 
+ * + * optional int32 staging = 249960507; + * + * @return The staging. + */ + @java.lang.Override + public int getStaging() { + return staging_; + } + + public static final int STOPPED_FIELD_NUMBER = 263164365; + private int stopped_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPED status.
+   * 
+ * + * optional int32 stopped = 263164365; + * + * @return Whether the stopped field is set. + */ + @java.lang.Override + public boolean hasStopped() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPED status.
+   * 
+ * + * optional int32 stopped = 263164365; + * + * @return The stopped. + */ + @java.lang.Override + public int getStopped() { + return stopped_; + } + + public static final int STOPPING_FIELD_NUMBER = 105035892; + private int stopping_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPING status.
+   * 
+ * + * optional int32 stopping = 105035892; + * + * @return Whether the stopping field is set. + */ + @java.lang.Override + public boolean hasStopping() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPING status.
+   * 
+ * + * optional int32 stopping = 105035892; + * + * @return The stopping. + */ + @java.lang.Override + public int getStopping() { + return stopping_; + } + + public static final int SUSPENDED_FIELD_NUMBER = 485854683; + private int suspended_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDED status.
+   * 
+ * + * optional int32 suspended = 485854683; + * + * @return Whether the suspended field is set. + */ + @java.lang.Override + public boolean hasSuspended() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDED status.
+   * 
+ * + * optional int32 suspended = 485854683; + * + * @return The suspended. + */ + @java.lang.Override + public int getSuspended() { + return suspended_; + } + + public static final int SUSPENDING_FIELD_NUMBER = 29113894; + private int suspending_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDING status.
+   * 
+ * + * optional int32 suspending = 29113894; + * + * @return Whether the suspending field is set. + */ + @java.lang.Override + public boolean hasSuspending() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDING status.
+   * 
+ * + * optional int32 suspending = 29113894; + * + * @return The suspending. + */ + @java.lang.Override + public int getSuspending() { + return suspending_; + } + + public static final int TERMINATED_FIELD_NUMBER = 301796899; + private int terminated_ = 0; + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have TERMINATED status.
+   * 
+ * + * optional int32 terminated = 301796899; + * + * @return Whether the terminated field is set. + */ + @java.lang.Override + public boolean hasTerminated() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have TERMINATED status.
+   * 
+ * + * optional int32 terminated = 301796899; + * + * @return The terminated. + */ + @java.lang.Override + public int getTerminated() { + return terminated_; + } + + 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_ & 0x00000800) != 0)) { + output.writeInt32(29113894, suspending_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt32(105035892, stopping_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(121098989, provisioning_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(163159466, pendingStop_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt32(249960507, staging_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt32(263164365, stopped_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeInt32(301796899, terminated_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt32(311243061, repairing_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(391154071, pending_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(462169582, deprovisioning_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(468485062, nonExistent_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(477042111, running_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeInt32(485854683, suspended_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(29113894, suspending_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(105035892, stopping_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(121098989, provisioning_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(163159466, pendingStop_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(249960507, staging_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(263164365, stopped_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(301796899, terminated_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(311243061, repairing_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(391154071, pending_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(462169582, deprovisioning_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(468485062, nonExistent_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(477042111, running_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(485854683, suspended_); + } + 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.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary other = + (com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) obj; + + if (hasDeprovisioning() != other.hasDeprovisioning()) return false; + if (hasDeprovisioning()) { + if (getDeprovisioning() != other.getDeprovisioning()) return false; + } + if (hasNonExistent() != other.hasNonExistent()) return false; + if (hasNonExistent()) { + if (getNonExistent() != other.getNonExistent()) return false; + } + if (hasPending() != other.hasPending()) return false; + if (hasPending()) { + if (getPending() != other.getPending()) return false; + } + if (hasPendingStop() != other.hasPendingStop()) return false; + if (hasPendingStop()) { + if (getPendingStop() != other.getPendingStop()) return false; + } + if (hasProvisioning() != other.hasProvisioning()) return false; + if (hasProvisioning()) { + if (getProvisioning() != other.getProvisioning()) return false; + } + if (hasRepairing() != other.hasRepairing()) return false; + if (hasRepairing()) { + if (getRepairing() != other.getRepairing()) return false; + } + if (hasRunning() != other.hasRunning()) return false; + if (hasRunning()) { + if (getRunning() != other.getRunning()) return false; + } + if (hasStaging() != other.hasStaging()) return false; + if (hasStaging()) { + if (getStaging() != other.getStaging()) return false; + } + if (hasStopped() != other.hasStopped()) return false; + if (hasStopped()) { + if (getStopped() != other.getStopped()) return false; + } + if (hasStopping() != other.hasStopping()) return false; + if (hasStopping()) { + if (getStopping() != other.getStopping()) return false; + } + if (hasSuspended() != other.hasSuspended()) return false; + if (hasSuspended()) { + if (getSuspended() != other.getSuspended()) return false; + } + if (hasSuspending() != other.hasSuspending()) return false; + if (hasSuspending()) { + if (getSuspending() != other.getSuspending()) return false; + } + if (hasTerminated() != other.hasTerminated()) return false; + if (hasTerminated()) { + if (getTerminated() != other.getTerminated()) 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 (hasDeprovisioning()) { + hash = (37 * hash) + DEPROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + getDeprovisioning(); + } + if (hasNonExistent()) { + hash = (37 * hash) + NON_EXISTENT_FIELD_NUMBER; + hash = (53 * hash) + getNonExistent(); + } + if (hasPending()) { + hash = (37 * hash) + PENDING_FIELD_NUMBER; + hash = (53 * hash) + getPending(); + } + if (hasPendingStop()) { + hash = (37 * hash) + PENDING_STOP_FIELD_NUMBER; + hash = (53 * hash) + getPendingStop(); + } + if (hasProvisioning()) { + hash = (37 * hash) + PROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + getProvisioning(); + } + if (hasRepairing()) { + hash = (37 * hash) + REPAIRING_FIELD_NUMBER; + hash = (53 * hash) + getRepairing(); + } + if (hasRunning()) { + hash = (37 * hash) + RUNNING_FIELD_NUMBER; + hash = (53 * hash) + getRunning(); + } + if (hasStaging()) { + hash = (37 * hash) + STAGING_FIELD_NUMBER; + hash = (53 * hash) + getStaging(); + } + if (hasStopped()) { + hash = (37 * hash) + STOPPED_FIELD_NUMBER; + hash = (53 * hash) + getStopped(); + } + if (hasStopping()) { + hash = (37 * hash) + STOPPING_FIELD_NUMBER; + hash = (53 * hash) + getStopping(); + } + if (hasSuspended()) { + hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; + hash = (53 * hash) + getSuspended(); + } + if (hasSuspending()) { + hash = (37 * hash) + SUSPENDING_FIELD_NUMBER; + hash = (53 * hash) + getSuspending(); + } + if (hasTerminated()) { + hash = (37 * hash) + TERMINATED_FIELD_NUMBER; + hash = (53 * hash) + getTerminated(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + 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.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The list of instance statuses and the number of instances in this managed
+   * instance group that have the status. For more information about how to
+   * interpret each status check the instance lifecycle documentation.
+   * Currently only shown for TPU MIGs.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.class, + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deprovisioning_ = 0; + nonExistent_ = 0; + pending_ = 0; + pendingStop_ = 0; + provisioning_ = 0; + repairing_ = 0; + running_ = 0; + staging_ = 0; + stopped_ = 0; + stopping_ = 0; + suspended_ = 0; + suspending_ = 0; + terminated_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusInstanceStatusSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary build() { + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + buildPartial() { + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary result = + new com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deprovisioning_ = deprovisioning_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nonExistent_ = nonExistent_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pending_ = pending_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pendingStop_ = pendingStop_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.provisioning_ = provisioning_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.repairing_ = repairing_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.running_ = running_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.staging_ = staging_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.stopped_ = stopped_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.stopping_ = stopping_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.suspended_ = suspended_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.suspending_ = suspending_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.terminated_ = terminated_; + to_bitField0_ |= 0x00001000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) { + return mergeFrom( + (com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary other) { + if (other + == com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + .getDefaultInstance()) return this; + if (other.hasDeprovisioning()) { + setDeprovisioning(other.getDeprovisioning()); + } + if (other.hasNonExistent()) { + setNonExistent(other.getNonExistent()); + } + if (other.hasPending()) { + setPending(other.getPending()); + } + if (other.hasPendingStop()) { + setPendingStop(other.getPendingStop()); + } + if (other.hasProvisioning()) { + setProvisioning(other.getProvisioning()); + } + if (other.hasRepairing()) { + setRepairing(other.getRepairing()); + } + if (other.hasRunning()) { + setRunning(other.getRunning()); + } + if (other.hasStaging()) { + setStaging(other.getStaging()); + } + if (other.hasStopped()) { + setStopped(other.getStopped()); + } + if (other.hasStopping()) { + setStopping(other.getStopping()); + } + if (other.hasSuspended()) { + setSuspended(other.getSuspended()); + } + if (other.hasSuspending()) { + setSuspending(other.getSuspending()); + } + if (other.hasTerminated()) { + setTerminated(other.getTerminated()); + } + 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 232911152: + { + suspending_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 232911152 + case 840287136: + { + stopping_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 840287136 + case 968791912: + { + provisioning_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 968791912 + case 1305275728: + { + pendingStop_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 1305275728 + case 1999684056: + { + staging_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 1999684056 + case 2105314920: + { + stopped_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 2105314920 + case -1880592104: + { + terminated_ = input.readInt32(); + bitField0_ |= 0x00001000; + break; + } // case -1880592104 + case -1805022808: + { + repairing_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case -1805022808 + case -1165734728: + { + pending_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case -1165734728 + case -597610640: + { + deprovisioning_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case -597610640 + case -547086800: + { + nonExistent_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case -547086800 + case -478630408: + { + running_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case -478630408 + case -408129832: + { + suspended_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case -408129832 + 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 deprovisioning_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have DEPROVISIONING status.
+     * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return Whether the deprovisioning field is set. + */ + @java.lang.Override + public boolean hasDeprovisioning() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have DEPROVISIONING status.
+     * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return The deprovisioning. + */ + @java.lang.Override + public int getDeprovisioning() { + return deprovisioning_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have DEPROVISIONING status.
+     * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @param value The deprovisioning to set. + * @return This builder for chaining. + */ + public Builder setDeprovisioning(int value) { + + deprovisioning_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have DEPROVISIONING status.
+     * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return This builder for chaining. + */ + public Builder clearDeprovisioning() { + bitField0_ = (bitField0_ & ~0x00000001); + deprovisioning_ = 0; + onChanged(); + return this; + } + + private int nonExistent_; + + /** + * + * + *
+     * Output only. The number of instances that have not been created yet or
+     * have been deleted. Includes only instances that would be shown in the
+     * listManagedInstances method and not all instances that have been
+     * deleted in the lifetime of the MIG.
+     * Does not include FlexStart instances that are waiting for the resources
+     * availability, they are considered as 'pending'.
+     * 
+ * + * optional int32 non_existent = 468485062; + * + * @return Whether the nonExistent field is set. + */ + @java.lang.Override + public boolean hasNonExistent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances that have not been created yet or
+     * have been deleted. Includes only instances that would be shown in the
+     * listManagedInstances method and not all instances that have been
+     * deleted in the lifetime of the MIG.
+     * Does not include FlexStart instances that are waiting for the resources
+     * availability, they are considered as 'pending'.
+     * 
+ * + * optional int32 non_existent = 468485062; + * + * @return The nonExistent. + */ + @java.lang.Override + public int getNonExistent() { + return nonExistent_; + } + + /** + * + * + *
+     * Output only. The number of instances that have not been created yet or
+     * have been deleted. Includes only instances that would be shown in the
+     * listManagedInstances method and not all instances that have been
+     * deleted in the lifetime of the MIG.
+     * Does not include FlexStart instances that are waiting for the resources
+     * availability, they are considered as 'pending'.
+     * 
+ * + * optional int32 non_existent = 468485062; + * + * @param value The nonExistent to set. + * @return This builder for chaining. + */ + public Builder setNonExistent(int value) { + + nonExistent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances that have not been created yet or
+     * have been deleted. Includes only instances that would be shown in the
+     * listManagedInstances method and not all instances that have been
+     * deleted in the lifetime of the MIG.
+     * Does not include FlexStart instances that are waiting for the resources
+     * availability, they are considered as 'pending'.
+     * 
+ * + * optional int32 non_existent = 468485062; + * + * @return This builder for chaining. + */ + public Builder clearNonExistent() { + bitField0_ = (bitField0_ & ~0x00000002); + nonExistent_ = 0; + onChanged(); + return this; + } + + private int pending_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING status, that is FlexStart instances that are waiting
+     * for resources. Instances that do not exist because of the other reasons
+     * are counted as 'non_existent'.
+     * 
+ * + * optional int32 pending = 391154071; + * + * @return Whether the pending field is set. + */ + @java.lang.Override + public boolean hasPending() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING status, that is FlexStart instances that are waiting
+     * for resources. Instances that do not exist because of the other reasons
+     * are counted as 'non_existent'.
+     * 
+ * + * optional int32 pending = 391154071; + * + * @return The pending. + */ + @java.lang.Override + public int getPending() { + return pending_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING status, that is FlexStart instances that are waiting
+     * for resources. Instances that do not exist because of the other reasons
+     * are counted as 'non_existent'.
+     * 
+ * + * optional int32 pending = 391154071; + * + * @param value The pending to set. + * @return This builder for chaining. + */ + public Builder setPending(int value) { + + pending_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING status, that is FlexStart instances that are waiting
+     * for resources. Instances that do not exist because of the other reasons
+     * are counted as 'non_existent'.
+     * 
+ * + * optional int32 pending = 391154071; + * + * @return This builder for chaining. + */ + public Builder clearPending() { + bitField0_ = (bitField0_ & ~0x00000004); + pending_ = 0; + onChanged(); + return this; + } + + private int pendingStop_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING_STOP status.
+     * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return Whether the pendingStop field is set. + */ + @java.lang.Override + public boolean hasPendingStop() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING_STOP status.
+     * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return The pendingStop. + */ + @java.lang.Override + public int getPendingStop() { + return pendingStop_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING_STOP status.
+     * 
+ * + * optional int32 pending_stop = 163159466; + * + * @param value The pendingStop to set. + * @return This builder for chaining. + */ + public Builder setPendingStop(int value) { + + pendingStop_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PENDING_STOP status.
+     * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return This builder for chaining. + */ + public Builder clearPendingStop() { + bitField0_ = (bitField0_ & ~0x00000008); + pendingStop_ = 0; + onChanged(); + return this; + } + + private int provisioning_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PROVISIONING status.
+     * 
+ * + * optional int32 provisioning = 121098989; + * + * @return Whether the provisioning field is set. + */ + @java.lang.Override + public boolean hasProvisioning() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PROVISIONING status.
+     * 
+ * + * optional int32 provisioning = 121098989; + * + * @return The provisioning. + */ + @java.lang.Override + public int getProvisioning() { + return provisioning_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PROVISIONING status.
+     * 
+ * + * optional int32 provisioning = 121098989; + * + * @param value The provisioning to set. + * @return This builder for chaining. + */ + public Builder setProvisioning(int value) { + + provisioning_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have PROVISIONING status.
+     * 
+ * + * optional int32 provisioning = 121098989; + * + * @return This builder for chaining. + */ + public Builder clearProvisioning() { + bitField0_ = (bitField0_ & ~0x00000010); + provisioning_ = 0; + onChanged(); + return this; + } + + private int repairing_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have REPAIRING status.
+     * 
+ * + * optional int32 repairing = 311243061; + * + * @return Whether the repairing field is set. + */ + @java.lang.Override + public boolean hasRepairing() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have REPAIRING status.
+     * 
+ * + * optional int32 repairing = 311243061; + * + * @return The repairing. + */ + @java.lang.Override + public int getRepairing() { + return repairing_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have REPAIRING status.
+     * 
+ * + * optional int32 repairing = 311243061; + * + * @param value The repairing to set. + * @return This builder for chaining. + */ + public Builder setRepairing(int value) { + + repairing_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have REPAIRING status.
+     * 
+ * + * optional int32 repairing = 311243061; + * + * @return This builder for chaining. + */ + public Builder clearRepairing() { + bitField0_ = (bitField0_ & ~0x00000020); + repairing_ = 0; + onChanged(); + return this; + } + + private int running_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have RUNNING status.
+     * 
+ * + * optional int32 running = 477042111; + * + * @return Whether the running field is set. + */ + @java.lang.Override + public boolean hasRunning() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have RUNNING status.
+     * 
+ * + * optional int32 running = 477042111; + * + * @return The running. + */ + @java.lang.Override + public int getRunning() { + return running_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have RUNNING status.
+     * 
+ * + * optional int32 running = 477042111; + * + * @param value The running to set. + * @return This builder for chaining. + */ + public Builder setRunning(int value) { + + running_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have RUNNING status.
+     * 
+ * + * optional int32 running = 477042111; + * + * @return This builder for chaining. + */ + public Builder clearRunning() { + bitField0_ = (bitField0_ & ~0x00000040); + running_ = 0; + onChanged(); + return this; + } + + private int staging_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STAGING status.
+     * 
+ * + * optional int32 staging = 249960507; + * + * @return Whether the staging field is set. + */ + @java.lang.Override + public boolean hasStaging() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STAGING status.
+     * 
+ * + * optional int32 staging = 249960507; + * + * @return The staging. + */ + @java.lang.Override + public int getStaging() { + return staging_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STAGING status.
+     * 
+ * + * optional int32 staging = 249960507; + * + * @param value The staging to set. + * @return This builder for chaining. + */ + public Builder setStaging(int value) { + + staging_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STAGING status.
+     * 
+ * + * optional int32 staging = 249960507; + * + * @return This builder for chaining. + */ + public Builder clearStaging() { + bitField0_ = (bitField0_ & ~0x00000080); + staging_ = 0; + onChanged(); + return this; + } + + private int stopped_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPED status.
+     * 
+ * + * optional int32 stopped = 263164365; + * + * @return Whether the stopped field is set. + */ + @java.lang.Override + public boolean hasStopped() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPED status.
+     * 
+ * + * optional int32 stopped = 263164365; + * + * @return The stopped. + */ + @java.lang.Override + public int getStopped() { + return stopped_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPED status.
+     * 
+ * + * optional int32 stopped = 263164365; + * + * @param value The stopped to set. + * @return This builder for chaining. + */ + public Builder setStopped(int value) { + + stopped_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPED status.
+     * 
+ * + * optional int32 stopped = 263164365; + * + * @return This builder for chaining. + */ + public Builder clearStopped() { + bitField0_ = (bitField0_ & ~0x00000100); + stopped_ = 0; + onChanged(); + return this; + } + + private int stopping_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPING status.
+     * 
+ * + * optional int32 stopping = 105035892; + * + * @return Whether the stopping field is set. + */ + @java.lang.Override + public boolean hasStopping() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPING status.
+     * 
+ * + * optional int32 stopping = 105035892; + * + * @return The stopping. + */ + @java.lang.Override + public int getStopping() { + return stopping_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPING status.
+     * 
+ * + * optional int32 stopping = 105035892; + * + * @param value The stopping to set. + * @return This builder for chaining. + */ + public Builder setStopping(int value) { + + stopping_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have STOPPING status.
+     * 
+ * + * optional int32 stopping = 105035892; + * + * @return This builder for chaining. + */ + public Builder clearStopping() { + bitField0_ = (bitField0_ & ~0x00000200); + stopping_ = 0; + onChanged(); + return this; + } + + private int suspended_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDED status.
+     * 
+ * + * optional int32 suspended = 485854683; + * + * @return Whether the suspended field is set. + */ + @java.lang.Override + public boolean hasSuspended() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDED status.
+     * 
+ * + * optional int32 suspended = 485854683; + * + * @return The suspended. + */ + @java.lang.Override + public int getSuspended() { + return suspended_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDED status.
+     * 
+ * + * optional int32 suspended = 485854683; + * + * @param value The suspended to set. + * @return This builder for chaining. + */ + public Builder setSuspended(int value) { + + suspended_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDED status.
+     * 
+ * + * optional int32 suspended = 485854683; + * + * @return This builder for chaining. + */ + public Builder clearSuspended() { + bitField0_ = (bitField0_ & ~0x00000400); + suspended_ = 0; + onChanged(); + return this; + } + + private int suspending_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDING status.
+     * 
+ * + * optional int32 suspending = 29113894; + * + * @return Whether the suspending field is set. + */ + @java.lang.Override + public boolean hasSuspending() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDING status.
+     * 
+ * + * optional int32 suspending = 29113894; + * + * @return The suspending. + */ + @java.lang.Override + public int getSuspending() { + return suspending_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDING status.
+     * 
+ * + * optional int32 suspending = 29113894; + * + * @param value The suspending to set. + * @return This builder for chaining. + */ + public Builder setSuspending(int value) { + + suspending_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have SUSPENDING status.
+     * 
+ * + * optional int32 suspending = 29113894; + * + * @return This builder for chaining. + */ + public Builder clearSuspending() { + bitField0_ = (bitField0_ & ~0x00000800); + suspending_ = 0; + onChanged(); + return this; + } + + private int terminated_; + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have TERMINATED status.
+     * 
+ * + * optional int32 terminated = 301796899; + * + * @return Whether the terminated field is set. + */ + @java.lang.Override + public boolean hasTerminated() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have TERMINATED status.
+     * 
+ * + * optional int32 terminated = 301796899; + * + * @return The terminated. + */ + @java.lang.Override + public int getTerminated() { + return terminated_; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have TERMINATED status.
+     * 
+ * + * optional int32 terminated = 301796899; + * + * @param value The terminated to set. + * @return This builder for chaining. + */ + public Builder setTerminated(int value) { + + terminated_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of instances in the managed instance group
+     * that have TERMINATED status.
+     * 
+ * + * optional int32 terminated = 301796899; + * + * @return This builder for chaining. + */ + public Builder clearTerminated() { + bitField0_ = (bitField0_ & ~0x00001000); + terminated_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) + private static final com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary(); + } + + public static com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + InstanceGroupManagerStatusInstanceStatusSummary>() { + @java.lang.Override + public InstanceGroupManagerStatusInstanceStatusSummary 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.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder.java new file mode 100644 index 000000000000..7275e3fda357 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder.java @@ -0,0 +1,404 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have DEPROVISIONING status.
+   * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return Whether the deprovisioning field is set. + */ + boolean hasDeprovisioning(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have DEPROVISIONING status.
+   * 
+ * + * optional int32 deprovisioning = 462169582; + * + * @return The deprovisioning. + */ + int getDeprovisioning(); + + /** + * + * + *
+   * Output only. The number of instances that have not been created yet or
+   * have been deleted. Includes only instances that would be shown in the
+   * listManagedInstances method and not all instances that have been
+   * deleted in the lifetime of the MIG.
+   * Does not include FlexStart instances that are waiting for the resources
+   * availability, they are considered as 'pending'.
+   * 
+ * + * optional int32 non_existent = 468485062; + * + * @return Whether the nonExistent field is set. + */ + boolean hasNonExistent(); + + /** + * + * + *
+   * Output only. The number of instances that have not been created yet or
+   * have been deleted. Includes only instances that would be shown in the
+   * listManagedInstances method and not all instances that have been
+   * deleted in the lifetime of the MIG.
+   * Does not include FlexStart instances that are waiting for the resources
+   * availability, they are considered as 'pending'.
+   * 
+ * + * optional int32 non_existent = 468485062; + * + * @return The nonExistent. + */ + int getNonExistent(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING status, that is FlexStart instances that are waiting
+   * for resources. Instances that do not exist because of the other reasons
+   * are counted as 'non_existent'.
+   * 
+ * + * optional int32 pending = 391154071; + * + * @return Whether the pending field is set. + */ + boolean hasPending(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING status, that is FlexStart instances that are waiting
+   * for resources. Instances that do not exist because of the other reasons
+   * are counted as 'non_existent'.
+   * 
+ * + * optional int32 pending = 391154071; + * + * @return The pending. + */ + int getPending(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING_STOP status.
+   * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return Whether the pendingStop field is set. + */ + boolean hasPendingStop(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PENDING_STOP status.
+   * 
+ * + * optional int32 pending_stop = 163159466; + * + * @return The pendingStop. + */ + int getPendingStop(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PROVISIONING status.
+   * 
+ * + * optional int32 provisioning = 121098989; + * + * @return Whether the provisioning field is set. + */ + boolean hasProvisioning(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have PROVISIONING status.
+   * 
+ * + * optional int32 provisioning = 121098989; + * + * @return The provisioning. + */ + int getProvisioning(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have REPAIRING status.
+   * 
+ * + * optional int32 repairing = 311243061; + * + * @return Whether the repairing field is set. + */ + boolean hasRepairing(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have REPAIRING status.
+   * 
+ * + * optional int32 repairing = 311243061; + * + * @return The repairing. + */ + int getRepairing(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have RUNNING status.
+   * 
+ * + * optional int32 running = 477042111; + * + * @return Whether the running field is set. + */ + boolean hasRunning(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have RUNNING status.
+   * 
+ * + * optional int32 running = 477042111; + * + * @return The running. + */ + int getRunning(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STAGING status.
+   * 
+ * + * optional int32 staging = 249960507; + * + * @return Whether the staging field is set. + */ + boolean hasStaging(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STAGING status.
+   * 
+ * + * optional int32 staging = 249960507; + * + * @return The staging. + */ + int getStaging(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPED status.
+   * 
+ * + * optional int32 stopped = 263164365; + * + * @return Whether the stopped field is set. + */ + boolean hasStopped(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPED status.
+   * 
+ * + * optional int32 stopped = 263164365; + * + * @return The stopped. + */ + int getStopped(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPING status.
+   * 
+ * + * optional int32 stopping = 105035892; + * + * @return Whether the stopping field is set. + */ + boolean hasStopping(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have STOPPING status.
+   * 
+ * + * optional int32 stopping = 105035892; + * + * @return The stopping. + */ + int getStopping(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDED status.
+   * 
+ * + * optional int32 suspended = 485854683; + * + * @return Whether the suspended field is set. + */ + boolean hasSuspended(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDED status.
+   * 
+ * + * optional int32 suspended = 485854683; + * + * @return The suspended. + */ + int getSuspended(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDING status.
+   * 
+ * + * optional int32 suspending = 29113894; + * + * @return Whether the suspending field is set. + */ + boolean hasSuspending(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have SUSPENDING status.
+   * 
+ * + * optional int32 suspending = 29113894; + * + * @return The suspending. + */ + int getSuspending(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have TERMINATED status.
+   * 
+ * + * optional int32 terminated = 301796899; + * + * @return Whether the terminated field is set. + */ + boolean hasTerminated(); + + /** + * + * + *
+   * Output only. The number of instances in the managed instance group
+   * that have TERMINATED status.
+   * 
+ * + * optional int32 terminated = 301796899; + * + * @return The terminated. + */ + int getTerminated(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusOrBuilder.java index 83c9ceb143a8..49df4b20c63f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output only] Status of all-instances configuration on the group.
+   * Output only. Status of all-instances configuration on the group.
    * 
* * @@ -45,7 +45,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output only] Status of all-instances configuration on the group.
+   * Output only. Status of all-instances configuration on the group.
    * 
* * @@ -60,7 +60,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output only] Status of all-instances configuration on the group.
+   * Output only. Status of all-instances configuration on the group.
    * 
* * @@ -74,7 +74,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -89,7 +89,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -104,7 +104,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -118,7 +118,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -135,7 +135,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The accelerator topology applied to this MIG.
+   * Output only. The accelerator topology applied to this MIG.
    * Currently only one accelerator topology is supported.
    * 
* @@ -150,7 +150,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The URL of theAutoscaler
+   * Output only. The URL of theAutoscaler
    * that targets this instance group manager.
    * 
* @@ -164,7 +164,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The URL of theAutoscaler
+   * Output only. The URL of theAutoscaler
    * that targets this instance group manager.
    * 
* @@ -178,7 +178,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The URL of theAutoscaler
+   * Output only. The URL of theAutoscaler
    * that targets this instance group manager.
    * 
* @@ -192,7 +192,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The status of bulk instance operation.
+   * Output only. The status of bulk instance operation.
    * 
* * @@ -207,7 +207,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The status of bulk instance operation.
+   * Output only. The status of bulk instance operation.
    * 
* * @@ -223,7 +223,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] The status of bulk instance operation.
+   * Output only. The status of bulk instance operation.
    * 
* * @@ -237,7 +237,58 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+   * Output only. The list of instance statuses and the number of instances
+   * in this managed instance group that have the status. Currently only shown
+   * for TPU MIGs
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + * + * @return Whether the currentInstanceStatuses field is set. + */ + boolean hasCurrentInstanceStatuses(); + + /** + * + * + *
+   * Output only. The list of instance statuses and the number of instances
+   * in this managed instance group that have the status. Currently only shown
+   * for TPU MIGs
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + * + * @return The currentInstanceStatuses. + */ + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary + getCurrentInstanceStatuses(); + + /** + * + * + *
+   * Output only. The list of instance statuses and the number of instances
+   * in this managed instance group that have the status. Currently only shown
+   * for TPU MIGs
+   * 
+ * + * + * optional .google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder + getCurrentInstanceStatusesOrBuilder(); + + /** + * + * + *
+   * Output only. A bit indicating whether the managed instance group is in a
    * stable state. A stable state means that: none of the instances in the
    * managed instance group is currently undergoing any type of change (for
    * example, creation, restart, or deletion); no future changes are scheduled
@@ -255,7 +306,7 @@ public interface InstanceGroupManagerStatusOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] A bit indicating whether the managed instance group is in a
+   * Output only. A bit indicating whether the managed instance group is in a
    * stable state. A stable state means that: none of the instances in the
    * managed instance group is currently undergoing any type of change (for
    * example, creation, restart, or deletion); no future changes are scheduled
@@ -273,7 +324,7 @@ public interface InstanceGroupManagerStatusOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+   * Output only. Stateful status of the given Instance Group Manager.
    * 
* * @@ -288,7 +339,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+   * Output only. Stateful status of the given Instance Group Manager.
    * 
* * @@ -303,7 +354,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] Stateful status of the given Instance Group Manager.
+   * Output only. Stateful status of the given Instance Group Manager.
    * 
* * @@ -316,7 +367,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] A status of consistency of Instances' versions with their
+   * Output only. A status of consistency of Instances' versions with their
    * target version specified by version field on Instance Group
    * Manager.
    * 
@@ -333,7 +384,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] A status of consistency of Instances' versions with their
+   * Output only. A status of consistency of Instances' versions with their
    * target version specified by version field on Instance Group
    * Manager.
    * 
@@ -350,7 +401,7 @@ public interface InstanceGroupManagerStatusOrBuilder * * *
-   * Output only. [Output Only] A status of consistency of Instances' versions with their
+   * Output only. A status of consistency of Instances' versions with their
    * target version specified by version field on Instance Group
    * Manager.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStateful.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStateful.java index f7822eab793d..8347d9060953 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStateful.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStateful.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] A bit indicating whether the managed instance group
+   * Output only. A bit indicating whether the managed instance group
    * has stateful configuration, that is, if you have configured any items
    * in a stateful policy or in per-instance configs.
    * The group might report that it has no stateful configuration even when
@@ -97,7 +97,7 @@ public boolean hasHasStatefulConfig() {
    *
    *
    * 
-   * Output only. [Output Only] A bit indicating whether the managed instance group
+   * Output only. A bit indicating whether the managed instance group
    * has stateful configuration, that is, if you have configured any items
    * in a stateful policy or in per-instance configs.
    * The group might report that it has no stateful configuration even when
@@ -122,7 +122,7 @@ public boolean getHasStatefulConfig() {
    *
    *
    * 
-   * Output only. [Output Only] Status of per-instance configurations on the instances.
+   * Output only. Status of per-instance configurations on the instances.
    * 
* * @@ -140,7 +140,7 @@ public boolean hasPerInstanceConfigs() { * * *
-   * Output only. [Output Only] Status of per-instance configurations on the instances.
+   * Output only. Status of per-instance configurations on the instances.
    * 
* * @@ -162,7 +162,7 @@ public boolean hasPerInstanceConfigs() { * * *
-   * Output only. [Output Only] Status of per-instance configurations on the instances.
+   * Output only. Status of per-instance configurations on the instances.
    * 
* * @@ -550,7 +550,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] A bit indicating whether the managed instance group
+     * Output only. A bit indicating whether the managed instance group
      * has stateful configuration, that is, if you have configured any items
      * in a stateful policy or in per-instance configs.
      * The group might report that it has no stateful configuration even when
@@ -571,7 +571,7 @@ public boolean hasHasStatefulConfig() {
      *
      *
      * 
-     * Output only. [Output Only] A bit indicating whether the managed instance group
+     * Output only. A bit indicating whether the managed instance group
      * has stateful configuration, that is, if you have configured any items
      * in a stateful policy or in per-instance configs.
      * The group might report that it has no stateful configuration even when
@@ -592,7 +592,7 @@ public boolean getHasStatefulConfig() {
      *
      *
      * 
-     * Output only. [Output Only] A bit indicating whether the managed instance group
+     * Output only. A bit indicating whether the managed instance group
      * has stateful configuration, that is, if you have configured any items
      * in a stateful policy or in per-instance configs.
      * The group might report that it has no stateful configuration even when
@@ -617,7 +617,7 @@ public Builder setHasStatefulConfig(boolean value) {
      *
      *
      * 
-     * Output only. [Output Only] A bit indicating whether the managed instance group
+     * Output only. A bit indicating whether the managed instance group
      * has stateful configuration, that is, if you have configured any items
      * in a stateful policy or in per-instance configs.
      * The group might report that it has no stateful configuration even when
@@ -650,7 +650,7 @@ public Builder clearHasStatefulConfig() {
      *
      *
      * 
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -667,7 +667,7 @@ public boolean hasPerInstanceConfigs() { * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -692,7 +692,7 @@ public boolean hasPerInstanceConfigs() { * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -718,7 +718,7 @@ public Builder setPerInstanceConfigs( * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -742,7 +742,7 @@ public Builder setPerInstanceConfigs( * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -775,7 +775,7 @@ public Builder mergePerInstanceConfigs( * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -797,7 +797,7 @@ public Builder clearPerInstanceConfigs() { * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -815,7 +815,7 @@ public Builder clearPerInstanceConfigs() { * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * @@ -838,7 +838,7 @@ public Builder clearPerInstanceConfigs() { * * *
-     * Output only. [Output Only] Status of per-instance configurations on the instances.
+     * Output only. Status of per-instance configurations on the instances.
      * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStatefulOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStatefulOrBuilder.java index 2f18f9c4277b..99f4b4ebbd09 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStatefulOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusStatefulOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusStatefulOrBuilder * * *
-   * Output only. [Output Only] A bit indicating whether the managed instance group
+   * Output only. A bit indicating whether the managed instance group
    * has stateful configuration, that is, if you have configured any items
    * in a stateful policy or in per-instance configs.
    * The group might report that it has no stateful configuration even when
@@ -48,7 +48,7 @@ public interface InstanceGroupManagerStatusStatefulOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] A bit indicating whether the managed instance group
+   * Output only. A bit indicating whether the managed instance group
    * has stateful configuration, that is, if you have configured any items
    * in a stateful policy or in per-instance configs.
    * The group might report that it has no stateful configuration even when
@@ -66,7 +66,7 @@ public interface InstanceGroupManagerStatusStatefulOrBuilder
    *
    *
    * 
-   * Output only. [Output Only] Status of per-instance configurations on the instances.
+   * Output only. Status of per-instance configurations on the instances.
    * 
* * @@ -81,7 +81,7 @@ public interface InstanceGroupManagerStatusStatefulOrBuilder * * *
-   * Output only. [Output Only] Status of per-instance configurations on the instances.
+   * Output only. Status of per-instance configurations on the instances.
    * 
* * @@ -97,7 +97,7 @@ public interface InstanceGroupManagerStatusStatefulOrBuilder * * *
-   * Output only. [Output Only] Status of per-instance configurations on the instances.
+   * Output only. Status of per-instance configurations on the instances.
    * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTarget.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTarget.java index 6044a5503467..fcbcc8b20e5d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTarget.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTarget.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. [Output Only] A bit indicating whether version target has been reached
+   * Output only. A bit indicating whether version target has been reached
    * in this managed instance group, i.e. all instances are in their target
    * version. Instances' target version are specified byversion field on Instance Group Manager.
    * 
@@ -95,7 +95,7 @@ public boolean hasIsReached() { * * *
-   * Output only. [Output Only] A bit indicating whether version target has been reached
+   * Output only. A bit indicating whether version target has been reached
    * in this managed instance group, i.e. all instances are in their target
    * version. Instances' target version are specified byversion field on Instance Group Manager.
    * 
@@ -439,7 +439,7 @@ public Builder mergeFrom( * * *
-     * Output only. [Output Only] A bit indicating whether version target has been reached
+     * Output only. A bit indicating whether version target has been reached
      * in this managed instance group, i.e. all instances are in their target
      * version. Instances' target version are specified byversion field on Instance Group Manager.
      * 
@@ -457,7 +457,7 @@ public boolean hasIsReached() { * * *
-     * Output only. [Output Only] A bit indicating whether version target has been reached
+     * Output only. A bit indicating whether version target has been reached
      * in this managed instance group, i.e. all instances are in their target
      * version. Instances' target version are specified byversion field on Instance Group Manager.
      * 
@@ -475,7 +475,7 @@ public boolean getIsReached() { * * *
-     * Output only. [Output Only] A bit indicating whether version target has been reached
+     * Output only. A bit indicating whether version target has been reached
      * in this managed instance group, i.e. all instances are in their target
      * version. Instances' target version are specified byversion field on Instance Group Manager.
      * 
@@ -497,7 +497,7 @@ public Builder setIsReached(boolean value) { * * *
-     * Output only. [Output Only] A bit indicating whether version target has been reached
+     * Output only. A bit indicating whether version target has been reached
      * in this managed instance group, i.e. all instances are in their target
      * version. Instances' target version are specified byversion field on Instance Group Manager.
      * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTargetOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTargetOrBuilder.java index 606f978c3f0f..749aefdc617e 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTargetOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatusVersionTargetOrBuilder.java @@ -30,7 +30,7 @@ public interface InstanceGroupManagerStatusVersionTargetOrBuilder * * *
-   * Output only. [Output Only] A bit indicating whether version target has been reached
+   * Output only. A bit indicating whether version target has been reached
    * in this managed instance group, i.e. all instances are in their target
    * version. Instances' target version are specified byversion field on Instance Group Manager.
    * 
@@ -45,7 +45,7 @@ public interface InstanceGroupManagerStatusVersionTargetOrBuilder * * *
-   * Output only. [Output Only] A bit indicating whether version target has been reached
+   * Output only. A bit indicating whether version target has been reached
    * in this managed instance group, i.e. all instances are in their target
    * version. Instances' target version are specified byversion field on Instance Group Manager.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshot.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshot.java index 906cc27d2385..ce9d9d5ec734 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshot.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshot.java @@ -65,6 +65,8 @@ private InstantSnapshot() { selfLinkWithId_ = ""; sourceDisk_ = ""; sourceDiskId_ = ""; + sourceInstantSnapshotGroup_ = ""; + sourceInstantSnapshotGroupId_ = ""; status_ = ""; zone_ = ""; } @@ -1794,6 +1796,159 @@ public com.google.protobuf.ByteString getSourceDiskIdBytes() { } } + public static final int SOURCE_INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER = 525991686; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceInstantSnapshotGroup_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+   * part of. Note that the source instant snapshot group must be in the same
+   * zone/region as the instant snapshot to be created. This can be a full or
+   * valid partial URL.
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return Whether the sourceInstantSnapshotGroup field is set. + */ + @java.lang.Override + public boolean hasSourceInstantSnapshotGroup() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+   * part of. Note that the source instant snapshot group must be in the same
+   * zone/region as the instant snapshot to be created. This can be a full or
+   * valid partial URL.
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The sourceInstantSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getSourceInstantSnapshotGroup() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + 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(); + sourceInstantSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+   * part of. Note that the source instant snapshot group must be in the same
+   * zone/region as the instant snapshot to be created. This can be a full or
+   * valid partial URL.
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The bytes for sourceInstantSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceInstantSnapshotGroupBytes() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceInstantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_INSTANT_SNAPSHOT_GROUP_ID_FIELD_NUMBER = 167103732; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceInstantSnapshotGroupId_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] The ID value of the source instant snapshot group this
+   * InstantSnapshot is part of. This value may be used to determine whether the
+   * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+   * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return Whether the sourceInstantSnapshotGroupId field is set. + */ + @java.lang.Override + public boolean hasSourceInstantSnapshotGroupId() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] The ID value of the source instant snapshot group this
+   * InstantSnapshot is part of. This value may be used to determine whether the
+   * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+   * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return The sourceInstantSnapshotGroupId. + */ + @java.lang.Override + public java.lang.String getSourceInstantSnapshotGroupId() { + java.lang.Object ref = sourceInstantSnapshotGroupId_; + 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(); + sourceInstantSnapshotGroupId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] The ID value of the source instant snapshot group this
+   * InstantSnapshot is part of. This value may be used to determine whether the
+   * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+   * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return The bytes for sourceInstantSnapshotGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceInstantSnapshotGroupIdBytes() { + java.lang.Object ref = sourceInstantSnapshotGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceInstantSnapshotGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STATUS_FIELD_NUMBER = 181260274; @SuppressWarnings("serial") @@ -1813,7 +1968,7 @@ public com.google.protobuf.ByteString getSourceDiskIdBytes() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -1886,7 +2041,7 @@ public com.google.protobuf.ByteString getStatusBytes() { */ @java.lang.Override public boolean hasZone() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -1964,7 +2119,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); } if (((bitField0_ & 0x00000002) != 0)) { @@ -1979,10 +2134,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); } + if (((bitField0_ & 0x00040000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 167103732, sourceInstantSnapshotGroupId_); + } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 178124825, labelFingerprint_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 181260274, status_); } if (((bitField0_ & 0x00000400) != 0)) { @@ -2014,6 +2173,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 500195327); + if (((bitField0_ & 0x00020000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 525991686, sourceInstantSnapshotGroup_); + } getUnknownFields().writeTo(output); } @@ -2032,7 +2195,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); } if (((bitField0_ & 0x00000002) != 0)) { @@ -2047,10 +2210,15 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); } + if (((bitField0_ & 0x00040000) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 167103732, sourceInstantSnapshotGroupId_); + } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(178124825, labelFingerprint_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(181260274, status_); } if (((bitField0_ & 0x00000400) != 0)) { @@ -2091,6 +2259,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(500195327, labels__); } + if (((bitField0_ & 0x00020000) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 525991686, sourceInstantSnapshotGroup_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2176,6 +2349,16 @@ public boolean equals(final java.lang.Object obj) { if (hasSourceDiskId()) { if (!getSourceDiskId().equals(other.getSourceDiskId())) return false; } + if (hasSourceInstantSnapshotGroup() != other.hasSourceInstantSnapshotGroup()) return false; + if (hasSourceInstantSnapshotGroup()) { + if (!getSourceInstantSnapshotGroup().equals(other.getSourceInstantSnapshotGroup())) + return false; + } + if (hasSourceInstantSnapshotGroupId() != other.hasSourceInstantSnapshotGroupId()) return false; + if (hasSourceInstantSnapshotGroupId()) { + if (!getSourceInstantSnapshotGroupId().equals(other.getSourceInstantSnapshotGroupId())) + return false; + } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus().equals(other.getStatus())) return false; @@ -2267,6 +2450,14 @@ public int hashCode() { hash = (37 * hash) + SOURCE_DISK_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceDiskId().hashCode(); } + if (hasSourceInstantSnapshotGroup()) { + hash = (37 * hash) + SOURCE_INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceInstantSnapshotGroup().hashCode(); + } + if (hasSourceInstantSnapshotGroupId()) { + hash = (37 * hash) + SOURCE_INSTANT_SNAPSHOT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getSourceInstantSnapshotGroupId().hashCode(); + } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); @@ -2475,6 +2666,8 @@ public Builder clear() { selfLinkWithId_ = ""; sourceDisk_ = ""; sourceDiskId_ = ""; + sourceInstantSnapshotGroup_ = ""; + sourceInstantSnapshotGroupId_ = ""; status_ = ""; zone_ = ""; return this; @@ -2588,13 +2781,21 @@ private void buildPartial0(com.google.cloud.compute.v1.InstantSnapshot result) { to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.status_ = status_; + result.sourceInstantSnapshotGroup_ = sourceInstantSnapshotGroup_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.zone_ = zone_; + result.sourceInstantSnapshotGroupId_ = sourceInstantSnapshotGroupId_; to_bitField0_ |= 0x00040000; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x00100000; + } result.bitField0_ |= to_bitField0_; } @@ -2685,14 +2886,24 @@ public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshot other) { bitField0_ |= 0x00020000; onChanged(); } + if (other.hasSourceInstantSnapshotGroup()) { + sourceInstantSnapshotGroup_ = other.sourceInstantSnapshotGroup_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasSourceInstantSnapshotGroupId()) { + sourceInstantSnapshotGroupId_ = other.sourceInstantSnapshotGroupId_; + bitField0_ |= 0x00080000; + onChanged(); + } if (other.hasStatus()) { status_ = other.status_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasZone()) { zone_ = other.zone_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2742,7 +2953,7 @@ public Builder mergeFrom( case 29957474: { zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; break; } // case 29957474 case 244202930: @@ -2769,6 +2980,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 1111570338 + case 1336829858: + { + sourceInstantSnapshotGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 1336829858 case 1424998602: { labelFingerprint_ = input.readStringRequireUtf8(); @@ -2778,7 +2995,7 @@ public Builder mergeFrom( case 1450082194: { status_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; break; } // case 1450082194 case 1995434522: @@ -2848,6 +3065,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case -293404678 + case -87033806: + { + sourceInstantSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case -87033806 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5417,6 +5640,288 @@ public Builder setSourceDiskIdBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sourceInstantSnapshotGroup_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+     * part of. Note that the source instant snapshot group must be in the same
+     * zone/region as the instant snapshot to be created. This can be a full or
+     * valid partial URL.
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return Whether the sourceInstantSnapshotGroup field is set. + */ + public boolean hasSourceInstantSnapshotGroup() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+     * part of. Note that the source instant snapshot group must be in the same
+     * zone/region as the instant snapshot to be created. This can be a full or
+     * valid partial URL.
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The sourceInstantSnapshotGroup. + */ + public java.lang.String getSourceInstantSnapshotGroup() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceInstantSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+     * part of. Note that the source instant snapshot group must be in the same
+     * zone/region as the instant snapshot to be created. This can be a full or
+     * valid partial URL.
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The bytes for sourceInstantSnapshotGroup. + */ + public com.google.protobuf.ByteString getSourceInstantSnapshotGroupBytes() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceInstantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+     * part of. Note that the source instant snapshot group must be in the same
+     * zone/region as the instant snapshot to be created. This can be a full or
+     * valid partial URL.
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @param value The sourceInstantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceInstantSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceInstantSnapshotGroup_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+     * part of. Note that the source instant snapshot group must be in the same
+     * zone/region as the instant snapshot to be created. This can be a full or
+     * valid partial URL.
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return This builder for chaining. + */ + public Builder clearSourceInstantSnapshotGroup() { + sourceInstantSnapshotGroup_ = getDefaultInstance().getSourceInstantSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+     * part of. Note that the source instant snapshot group must be in the same
+     * zone/region as the instant snapshot to be created. This can be a full or
+     * valid partial URL.
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @param value The bytes for sourceInstantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceInstantSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstantSnapshotGroup_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private java.lang.Object sourceInstantSnapshotGroupId_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] The ID value of the source instant snapshot group this
+     * InstantSnapshot is part of. This value may be used to determine whether the
+     * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+     * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return Whether the sourceInstantSnapshotGroupId field is set. + */ + public boolean hasSourceInstantSnapshotGroupId() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] The ID value of the source instant snapshot group this
+     * InstantSnapshot is part of. This value may be used to determine whether the
+     * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+     * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return The sourceInstantSnapshotGroupId. + */ + public java.lang.String getSourceInstantSnapshotGroupId() { + java.lang.Object ref = sourceInstantSnapshotGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceInstantSnapshotGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] The ID value of the source instant snapshot group this
+     * InstantSnapshot is part of. This value may be used to determine whether the
+     * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+     * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return The bytes for sourceInstantSnapshotGroupId. + */ + public com.google.protobuf.ByteString getSourceInstantSnapshotGroupIdBytes() { + java.lang.Object ref = sourceInstantSnapshotGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceInstantSnapshotGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] The ID value of the source instant snapshot group this
+     * InstantSnapshot is part of. This value may be used to determine whether the
+     * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+     * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @param value The sourceInstantSnapshotGroupId to set. + * @return This builder for chaining. + */ + public Builder setSourceInstantSnapshotGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceInstantSnapshotGroupId_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] The ID value of the source instant snapshot group this
+     * InstantSnapshot is part of. This value may be used to determine whether the
+     * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+     * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return This builder for chaining. + */ + public Builder clearSourceInstantSnapshotGroupId() { + sourceInstantSnapshotGroupId_ = getDefaultInstance().getSourceInstantSnapshotGroupId(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] The ID value of the source instant snapshot group this
+     * InstantSnapshot is part of. This value may be used to determine whether the
+     * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+     * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @param value The bytes for sourceInstantSnapshotGroupId to set. + * @return This builder for chaining. + */ + public Builder setSourceInstantSnapshotGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstantSnapshotGroupId_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + private java.lang.Object status_ = ""; /** @@ -5432,7 +5937,7 @@ public Builder setSourceDiskIdBytes(com.google.protobuf.ByteString value) { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -5501,7 +6006,7 @@ public Builder setStatus(java.lang.String value) { throw new NullPointerException(); } status_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5520,7 +6025,7 @@ public Builder setStatus(java.lang.String value) { */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -5544,7 +6049,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); status_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5565,7 +6070,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the zone field is set. */ public boolean hasZone() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -5637,7 +6142,7 @@ public Builder setZone(java.lang.String value) { throw new NullPointerException(); } zone_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -5657,7 +6162,7 @@ public Builder setZone(java.lang.String value) { */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -5682,7 +6187,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); zone_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00200000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroup.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroup.java new file mode 100644 index 000000000000..be68c30dbad7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroup.java @@ -0,0 +1,3307 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Represents an InstantSnapshotGroup resource.
+ *
+ * An instant snapshot group is a set of instant snapshots that represents a
+ * point in time state of a consistency group.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroup} + */ +@com.google.protobuf.Generated +public final class InstantSnapshotGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstantSnapshotGroup) + InstantSnapshotGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstantSnapshotGroup"); + } + + // Use InstantSnapshotGroup.newBuilder() to construct. + private InstantSnapshotGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstantSnapshotGroup() { + creationTimestamp_ = ""; + description_ = ""; + kind_ = ""; + name_ = ""; + region_ = ""; + selfLink_ = ""; + selfLinkWithId_ = ""; + sourceConsistencyGroup_ = ""; + status_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroup.class, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder.class); + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.InstantSnapshotGroup.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_STATUS = 0; + */ + UNDEFINED_STATUS(0), + /** CREATING = 455564985; */ + CREATING(455564985), + /** DELETING = 528602024; */ + DELETING(528602024), + /** FAILED = 455706685; */ + FAILED(455706685), + /** INVALID = 530283991; */ + INVALID(530283991), + /** READY = 77848963; */ + READY(77848963), + /** UNKNOWN = 433141802; */ + UNKNOWN(433141802), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Status"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_STATUS = 0; + */ + public static final int UNDEFINED_STATUS_VALUE = 0; + + /** CREATING = 455564985; */ + public static final int CREATING_VALUE = 455564985; + + /** DELETING = 528602024; */ + public static final int DELETING_VALUE = 528602024; + + /** FAILED = 455706685; */ + public static final int FAILED_VALUE = 455706685; + + /** INVALID = 530283991; */ + public static final int INVALID_VALUE = 530283991; + + /** READY = 77848963; */ + public static final int READY_VALUE = 77848963; + + /** UNKNOWN = 433141802; */ + public static final int UNKNOWN_VALUE = 433141802; + + 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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_STATUS; + case 455564985: + return CREATING; + case 528602024: + return DELETING; + case 455706685: + return FAILED; + case 530283991: + return INVALID; + case 77848963: + return READY; + case 433141802: + return UNKNOWN; + 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 Status findValueByNumber(int number) { + return Status.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.InstantSnapshotGroup.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.InstantSnapshotGroup.Status) + } + + private int bitField0_; + public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; + + @SuppressWarnings("serial") + private volatile java.lang.Object creationTimestamp_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + @java.lang.Override + public boolean hasCreationTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + @java.lang.Override + public java.lang.String getCreationTimestamp() { + java.lang.Object ref = creationTimestamp_; + 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(); + creationTimestamp_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreationTimestampBytes() { + java.lang.Object ref = creationTimestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creationTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 422937596; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. An optional description of this resource. Provide this property when you
+   * create the resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. An optional description of this resource. Provide this property when you
+   * create the resource.
+   * 
+ * + * optional string description = 422937596; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. An optional description of this resource. Provide this property when you
+   * create the resource.
+   * 
+ * + * optional string description = 422937596; + * + * @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 ID_FIELD_NUMBER = 3355; + private long id_ = 0L; + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+   * resources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+   * resources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+   * resources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3373707; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Name of the resource; provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+   * character must be a lowercase letter, and all following characters must be
+   * a dash, lowercase letter, or digit, except the last character, which cannot
+   * be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Identifier. Name of the resource; provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+   * character must be a lowercase letter, and all following characters must be
+   * a dash, lowercase letter, or digit, except the last character, which cannot
+   * be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @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. Name of the resource; provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+   * character must be a lowercase letter, and all following characters must be
+   * a dash, lowercase letter, or digit, except the last character, which cannot
+   * be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @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 REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_STATUS_FIELD_NUMBER = 249429315; + private com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resourceStatus_; + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + * + * @return Whether the resourceStatus field is set. + */ + @java.lang.Override + public boolean hasResourceStatus() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + * + * @return The resourceStatus. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus getResourceStatus() { + return resourceStatus_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.getDefaultInstance() + : resourceStatus_; + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder + getResourceStatusOrBuilder() { + return resourceStatus_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.getDefaultInstance() + : resourceStatus_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for the resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for the resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for the resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_WITH_ID_FIELD_NUMBER = 44520962; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLinkWithId_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + @java.lang.Override + public boolean hasSelfLinkWithId() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + @java.lang.Override + public java.lang.String getSelfLinkWithId() { + java.lang.Object ref = selfLinkWithId_; + 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(); + selfLinkWithId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { + java.lang.Object ref = selfLinkWithId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLinkWithId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_CONSISTENCY_GROUP_FIELD_NUMBER = 531359348; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceConsistencyGroup_ = ""; + + /** + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + @java.lang.Override + public boolean hasSourceConsistencyGroup() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + @java.lang.Override + public java.lang.String getSourceConsistencyGroup() { + java.lang.Object ref = sourceConsistencyGroup_; + 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(); + sourceConsistencyGroup_ = s; + return s; + } + } + + /** + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceConsistencyGroupBytes() { + java.lang.Object ref = sourceConsistencyGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceConsistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 181260274; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + + /** + * + * + *
+   * Output only. [Output Only]
+   * Check the Status enum for the list of possible values.
+   * 
+ * + * optional string status = 181260274; + * + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * Check the Status enum for the list of possible values.
+   * 
+ * + * optional string status = 181260274; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * Check the Status enum for the list of possible values.
+   * 
+ * + * optional string status = 181260274; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string zone = 3744684; + * + * @return Whether the zone field is set. + */ + @java.lang.Override + public boolean hasZone() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string zone = 3744684; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string zone = 3744684; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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 (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt64(3355, id_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 30525366, creationTimestamp_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 44520962, selfLinkWithId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 181260274, status_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(249429315, getResourceStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 531359348, sourceConsistencyGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(30525366, creationTimestamp_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(44520962, selfLinkWithId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(181260274, status_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(249429315, getResourceStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 531359348, sourceConsistencyGroup_); + } + 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.compute.v1.InstantSnapshotGroup)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstantSnapshotGroup other = + (com.google.cloud.compute.v1.InstantSnapshotGroup) obj; + + if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; + if (hasCreationTimestamp()) { + if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (getId() != other.getId()) return false; + } + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName().equals(other.getName())) return false; + } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion().equals(other.getRegion())) return false; + } + if (hasResourceStatus() != other.hasResourceStatus()) return false; + if (hasResourceStatus()) { + if (!getResourceStatus().equals(other.getResourceStatus())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (hasSelfLinkWithId() != other.hasSelfLinkWithId()) return false; + if (hasSelfLinkWithId()) { + if (!getSelfLinkWithId().equals(other.getSelfLinkWithId())) return false; + } + if (hasSourceConsistencyGroup() != other.hasSourceConsistencyGroup()) return false; + if (hasSourceConsistencyGroup()) { + if (!getSourceConsistencyGroup().equals(other.getSourceConsistencyGroup())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus().equals(other.getStatus())) return false; + } + if (hasZone() != other.hasZone()) return false; + if (hasZone()) { + if (!getZone().equals(other.getZone())) 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 (hasCreationTimestamp()) { + hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getCreationTimestamp().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } + if (hasResourceStatus()) { + hash = (37 * hash) + RESOURCE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getResourceStatus().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (hasSelfLinkWithId()) { + hash = (37 * hash) + SELF_LINK_WITH_ID_FIELD_NUMBER; + hash = (53 * hash) + getSelfLinkWithId().hashCode(); + } + if (hasSourceConsistencyGroup()) { + hash = (37 * hash) + SOURCE_CONSISTENCY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceConsistencyGroup().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasZone()) { + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup 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.compute.v1.InstantSnapshotGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InstantSnapshotGroup 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents an InstantSnapshotGroup resource.
+   *
+   * An instant snapshot group is a set of instant snapshots that represents a
+   * point in time state of a consistency group.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstantSnapshotGroup) + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroup.class, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InstantSnapshotGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResourceStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + creationTimestamp_ = ""; + description_ = ""; + id_ = 0L; + kind_ = ""; + name_ = ""; + region_ = ""; + resourceStatus_ = null; + if (resourceStatusBuilder_ != null) { + resourceStatusBuilder_.dispose(); + resourceStatusBuilder_ = null; + } + selfLink_ = ""; + selfLinkWithId_ = ""; + sourceConsistencyGroup_ = ""; + status_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroup getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroup build() { + com.google.cloud.compute.v1.InstantSnapshotGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroup buildPartial() { + com.google.cloud.compute.v1.InstantSnapshotGroup result = + new com.google.cloud.compute.v1.InstantSnapshotGroup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.InstantSnapshotGroup result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.creationTimestamp_ = creationTimestamp_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.resourceStatus_ = + resourceStatusBuilder_ == null ? resourceStatus_ : resourceStatusBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.selfLinkWithId_ = selfLinkWithId_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sourceConsistencyGroup_ = sourceConsistencyGroup_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x00000800; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InstantSnapshotGroup) { + return mergeFrom((com.google.cloud.compute.v1.InstantSnapshotGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshotGroup other) { + if (other == com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance()) + return this; + if (other.hasCreationTimestamp()) { + creationTimestamp_ = other.creationTimestamp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasResourceStatus()) { + mergeResourceStatus(other.getResourceStatus()); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasSelfLinkWithId()) { + selfLinkWithId_ = other.selfLinkWithId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasSourceConsistencyGroup()) { + sourceConsistencyGroup_ = other.sourceConsistencyGroup_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasStatus()) { + status_ = other.status_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasZone()) { + zone_ = other.zone_; + bitField0_ |= 0x00000800; + 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 26840: + { + id_ = input.readUInt64(); + bitField0_ |= 0x00000004; + break; + } // case 26840 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26336418 + case 26989658: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26989658 + case 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 29957474 + case 244202930: + { + creationTimestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 244202930 + case 356167698: + { + selfLinkWithId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 356167698 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1111570338 + case 1450082194: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 1450082194 + case 1995434522: + { + input.readMessage( + internalGetResourceStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 1995434522 + case -911466526: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -911466526 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case -645248918 + case -44092510: + { + sourceConsistencyGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case -44092510 + 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 creationTimestamp_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + public boolean hasCreationTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + public java.lang.String getCreationTimestamp() { + java.lang.Object ref = creationTimestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creationTimestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + public com.google.protobuf.ByteString getCreationTimestampBytes() { + java.lang.Object ref = creationTimestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creationTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @param value The creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestamp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creationTimestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return This builder for chaining. + */ + public Builder clearCreationTimestamp() { + creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @param value The bytes for creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creationTimestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. An optional description of this resource. Provide this property when you
+     * create the resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. An optional description of this resource. Provide this property when you
+     * create the resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional description of this resource. Provide this property when you
+     * create the resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return The bytes for description. + */ + 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; + } + } + + /** + * + * + *
+     * Optional. An optional description of this resource. Provide this property when you
+     * create the resource.
+     * 
+ * + * optional string description = 422937596; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional description of this resource. Provide this property when you
+     * create the resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional description of this resource. Provide this property when you
+     * create the resource.
+     * 
+ * + * optional string description = 422937596; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long id_; + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000004); + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+     * resources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+     * resources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+     * resources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+     * resources.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+     * resources.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+     * resources.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Name of the resource; provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+     * character must be a lowercase letter, and all following characters must be
+     * a dash, lowercase letter, or digit, except the last character, which cannot
+     * be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Identifier. Name of the resource; provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+     * character must be a lowercase letter, and all following characters must be
+     * a dash, lowercase letter, or digit, except the last character, which cannot
+     * be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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. Name of the resource; provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+     * character must be a lowercase letter, and all following characters must be
+     * a dash, lowercase letter, or digit, except the last character, which cannot
+     * be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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. Name of the resource; provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+     * character must be a lowercase letter, and all following characters must be
+     * a dash, lowercase letter, or digit, except the last character, which cannot
+     * be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Name of the resource; provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+     * character must be a lowercase letter, and all following characters must be
+     * a dash, lowercase letter, or digit, except the last character, which cannot
+     * be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Name of the resource; provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+     * character must be a lowercase letter, and all following characters must be
+     * a dash, lowercase letter, or digit, except the last character, which cannot
+     * be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resourceStatus_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder> + resourceStatusBuilder_; + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + * + * @return Whether the resourceStatus field is set. + */ + public boolean hasResourceStatus() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + * + * @return The resourceStatus. + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus getResourceStatus() { + if (resourceStatusBuilder_ == null) { + return resourceStatus_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.getDefaultInstance() + : resourceStatus_; + } else { + return resourceStatusBuilder_.getMessage(); + } + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + public Builder setResourceStatus( + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus value) { + if (resourceStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceStatus_ = value; + } else { + resourceStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + public Builder setResourceStatus( + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder builderForValue) { + if (resourceStatusBuilder_ == null) { + resourceStatus_ = builderForValue.build(); + } else { + resourceStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + public Builder mergeResourceStatus( + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus value) { + if (resourceStatusBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && resourceStatus_ != null + && resourceStatus_ + != com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + .getDefaultInstance()) { + getResourceStatusBuilder().mergeFrom(value); + } else { + resourceStatus_ = value; + } + } else { + resourceStatusBuilder_.mergeFrom(value); + } + if (resourceStatus_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + public Builder clearResourceStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + resourceStatus_ = null; + if (resourceStatusBuilder_ != null) { + resourceStatusBuilder_.dispose(); + resourceStatusBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder + getResourceStatusBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetResourceStatusFieldBuilder().getBuilder(); + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder + getResourceStatusOrBuilder() { + if (resourceStatusBuilder_ != null) { + return resourceStatusBuilder_.getMessageOrBuilder(); + } else { + return resourceStatus_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.getDefaultInstance() + : resourceStatus_; + } + } + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder> + internalGetResourceStatusFieldBuilder() { + if (resourceStatusBuilder_ == null) { + resourceStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder>( + getResourceStatus(), getParentForChildren(), isClean()); + resourceStatus_ = null; + } + return resourceStatusBuilder_; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for the resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for the resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for the resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for the resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for the resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for the resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object selfLinkWithId_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + public boolean hasSelfLinkWithId() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + public java.lang.String getSelfLinkWithId() { + java.lang.Object ref = selfLinkWithId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLinkWithId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { + java.lang.Object ref = selfLinkWithId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLinkWithId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @param value The selfLinkWithId to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkWithId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLinkWithId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return This builder for chaining. + */ + public Builder clearSelfLinkWithId() { + selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @param value The bytes for selfLinkWithId to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLinkWithId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object sourceConsistencyGroup_ = ""; + + /** + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + public boolean hasSourceConsistencyGroup() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + public java.lang.String getSourceConsistencyGroup() { + java.lang.Object ref = sourceConsistencyGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceConsistencyGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + public com.google.protobuf.ByteString getSourceConsistencyGroupBytes() { + java.lang.Object ref = sourceConsistencyGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceConsistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * optional string source_consistency_group = 531359348; + * + * @param value The sourceConsistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceConsistencyGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceConsistencyGroup_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * optional string source_consistency_group = 531359348; + * + * @return This builder for chaining. + */ + public Builder clearSourceConsistencyGroup() { + sourceConsistencyGroup_ = getDefaultInstance().getSourceConsistencyGroup(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * optional string source_consistency_group = 531359348; + * + * @param value The bytes for sourceConsistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceConsistencyGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceConsistencyGroup_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + + /** + * + * + *
+     * Output only. [Output Only]
+     * Check the Status enum for the list of possible values.
+     * 
+ * + * optional string status = 181260274; + * + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * Check the Status enum for the list of possible values.
+     * 
+ * + * optional string status = 181260274; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * Check the Status enum for the list of possible values.
+     * 
+ * + * optional string status = 181260274; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * Check the Status enum for the list of possible values.
+     * 
+ * + * optional string status = 181260274; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * Check the Status enum for the list of possible values.
+     * 
+ * + * optional string status = 181260274; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * Check the Status enum for the list of possible values.
+     * 
+ * + * optional string status = 181260274; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string zone = 3744684; + * + * @return Whether the zone field is set. + */ + public boolean hasZone() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string zone = 3744684; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string zone = 3744684; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string zone = 3744684; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string zone = 3744684; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+     * You must specify this field as part of the HTTP request URL. It is
+     * not settable as a field in the request body.
+     * 
+ * + * optional string zone = 3744684; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstantSnapshotGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstantSnapshotGroup) + private static final com.google.cloud.compute.v1.InstantSnapshotGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstantSnapshotGroup(); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantSnapshotGroup 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.compute.v1.InstantSnapshotGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupOrBuilder.java new file mode 100644 index 000000000000..caba1433be45 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupOrBuilder.java @@ -0,0 +1,496 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InstantSnapshotGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstantSnapshotGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + boolean hasCreationTimestamp(); + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + java.lang.String getCreationTimestamp(); + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + com.google.protobuf.ByteString getCreationTimestampBytes(); + + /** + * + * + *
+   * Optional. An optional description of this resource. Provide this property when you
+   * create the resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * Optional. An optional description of this resource. Provide this property when you
+   * create the resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. An optional description of this resource. Provide this property when you
+   * create the resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return The id. + */ + long getId(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+   * resources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+   * resources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
+   * resources.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Identifier. Name of the resource; provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+   * character must be a lowercase letter, and all following characters must be
+   * a dash, lowercase letter, or digit, except the last character, which cannot
+   * be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + boolean hasName(); + + /** + * + * + *
+   * Identifier. Name of the resource; provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+   * character must be a lowercase letter, and all following characters must be
+   * a dash, lowercase letter, or digit, except the last character, which cannot
+   * be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Name of the resource; provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
+   * character must be a lowercase letter, and all following characters must be
+   * a dash, lowercase letter, or digit, except the last character, which cannot
+   * be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + * + * @return Whether the resourceStatus field is set. + */ + boolean hasResourceStatus(); + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + * + * @return The resourceStatus. + */ + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus getResourceStatus(); + + /** + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupResourceStatus resource_status = 249429315; + * + */ + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder + getResourceStatusOrBuilder(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for the resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for the resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for the resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + boolean hasSelfLinkWithId(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + java.lang.String getSelfLinkWithId(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + com.google.protobuf.ByteString getSelfLinkWithIdBytes(); + + /** + * optional string source_consistency_group = 531359348; + * + * @return Whether the sourceConsistencyGroup field is set. + */ + boolean hasSourceConsistencyGroup(); + + /** + * optional string source_consistency_group = 531359348; + * + * @return The sourceConsistencyGroup. + */ + java.lang.String getSourceConsistencyGroup(); + + /** + * optional string source_consistency_group = 531359348; + * + * @return The bytes for sourceConsistencyGroup. + */ + com.google.protobuf.ByteString getSourceConsistencyGroupBytes(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * Check the Status enum for the list of possible values.
+   * 
+ * + * optional string status = 181260274; + * + * @return Whether the status field is set. + */ + boolean hasStatus(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * Check the Status enum for the list of possible values.
+   * 
+ * + * optional string status = 181260274; + * + * @return The status. + */ + java.lang.String getStatus(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * Check the Status enum for the list of possible values.
+   * 
+ * + * optional string status = 181260274; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string zone = 3744684; + * + * @return Whether the zone field is set. + */ + boolean hasZone(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string zone = 3744684; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the zone where the instant snapshot group resides.
+   * You must specify this field as part of the HTTP request URL. It is
+   * not settable as a field in the request body.
+   * 
+ * + * optional string zone = 3744684; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParameters.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParameters.java new file mode 100644 index 000000000000..e28918f6000e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParameters.java @@ -0,0 +1,702 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroupParameters} + */ +@com.google.protobuf.Generated +public final class InstantSnapshotGroupParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstantSnapshotGroupParameters) + InstantSnapshotGroupParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstantSnapshotGroupParameters"); + } + + // Use InstantSnapshotGroupParameters.newBuilder() to construct. + private InstantSnapshotGroupParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstantSnapshotGroupParameters() { + sourceInstantSnapshotGroup_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.class, + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER = 525991686; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceInstantSnapshotGroup_ = ""; + + /** + * + * + *
+   * The source instant snapshot group used to create disks. You can provide
+   * this as a partial or full URL to the resource. For example, the following
+   * are valid values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return Whether the sourceInstantSnapshotGroup field is set. + */ + @java.lang.Override + public boolean hasSourceInstantSnapshotGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The source instant snapshot group used to create disks. You can provide
+   * this as a partial or full URL to the resource. For example, the following
+   * are valid values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The sourceInstantSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getSourceInstantSnapshotGroup() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + 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(); + sourceInstantSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * The source instant snapshot group used to create disks. You can provide
+   * this as a partial or full URL to the resource. For example, the following
+   * are valid values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The bytes for sourceInstantSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceInstantSnapshotGroupBytes() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceInstantSnapshotGroup_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 525991686, sourceInstantSnapshotGroup_); + } + 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.GeneratedMessage.computeStringSize( + 525991686, sourceInstantSnapshotGroup_); + } + 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.compute.v1.InstantSnapshotGroupParameters)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstantSnapshotGroupParameters other = + (com.google.cloud.compute.v1.InstantSnapshotGroupParameters) obj; + + if (hasSourceInstantSnapshotGroup() != other.hasSourceInstantSnapshotGroup()) return false; + if (hasSourceInstantSnapshotGroup()) { + if (!getSourceInstantSnapshotGroup().equals(other.getSourceInstantSnapshotGroup())) + 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 (hasSourceInstantSnapshotGroup()) { + hash = (37 * hash) + SOURCE_INSTANT_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceInstantSnapshotGroup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters 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.compute.v1.InstantSnapshotGroupParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InstantSnapshotGroupParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroupParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstantSnapshotGroupParameters) + com.google.cloud.compute.v1.InstantSnapshotGroupParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.class, + com.google.cloud.compute.v1.InstantSnapshotGroupParameters.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InstantSnapshotGroupParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceInstantSnapshotGroup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupParameters getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstantSnapshotGroupParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupParameters build() { + com.google.cloud.compute.v1.InstantSnapshotGroupParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupParameters buildPartial() { + com.google.cloud.compute.v1.InstantSnapshotGroupParameters result = + new com.google.cloud.compute.v1.InstantSnapshotGroupParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.InstantSnapshotGroupParameters result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceInstantSnapshotGroup_ = sourceInstantSnapshotGroup_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InstantSnapshotGroupParameters) { + return mergeFrom((com.google.cloud.compute.v1.InstantSnapshotGroupParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshotGroupParameters other) { + if (other == com.google.cloud.compute.v1.InstantSnapshotGroupParameters.getDefaultInstance()) + return this; + if (other.hasSourceInstantSnapshotGroup()) { + sourceInstantSnapshotGroup_ = other.sourceInstantSnapshotGroup_; + 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 -87033806: + { + sourceInstantSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -87033806 + 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 sourceInstantSnapshotGroup_ = ""; + + /** + * + * + *
+     * The source instant snapshot group used to create disks. You can provide
+     * this as a partial or full URL to the resource. For example, the following
+     * are valid values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return Whether the sourceInstantSnapshotGroup field is set. + */ + public boolean hasSourceInstantSnapshotGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The source instant snapshot group used to create disks. You can provide
+     * this as a partial or full URL to the resource. For example, the following
+     * are valid values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The sourceInstantSnapshotGroup. + */ + public java.lang.String getSourceInstantSnapshotGroup() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceInstantSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The source instant snapshot group used to create disks. You can provide
+     * this as a partial or full URL to the resource. For example, the following
+     * are valid values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The bytes for sourceInstantSnapshotGroup. + */ + public com.google.protobuf.ByteString getSourceInstantSnapshotGroupBytes() { + java.lang.Object ref = sourceInstantSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceInstantSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The source instant snapshot group used to create disks. You can provide
+     * this as a partial or full URL to the resource. For example, the following
+     * are valid values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @param value The sourceInstantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceInstantSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceInstantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The source instant snapshot group used to create disks. You can provide
+     * this as a partial or full URL to the resource. For example, the following
+     * are valid values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return This builder for chaining. + */ + public Builder clearSourceInstantSnapshotGroup() { + sourceInstantSnapshotGroup_ = getDefaultInstance().getSourceInstantSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The source instant snapshot group used to create disks. You can provide
+     * this as a partial or full URL to the resource. For example, the following
+     * are valid values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+     * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @param value The bytes for sourceInstantSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceInstantSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceInstantSnapshotGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstantSnapshotGroupParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstantSnapshotGroupParameters) + private static final com.google.cloud.compute.v1.InstantSnapshotGroupParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstantSnapshotGroupParameters(); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantSnapshotGroupParameters 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.compute.v1.InstantSnapshotGroupParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParametersOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParametersOrBuilder.java new file mode 100644 index 000000000000..6b120d9376fc --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupParametersOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InstantSnapshotGroupParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstantSnapshotGroupParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The source instant snapshot group used to create disks. You can provide
+   * this as a partial or full URL to the resource. For example, the following
+   * are valid values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return Whether the sourceInstantSnapshotGroup field is set. + */ + boolean hasSourceInstantSnapshotGroup(); + + /** + * + * + *
+   * The source instant snapshot group used to create disks. You can provide
+   * this as a partial or full URL to the resource. For example, the following
+   * are valid values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The sourceInstantSnapshotGroup. + */ + java.lang.String getSourceInstantSnapshotGroup(); + + /** + * + * + *
+   * The source instant snapshot group used to create disks. You can provide
+   * this as a partial or full URL to the resource. For example, the following
+   * are valid values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * - zones/zone/instantSnapshotGroups/instantSnapshotGroup
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The bytes for sourceInstantSnapshotGroup. + */ + com.google.protobuf.ByteString getSourceInstantSnapshotGroupBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatus.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatus.java new file mode 100644 index 000000000000..eda488fcc750 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatus.java @@ -0,0 +1,966 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} + */ +@com.google.protobuf.Generated +public final class InstantSnapshotGroupResourceStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) + InstantSnapshotGroupResourceStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstantSnapshotGroupResourceStatus"); + } + + // Use InstantSnapshotGroupResourceStatus.newBuilder() to construct. + private InstantSnapshotGroupResourceStatus( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstantSnapshotGroupResourceStatus() { + consistencyMembershipResolutionTime_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.class, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder.class); + } + + private int bitField0_; + public static final int CONSISTENCY_MEMBERSHIP_RESOLUTION_TIME_FIELD_NUMBER = 346675870; + + @SuppressWarnings("serial") + private volatile java.lang.Object consistencyMembershipResolutionTime_ = ""; + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return Whether the consistencyMembershipResolutionTime field is set. + */ + @java.lang.Override + public boolean hasConsistencyMembershipResolutionTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return The consistencyMembershipResolutionTime. + */ + @java.lang.Override + public java.lang.String getConsistencyMembershipResolutionTime() { + java.lang.Object ref = consistencyMembershipResolutionTime_; + 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(); + consistencyMembershipResolutionTime_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return The bytes for consistencyMembershipResolutionTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsistencyMembershipResolutionTimeBytes() { + java.lang.Object ref = consistencyMembershipResolutionTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consistencyMembershipResolutionTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_INFO_FIELD_NUMBER = 451907154; + private com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo sourceInfo_; + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + * + * @return Whether the sourceInfo field is set. + */ + @java.lang.Override + public boolean hasSourceInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + * + * @return The sourceInfo. + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo getSourceInfo() { + return sourceInfo_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.getDefaultInstance() + : sourceInfo_; + } + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder + getSourceInfoOrBuilder() { + return sourceInfo_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.getDefaultInstance() + : sourceInfo_; + } + + 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)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 346675870, consistencyMembershipResolutionTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(451907154, getSourceInfo()); + } + 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.GeneratedMessage.computeStringSize( + 346675870, consistencyMembershipResolutionTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(451907154, getSourceInfo()); + } + 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.compute.v1.InstantSnapshotGroupResourceStatus)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus other = + (com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) obj; + + if (hasConsistencyMembershipResolutionTime() != other.hasConsistencyMembershipResolutionTime()) + return false; + if (hasConsistencyMembershipResolutionTime()) { + if (!getConsistencyMembershipResolutionTime() + .equals(other.getConsistencyMembershipResolutionTime())) return false; + } + if (hasSourceInfo() != other.hasSourceInfo()) return false; + if (hasSourceInfo()) { + if (!getSourceInfo().equals(other.getSourceInfo())) 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 (hasConsistencyMembershipResolutionTime()) { + hash = (37 * hash) + CONSISTENCY_MEMBERSHIP_RESOLUTION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getConsistencyMembershipResolutionTime().hashCode(); + } + if (hasSourceInfo()) { + hash = (37 * hash) + SOURCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSourceInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus 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.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InstantSnapshotGroupResourceStatus 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroupResourceStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.class, + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSourceInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consistencyMembershipResolutionTime_ = ""; + sourceInfo_ = null; + if (sourceInfoBuilder_ != null) { + sourceInfoBuilder_.dispose(); + sourceInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupResourceStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus build() { + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus buildPartial() { + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus result = + new com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consistencyMembershipResolutionTime_ = consistencyMembershipResolutionTime_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceInfo_ = sourceInfoBuilder_ == null ? sourceInfo_ : sourceInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) { + return mergeFrom((com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus other) { + if (other + == com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus.getDefaultInstance()) + return this; + if (other.hasConsistencyMembershipResolutionTime()) { + consistencyMembershipResolutionTime_ = other.consistencyMembershipResolutionTime_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSourceInfo()) { + mergeSourceInfo(other.getSourceInfo()); + } + 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 -1521560334: + { + consistencyMembershipResolutionTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1521560334 + case -679710062: + { + input.readMessage( + internalGetSourceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case -679710062 + 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 consistencyMembershipResolutionTime_ = ""; + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return Whether the consistencyMembershipResolutionTime field is set. + */ + public boolean hasConsistencyMembershipResolutionTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return The consistencyMembershipResolutionTime. + */ + public java.lang.String getConsistencyMembershipResolutionTime() { + java.lang.Object ref = consistencyMembershipResolutionTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consistencyMembershipResolutionTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return The bytes for consistencyMembershipResolutionTime. + */ + public com.google.protobuf.ByteString getConsistencyMembershipResolutionTimeBytes() { + java.lang.Object ref = consistencyMembershipResolutionTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consistencyMembershipResolutionTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @param value The consistencyMembershipResolutionTime to set. + * @return This builder for chaining. + */ + public Builder setConsistencyMembershipResolutionTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consistencyMembershipResolutionTime_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return This builder for chaining. + */ + public Builder clearConsistencyMembershipResolutionTime() { + consistencyMembershipResolutionTime_ = + getDefaultInstance().getConsistencyMembershipResolutionTime(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @param value The bytes for consistencyMembershipResolutionTime to set. + * @return This builder for chaining. + */ + public Builder setConsistencyMembershipResolutionTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consistencyMembershipResolutionTime_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo sourceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder> + sourceInfoBuilder_; + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + * + * @return Whether the sourceInfo field is set. + */ + public boolean hasSourceInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + * + * @return The sourceInfo. + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo getSourceInfo() { + if (sourceInfoBuilder_ == null) { + return sourceInfo_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.getDefaultInstance() + : sourceInfo_; + } else { + return sourceInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + public Builder setSourceInfo(com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo value) { + if (sourceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceInfo_ = value; + } else { + sourceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + public Builder setSourceInfo( + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder builderForValue) { + if (sourceInfoBuilder_ == null) { + sourceInfo_ = builderForValue.build(); + } else { + sourceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + public Builder mergeSourceInfo( + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo value) { + if (sourceInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sourceInfo_ != null + && sourceInfo_ + != com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo + .getDefaultInstance()) { + getSourceInfoBuilder().mergeFrom(value); + } else { + sourceInfo_ = value; + } + } else { + sourceInfoBuilder_.mergeFrom(value); + } + if (sourceInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + public Builder clearSourceInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + sourceInfo_ = null; + if (sourceInfoBuilder_ != null) { + sourceInfoBuilder_.dispose(); + sourceInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder + getSourceInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSourceInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder + getSourceInfoOrBuilder() { + if (sourceInfoBuilder_ != null) { + return sourceInfoBuilder_.getMessageOrBuilder(); + } else { + return sourceInfo_ == null + ? com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.getDefaultInstance() + : sourceInfo_; + } + } + + /** + * + * + *
+     * Output only. [Output Only]
+     * 
+ * + * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder> + internalGetSourceInfoFieldBuilder() { + if (sourceInfoBuilder_ == null) { + sourceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder>( + getSourceInfo(), getParentForChildren(), isClean()); + sourceInfo_ = null; + } + return sourceInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) + private static final com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus(); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupResourceStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantSnapshotGroupResourceStatus 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.compute.v1.InstantSnapshotGroupResourceStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatusOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatusOrBuilder.java new file mode 100644 index 000000000000..324b32d2d886 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupResourceStatusOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InstantSnapshotGroupResourceStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstantSnapshotGroupResourceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return Whether the consistencyMembershipResolutionTime field is set. + */ + boolean hasConsistencyMembershipResolutionTime(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return The consistencyMembershipResolutionTime. + */ + java.lang.String getConsistencyMembershipResolutionTime(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional string consistency_membership_resolution_time = 346675870; + * + * @return The bytes for consistencyMembershipResolutionTime. + */ + com.google.protobuf.ByteString getConsistencyMembershipResolutionTimeBytes(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + * + * @return Whether the sourceInfo field is set. + */ + boolean hasSourceInfo(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + * + * @return The sourceInfo. + */ + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo getSourceInfo(); + + /** + * + * + *
+   * Output only. [Output Only]
+   * 
+ * + * optional .google.cloud.compute.v1.InstantSnapshotGroupSourceInfo source_info = 451907154; + * + */ + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder getSourceInfoOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfo.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfo.java new file mode 100644 index 000000000000..aabc7e484fe9 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfo.java @@ -0,0 +1,753 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} + */ +@com.google.protobuf.Generated +public final class InstantSnapshotGroupSourceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) + InstantSnapshotGroupSourceInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstantSnapshotGroupSourceInfo"); + } + + // Use InstantSnapshotGroupSourceInfo.newBuilder() to construct. + private InstantSnapshotGroupSourceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstantSnapshotGroupSourceInfo() { + consistencyGroup_ = ""; + consistencyGroupId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.class, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder.class); + } + + private int bitField0_; + public static final int CONSISTENCY_GROUP_FIELD_NUMBER = 508183960; + + @SuppressWarnings("serial") + private volatile java.lang.Object consistencyGroup_ = ""; + + /** + * optional string consistency_group = 508183960; + * + * @return Whether the consistencyGroup field is set. + */ + @java.lang.Override + public boolean hasConsistencyGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * optional string consistency_group = 508183960; + * + * @return The consistencyGroup. + */ + @java.lang.Override + public java.lang.String getConsistencyGroup() { + java.lang.Object ref = consistencyGroup_; + 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(); + consistencyGroup_ = s; + return s; + } + } + + /** + * optional string consistency_group = 508183960; + * + * @return The bytes for consistencyGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsistencyGroupBytes() { + java.lang.Object ref = consistencyGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSISTENCY_GROUP_ID_FIELD_NUMBER = 85599522; + + @SuppressWarnings("serial") + private volatile java.lang.Object consistencyGroupId_ = ""; + + /** + * optional string consistency_group_id = 85599522; + * + * @return Whether the consistencyGroupId field is set. + */ + @java.lang.Override + public boolean hasConsistencyGroupId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * optional string consistency_group_id = 85599522; + * + * @return The consistencyGroupId. + */ + @java.lang.Override + public java.lang.String getConsistencyGroupId() { + java.lang.Object ref = consistencyGroupId_; + 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(); + consistencyGroupId_ = s; + return s; + } + } + + /** + * optional string consistency_group_id = 85599522; + * + * @return The bytes for consistencyGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsistencyGroupIdBytes() { + java.lang.Object ref = consistencyGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consistencyGroupId_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 85599522, consistencyGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 508183960, consistencyGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(85599522, consistencyGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(508183960, consistencyGroup_); + } + 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.compute.v1.InstantSnapshotGroupSourceInfo)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo other = + (com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) obj; + + if (hasConsistencyGroup() != other.hasConsistencyGroup()) return false; + if (hasConsistencyGroup()) { + if (!getConsistencyGroup().equals(other.getConsistencyGroup())) return false; + } + if (hasConsistencyGroupId() != other.hasConsistencyGroupId()) return false; + if (hasConsistencyGroupId()) { + if (!getConsistencyGroupId().equals(other.getConsistencyGroupId())) 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 (hasConsistencyGroup()) { + hash = (37 * hash) + CONSISTENCY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getConsistencyGroup().hashCode(); + } + if (hasConsistencyGroupId()) { + hash = (37 * hash) + CONSISTENCY_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getConsistencyGroupId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo 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.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.InstantSnapshotGroupSourceInfo 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.InstantSnapshotGroupSourceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.class, + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consistencyGroup_ = ""; + consistencyGroupId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_InstantSnapshotGroupSourceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo getDefaultInstanceForType() { + return com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo build() { + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo buildPartial() { + com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo result = + new com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consistencyGroup_ = consistencyGroup_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.consistencyGroupId_ = consistencyGroupId_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) { + return mergeFrom((com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo other) { + if (other == com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo.getDefaultInstance()) + return this; + if (other.hasConsistencyGroup()) { + consistencyGroup_ = other.consistencyGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasConsistencyGroupId()) { + consistencyGroupId_ = other.consistencyGroupId_; + 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 684796178: + { + consistencyGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 684796178 + case -229495614: + { + consistencyGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -229495614 + 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 consistencyGroup_ = ""; + + /** + * optional string consistency_group = 508183960; + * + * @return Whether the consistencyGroup field is set. + */ + public boolean hasConsistencyGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * optional string consistency_group = 508183960; + * + * @return The consistencyGroup. + */ + public java.lang.String getConsistencyGroup() { + java.lang.Object ref = consistencyGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consistencyGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * optional string consistency_group = 508183960; + * + * @return The bytes for consistencyGroup. + */ + public com.google.protobuf.ByteString getConsistencyGroupBytes() { + java.lang.Object ref = consistencyGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consistencyGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * optional string consistency_group = 508183960; + * + * @param value The consistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setConsistencyGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consistencyGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * optional string consistency_group = 508183960; + * + * @return This builder for chaining. + */ + public Builder clearConsistencyGroup() { + consistencyGroup_ = getDefaultInstance().getConsistencyGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * optional string consistency_group = 508183960; + * + * @param value The bytes for consistencyGroup to set. + * @return This builder for chaining. + */ + public Builder setConsistencyGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consistencyGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object consistencyGroupId_ = ""; + + /** + * optional string consistency_group_id = 85599522; + * + * @return Whether the consistencyGroupId field is set. + */ + public boolean hasConsistencyGroupId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * optional string consistency_group_id = 85599522; + * + * @return The consistencyGroupId. + */ + public java.lang.String getConsistencyGroupId() { + java.lang.Object ref = consistencyGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consistencyGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * optional string consistency_group_id = 85599522; + * + * @return The bytes for consistencyGroupId. + */ + public com.google.protobuf.ByteString getConsistencyGroupIdBytes() { + java.lang.Object ref = consistencyGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consistencyGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * optional string consistency_group_id = 85599522; + * + * @param value The consistencyGroupId to set. + * @return This builder for chaining. + */ + public Builder setConsistencyGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consistencyGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * optional string consistency_group_id = 85599522; + * + * @return This builder for chaining. + */ + public Builder clearConsistencyGroupId() { + consistencyGroupId_ = getDefaultInstance().getConsistencyGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * optional string consistency_group_id = 85599522; + * + * @param value The bytes for consistencyGroupId to set. + * @return This builder for chaining. + */ + public Builder setConsistencyGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consistencyGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) + private static final com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo(); + } + + public static com.google.cloud.compute.v1.InstantSnapshotGroupSourceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstantSnapshotGroupSourceInfo 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.compute.v1.InstantSnapshotGroupSourceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfoOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfoOrBuilder.java new file mode 100644 index 000000000000..551c1a16c52e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupSourceInfoOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface InstantSnapshotGroupSourceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstantSnapshotGroupSourceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string consistency_group = 508183960; + * + * @return Whether the consistencyGroup field is set. + */ + boolean hasConsistencyGroup(); + + /** + * optional string consistency_group = 508183960; + * + * @return The consistencyGroup. + */ + java.lang.String getConsistencyGroup(); + + /** + * optional string consistency_group = 508183960; + * + * @return The bytes for consistencyGroup. + */ + com.google.protobuf.ByteString getConsistencyGroupBytes(); + + /** + * optional string consistency_group_id = 85599522; + * + * @return Whether the consistencyGroupId field is set. + */ + boolean hasConsistencyGroupId(); + + /** + * optional string consistency_group_id = 85599522; + * + * @return The consistencyGroupId. + */ + java.lang.String getConsistencyGroupId(); + + /** + * optional string consistency_group_id = 85599522; + * + * @return The bytes for consistencyGroupId. + */ + com.google.protobuf.ByteString getConsistencyGroupIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotOrBuilder.java index e15fb57f8514..2efc94504674 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstantSnapshotOrBuilder.java @@ -849,6 +849,99 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getSourceDiskIdBytes(); + /** + * + * + *
+   * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+   * part of. Note that the source instant snapshot group must be in the same
+   * zone/region as the instant snapshot to be created. This can be a full or
+   * valid partial URL.
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return Whether the sourceInstantSnapshotGroup field is set. + */ + boolean hasSourceInstantSnapshotGroup(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+   * part of. Note that the source instant snapshot group must be in the same
+   * zone/region as the instant snapshot to be created. This can be a full or
+   * valid partial URL.
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The sourceInstantSnapshotGroup. + */ + java.lang.String getSourceInstantSnapshotGroup(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is
+   * part of. Note that the source instant snapshot group must be in the same
+   * zone/region as the instant snapshot to be created. This can be a full or
+   * valid partial URL.
+   * 
+ * + * optional string source_instant_snapshot_group = 525991686; + * + * @return The bytes for sourceInstantSnapshotGroup. + */ + com.google.protobuf.ByteString getSourceInstantSnapshotGroupBytes(); + + /** + * + * + *
+   * Output only. [Output Only] The ID value of the source instant snapshot group this
+   * InstantSnapshot is part of. This value may be used to determine whether the
+   * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+   * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return Whether the sourceInstantSnapshotGroupId field is set. + */ + boolean hasSourceInstantSnapshotGroupId(); + + /** + * + * + *
+   * Output only. [Output Only] The ID value of the source instant snapshot group this
+   * InstantSnapshot is part of. This value may be used to determine whether the
+   * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+   * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return The sourceInstantSnapshotGroupId. + */ + java.lang.String getSourceInstantSnapshotGroupId(); + + /** + * + * + *
+   * Output only. [Output Only] The ID value of the source instant snapshot group this
+   * InstantSnapshot is part of. This value may be used to determine whether the
+   * InstantSnapshot was created as part of an InstantSnapshotGroup creation.
+   * 
+ * + * optional string source_instant_snapshot_group_id = 167103732; + * + * @return The bytes for sourceInstantSnapshotGroupId. + */ + com.google.protobuf.ByteString getSourceInstantSnapshotGroupIdBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroups.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroups.java new file mode 100644 index 000000000000..d766d4fbd7f2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroups.java @@ -0,0 +1,2628 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Contains a list of InstantSnapshotGroup resources.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListInstantSnapshotGroups} + */ +@com.google.protobuf.Generated +public final class ListInstantSnapshotGroups extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListInstantSnapshotGroups) + ListInstantSnapshotGroupsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInstantSnapshotGroups"); + } + + // Use ListInstantSnapshotGroups.newBuilder() to construct. + private ListInstantSnapshotGroups(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInstantSnapshotGroups() { + etag_ = ""; + id_ = ""; + items_ = java.util.Collections.emptyList(); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListInstantSnapshotGroups.class, + com.google.cloud.compute.v1.ListInstantSnapshotGroups.Builder.class); + } + + private int bitField0_; + public static final int ETAG_FIELD_NUMBER = 3123477; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * optional string etag = 3123477; + * + * @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; + } + } + + /** + * optional string etag = 3123477; + * + * @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 ID_FIELD_NUMBER = 3355; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 100526016; + + @SuppressWarnings("serial") + private java.util.List items_; + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + @java.lang.Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroup getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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 SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLES_FIELD_NUMBER = 243372063; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + return unreachables_; + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(100526016, items_.get(i)); + } + for (int i = 0; i < unreachables_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 243372063, unreachables_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unreachables_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); + } + size += dataSize; + size += 5 * getUnreachablesList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.ListInstantSnapshotGroups)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListInstantSnapshotGroups other = + (com.google.cloud.compute.v1.ListInstantSnapshotGroups) obj; + + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!getItemsList().equals(other.getItemsList())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (!getUnreachablesList().equals(other.getUnreachablesList())) return false; + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (getUnreachablesCount() > 0) { + hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER; + hash = (53 * hash) + getUnreachablesList().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups 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.compute.v1.ListInstantSnapshotGroups parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListInstantSnapshotGroups 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Contains a list of InstantSnapshotGroup resources.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListInstantSnapshotGroups} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListInstantSnapshotGroups) + com.google.cloud.compute.v1.ListInstantSnapshotGroupsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListInstantSnapshotGroups.class, + com.google.cloud.compute.v1.ListInstantSnapshotGroups.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListInstantSnapshotGroups.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetItemsFieldBuilder(); + internalGetWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + etag_ = ""; + id_ = ""; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroups_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListInstantSnapshotGroups getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListInstantSnapshotGroups.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListInstantSnapshotGroups build() { + com.google.cloud.compute.v1.ListInstantSnapshotGroups result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListInstantSnapshotGroups buildPartial() { + com.google.cloud.compute.v1.ListInstantSnapshotGroups result = + new com.google.cloud.compute.v1.ListInstantSnapshotGroups(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.ListInstantSnapshotGroups result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.ListInstantSnapshotGroups result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + unreachables_.makeImmutable(); + result.unreachables_ = unreachables_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListInstantSnapshotGroups) { + return mergeFrom((com.google.cloud.compute.v1.ListInstantSnapshotGroups) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListInstantSnapshotGroups other) { + if (other == com.google.cloud.compute.v1.ListInstantSnapshotGroups.getDefaultInstance()) + return this; + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetItemsFieldBuilder() + : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.unreachables_.isEmpty()) { + if (unreachables_.isEmpty()) { + unreachables_ = other.unreachables_; + bitField0_ |= 0x00000040; + } else { + ensureUnreachablesIsMutable(); + unreachables_.addAll(other.unreachables_); + } + onChanged(); + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 26842: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26842 + case 24987818: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 24987818 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(internalGetWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 638380202 + case 804208130: + { + com.google.cloud.compute.v1.InstantSnapshotGroup m = + input.readMessage( + com.google.cloud.compute.v1.InstantSnapshotGroup.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 804208130 + case 1946976506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachablesIsMutable(); + unreachables_.add(s); + break; + } // case 1946976506 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case -645248918 + 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 etag_ = ""; + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + 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; + } else { + return (java.lang.String) ref; + } + } + + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + 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; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * optional string etag = 3123477; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * optional string etag = 3123477; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * optional string etag = 3123477; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder> + itemsBuilder_; + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder setItems(int index, com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder setItems( + int index, com.google.cloud.compute.v1.InstantSnapshotGroup.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder addItems(int index, com.google.cloud.compute.v1.InstantSnapshotGroup value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder addItems( + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder addItems( + int index, com.google.cloud.compute.v1.InstantSnapshotGroup.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup.Builder getItemsBuilder(int index) { + return internalGetItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup.Builder addItemsBuilder() { + return internalGetItemsFieldBuilder() + .addBuilder(com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public com.google.cloud.compute.v1.InstantSnapshotGroup.Builder addItemsBuilder(int index) { + return internalGetItemsFieldBuilder() + .addBuilder(index, com.google.cloud.compute.v1.InstantSnapshotGroup.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of InstantSnapshotGroup resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + public java.util.List + getItemsBuilderList() { + return internalGetItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder> + internalGetItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.InstantSnapshotGroup, + com.google.cloud.compute.v1.InstantSnapshotGroup.Builder, + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder>( + items_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachablesIsMutable() { + if (!unreachables_.isModifiable()) { + unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + unreachables_.makeImmutable(); + return unreachables_; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index to set the value at. + * @param value The unreachables to set. + * @return This builder for chaining. + */ + public Builder setUnreachables(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param value The unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachables(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param values The unreachables to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachables(java.lang.Iterable values) { + ensureUnreachablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return This builder for chaining. + */ + public Builder clearUnreachables() { + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param value The bytes of the unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000080); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetWarningFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + internalGetWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListInstantSnapshotGroups) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListInstantSnapshotGroups) + private static final com.google.cloud.compute.v1.ListInstantSnapshotGroups DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListInstantSnapshotGroups(); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroups getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstantSnapshotGroups 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.compute.v1.ListInstantSnapshotGroups getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsOrBuilder.java new file mode 100644 index 000000000000..37aace95ab02 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsOrBuilder.java @@ -0,0 +1,368 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListInstantSnapshotGroupsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListInstantSnapshotGroups) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + java.util.List getItemsList(); + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + com.google.cloud.compute.v1.InstantSnapshotGroup getItems(int index); + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + int getItemsCount(); + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + java.util.List + getItemsOrBuilderList(); + + /** + * + * + *
+   * A list of InstantSnapshotGroup resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstantSnapshotGroup items = 100526016; + */ + com.google.cloud.compute.v1.InstantSnapshotGroupOrBuilder getItemsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + java.util.List getUnreachablesList(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + int getUnreachablesCount(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + java.lang.String getUnreachables(int index); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + com.google.protobuf.ByteString getUnreachablesBytes(int index); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + + /** + * + * + *
+   * [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequest.java new file mode 100644 index 000000000000..f98d7ec67494 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequest.java @@ -0,0 +1,2418 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.List. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListInstantSnapshotGroupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) + ListInstantSnapshotGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListInstantSnapshotGroupsRequest"); + } + + // Use ListInstantSnapshotGroupsRequest.newBuilder() to construct. + private ListInstantSnapshotGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListInstantSnapshotGroupsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.class, + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListInstantSnapshotGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest other = + (com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + } + if (!getZone().equals(other.getZone())) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest 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.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListInstantSnapshotGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.List. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListInstantSnapshotGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.class, + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + returnPartialSuccess_ = false; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListInstantSnapshotGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest build() { + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest buildPartial() { + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest result = + new com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest other) { + if (other + == com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000040; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 29957474 + case 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) + private static final com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest(); + } + + public static com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstantSnapshotGroupsRequest 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.compute.v1.ListInstantSnapshotGroupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..0aa2ac4a02f5 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListInstantSnapshotGroupsRequestOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListInstantSnapshotGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListInstantSnapshotGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequest.java new file mode 100644 index 000000000000..168cca3942b0 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequest.java @@ -0,0 +1,2413 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.List. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionBackendBucketsRequest} + */ +@com.google.protobuf.Generated +public final class ListRegionBackendBucketsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListRegionBackendBucketsRequest) + ListRegionBackendBucketsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRegionBackendBucketsRequest"); + } + + // Use ListRegionBackendBucketsRequest.newBuilder() to construct. + private ListRegionBackendBucketsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRegionBackendBucketsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.class, + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListRegionBackendBucketsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest other = + (com.google.cloud.compute.v1.ListRegionBackendBucketsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest 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.compute.v1.ListRegionBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListRegionBackendBucketsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.List. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionBackendBucketsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListRegionBackendBucketsRequest) + com.google.cloud.compute.v1.ListRegionBackendBucketsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.class, + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionBackendBucketsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionBackendBucketsRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionBackendBucketsRequest build() { + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionBackendBucketsRequest buildPartial() { + com.google.cloud.compute.v1.ListRegionBackendBucketsRequest result = + new com.google.cloud.compute.v1.ListRegionBackendBucketsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.ListRegionBackendBucketsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListRegionBackendBucketsRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListRegionBackendBucketsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListRegionBackendBucketsRequest other) { + if (other == com.google.cloud.compute.v1.ListRegionBackendBucketsRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1111570338 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region of this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000040); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListRegionBackendBucketsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListRegionBackendBucketsRequest) + private static final com.google.cloud.compute.v1.ListRegionBackendBucketsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListRegionBackendBucketsRequest(); + } + + public static com.google.cloud.compute.v1.ListRegionBackendBucketsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRegionBackendBucketsRequest 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.compute.v1.ListRegionBackendBucketsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequestOrBuilder.java new file mode 100644 index 000000000000..6685cdab831b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionBackendBucketsRequestOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListRegionBackendBucketsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListRegionBackendBucketsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region of this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequest.java new file mode 100644 index 000000000000..642d4ef19dbd --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequest.java @@ -0,0 +1,2653 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstanceGroupManagerResizeRequests.List. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} + */ +@com.google.protobuf.Generated +public final class ListRegionInstanceGroupManagerResizeRequestsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) + ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRegionInstanceGroupManagerResizeRequestsRequest"); + } + + // Use ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder() to construct. + private ListRegionInstanceGroupManagerResizeRequestsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRegionInstanceGroupManagerResizeRequestsRequest() { + filter_ = ""; + instanceGroupManager_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.class, + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.Builder + .class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 INSTANCE_GROUP_MANAGER_FIELD_NUMBER = 249363395; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupManager_ = ""; + + /** + * + * + *
+   * The name of the managed instance group. The name should conform to RFC1035.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + @java.lang.Override + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + 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(); + instanceGroupManager_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the managed instance group. The name should conform to RFC1035.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceGroupManager_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(249363395, instanceGroupManager_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest other = + (com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (!getInstanceGroupManager().equals(other.getInstanceGroupManager())) return false; + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (37 * hash) + INSTANCE_GROUP_MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupManager().hashCode(); + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + 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.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstanceGroupManagerResizeRequests.List. See the method description for details.
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.class, + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + instanceGroupManager_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagerResizeRequestsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest build() { + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + buildPartial() { + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest result = + new com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceGroupManager_ = instanceGroupManager_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest other) { + if (other + == com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + .getDefaultInstance()) return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInstanceGroupManager().isEmpty()) { + instanceGroupManager_ = other.instanceGroupManager_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 437723352 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 1111570338 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1820481738 + case 1994907162: + { + instanceGroupManager_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1994907162 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object instanceGroupManager_ = ""; + + /** + * + * + *
+     * The name of the managed instance group. The name should conform to RFC1035.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + public java.lang.String getInstanceGroupManager() { + java.lang.Object ref = instanceGroupManager_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupManager_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group. The name should conform to RFC1035.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + public com.google.protobuf.ByteString getInstanceGroupManagerBytes() { + java.lang.Object ref = instanceGroupManager_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupManager_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the managed instance group. The name should conform to RFC1035.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManager(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupManager_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group. The name should conform to RFC1035.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupManager() { + instanceGroupManager_ = getDefaultInstance().getInstanceGroupManager(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the managed instance group. The name should conform to RFC1035.
+     * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for instanceGroupManager to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupManagerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupManager_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000004); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region
+     * scoping this request. Name should conform to RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000080); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) + private static final com.google.cloud.compute.v1 + .ListRegionInstanceGroupManagerResizeRequestsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest(); + } + + public static com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListRegionInstanceGroupManagerResizeRequestsRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListRegionInstanceGroupManagerResizeRequestsRequest>() { + @java.lang.Override + public ListRegionInstanceGroupManagerResizeRequestsRequest 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.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder.java new file mode 100644 index 000000000000..e43fdc429dbc --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder.java @@ -0,0 +1,504 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListRegionInstanceGroupManagerResizeRequestsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The name of the managed instance group. The name should conform to RFC1035.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instanceGroupManager. + */ + java.lang.String getInstanceGroupManager(); + + /** + * + * + *
+   * The name of the managed instance group. The name should conform to RFC1035.
+   * 
+ * + * string instance_group_manager = 249363395 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for instanceGroupManager. + */ + com.google.protobuf.ByteString getInstanceGroupManagerBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region
+   * scoping this request. Name should conform to RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequest.java new file mode 100644 index 000000000000..a165e26d796e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequest.java @@ -0,0 +1,2426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.List. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} + */ +@com.google.protobuf.Generated +public final class ListRegionInstantSnapshotGroupsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) + ListRegionInstantSnapshotGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRegionInstantSnapshotGroupsRequest"); + } + + // Use ListRegionInstantSnapshotGroupsRequest.newBuilder() to construct. + private ListRegionInstantSnapshotGroupsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRegionInstantSnapshotGroupsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.class, + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListRegionInstantSnapshotGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest other = + (com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest 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.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListRegionInstantSnapshotGroupsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.List. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.class, + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest build() { + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest buildPartial() { + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest result = + new com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest other) { + if (other + == com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + .getDefaultInstance()) return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1111570338 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000040); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) + private static final com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest(); + } + + public static com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRegionInstantSnapshotGroupsRequest 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.compute.v1.ListRegionInstantSnapshotGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..700ee4233d0c --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionInstantSnapshotGroupsRequestOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListRegionInstantSnapshotGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequest.java new file mode 100644 index 000000000000..0a5f3a8b003e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequest.java @@ -0,0 +1,2413 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.List. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionSnapshotsRequest} + */ +@com.google.protobuf.Generated +public final class ListRegionSnapshotsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListRegionSnapshotsRequest) + ListRegionSnapshotsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRegionSnapshotsRequest"); + } + + // Use ListRegionSnapshotsRequest.newBuilder() to construct. + private ListRegionSnapshotsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRegionSnapshotsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionSnapshotsRequest.class, + com.google.cloud.compute.v1.ListRegionSnapshotsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListRegionSnapshotsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListRegionSnapshotsRequest other = + (com.google.cloud.compute.v1.ListRegionSnapshotsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest 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.compute.v1.ListRegionSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListRegionSnapshotsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.List. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListRegionSnapshotsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListRegionSnapshotsRequest) + com.google.cloud.compute.v1.ListRegionSnapshotsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListRegionSnapshotsRequest.class, + com.google.cloud.compute.v1.ListRegionSnapshotsRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListRegionSnapshotsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListRegionSnapshotsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionSnapshotsRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListRegionSnapshotsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionSnapshotsRequest build() { + com.google.cloud.compute.v1.ListRegionSnapshotsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListRegionSnapshotsRequest buildPartial() { + com.google.cloud.compute.v1.ListRegionSnapshotsRequest result = + new com.google.cloud.compute.v1.ListRegionSnapshotsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.ListRegionSnapshotsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListRegionSnapshotsRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListRegionSnapshotsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListRegionSnapshotsRequest other) { + if (other == com.google.cloud.compute.v1.ListRegionSnapshotsRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1111570338 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000040); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListRegionSnapshotsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListRegionSnapshotsRequest) + private static final com.google.cloud.compute.v1.ListRegionSnapshotsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListRegionSnapshotsRequest(); + } + + public static com.google.cloud.compute.v1.ListRegionSnapshotsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRegionSnapshotsRequest 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.compute.v1.ListRegionSnapshotsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequestOrBuilder.java new file mode 100644 index 000000000000..689e89cb99eb --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListRegionSnapshotsRequestOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListRegionSnapshotsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListRegionSnapshotsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequest.java new file mode 100644 index 000000000000..153da962aa76 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequest.java @@ -0,0 +1,2224 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for BackendBuckets.ListUsable. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListUsableBackendBucketsRequest} + */ +@com.google.protobuf.Generated +public final class ListUsableBackendBucketsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListUsableBackendBucketsRequest) + ListUsableBackendBucketsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListUsableBackendBucketsRequest"); + } + + // Use ListUsableBackendBucketsRequest.newBuilder() to construct. + private ListUsableBackendBucketsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListUsableBackendBucketsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.class, + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListUsableBackendBucketsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest other = + (com.google.cloud.compute.v1.ListUsableBackendBucketsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest 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.compute.v1.ListUsableBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListUsableBackendBucketsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for BackendBuckets.ListUsable. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListUsableBackendBucketsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListUsableBackendBucketsRequest) + com.google.cloud.compute.v1.ListUsableBackendBucketsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.class, + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableBackendBucketsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListUsableBackendBucketsRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListUsableBackendBucketsRequest build() { + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListUsableBackendBucketsRequest buildPartial() { + com.google.cloud.compute.v1.ListUsableBackendBucketsRequest result = + new com.google.cloud.compute.v1.ListUsableBackendBucketsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.ListUsableBackendBucketsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListUsableBackendBucketsRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListUsableBackendBucketsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListUsableBackendBucketsRequest other) { + if (other == com.google.cloud.compute.v1.ListUsableBackendBucketsRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListUsableBackendBucketsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListUsableBackendBucketsRequest) + private static final com.google.cloud.compute.v1.ListUsableBackendBucketsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListUsableBackendBucketsRequest(); + } + + public static com.google.cloud.compute.v1.ListUsableBackendBucketsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableBackendBucketsRequest 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.compute.v1.ListUsableBackendBucketsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequestOrBuilder.java new file mode 100644 index 000000000000..0a9732fec3b2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableBackendBucketsRequestOrBuilder.java @@ -0,0 +1,448 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListUsableBackendBucketsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListUsableBackendBucketsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequest.java new file mode 100644 index 000000000000..42542c318395 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequest.java @@ -0,0 +1,2431 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.ListUsable. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} + */ +@com.google.protobuf.Generated +public final class ListUsableRegionBackendBucketsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) + ListUsableRegionBackendBucketsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListUsableRegionBackendBucketsRequest"); + } + + // Use ListUsableRegionBackendBucketsRequest.newBuilder() to construct. + private ListUsableRegionBackendBucketsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListUsableRegionBackendBucketsRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.class, + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region scoping this request.
+   * It must be a string that meets the requirements in RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region scoping this request.
+   * It must be a string that meets the requirements in RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + 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_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListUsableRegionBackendBucketsRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest other = + (com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest 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.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListUsableRegionBackendBucketsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.ListUsable. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.class, + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + region_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListUsableRegionBackendBucketsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest build() { + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest buildPartial() { + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest result = + new com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest other) { + if (other + == com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1111570338 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region scoping this request.
+     * It must be a string that meets the requirements in RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * It must be a string that meets the requirements in RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * It must be a string that meets the requirements in RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * It must be a string that meets the requirements in RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * It must be a string that meets the requirements in RFC1035.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000040); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) + private static final com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest(); + } + + public static com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableRegionBackendBucketsRequest 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.compute.v1.ListUsableRegionBackendBucketsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequestOrBuilder.java new file mode 100644 index 000000000000..1448a7f9ec2d --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListUsableRegionBackendBucketsRequestOrBuilder.java @@ -0,0 +1,476 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListUsableRegionBackendBucketsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * It must be a string that meets the requirements in RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * It must be a string that meets the requirements in RFC1035.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequest.java new file mode 100644 index 000000000000..1b168f73be2f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequest.java @@ -0,0 +1,2420 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for ZoneVmExtensionPolicies.List. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListZoneVmExtensionPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) + ListZoneVmExtensionPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListZoneVmExtensionPoliciesRequest"); + } + + // Use ListZoneVmExtensionPoliciesRequest.newBuilder() to construct. + private ListZoneVmExtensionPoliciesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListZoneVmExtensionPoliciesRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.class, + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 336120696; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @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 MAX_RESULTS_FIELD_NUMBER = 54715419; + private int maxResults_ = 0; + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 160562920; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + @java.lang.Override + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 19994697; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + @java.lang.Override + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @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 PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 517198390; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(517198390, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(160562920, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(517198390, returnPartialSuccess_); + } + 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.compute.v1.ListZoneVmExtensionPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest other = + (com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasMaxResults() != other.hasMaxResults()) return false; + if (hasMaxResults()) { + if (getMaxResults() != other.getMaxResults()) return false; + } + if (hasOrderBy() != other.hasOrderBy()) return false; + if (hasOrderBy()) { + if (!getOrderBy().equals(other.getOrderBy())) return false; + } + if (hasPageToken() != other.hasPageToken()) return false; + if (hasPageToken()) { + if (!getPageToken().equals(other.getPageToken())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasReturnPartialSuccess() != other.hasReturnPartialSuccess()) return false; + if (hasReturnPartialSuccess()) { + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + } + if (!getZone().equals(other.getZone())) 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 (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasMaxResults()) { + hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxResults(); + } + if (hasOrderBy()) { + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + } + if (hasPageToken()) { + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasReturnPartialSuccess()) { + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest 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.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.ListZoneVmExtensionPoliciesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for ZoneVmExtensionPolicies.List. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.class, + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + returnPartialSuccess_ = false; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ListZoneVmExtensionPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest build() { + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest buildPartial() { + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest result = + new com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) { + return mergeFrom((com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest other) { + if (other + == com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest.getDefaultInstance()) + return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000040; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 29957474 + case 159957578: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 437723352 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1820481738 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case -157380176 + 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 filter_ = ""; + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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; + } + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * A filter expression that filters resources listed in the response. Most
+     * Compute resources support two types of filter expressions:
+     * expressions that support regular expressions and expressions that follow
+     * API improvement proposal AIP-160.
+     * These two types of filter expressions cannot be mixed in one request.
+     *
+     * If you want to use AIP-160, your expression must specify the field name, an
+     * operator, and the value that you want to use for filtering. The value
+     * must be a string, a number, or a boolean. The operator
+     * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+     *
+     * For example, if you are filtering Compute Engine instances, you can
+     * exclude instances named `example-instance` by specifying
+     * `name != example-instance`.
+     *
+     * The `:*` comparison can be used to test whether a key has been defined.
+     * For example, to find all objects with `owner` label use:
+     * ```
+     * labels.owner:*
+     * ```
+     *
+     * You can also filter nested fields. For example, you could specify
+     * `scheduling.automaticRestart = false` to include instances only
+     * if they are not scheduled for automatic restarts. You can use filtering
+     * on nested fields to filter based onresource labels.
+     *
+     * To filter on multiple expressions, provide each separate expression within
+     * parentheses. For example:
+     * ```
+     * (scheduling.automaticRestart = true)
+     * (cpuPlatform = "Intel Skylake")
+     * ```
+     * By default, each expression is an `AND` expression. However, you
+     * can include `AND` and `OR` expressions explicitly.
+     * For example:
+     * ```
+     * (cpuPlatform = "Intel Skylake") OR
+     * (cpuPlatform = "Intel Broadwell") AND
+     * (scheduling.automaticRestart = true)
+     * ```
+     *
+     * If you want to use a regular expression, use the `eq` (equal) or `ne`
+     * (not equal) operator against a single un-parenthesized expression with or
+     * without quotes or against multiple parenthesized expressions. Examples:
+     *
+     * `fieldname eq unquoted literal`
+     * `fieldname eq 'single quoted literal'`
+     * `fieldname eq "double quoted literal"`
+     * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+     *
+     * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+     * The literal value must match the entire field.
+     *
+     * For example, to filter for instances that do not end with name "instance",
+     * you would use `name ne .*instance`.
+     *
+     * You cannot combine constraints on multiple fields using regular
+     * expressions.
+     * 
+ * + * optional string filter = 336120696; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxResults_; + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + @java.lang.Override + public boolean hasMaxResults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + @java.lang.Override + public int getMaxResults() { + return maxResults_; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @param value The maxResults to set. + * @return This builder for chaining. + */ + public Builder setMaxResults(int value) { + + maxResults_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of results per page that should be returned.
+     * If the number of available results is larger than `maxResults`,
+     * Compute Engine returns a `nextPageToken` that can be used to get
+     * the next page of results in subsequent list requests. Acceptable values are
+     * `0` to `500`, inclusive. (Default: `500`)
+     * 
+ * + * optional uint32 max_results = 54715419; + * + * @return This builder for chaining. + */ + public Builder clearMaxResults() { + bitField0_ = (bitField0_ & ~0x00000002); + maxResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + public boolean hasOrderBy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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; + } + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Sorts list results by a certain order. By default, results
+     * are returned in alphanumerical order based on the resource name.
+     *
+     * You can also sort results in descending order based on the creation
+     * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+     * results based on the `creationTimestamp` field in
+     * reverse chronological order (newest result first). Use this to sort
+     * resources like operations so that the newest operation is returned first.
+     *
+     * Currently, only sorting by `name` or
+     * `creationTimestamp desc` is supported.
+     * 
+ * + * optional string order_by = 160562920; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + public boolean hasPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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; + } + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies a page token to use. Set `pageToken` to the
+     * `nextPageToken` returned by a previous list request to get
+     * the next page of results.
+     * 
+ * + * optional string page_token = 19994697; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + @java.lang.Override + public boolean hasReturnPartialSuccess() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opt-in for partial success behavior which provides partial results in case
+     * of failure. The default value is false.
+     *
+     * For example, when partial success behavior is enabled, aggregatedList for a
+     * single zone scope either returns all resources in the zone or no resources,
+     * with an error code.
+     * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) + private static final com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest(); + } + + public static com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListZoneVmExtensionPoliciesRequest 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.compute.v1.ListZoneVmExtensionPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..907bbfe8b178 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ListZoneVmExtensionPoliciesRequestOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface ListZoneVmExtensionPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * A filter expression that filters resources listed in the response. Most
+   * Compute resources support two types of filter expressions:
+   * expressions that support regular expressions and expressions that follow
+   * API improvement proposal AIP-160.
+   * These two types of filter expressions cannot be mixed in one request.
+   *
+   * If you want to use AIP-160, your expression must specify the field name, an
+   * operator, and the value that you want to use for filtering. The value
+   * must be a string, a number, or a boolean. The operator
+   * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
+   *
+   * For example, if you are filtering Compute Engine instances, you can
+   * exclude instances named `example-instance` by specifying
+   * `name != example-instance`.
+   *
+   * The `:*` comparison can be used to test whether a key has been defined.
+   * For example, to find all objects with `owner` label use:
+   * ```
+   * labels.owner:*
+   * ```
+   *
+   * You can also filter nested fields. For example, you could specify
+   * `scheduling.automaticRestart = false` to include instances only
+   * if they are not scheduled for automatic restarts. You can use filtering
+   * on nested fields to filter based onresource labels.
+   *
+   * To filter on multiple expressions, provide each separate expression within
+   * parentheses. For example:
+   * ```
+   * (scheduling.automaticRestart = true)
+   * (cpuPlatform = "Intel Skylake")
+   * ```
+   * By default, each expression is an `AND` expression. However, you
+   * can include `AND` and `OR` expressions explicitly.
+   * For example:
+   * ```
+   * (cpuPlatform = "Intel Skylake") OR
+   * (cpuPlatform = "Intel Broadwell") AND
+   * (scheduling.automaticRestart = true)
+   * ```
+   *
+   * If you want to use a regular expression, use the `eq` (equal) or `ne`
+   * (not equal) operator against a single un-parenthesized expression with or
+   * without quotes or against multiple parenthesized expressions. Examples:
+   *
+   * `fieldname eq unquoted literal`
+   * `fieldname eq 'single quoted literal'`
+   * `fieldname eq "double quoted literal"`
+   * `(fieldname1 eq literal) (fieldname2 ne "literal")`
+   *
+   * The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
+   * The literal value must match the entire field.
+   *
+   * For example, to filter for instances that do not end with name "instance",
+   * you would use `name ne .*instance`.
+   *
+   * You cannot combine constraints on multiple fields using regular
+   * expressions.
+   * 
+ * + * optional string filter = 336120696; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return Whether the maxResults field is set. + */ + boolean hasMaxResults(); + + /** + * + * + *
+   * The maximum number of results per page that should be returned.
+   * If the number of available results is larger than `maxResults`,
+   * Compute Engine returns a `nextPageToken` that can be used to get
+   * the next page of results in subsequent list requests. Acceptable values are
+   * `0` to `500`, inclusive. (Default: `500`)
+   * 
+ * + * optional uint32 max_results = 54715419; + * + * @return The maxResults. + */ + int getMaxResults(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return Whether the orderBy field is set. + */ + boolean hasOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Sorts list results by a certain order. By default, results
+   * are returned in alphanumerical order based on the resource name.
+   *
+   * You can also sort results in descending order based on the creation
+   * timestamp using `orderBy="creationTimestamp desc"`. This sorts
+   * results based on the `creationTimestamp` field in
+   * reverse chronological order (newest result first). Use this to sort
+   * resources like operations so that the newest operation is returned first.
+   *
+   * Currently, only sorting by `name` or
+   * `creationTimestamp desc` is supported.
+   * 
+ * + * optional string order_by = 160562920; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return Whether the pageToken field is set. + */ + boolean hasPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Specifies a page token to use. Set `pageToken` to the
+   * `nextPageToken` returned by a previous list request to get
+   * the next page of results.
+   * 
+ * + * optional string page_token = 19994697; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return Whether the returnPartialSuccess field is set. + */ + boolean hasReturnPartialSuccess(); + + /** + * + * + *
+   * Opt-in for partial success behavior which provides partial results in case
+   * of failure. The default value is false.
+   *
+   * For example, when partial success behavior is enabled, aggregatedList for a
+   * single zone scope either returns all resources in the zone or no resources,
+   * with an error code.
+   * 
+ * + * optional bool return_partial_success = 517198390; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpoint.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpoint.java index 4ce5d349c55b..8cb53820b6f0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpoint.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpoint.java @@ -57,6 +57,7 @@ private NetworkAttachmentConnectedEndpoint() { ipv6Address_ = ""; projectIdOrNum_ = ""; secondaryIpCidrRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceClassId_ = ""; status_ = ""; subnetwork_ = ""; subnetworkCidrRange_ = ""; @@ -611,6 +612,78 @@ public com.google.protobuf.ByteString getSecondaryIpCidrRangesBytes(int index) { return secondaryIpCidrRanges_.getByteString(index); } + public static final int SERVICE_CLASS_ID_FIELD_NUMBER = 422763404; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceClassId_ = ""; + + /** + * + * + *
+   * The service class id of the producer service to which the IP was
+   * assigned.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return Whether the serviceClassId field is set. + */ + @java.lang.Override + public boolean hasServiceClassId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * The service class id of the producer service to which the IP was
+   * assigned.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The serviceClassId. + */ + @java.lang.Override + public java.lang.String getServiceClassId() { + java.lang.Object ref = serviceClassId_; + 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(); + serviceClassId_ = s; + return s; + } + } + + /** + * + * + *
+   * The service class id of the producer service to which the IP was
+   * assigned.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The bytes for serviceClassId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceClassIdBytes() { + java.lang.Object ref = serviceClassId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceClassId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STATUS_FIELD_NUMBER = 181260274; @SuppressWarnings("serial") @@ -630,7 +703,7 @@ public com.google.protobuf.ByteString getSecondaryIpCidrRangesBytes(int index) { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -702,7 +775,7 @@ public com.google.protobuf.ByteString getStatusBytes() { */ @java.lang.Override public boolean hasSubnetwork() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -774,7 +847,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { */ @java.lang.Override public boolean hasSubnetworkCidrRange() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -845,10 +918,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString( output, 117184788, secondaryIpCidrRanges_.getRaw(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 181260274, status_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 307827694, subnetwork_); } if (((bitField0_ & 0x00000002) != 0)) { @@ -857,12 +930,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 349783336, projectIdOrNum_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 383249827, subnetworkCidrRange_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 406272220, ipAddress_); } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 422763404, serviceClassId_); + } getUnknownFields().writeTo(output); } @@ -880,10 +956,10 @@ public int getSerializedSize() { size += dataSize; size += 5 * getSecondaryIpCidrRangesList().size(); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(181260274, status_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(307827694, subnetwork_); } if (((bitField0_ & 0x00000002) != 0)) { @@ -892,13 +968,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(349783336, projectIdOrNum_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(383249827, subnetworkCidrRange_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(406272220, ipAddress_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(422763404, serviceClassId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -928,6 +1007,10 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectIdOrNum().equals(other.getProjectIdOrNum())) return false; } if (!getSecondaryIpCidrRangesList().equals(other.getSecondaryIpCidrRangesList())) return false; + if (hasServiceClassId() != other.hasServiceClassId()) return false; + if (hasServiceClassId()) { + if (!getServiceClassId().equals(other.getServiceClassId())) return false; + } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus().equals(other.getStatus())) return false; @@ -967,6 +1050,10 @@ public int hashCode() { hash = (37 * hash) + SECONDARY_IP_CIDR_RANGES_FIELD_NUMBER; hash = (53 * hash) + getSecondaryIpCidrRangesList().hashCode(); } + if (hasServiceClassId()) { + hash = (37 * hash) + SERVICE_CLASS_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceClassId().hashCode(); + } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); @@ -1124,6 +1211,7 @@ public Builder clear() { ipv6Address_ = ""; projectIdOrNum_ = ""; secondaryIpCidrRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceClassId_ = ""; status_ = ""; subnetwork_ = ""; subnetworkCidrRange_ = ""; @@ -1183,17 +1271,21 @@ private void buildPartial0( result.secondaryIpCidrRanges_ = secondaryIpCidrRanges_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.status_ = status_; + result.serviceClassId_ = serviceClassId_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.subnetwork_ = subnetwork_; + result.status_ = status_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.subnetworkCidrRange_ = subnetworkCidrRange_; + result.subnetwork_ = subnetwork_; to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.subnetworkCidrRange_ = subnetworkCidrRange_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -1236,19 +1328,24 @@ public Builder mergeFrom(com.google.cloud.compute.v1.NetworkAttachmentConnectedE } onChanged(); } + if (other.hasServiceClassId()) { + serviceClassId_ = other.serviceClassId_; + bitField0_ |= 0x00000010; + onChanged(); + } if (other.hasStatus()) { status_ = other.status_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasSubnetwork()) { subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasSubnetworkCidrRange()) { subnetworkCidrRange_ = other.subnetworkCidrRange_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1287,13 +1384,13 @@ public Builder mergeFrom( case 1450082194: { status_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 1450082194 case -1832345742: { subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case -1832345742 case -1562456862: @@ -1311,7 +1408,7 @@ public Builder mergeFrom( case -1228968678: { subnetworkCidrRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case -1228968678 case -1044789534: @@ -1320,6 +1417,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case -1044789534 + case -912860062: + { + serviceClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case -912860062 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1919,6 +2022,138 @@ public Builder addSecondaryIpCidrRangesBytes(com.google.protobuf.ByteString valu return this; } + private java.lang.Object serviceClassId_ = ""; + + /** + * + * + *
+     * The service class id of the producer service to which the IP was
+     * assigned.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return Whether the serviceClassId field is set. + */ + public boolean hasServiceClassId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * The service class id of the producer service to which the IP was
+     * assigned.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return The serviceClassId. + */ + public java.lang.String getServiceClassId() { + java.lang.Object ref = serviceClassId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceClassId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The service class id of the producer service to which the IP was
+     * assigned.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return The bytes for serviceClassId. + */ + public com.google.protobuf.ByteString getServiceClassIdBytes() { + java.lang.Object ref = serviceClassId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceClassId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The service class id of the producer service to which the IP was
+     * assigned.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @param value The serviceClassId to set. + * @return This builder for chaining. + */ + public Builder setServiceClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceClassId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The service class id of the producer service to which the IP was
+     * assigned.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return This builder for chaining. + */ + public Builder clearServiceClassId() { + serviceClassId_ = getDefaultInstance().getServiceClassId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The service class id of the producer service to which the IP was
+     * assigned.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @param value The bytes for serviceClassId to set. + * @return This builder for chaining. + */ + public Builder setServiceClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceClassId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + private java.lang.Object status_ = ""; /** @@ -1934,7 +2169,7 @@ public Builder addSecondaryIpCidrRangesBytes(com.google.protobuf.ByteString valu * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2003,7 +2238,7 @@ public Builder setStatus(java.lang.String value) { throw new NullPointerException(); } status_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2022,7 +2257,7 @@ public Builder setStatus(java.lang.String value) { */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2046,7 +2281,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); status_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2066,7 +2301,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the subnetwork field is set. */ public boolean hasSubnetwork() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2135,7 +2370,7 @@ public Builder setSubnetwork(java.lang.String value) { throw new NullPointerException(); } subnetwork_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2154,7 +2389,7 @@ public Builder setSubnetwork(java.lang.String value) { */ public Builder clearSubnetwork() { subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2178,7 +2413,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); subnetwork_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2198,7 +2433,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { * @return Whether the subnetworkCidrRange field is set. */ public boolean hasSubnetworkCidrRange() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2267,7 +2502,7 @@ public Builder setSubnetworkCidrRange(java.lang.String value) { throw new NullPointerException(); } subnetworkCidrRange_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2286,7 +2521,7 @@ public Builder setSubnetworkCidrRange(java.lang.String value) { */ public Builder clearSubnetworkCidrRange() { subnetworkCidrRange_ = getDefaultInstance().getSubnetworkCidrRange(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2310,7 +2545,7 @@ public Builder setSubnetworkCidrRangeBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); subnetworkCidrRange_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpointOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpointOrBuilder.java index 5aa5cbb64a2b..1e2205863f97 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpointOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentConnectedEndpointOrBuilder.java @@ -206,6 +206,48 @@ public interface NetworkAttachmentConnectedEndpointOrBuilder */ com.google.protobuf.ByteString getSecondaryIpCidrRangesBytes(int index); + /** + * + * + *
+   * The service class id of the producer service to which the IP was
+   * assigned.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return Whether the serviceClassId field is set. + */ + boolean hasServiceClassId(); + + /** + * + * + *
+   * The service class id of the producer service to which the IP was
+   * assigned.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The serviceClassId. + */ + java.lang.String getServiceClassId(); + + /** + * + * + *
+   * The service class id of the producer service to which the IP was
+   * assigned.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The bytes for serviceClassId. + */ + com.google.protobuf.ByteString getServiceClassIdBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java index 9aa665cab5d5..a5d0e6df6b7d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java @@ -66,6 +66,7 @@ private NetworkInterface() { networkIP_ = ""; nicType_ = ""; parentNicName_ = ""; + serviceClassId_ = ""; stackType_ = ""; subnetwork_ = ""; } @@ -2132,6 +2133,84 @@ public int getQueueCount() { return queueCount_; } + public static final int SERVICE_CLASS_ID_FIELD_NUMBER = 422763404; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceClassId_ = ""; + + /** + * + * + *
+   * Optional. Producer Service's Service class Id for the region of this network
+   * interface. Can only be used with network_attachment. It is not possible to
+   * use on its own however, network_attachment can be used without
+   * service_class_id.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return Whether the serviceClassId field is set. + */ + @java.lang.Override + public boolean hasServiceClassId() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Optional. Producer Service's Service class Id for the region of this network
+   * interface. Can only be used with network_attachment. It is not possible to
+   * use on its own however, network_attachment can be used without
+   * service_class_id.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The serviceClassId. + */ + @java.lang.Override + public java.lang.String getServiceClassId() { + java.lang.Object ref = serviceClassId_; + 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(); + serviceClassId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Producer Service's Service class Id for the region of this network
+   * interface. Can only be used with network_attachment. It is not possible to
+   * use on its own however, network_attachment can be used without
+   * service_class_id.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The bytes for serviceClassId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceClassIdBytes() { + java.lang.Object ref = serviceClassId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceClassId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STACK_TYPE_FIELD_NUMBER = 425908881; @SuppressWarnings("serial") @@ -2155,7 +2234,7 @@ public int getQueueCount() { */ @java.lang.Override public boolean hasStackType() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -2244,7 +2323,7 @@ public com.google.protobuf.ByteString getStackTypeBytes() { */ @java.lang.Override public boolean hasSubnetwork() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -2332,7 +2411,7 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { */ @java.lang.Override public boolean hasVlan() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -2372,7 +2451,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeInt32(3622243, vlan_); } if (((bitField0_ & 0x00000004) != 0)) { @@ -2405,7 +2484,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(283425868, enableVpcScopedDns_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 307827694, subnetwork_); } if (((bitField0_ & 0x00000020) != 0)) { @@ -2415,6 +2494,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString(output, 418764375, parentNicName_); } if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 422763404, serviceClassId_); + } + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 425908881, stackType_); } for (int i = 0; i < ipv6AccessConfigs_.size(); i++) { @@ -2441,7 +2523,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3622243, vlan_); } if (((bitField0_ & 0x00000004) != 0)) { @@ -2480,7 +2562,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(283425868, enableVpcScopedDns_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(307827694, subnetwork_); } if (((bitField0_ & 0x00000020) != 0)) { @@ -2490,6 +2572,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessage.computeStringSize(418764375, parentNicName_); } if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(422763404, serviceClassId_); + } + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(425908881, stackType_); } for (int i = 0; i < ipv6AccessConfigs_.size(); i++) { @@ -2578,6 +2663,10 @@ public boolean equals(final java.lang.Object obj) { if (hasQueueCount()) { if (getQueueCount() != other.getQueueCount()) return false; } + if (hasServiceClassId() != other.hasServiceClassId()) return false; + if (hasServiceClassId()) { + if (!getServiceClassId().equals(other.getServiceClassId())) return false; + } if (hasStackType() != other.hasStackType()) return false; if (hasStackType()) { if (!getStackType().equals(other.getStackType())) return false; @@ -2669,6 +2758,10 @@ public int hashCode() { hash = (37 * hash) + QUEUE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getQueueCount(); } + if (hasServiceClassId()) { + hash = (37 * hash) + SERVICE_CLASS_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceClassId().hashCode(); + } if (hasStackType()) { hash = (37 * hash) + STACK_TYPE_FIELD_NUMBER; hash = (53 * hash) + getStackType().hashCode(); @@ -2856,6 +2949,7 @@ public Builder clear() { nicType_ = ""; parentNicName_ = ""; queueCount_ = 0; + serviceClassId_ = ""; stackType_ = ""; subnetwork_ = ""; vlan_ = 0; @@ -2984,17 +3078,21 @@ private void buildPartial0(com.google.cloud.compute.v1.NetworkInterface result) to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.stackType_ = stackType_; + result.serviceClassId_ = serviceClassId_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.subnetwork_ = subnetwork_; + result.stackType_ = stackType_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.vlan_ = vlan_; + result.subnetwork_ = subnetwork_; to_bitField0_ |= 0x00010000; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.vlan_ = vlan_; + to_bitField0_ |= 0x00020000; + } result.bitField0_ |= to_bitField0_; } @@ -3155,14 +3253,19 @@ public Builder mergeFrom(com.google.cloud.compute.v1.NetworkInterface other) { if (other.hasQueueCount()) { setQueueCount(other.getQueueCount()); } + if (other.hasServiceClassId()) { + serviceClassId_ = other.serviceClassId_; + bitField0_ |= 0x00020000; + onChanged(); + } if (other.hasStackType()) { stackType_ = other.stackType_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasSubnetwork()) { subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasVlan()) { @@ -3209,7 +3312,7 @@ public Builder mergeFrom( case 28977944: { vlan_ = input.readInt32(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 28977944 case 241996370: @@ -3289,7 +3392,7 @@ public Builder mergeFrom( case -1832345742: { subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case -1832345742 case -1562456862: @@ -3304,10 +3407,16 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case -944852294 + case -912860062: + { + serviceClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case -912860062 case -887696246: { stackType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case -887696246 case -427190414: @@ -6394,6 +6503,150 @@ public Builder clearQueueCount() { return this; } + private java.lang.Object serviceClassId_ = ""; + + /** + * + * + *
+     * Optional. Producer Service's Service class Id for the region of this network
+     * interface. Can only be used with network_attachment. It is not possible to
+     * use on its own however, network_attachment can be used without
+     * service_class_id.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return Whether the serviceClassId field is set. + */ + public boolean hasServiceClassId() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Optional. Producer Service's Service class Id for the region of this network
+     * interface. Can only be used with network_attachment. It is not possible to
+     * use on its own however, network_attachment can be used without
+     * service_class_id.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return The serviceClassId. + */ + public java.lang.String getServiceClassId() { + java.lang.Object ref = serviceClassId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceClassId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Producer Service's Service class Id for the region of this network
+     * interface. Can only be used with network_attachment. It is not possible to
+     * use on its own however, network_attachment can be used without
+     * service_class_id.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return The bytes for serviceClassId. + */ + public com.google.protobuf.ByteString getServiceClassIdBytes() { + java.lang.Object ref = serviceClassId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceClassId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Producer Service's Service class Id for the region of this network
+     * interface. Can only be used with network_attachment. It is not possible to
+     * use on its own however, network_attachment can be used without
+     * service_class_id.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @param value The serviceClassId to set. + * @return This builder for chaining. + */ + public Builder setServiceClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceClassId_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Producer Service's Service class Id for the region of this network
+     * interface. Can only be used with network_attachment. It is not possible to
+     * use on its own however, network_attachment can be used without
+     * service_class_id.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @return This builder for chaining. + */ + public Builder clearServiceClassId() { + serviceClassId_ = getDefaultInstance().getServiceClassId(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Producer Service's Service class Id for the region of this network
+     * interface. Can only be used with network_attachment. It is not possible to
+     * use on its own however, network_attachment can be used without
+     * service_class_id.
+     * 
+ * + * optional string service_class_id = 422763404; + * + * @param value The bytes for serviceClassId to set. + * @return This builder for chaining. + */ + public Builder setServiceClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceClassId_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + private java.lang.Object stackType_ = ""; /** @@ -6413,7 +6666,7 @@ public Builder clearQueueCount() { * @return Whether the stackType field is set. */ public boolean hasStackType() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -6494,7 +6747,7 @@ public Builder setStackType(java.lang.String value) { throw new NullPointerException(); } stackType_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6517,7 +6770,7 @@ public Builder setStackType(java.lang.String value) { */ public Builder clearStackType() { stackType_ = getDefaultInstance().getStackType(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -6545,7 +6798,7 @@ public Builder setStackTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); stackType_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6574,7 +6827,7 @@ public Builder setStackTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the subnetwork field is set. */ public boolean hasSubnetwork() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6670,7 +6923,7 @@ public Builder setSubnetwork(java.lang.String value) { throw new NullPointerException(); } subnetwork_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6698,7 +6951,7 @@ public Builder setSubnetwork(java.lang.String value) { */ public Builder clearSubnetwork() { subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -6731,7 +6984,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); subnetwork_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6752,7 +7005,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasVlan() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -6788,7 +7041,7 @@ public int getVlan() { public Builder setVlan(int value) { vlan_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6806,7 +7059,7 @@ public Builder setVlan(int value) { * @return This builder for chaining. */ public Builder clearVlan() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); vlan_ = 0; onChanged(); return this; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterfaceOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterfaceOrBuilder.java index 58cedf780f4d..c31e6bc09b04 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterfaceOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkInterfaceOrBuilder.java @@ -839,6 +839,54 @@ public interface NetworkInterfaceOrBuilder */ int getQueueCount(); + /** + * + * + *
+   * Optional. Producer Service's Service class Id for the region of this network
+   * interface. Can only be used with network_attachment. It is not possible to
+   * use on its own however, network_attachment can be used without
+   * service_class_id.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return Whether the serviceClassId field is set. + */ + boolean hasServiceClassId(); + + /** + * + * + *
+   * Optional. Producer Service's Service class Id for the region of this network
+   * interface. Can only be used with network_attachment. It is not possible to
+   * use on its own however, network_attachment can be used without
+   * service_class_id.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The serviceClassId. + */ + java.lang.String getServiceClassId(); + + /** + * + * + *
+   * Optional. Producer Service's Service class Id for the region of this network
+   * interface. Can only be used with network_attachment. It is not possible to
+   * use on its own however, network_attachment can be used without
+   * service_class_id.
+   * 
+ * + * optional string service_class_id = 422763404; + * + * @return The bytes for serviceClassId. + */ + com.google.protobuf.ByteString getServiceClassIdBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequest.java new file mode 100644 index 000000000000..8ea975bec81e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequest.java @@ -0,0 +1,1669 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.Patch. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.PatchRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class PatchRegionBackendBucketRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PatchRegionBackendBucketRequest) + PatchRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PatchRegionBackendBucketRequest"); + } + + // Use PatchRegionBackendBucketRequest.newBuilder() to construct. + private PatchRegionBackendBucketRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PatchRegionBackendBucketRequest() { + backendBucket_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.Builder.class); + } + + private int bitField0_; + public static final int BACKEND_BUCKET_FIELD_NUMBER = 91714037; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendBucket_ = ""; + + /** + * + * + *
+   * Name of the BackendBucket resource to patch.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + @java.lang.Override + public java.lang.String getBackendBucket() { + java.lang.Object ref = backendBucket_; + 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(); + backendBucket_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the BackendBucket resource to patch.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendBucketBytes() { + java.lang.Object ref = backendBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_BUCKET_RESOURCE_FIELD_NUMBER = 380757784; + private com.google.cloud.compute.v1.BackendBucket backendBucketResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendBucketResource field is set. + */ + @java.lang.Override + public boolean hasBackendBucketResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendBucketResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucket getBackendBucketResource() { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketResourceOrBuilder() { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 91714037, backendBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(380757784, getBackendBucketResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backendBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(91714037, backendBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 380757784, getBackendBucketResource()); + } + 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.compute.v1.PatchRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.PatchRegionBackendBucketRequest) obj; + + if (!getBackendBucket().equals(other.getBackendBucket())) return false; + if (hasBackendBucketResource() != other.hasBackendBucketResource()) return false; + if (hasBackendBucketResource()) { + if (!getBackendBucketResource().equals(other.getBackendBucketResource())) return false; + } + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + 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) + BACKEND_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucket().hashCode(); + if (hasBackendBucketResource()) { + hash = (37 * hash) + BACKEND_BUCKET_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucketResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + 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.compute.v1.PatchRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest 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.compute.v1.PatchRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.PatchRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.Patch. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.PatchRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PatchRegionBackendBucketRequest) + com.google.cloud.compute.v1.PatchRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackendBucketResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backendBucket_ = ""; + backendBucketResource_ = null; + if (backendBucketResourceBuilder_ != null) { + backendBucketResourceBuilder_.dispose(); + backendBucketResourceBuilder_ = null; + } + project_ = ""; + region_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PatchRegionBackendBucketRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.PatchRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PatchRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.PatchRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.PatchRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.PatchRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backendBucket_ = backendBucket_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backendBucketResource_ = + backendBucketResourceBuilder_ == null + ? backendBucketResource_ + : backendBucketResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.PatchRegionBackendBucketRequest) { + return mergeFrom((com.google.cloud.compute.v1.PatchRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.PatchRegionBackendBucketRequest other) { + if (other == com.google.cloud.compute.v1.PatchRegionBackendBucketRequest.getDefaultInstance()) + return this; + if (!other.getBackendBucket().isEmpty()) { + backendBucket_ = other.backendBucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasBackendBucketResource()) { + mergeBackendBucketResource(other.getBackendBucketResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 733712298: + { + backendBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 733712298 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + case -1248905022: + { + input.readMessage( + internalGetBackendBucketResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case -1248905022 + 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 backendBucket_ = ""; + + /** + * + * + *
+     * Name of the BackendBucket resource to patch.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + public java.lang.String getBackendBucket() { + java.lang.Object ref = backendBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the BackendBucket resource to patch.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + public com.google.protobuf.ByteString getBackendBucketBytes() { + java.lang.Object ref = backendBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the BackendBucket resource to patch.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backendBucket to set. + * @return This builder for chaining. + */ + public Builder setBackendBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the BackendBucket resource to patch.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackendBucket() { + backendBucket_ = getDefaultInstance().getBackendBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the BackendBucket resource to patch.
+     * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backendBucket to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.BackendBucket backendBucketResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + backendBucketResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendBucketResource field is set. + */ + public boolean hasBackendBucketResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendBucketResource. + */ + public com.google.cloud.compute.v1.BackendBucket getBackendBucketResource() { + if (backendBucketResourceBuilder_ == null) { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } else { + return backendBucketResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendBucketResource(com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendBucketResource_ = value; + } else { + backendBucketResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackendBucketResource( + com.google.cloud.compute.v1.BackendBucket.Builder builderForValue) { + if (backendBucketResourceBuilder_ == null) { + backendBucketResource_ = builderForValue.build(); + } else { + backendBucketResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackendBucketResource(com.google.cloud.compute.v1.BackendBucket value) { + if (backendBucketResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backendBucketResource_ != null + && backendBucketResource_ + != com.google.cloud.compute.v1.BackendBucket.getDefaultInstance()) { + getBackendBucketResourceBuilder().mergeFrom(value); + } else { + backendBucketResource_ = value; + } + } else { + backendBucketResourceBuilder_.mergeFrom(value); + } + if (backendBucketResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackendBucketResource() { + bitField0_ = (bitField0_ & ~0x00000002); + backendBucketResource_ = null; + if (backendBucketResourceBuilder_ != null) { + backendBucketResourceBuilder_.dispose(); + backendBucketResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.BackendBucket.Builder getBackendBucketResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBackendBucketResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketResourceOrBuilder() { + if (backendBucketResourceBuilder_ != null) { + return backendBucketResourceBuilder_.getMessageOrBuilder(); + } else { + return backendBucketResource_ == null + ? com.google.cloud.compute.v1.BackendBucket.getDefaultInstance() + : backendBucketResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder> + internalGetBackendBucketResourceFieldBuilder() { + if (backendBucketResourceBuilder_ == null) { + backendBucketResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.BackendBucket, + com.google.cloud.compute.v1.BackendBucket.Builder, + com.google.cloud.compute.v1.BackendBucketOrBuilder>( + getBackendBucketResource(), getParentForChildren(), isClean()); + backendBucketResource_ = null; + } + return backendBucketResourceBuilder_; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region scoping this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * end_interface: MixerMutationRequestBuilder
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.PatchRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PatchRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.PatchRegionBackendBucketRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.PatchRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.PatchRegionBackendBucketRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PatchRegionBackendBucketRequest 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.compute.v1.PatchRegionBackendBucketRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..0269d6e67cf1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,235 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface PatchRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.PatchRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the BackendBucket resource to patch.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backendBucket. + */ + java.lang.String getBackendBucket(); + + /** + * + * + *
+   * Name of the BackendBucket resource to patch.
+   * 
+ * + * string backend_bucket = 91714037 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backendBucket. + */ + com.google.protobuf.ByteString getBackendBucketBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backendBucketResource field is set. + */ + boolean hasBackendBucketResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backendBucketResource. + */ + com.google.cloud.compute.v1.BackendBucket getBackendBucketResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.BackendBucket backend_bucket_resource = 380757784 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.BackendBucketOrBuilder getBackendBucketResourceOrBuilder(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region scoping this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * end_interface: MixerMutationRequestBuilder
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequest.java new file mode 100644 index 000000000000..4e56312c0c12 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequest.java @@ -0,0 +1,1707 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshotSettings.Patch. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} + */ +@com.google.protobuf.Generated +public final class PatchRegionSnapshotSettingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) + PatchRegionSnapshotSettingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PatchRegionSnapshotSettingRequest"); + } + + // Use PatchRegionSnapshotSettingRequest.newBuilder() to construct. + private PatchRegionSnapshotSettingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PatchRegionSnapshotSettingRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + updateMask_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.class, + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SNAPSHOT_SETTINGS_RESOURCE_FIELD_NUMBER = 357664495; + private com.google.cloud.compute.v1.SnapshotSettings snapshotSettingsResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotSettingsResource field is set. + */ + @java.lang.Override + public boolean hasSnapshotSettingsResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotSettingsResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettings getSnapshotSettingsResource() { + return snapshotSettingsResource_ == null + ? com.google.cloud.compute.v1.SnapshotSettings.getDefaultInstance() + : snapshotSettingsResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsOrBuilder + getSnapshotSettingsResourceOrBuilder() { + return snapshotSettingsResource_ == null + ? com.google.cloud.compute.v1.SnapshotSettings.getDefaultInstance() + : snapshotSettingsResource_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 500079778; + + @SuppressWarnings("serial") + private volatile java.lang.Object updateMask_ = ""; + + /** + * + * + *
+   * update_mask indicates fields to be updated as part of this request.
+   * 
+ * + * optional string update_mask = 500079778; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * update_mask indicates fields to be updated as part of this request.
+   * 
+ * + * optional string update_mask = 500079778; + * + * @return The updateMask. + */ + @java.lang.Override + public java.lang.String getUpdateMask() { + java.lang.Object ref = updateMask_; + 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(); + updateMask_ = s; + return s; + } + } + + /** + * + * + *
+   * update_mask indicates fields to be updated as part of this request.
+   * 
+ * + * optional string update_mask = 500079778; + * + * @return The bytes for updateMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUpdateMaskBytes() { + java.lang.Object ref = updateMask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + updateMask_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(357664495, getSnapshotSettingsResource()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 500079778, updateMask_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 357664495, getSnapshotSettingsResource()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(500079778, updateMask_); + } + 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.compute.v1.PatchRegionSnapshotSettingRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest other = + (com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (hasSnapshotSettingsResource() != other.hasSnapshotSettingsResource()) return false; + if (hasSnapshotSettingsResource()) { + if (!getSnapshotSettingsResource().equals(other.getSnapshotSettingsResource())) 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(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + if (hasSnapshotSettingsResource()) { + hash = (37 * hash) + SNAPSHOT_SETTINGS_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotSettingsResource().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.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest 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.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.PatchRegionSnapshotSettingRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshotSettings.Patch. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.PatchRegionSnapshotSettingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.class, + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotSettingsResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + requestId_ = ""; + snapshotSettingsResource_ = null; + if (snapshotSettingsResourceBuilder_ != null) { + snapshotSettingsResourceBuilder_.dispose(); + snapshotSettingsResourceBuilder_ = null; + } + updateMask_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_PatchRegionSnapshotSettingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest build() { + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest buildPartial() { + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest result = + new com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snapshotSettingsResource_ = + snapshotSettingsResourceBuilder_ == null + ? snapshotSettingsResource_ + : snapshotSettingsResourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateMask_ = updateMask_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) { + return mergeFrom((com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest other) { + if (other + == com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSnapshotSettingsResource()) { + mergeSnapshotSettingsResource(other.getSnapshotSettingsResource()); + } + if (other.hasUpdateMask()) { + updateMask_ = other.updateMask_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -1433651334: + { + input.readMessage( + internalGetSnapshotSettingsResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -1433651334 + case -294329070: + { + updateMask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case -294329070 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.SnapshotSettings snapshotSettingsResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotSettings, + com.google.cloud.compute.v1.SnapshotSettings.Builder, + com.google.cloud.compute.v1.SnapshotSettingsOrBuilder> + snapshotSettingsResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotSettingsResource field is set. + */ + public boolean hasSnapshotSettingsResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotSettingsResource. + */ + public com.google.cloud.compute.v1.SnapshotSettings getSnapshotSettingsResource() { + if (snapshotSettingsResourceBuilder_ == null) { + return snapshotSettingsResource_ == null + ? com.google.cloud.compute.v1.SnapshotSettings.getDefaultInstance() + : snapshotSettingsResource_; + } else { + return snapshotSettingsResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSnapshotSettingsResource(com.google.cloud.compute.v1.SnapshotSettings value) { + if (snapshotSettingsResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotSettingsResource_ = value; + } else { + snapshotSettingsResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSnapshotSettingsResource( + com.google.cloud.compute.v1.SnapshotSettings.Builder builderForValue) { + if (snapshotSettingsResourceBuilder_ == null) { + snapshotSettingsResource_ = builderForValue.build(); + } else { + snapshotSettingsResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSnapshotSettingsResource( + com.google.cloud.compute.v1.SnapshotSettings value) { + if (snapshotSettingsResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && snapshotSettingsResource_ != null + && snapshotSettingsResource_ + != com.google.cloud.compute.v1.SnapshotSettings.getDefaultInstance()) { + getSnapshotSettingsResourceBuilder().mergeFrom(value); + } else { + snapshotSettingsResource_ = value; + } + } else { + snapshotSettingsResourceBuilder_.mergeFrom(value); + } + if (snapshotSettingsResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSnapshotSettingsResource() { + bitField0_ = (bitField0_ & ~0x00000008); + snapshotSettingsResource_ = null; + if (snapshotSettingsResourceBuilder_ != null) { + snapshotSettingsResourceBuilder_.dispose(); + snapshotSettingsResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.SnapshotSettings.Builder + getSnapshotSettingsResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSnapshotSettingsResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.SnapshotSettingsOrBuilder + getSnapshotSettingsResourceOrBuilder() { + if (snapshotSettingsResourceBuilder_ != null) { + return snapshotSettingsResourceBuilder_.getMessageOrBuilder(); + } else { + return snapshotSettingsResource_ == null + ? com.google.cloud.compute.v1.SnapshotSettings.getDefaultInstance() + : snapshotSettingsResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotSettings, + com.google.cloud.compute.v1.SnapshotSettings.Builder, + com.google.cloud.compute.v1.SnapshotSettingsOrBuilder> + internalGetSnapshotSettingsResourceFieldBuilder() { + if (snapshotSettingsResourceBuilder_ == null) { + snapshotSettingsResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotSettings, + com.google.cloud.compute.v1.SnapshotSettings.Builder, + com.google.cloud.compute.v1.SnapshotSettingsOrBuilder>( + getSnapshotSettingsResource(), getParentForChildren(), isClean()); + snapshotSettingsResource_ = null; + } + return snapshotSettingsResourceBuilder_; + } + + private java.lang.Object updateMask_ = ""; + + /** + * + * + *
+     * update_mask indicates fields to be updated as part of this request.
+     * 
+ * + * optional string update_mask = 500079778; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * update_mask indicates fields to be updated as part of this request.
+     * 
+ * + * optional string update_mask = 500079778; + * + * @return The updateMask. + */ + public java.lang.String getUpdateMask() { + java.lang.Object ref = updateMask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updateMask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * update_mask indicates fields to be updated as part of this request.
+     * 
+ * + * optional string update_mask = 500079778; + * + * @return The bytes for updateMask. + */ + public com.google.protobuf.ByteString getUpdateMaskBytes() { + java.lang.Object ref = updateMask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + updateMask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * update_mask indicates fields to be updated as part of this request.
+     * 
+ * + * optional string update_mask = 500079778; + * + * @param value The updateMask to set. + * @return This builder for chaining. + */ + public Builder setUpdateMask(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * update_mask indicates fields to be updated as part of this request.
+     * 
+ * + * optional string update_mask = 500079778; + * + * @return This builder for chaining. + */ + public Builder clearUpdateMask() { + updateMask_ = getDefaultInstance().getUpdateMask(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * update_mask indicates fields to be updated as part of this request.
+     * 
+ * + * optional string update_mask = 500079778; + * + * @param value The bytes for updateMask to set. + * @return This builder for chaining. + */ + public Builder setUpdateMaskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + updateMask_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) + private static final com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest(); + } + + public static com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PatchRegionSnapshotSettingRequest 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.compute.v1.PatchRegionSnapshotSettingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequestOrBuilder.java new file mode 100644 index 000000000000..605fa4d245b7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionSnapshotSettingRequestOrBuilder.java @@ -0,0 +1,245 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface PatchRegionSnapshotSettingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.PatchRegionSnapshotSettingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotSettingsResource field is set. + */ + boolean hasSnapshotSettingsResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotSettingsResource. + */ + com.google.cloud.compute.v1.SnapshotSettings getSnapshotSettingsResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotSettings snapshot_settings_resource = 357664495 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.SnapshotSettingsOrBuilder getSnapshotSettingsResourceOrBuilder(); + + /** + * + * + *
+   * update_mask indicates fields to be updated as part of this request.
+   * 
+ * + * optional string update_mask = 500079778; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * update_mask indicates fields to be updated as part of this request.
+   * 
+ * + * optional string update_mask = 500079778; + * + * @return The updateMask. + */ + java.lang.String getUpdateMask(); + + /** + * + * + *
+   * update_mask indicates fields to be updated as part of this request.
+   * 
+ * + * optional string update_mask = 500079778; + * + * @return The bytes for updateMask. + */ + com.google.protobuf.ByteString getUpdateMaskBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDisk.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDisk.java index 93d86a013c05..8b5e9fbdf18f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDisk.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDisk.java @@ -363,12 +363,14 @@ public com.google.protobuf.ByteString getSha1ChecksumBytes() { * * *
-   * The full Google Cloud Storage URL where the raw disk image archive is
-   * stored.
-   * The following are valid formats for the URL:
+   * The full Google Cloud Storage URL or Artifact Registry path where the raw
+   * disk image archive is stored.
+   * The following are valid formats:
    *
    * - https://storage.googleapis.com/bucket_name/image_archive_name
    * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
    *
    *
    *
@@ -394,12 +396,14 @@ public boolean hasSource() {
    *
    *
    * 
-   * The full Google Cloud Storage URL where the raw disk image archive is
-   * stored.
-   * The following are valid formats for the URL:
+   * The full Google Cloud Storage URL or Artifact Registry path where the raw
+   * disk image archive is stored.
+   * The following are valid formats:
    *
    * - https://storage.googleapis.com/bucket_name/image_archive_name
    * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
    *
    *
    *
@@ -433,12 +437,14 @@ public java.lang.String getSource() {
    *
    *
    * 
-   * The full Google Cloud Storage URL where the raw disk image archive is
-   * stored.
-   * The following are valid formats for the URL:
+   * The full Google Cloud Storage URL or Artifact Registry path where the raw
+   * disk image archive is stored.
+   * The following are valid formats:
    *
    * - https://storage.googleapis.com/bucket_name/image_archive_name
    * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
    *
    *
    *
@@ -1124,12 +1130,14 @@ public Builder setSha1ChecksumBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * The full Google Cloud Storage URL where the raw disk image archive is
-     * stored.
-     * The following are valid formats for the URL:
+     * The full Google Cloud Storage URL or Artifact Registry path where the raw
+     * disk image archive is stored.
+     * The following are valid formats:
      *
      * - https://storage.googleapis.com/bucket_name/image_archive_name
      * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      *
      *
      *
@@ -1154,12 +1162,14 @@ public boolean hasSource() {
      *
      *
      * 
-     * The full Google Cloud Storage URL where the raw disk image archive is
-     * stored.
-     * The following are valid formats for the URL:
+     * The full Google Cloud Storage URL or Artifact Registry path where the raw
+     * disk image archive is stored.
+     * The following are valid formats:
      *
      * - https://storage.googleapis.com/bucket_name/image_archive_name
      * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      *
      *
      *
@@ -1192,12 +1202,14 @@ public java.lang.String getSource() {
      *
      *
      * 
-     * The full Google Cloud Storage URL where the raw disk image archive is
-     * stored.
-     * The following are valid formats for the URL:
+     * The full Google Cloud Storage URL or Artifact Registry path where the raw
+     * disk image archive is stored.
+     * The following are valid formats:
      *
      * - https://storage.googleapis.com/bucket_name/image_archive_name
      * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      *
      *
      *
@@ -1230,12 +1242,14 @@ public com.google.protobuf.ByteString getSourceBytes() {
      *
      *
      * 
-     * The full Google Cloud Storage URL where the raw disk image archive is
-     * stored.
-     * The following are valid formats for the URL:
+     * The full Google Cloud Storage URL or Artifact Registry path where the raw
+     * disk image archive is stored.
+     * The following are valid formats:
      *
      * - https://storage.googleapis.com/bucket_name/image_archive_name
      * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      *
      *
      *
@@ -1267,12 +1281,14 @@ public Builder setSource(java.lang.String value) {
      *
      *
      * 
-     * The full Google Cloud Storage URL where the raw disk image archive is
-     * stored.
-     * The following are valid formats for the URL:
+     * The full Google Cloud Storage URL or Artifact Registry path where the raw
+     * disk image archive is stored.
+     * The following are valid formats:
      *
      * - https://storage.googleapis.com/bucket_name/image_archive_name
      * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      *
      *
      *
@@ -1300,12 +1316,14 @@ public Builder clearSource() {
      *
      *
      * 
-     * The full Google Cloud Storage URL where the raw disk image archive is
-     * stored.
-     * The following are valid formats for the URL:
+     * The full Google Cloud Storage URL or Artifact Registry path where the raw
+     * disk image archive is stored.
+     * The following are valid formats:
      *
      * - https://storage.googleapis.com/bucket_name/image_archive_name
      * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+     * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      *
      *
      *
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDiskOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDiskOrBuilder.java
index 9a15abd4b612..ac2e46ccc029 100644
--- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDiskOrBuilder.java
+++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RawDiskOrBuilder.java
@@ -120,12 +120,14 @@ public interface RawDiskOrBuilder
    *
    *
    * 
-   * The full Google Cloud Storage URL where the raw disk image archive is
-   * stored.
-   * The following are valid formats for the URL:
+   * The full Google Cloud Storage URL or Artifact Registry path where the raw
+   * disk image archive is stored.
+   * The following are valid formats:
    *
    * - https://storage.googleapis.com/bucket_name/image_archive_name
    * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
    *
    *
    *
@@ -148,12 +150,14 @@ public interface RawDiskOrBuilder
    *
    *
    * 
-   * The full Google Cloud Storage URL where the raw disk image archive is
-   * stored.
-   * The following are valid formats for the URL:
+   * The full Google Cloud Storage URL or Artifact Registry path where the raw
+   * disk image archive is stored.
+   * The following are valid formats:
    *
    * - https://storage.googleapis.com/bucket_name/image_archive_name
    * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
    *
    *
    *
@@ -176,12 +180,14 @@ public interface RawDiskOrBuilder
    *
    *
    * 
-   * The full Google Cloud Storage URL where the raw disk image archive is
-   * stored.
-   * The following are valid formats for the URL:
+   * The full Google Cloud Storage URL or Artifact Registry path where the raw
+   * disk image archive is stored.
+   * The following are valid formats:
    *
    * - https://storage.googleapis.com/bucket_name/image_archive_name
    * - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
+   * - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
    *
    *
    *
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequest.java
new file mode 100644
index 000000000000..a53448906c5b
--- /dev/null
+++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequest.java
@@ -0,0 +1,734 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/compute/v1/compute.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.compute.v1;
+
+/**
+ *
+ *
+ * 
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} + */ +@com.google.protobuf.Generated +public final class RegionDiskUpdateKmsKeyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) + RegionDiskUpdateKmsKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RegionDiskUpdateKmsKeyRequest"); + } + + // Use RegionDiskUpdateKmsKeyRequest.newBuilder() to construct. + private RegionDiskUpdateKmsKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RegionDiskUpdateKmsKeyRequest() { + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 484373913; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + @java.lang.Override + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 484373913, kmsKeyName_); + } + 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.GeneratedMessage.computeStringSize(484373913, kmsKeyName_); + } + 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.compute.v1.RegionDiskUpdateKmsKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest other = + (com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) obj; + + if (hasKmsKeyName() != other.hasKmsKeyName()) return false; + if (hasKmsKeyName()) { + if (!getKmsKeyName().equals(other.getKmsKeyName())) 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 (hasKmsKeyName()) { + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest 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.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.RegionDiskUpdateKmsKeyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionDiskUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest build() { + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest buildPartial() { + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest result = + new com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) { + return mergeFrom((com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest other) { + if (other == com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance()) + return this; + if (other.hasKmsKeyName()) { + kmsKeyName_ = other.kmsKeyName_; + 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 -419975990: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -419975990 + 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 kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+     * will be re-encrypted using the primary version of the disk's current KMS
+     * key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+     *
+     *
+     * Where project is the project ID or
+     * project number.
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) + private static final com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest(); + } + + public static com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegionDiskUpdateKmsKeyRequest 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.compute.v1.RegionDiskUpdateKmsKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequestOrBuilder.java new file mode 100644 index 000000000000..4cca16100b3e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionDiskUpdateKmsKeyRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface RegionDiskUpdateKmsKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + boolean hasKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the disk. If empty, the disk
+   * will be re-encrypted using the primary version of the disk's current KMS
+   * key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
+   *
+   *
+   * Where project is the project ID or
+   * project number.
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponse.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponse.java new file mode 100644 index 000000000000..2c85b452e723 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponse.java @@ -0,0 +1,2716 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} + */ +@com.google.protobuf.Generated +public final class RegionInstanceGroupManagerResizeRequestsListResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RegionInstanceGroupManagerResizeRequestsListResponse"); + } + + // Use RegionInstanceGroupManagerResizeRequestsListResponse.newBuilder() to construct. + private RegionInstanceGroupManagerResizeRequestsListResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RegionInstanceGroupManagerResizeRequestsListResponse() { + etag_ = ""; + id_ = ""; + items_ = java.util.Collections.emptyList(); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.class, + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.Builder + .class); + } + + private int bitField0_; + public static final int ETAG_FIELD_NUMBER = 3123477; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * optional string etag = 3123477; + * + * @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; + } + } + + /** + * optional string etag = 3123477; + * + * @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 ID_FIELD_NUMBER = 3355; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 100526016; + + @SuppressWarnings("serial") + private java.util.List items_; + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + @java.lang.Override + public java.util.List + getItemsList() { + return items_; + } + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder> + getItemsOrBuilderList() { + return items_; + } + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+   * a list of Resize Requests.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+   * a list of Resize Requests.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+   * a list of Resize Requests.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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 SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLES_FIELD_NUMBER = 243372063; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + return unreachables_; + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(100526016, items_.get(i)); + } + for (int i = 0; i < unreachables_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 243372063, unreachables_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unreachables_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); + } + size += dataSize; + size += 5 * getUnreachablesList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse other = + (com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) obj; + + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!getItemsList().equals(other.getItemsList())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (!getUnreachablesList().equals(other.getUnreachablesList())) return false; + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (getUnreachablesCount() > 0) { + hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER; + hash = (53 * hash) + getUnreachablesList().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + 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.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + .class, + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetItemsFieldBuilder(); + internalGetWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + etag_ = ""; + id_ = ""; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerResizeRequestsListResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + build() { + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + buildPartial() { + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse result = + new com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + unreachables_.makeImmutable(); + result.unreachables_ = unreachables_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) { + return mergeFrom( + (com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse other) { + if (other + == com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + .getDefaultInstance()) return this; + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetItemsFieldBuilder() + : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.unreachables_.isEmpty()) { + if (unreachables_.isEmpty()) { + unreachables_ = other.unreachables_; + bitField0_ |= 0x00000040; + } else { + ensureUnreachablesIsMutable(); + unreachables_.addAll(other.unreachables_); + } + onChanged(); + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 26842: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26842 + case 24987818: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 24987818 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(internalGetWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 638380202 + case 804208130: + { + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest m = + input.readMessage( + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 804208130 + case 1946976506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachablesIsMutable(); + unreachables_.add(s); + break; + } // case 1946976506 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case -645248918 + 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 etag_ = ""; + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + 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; + } else { + return (java.lang.String) ref; + } + } + + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + 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; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * optional string etag = 3123477; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * optional string etag = 3123477; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * optional string etag = 3123477; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + items_ = + new java.util.ArrayList( + items_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder> + itemsBuilder_; + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public java.util.List + getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder setItems( + int index, com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder setItems( + int index, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder addItems(com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder addItems( + int index, com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder addItems( + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder addItems( + int index, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder addAllItems( + java.lang.Iterable + values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder getItemsBuilder( + int index) { + return internalGetItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public java.util.List< + ? extends com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder> + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder addItemsBuilder() { + return internalGetItemsFieldBuilder() + .addBuilder( + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder addItemsBuilder( + int index) { + return internalGetItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of Resize Request resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + public java.util.List + getItemsBuilderList() { + return internalGetItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder> + internalGetItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest.Builder, + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder>( + items_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+     * a list of Resize Requests.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+     * a list of Resize Requests.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+     * a list of Resize Requests.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+     * a list of Resize Requests.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+     * a list of Resize Requests.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+     * a list of Resize Requests.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachablesIsMutable() { + if (!unreachables_.isModifiable()) { + unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + unreachables_.makeImmutable(); + return unreachables_; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index to set the value at. + * @param value The unreachables to set. + * @return This builder for chaining. + */ + public Builder setUnreachables(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param value The unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachables(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param values The unreachables to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachables(java.lang.Iterable values) { + ensureUnreachablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return This builder for chaining. + */ + public Builder clearUnreachables() { + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * end_interface: MixerListResponseWithEtagBuilder
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param value The bytes of the unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000080); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetWarningFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + internalGetWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + private static final com.google.cloud.compute.v1 + .RegionInstanceGroupManagerResizeRequestsListResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse(); + } + + public static com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + RegionInstanceGroupManagerResizeRequestsListResponse> + PARSER = + new com.google.protobuf.AbstractParser< + RegionInstanceGroupManagerResizeRequestsListResponse>() { + @java.lang.Override + public RegionInstanceGroupManagerResizeRequestsListResponse 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.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder.java new file mode 100644 index 000000000000..1af0c265fbdf --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder.java @@ -0,0 +1,377 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface RegionInstanceGroupManagerResizeRequestsListResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * optional string etag = 3123477; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + java.util.List getItemsList(); + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest getItems(int index); + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + int getItemsCount(); + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + java.util.List + getItemsOrBuilderList(); + + /** + * + * + *
+   * A list of Resize Request resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.InstanceGroupManagerResizeRequest items = 100526016; + * + */ + com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestOrBuilder getItemsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+   * a list of Resize Requests.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+   * a list of Resize Requests.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for
+   * a list of Resize Requests.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + java.util.List getUnreachablesList(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + int getUnreachablesCount(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + java.lang.String getUnreachables(int index); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * end_interface: MixerListResponseWithEtagBuilder
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + com.google.protobuf.ByteString getUnreachablesBytes(int index); + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequest.java new file mode 100644 index 000000000000..88f6a26e0338 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequest.java @@ -0,0 +1,703 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} + */ +@com.google.protobuf.Generated +public final class RegionSnapshotUpdateKmsKeyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) + RegionSnapshotUpdateKmsKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RegionSnapshotUpdateKmsKeyRequest"); + } + + // Use RegionSnapshotUpdateKmsKeyRequest.newBuilder() to construct. + private RegionSnapshotUpdateKmsKeyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RegionSnapshotUpdateKmsKeyRequest() { + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 484373913; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + @java.lang.Override + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 484373913, kmsKeyName_); + } + 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.GeneratedMessage.computeStringSize(484373913, kmsKeyName_); + } + 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.compute.v1.RegionSnapshotUpdateKmsKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest other = + (com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) obj; + + if (hasKmsKeyName() != other.hasKmsKeyName()) return false; + if (hasKmsKeyName()) { + if (!getKmsKeyName().equals(other.getKmsKeyName())) 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 (hasKmsKeyName()) { + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest 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.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.RegionSnapshotUpdateKmsKeyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_RegionSnapshotUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest build() { + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest buildPartial() { + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest result = + new com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) { + return mergeFrom((com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest other) { + if (other + == com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.getDefaultInstance()) + return this; + if (other.hasKmsKeyName()) { + kmsKeyName_ = other.kmsKeyName_; + 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 -419975990: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -419975990 + 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 kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) + private static final com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest(); + } + + public static com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegionSnapshotUpdateKmsKeyRequest 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.compute.v1.RegionSnapshotUpdateKmsKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequestOrBuilder.java new file mode 100644 index 000000000000..310b4d489e15 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/RegionSnapshotUpdateKmsKeyRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface RegionSnapshotUpdateKmsKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + boolean hasKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/region/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Reservation.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Reservation.java index 548e4f7ecc32..8298596d1d13 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Reservation.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Reservation.java @@ -56,6 +56,7 @@ private Reservation(com.google.protobuf.GeneratedMessage.Builder builder) { private Reservation() { commitment_ = ""; + confidentialComputeType_ = ""; creationTimestamp_ = ""; deleteAtTime_ = ""; deploymentType_ = ""; @@ -98,6 +99,161 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.compute.v1.Reservation.Builder.class); } + /** + * + * + *
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.Reservation.ConfidentialComputeType} + */ + public enum ConfidentialComputeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + */ + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE(0), + /** + * + * + *
+     * Intel Trust Domain Extensions.
+     * 
+ * + * CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + */ + CONFIDENTIAL_COMPUTE_TYPE_TDX(301241954), + /** CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; */ + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED(42227601), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfidentialComputeType"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + */ + public static final int UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE_VALUE = 0; + + /** + * + * + *
+     * Intel Trust Domain Extensions.
+     * 
+ * + * CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + */ + public static final int CONFIDENTIAL_COMPUTE_TYPE_TDX_VALUE = 301241954; + + /** CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; */ + public static final int CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED_VALUE = 42227601; + + 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 ConfidentialComputeType 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 ConfidentialComputeType forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE; + case 301241954: + return CONFIDENTIAL_COMPUTE_TYPE_TDX; + case 42227601: + return CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED; + 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 ConfidentialComputeType findValueByNumber(int number) { + return ConfidentialComputeType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(0); + } + + private static final ConfidentialComputeType[] VALUES = values(); + + public static ConfidentialComputeType 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 ConfidentialComputeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Reservation.ConfidentialComputeType) + } + /** * * @@ -227,7 +383,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(1); } private static final DeploymentType[] VALUES = values(); @@ -423,7 +579,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(2); } private static final EarlyAccessMaintenance[] VALUES = values(); @@ -634,7 +790,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(2); + return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(3); } private static final ProtectionTier[] VALUES = values(); @@ -828,7 +984,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(4); } private static final SchedulingType[] VALUES = values(); @@ -1060,7 +1216,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(4); + return com.google.cloud.compute.v1.Reservation.getDescriptor().getEnumTypes().get(5); } private static final Status[] VALUES = values(); @@ -1282,6 +1438,78 @@ public com.google.protobuf.ByteString getCommitmentBytes() { } } + public static final int CONFIDENTIAL_COMPUTE_TYPE_FIELD_NUMBER = 386447257; + + @SuppressWarnings("serial") + private volatile java.lang.Object confidentialComputeType_ = ""; + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return Whether the confidentialComputeType field is set. + */ + @java.lang.Override + public boolean hasConfidentialComputeType() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The confidentialComputeType. + */ + @java.lang.Override + public java.lang.String getConfidentialComputeType() { + java.lang.Object ref = confidentialComputeType_; + 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(); + confidentialComputeType_ = s; + return s; + } + } + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The bytes for confidentialComputeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfidentialComputeTypeBytes() { + java.lang.Object ref = confidentialComputeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confidentialComputeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; @SuppressWarnings("serial") @@ -1301,7 +1529,7 @@ public com.google.protobuf.ByteString getCommitmentBytes() { */ @java.lang.Override public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1371,7 +1599,7 @@ public com.google.protobuf.ByteString getCreationTimestampBytes() { */ @java.lang.Override public boolean hasDeleteAfterDuration() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1429,7 +1657,7 @@ public com.google.cloud.compute.v1.DurationOrBuilder getDeleteAfterDurationOrBui */ @java.lang.Override public boolean hasDeleteAtTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1501,7 +1729,7 @@ public com.google.protobuf.ByteString getDeleteAtTimeBytes() { */ @java.lang.Override public boolean hasDeploymentType() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1573,7 +1801,7 @@ public com.google.protobuf.ByteString getDeploymentTypeBytes() { */ @java.lang.Override public boolean hasDescription() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -1647,7 +1875,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { */ @java.lang.Override public boolean hasEarlyAccessMaintenance() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -1721,7 +1949,7 @@ public com.google.protobuf.ByteString getEarlyAccessMaintenanceBytes() { */ @java.lang.Override public boolean hasEnableEmergentMaintenance() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -1758,7 +1986,7 @@ public boolean getEnableEmergentMaintenance() { */ @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1796,7 +2024,7 @@ public long getId() { */ @java.lang.Override public boolean hasKind() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -1944,7 +2172,7 @@ public com.google.protobuf.ByteString getLinkedCommitmentsBytes(int index) { */ @java.lang.Override public boolean hasName() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -2026,7 +2254,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasParams() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -2086,7 +2314,7 @@ public com.google.cloud.compute.v1.ReservationParamsOrBuilder getParamsOrBuilder */ @java.lang.Override public boolean hasProtectionTier() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -2162,7 +2390,7 @@ public com.google.protobuf.ByteString getProtectionTierBytes() { */ @java.lang.Override public boolean hasReservationSharingPolicy() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -2341,7 +2569,7 @@ public java.lang.String getResourcePoliciesOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasResourceStatus() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -2397,7 +2625,7 @@ public com.google.cloud.compute.v1.AllocationResourceStatus getResourceStatus() */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -2435,7 +2663,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasSchedulingType() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -2506,7 +2734,7 @@ public com.google.protobuf.ByteString getSchedulingTypeBytes() { */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -2576,7 +2804,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasShareSettings() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -2637,7 +2865,7 @@ public com.google.cloud.compute.v1.ShareSettingsOrBuilder getShareSettingsOrBuil */ @java.lang.Override public boolean hasSpecificReservation() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -2697,7 +2925,7 @@ public com.google.cloud.compute.v1.AllocationSpecificSKUReservation getSpecificR */ @java.lang.Override public boolean hasSpecificReservationRequired() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -2745,7 +2973,7 @@ public boolean getSpecificReservationRequired() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -2833,7 +3061,7 @@ public com.google.protobuf.ByteString getStatusBytes() { */ @java.lang.Override public boolean hasZone() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -2900,16 +3128,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeUInt64(3355, id_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -2917,71 +3145,74 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetResourcePolicies(), ResourcePoliciesDefaultEntryHolder.defaultEntry, 22220385); - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(78313862, getParams()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 83294405, deleteAtTime_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 181260274, status_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 199835397, schedulingType_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(205970120, getReservationSharingPolicy()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { output.writeBool(226550687, specificReservationRequired_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(249429315, getResourceStatus()); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { output.writeMessage(266668163, getShareSettings()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(291567948, getAggregateReservation()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(323997099, getDeleteAfterDuration()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 343918356, earlyAccessMaintenance_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(353759497, enableEmergentMaintenance_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 386447257, confidentialComputeType_); + } + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 396722292, deploymentType_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { output.writeMessage(404901951, getSpecificReservation()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(410618144, getAdvancedDeploymentControl()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); } for (int i = 0; i < linkedCommitments_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString( output, 470957784, linkedCommitments_.getRaw(i)); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { output.writeBool(480964267, satisfiesPzs_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 482134805, commitment_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 503959432, protectionTier_); } getUnknownFields().writeTo(output); @@ -2993,16 +3224,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); } for (java.util.Map.Entry entry : @@ -3016,36 +3247,36 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22220385, resourcePolicies__); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(78313862, getParams()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(83294405, deleteAtTime_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(181260274, status_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(199835397, schedulingType_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 205970120, getReservationSharingPolicy()); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 226550687, specificReservationRequired_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(249429315, getResourceStatus()); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(266668163, getShareSettings()); } @@ -3054,25 +3285,30 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 291567948, getAggregateReservation()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 323997099, getDeleteAfterDuration()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize( 343918356, earlyAccessMaintenance_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 353759497, enableEmergentMaintenance_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 386447257, confidentialComputeType_); + } + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(396722292, deploymentType_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 404901951, getSpecificReservation()); @@ -3082,10 +3318,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 410618144, getAdvancedDeploymentControl()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); } { @@ -3096,13 +3332,13 @@ public int getSerializedSize() { size += dataSize; size += 5 * getLinkedCommitmentsList().size(); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964267, satisfiesPzs_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(482134805, commitment_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(503959432, protectionTier_); } size += getUnknownFields().getSerializedSize(); @@ -3133,6 +3369,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCommitment()) { if (!getCommitment().equals(other.getCommitment())) return false; } + if (hasConfidentialComputeType() != other.hasConfidentialComputeType()) return false; + if (hasConfidentialComputeType()) { + if (!getConfidentialComputeType().equals(other.getConfidentialComputeType())) return false; + } if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; if (hasCreationTimestamp()) { if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; @@ -3246,6 +3486,10 @@ public int hashCode() { hash = (37 * hash) + COMMITMENT_FIELD_NUMBER; hash = (53 * hash) + getCommitment().hashCode(); } + if (hasConfidentialComputeType()) { + hash = (37 * hash) + CONFIDENTIAL_COMPUTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialComputeType().hashCode(); + } if (hasCreationTimestamp()) { hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getCreationTimestamp().hashCode(); @@ -3535,6 +3779,7 @@ public Builder clear() { aggregateReservationBuilder_ = null; } commitment_ = ""; + confidentialComputeType_ = ""; creationTimestamp_ = ""; deleteAfterDuration_ = null; if (deleteAfterDurationBuilder_ != null) { @@ -3639,112 +3884,116 @@ private void buildPartial0(com.google.cloud.compute.v1.Reservation result) { to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.creationTimestamp_ = creationTimestamp_; + result.confidentialComputeType_ = confidentialComputeType_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.creationTimestamp_ = creationTimestamp_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.deleteAfterDuration_ = deleteAfterDurationBuilder_ == null ? deleteAfterDuration_ : deleteAfterDurationBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.deleteAtTime_ = deleteAtTime_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.deploymentType_ = deploymentType_; + result.deleteAtTime_ = deleteAtTime_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.description_ = description_; + result.deploymentType_ = deploymentType_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.earlyAccessMaintenance_ = earlyAccessMaintenance_; + result.description_ = description_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.enableEmergentMaintenance_ = enableEmergentMaintenance_; + result.earlyAccessMaintenance_ = earlyAccessMaintenance_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.id_ = id_; + result.enableEmergentMaintenance_ = enableEmergentMaintenance_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.kind_ = kind_; + result.id_ = id_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { - linkedCommitments_.makeImmutable(); - result.linkedCommitments_ = linkedCommitments_; + result.kind_ = kind_; + to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00001000; + linkedCommitments_.makeImmutable(); + result.linkedCommitments_ = linkedCommitments_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); + result.name_ = name_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.protectionTier_ = protectionTier_; + result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.protectionTier_ = protectionTier_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.reservationSharingPolicy_ = reservationSharingPolicyBuilder_ == null ? reservationSharingPolicy_ : reservationSharingPolicyBuilder_.build(); - to_bitField0_ |= 0x00008000; + to_bitField0_ |= 0x00010000; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.resourcePolicies_ = internalGetResourcePolicies(); result.resourcePolicies_.makeImmutable(); } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.resourceStatus_ = resourceStatusBuilder_ == null ? resourceStatus_ : resourceStatusBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.schedulingType_ = schedulingType_; + result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.selfLink_ = selfLink_; + result.schedulingType_ = schedulingType_; to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.shareSettings_ = - shareSettingsBuilder_ == null ? shareSettings_ : shareSettingsBuilder_.build(); + result.selfLink_ = selfLink_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.shareSettings_ = + shareSettingsBuilder_ == null ? shareSettings_ : shareSettingsBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.specificReservation_ = specificReservationBuilder_ == null ? specificReservation_ : specificReservationBuilder_.build(); - to_bitField0_ |= 0x00200000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.specificReservationRequired_ = specificReservationRequired_; to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.status_ = status_; + result.specificReservationRequired_ = specificReservationRequired_; to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.zone_ = zone_; + result.status_ = status_; to_bitField0_ |= 0x01000000; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.zone_ = zone_; + to_bitField0_ |= 0x02000000; + } result.bitField0_ |= to_bitField0_; } @@ -3771,9 +4020,14 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { bitField0_ |= 0x00000004; onChanged(); } + if (other.hasConfidentialComputeType()) { + confidentialComputeType_ = other.confidentialComputeType_; + bitField0_ |= 0x00000008; + onChanged(); + } if (other.hasCreationTimestamp()) { creationTimestamp_ = other.creationTimestamp_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasDeleteAfterDuration()) { @@ -3781,22 +4035,22 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { } if (other.hasDeleteAtTime()) { deleteAtTime_ = other.deleteAtTime_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasDeploymentType()) { deploymentType_ = other.deploymentType_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasDescription()) { description_ = other.description_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasEarlyAccessMaintenance()) { earlyAccessMaintenance_ = other.earlyAccessMaintenance_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasEnableEmergentMaintenance()) { @@ -3807,13 +4061,13 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { } if (other.hasKind()) { kind_ = other.kind_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (!other.linkedCommitments_.isEmpty()) { if (linkedCommitments_.isEmpty()) { linkedCommitments_ = other.linkedCommitments_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } else { ensureLinkedCommitmentsIsMutable(); linkedCommitments_.addAll(other.linkedCommitments_); @@ -3822,7 +4076,7 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { } if (other.hasName()) { name_ = other.name_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (other.hasParams()) { @@ -3830,14 +4084,14 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { } if (other.hasProtectionTier()) { protectionTier_ = other.protectionTier_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasReservationSharingPolicy()) { mergeReservationSharingPolicy(other.getReservationSharingPolicy()); } internalGetMutableResourcePolicies().mergeFrom(other.internalGetResourcePolicies()); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; if (other.hasResourceStatus()) { mergeResourceStatus(other.getResourceStatus()); } @@ -3846,12 +4100,12 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { } if (other.hasSchedulingType()) { schedulingType_ = other.schedulingType_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.hasShareSettings()) { @@ -3865,12 +4119,12 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Reservation other) { } if (other.hasStatus()) { status_ = other.status_; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } if (other.hasZone()) { zone_ = other.zone_; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3902,25 +4156,25 @@ public Builder mergeFrom( case 26840: { id_ = input.readUInt64(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 26840 case 26336418: { kind_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 26336418 case 26989658: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 26989658 case 29957474: { zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 29957474 case 177763082: @@ -3933,37 +4187,37 @@ public Builder mergeFrom( internalGetMutableResourcePolicies() .getMutableMap() .put(resourcePolicies__.getKey(), resourcePolicies__.getValue()); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 177763082 case 244202930: { creationTimestamp_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 244202930 case 626510898: { input.readMessage(internalGetParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 626510898 case 666355242: { deleteAtTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 666355242 case 1450082194: { status_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 1450082194 case 1598683178: { schedulingType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 1598683178 case 1647760962: @@ -3971,27 +4225,27 @@ public Builder mergeFrom( input.readMessage( internalGetReservationSharingPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 1647760962 case 1812405496: { specificReservationRequired_ = input.readBool(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 1812405496 case 1995434522: { input.readMessage( internalGetResourceStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 1995434522 case 2133345306: { input.readMessage( internalGetShareSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 2133345306 case -1962423710: @@ -4005,32 +4259,38 @@ public Builder mergeFrom( { input.readMessage( internalGetDeleteAfterDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case -1702990502 case -1543620446: { earlyAccessMaintenance_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case -1543620446 case -1464891320: { enableEmergentMaintenance_ = input.readBool(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case -1464891320 + case -1203389238: + { + confidentialComputeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case -1203389238 case -1121188958: { deploymentType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case -1121188958 case -1055751686: { input.readMessage( internalGetSpecificReservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case -1055751686 case -1010022142: @@ -4044,13 +4304,13 @@ public Builder mergeFrom( case -911466526: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case -911466526 case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case -645248918 case -527305022: @@ -4063,7 +4323,7 @@ public Builder mergeFrom( case -447253160: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case -447253160 case -437888854: @@ -4075,7 +4335,7 @@ public Builder mergeFrom( case -263291838: { protectionTier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case -263291838 default: @@ -4546,42 +4806,174 @@ public Builder clearAggregateReservation() { return aggregateReservationBuilder_; } - private java.lang.Object commitment_ = ""; + private java.lang.Object commitment_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
+     * displays for reservations that are tied to a commitment.
+     * 
+ * + * optional string commitment = 482134805; + * + * @return Whether the commitment field is set. + */ + public boolean hasCommitment() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
+     * displays for reservations that are tied to a commitment.
+     * 
+ * + * optional string commitment = 482134805; + * + * @return The commitment. + */ + public java.lang.String getCommitment() { + java.lang.Object ref = commitment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
+     * displays for reservations that are tied to a commitment.
+     * 
+ * + * optional string commitment = 482134805; + * + * @return The bytes for commitment. + */ + public com.google.protobuf.ByteString getCommitmentBytes() { + java.lang.Object ref = commitment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
+     * displays for reservations that are tied to a commitment.
+     * 
+ * + * optional string commitment = 482134805; + * + * @param value The commitment to set. + * @return This builder for chaining. + */ + public Builder setCommitment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
+     * displays for reservations that are tied to a commitment.
+     * 
+ * + * optional string commitment = 482134805; + * + * @return This builder for chaining. + */ + public Builder clearCommitment() { + commitment_ = getDefaultInstance().getCommitment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
+     * displays for reservations that are tied to a commitment.
+     * 
+ * + * optional string commitment = 482134805; + * + * @param value The bytes for commitment to set. + * @return This builder for chaining. + */ + public Builder setCommitmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object confidentialComputeType_ = ""; /** * * *
-     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
-     * displays for reservations that are tied to a commitment.
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
      * 
* - * optional string commitment = 482134805; + * optional string confidential_compute_type = 386447257; * - * @return Whether the commitment field is set. + * @return Whether the confidentialComputeType field is set. */ - public boolean hasCommitment() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasConfidentialComputeType() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
-     * displays for reservations that are tied to a commitment.
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
      * 
* - * optional string commitment = 482134805; + * optional string confidential_compute_type = 386447257; * - * @return The commitment. + * @return The confidentialComputeType. */ - public java.lang.String getCommitment() { - java.lang.Object ref = commitment_; + public java.lang.String getConfidentialComputeType() { + java.lang.Object ref = confidentialComputeType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - commitment_ = s; + confidentialComputeType_ = s; return s; } else { return (java.lang.String) ref; @@ -4592,20 +4984,20 @@ public java.lang.String getCommitment() { * * *
-     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
-     * displays for reservations that are tied to a commitment.
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
      * 
* - * optional string commitment = 482134805; + * optional string confidential_compute_type = 386447257; * - * @return The bytes for commitment. + * @return The bytes for confidentialComputeType. */ - public com.google.protobuf.ByteString getCommitmentBytes() { - java.lang.Object ref = commitment_; + public com.google.protobuf.ByteString getConfidentialComputeTypeBytes() { + java.lang.Object ref = confidentialComputeType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - commitment_ = b; + confidentialComputeType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4616,21 +5008,21 @@ public com.google.protobuf.ByteString getCommitmentBytes() { * * *
-     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
-     * displays for reservations that are tied to a commitment.
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
      * 
* - * optional string commitment = 482134805; + * optional string confidential_compute_type = 386447257; * - * @param value The commitment to set. + * @param value The confidentialComputeType to set. * @return This builder for chaining. */ - public Builder setCommitment(java.lang.String value) { + public Builder setConfidentialComputeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - commitment_ = value; - bitField0_ |= 0x00000004; + confidentialComputeType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4639,17 +5031,17 @@ public Builder setCommitment(java.lang.String value) { * * *
-     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
-     * displays for reservations that are tied to a commitment.
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
      * 
* - * optional string commitment = 482134805; + * optional string confidential_compute_type = 386447257; * * @return This builder for chaining. */ - public Builder clearCommitment() { - commitment_ = getDefaultInstance().getCommitment(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearConfidentialComputeType() { + confidentialComputeType_ = getDefaultInstance().getConfidentialComputeType(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -4658,22 +5050,22 @@ public Builder clearCommitment() { * * *
-     * Output only. [Output Only] Full or partial URL to a parent commitment. This field
-     * displays for reservations that are tied to a commitment.
+     *
+     * Check the ConfidentialComputeType enum for the list of possible values.
      * 
* - * optional string commitment = 482134805; + * optional string confidential_compute_type = 386447257; * - * @param value The bytes for commitment to set. + * @param value The bytes for confidentialComputeType to set. * @return This builder for chaining. */ - public Builder setCommitmentBytes(com.google.protobuf.ByteString value) { + public Builder setConfidentialComputeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - commitment_ = value; - bitField0_ |= 0x00000004; + confidentialComputeType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4693,7 +5085,7 @@ public Builder setCommitmentBytes(com.google.protobuf.ByteString value) { * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -4762,7 +5154,7 @@ public Builder setCreationTimestamp(java.lang.String value) { throw new NullPointerException(); } creationTimestamp_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4781,7 +5173,7 @@ public Builder setCreationTimestamp(java.lang.String value) { */ public Builder clearCreationTimestamp() { creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -4805,7 +5197,7 @@ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); creationTimestamp_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4830,7 +5222,7 @@ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { * @return Whether the deleteAfterDuration field is set. */ public boolean hasDeleteAfterDuration() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -4874,7 +5266,7 @@ public Builder setDeleteAfterDuration(com.google.cloud.compute.v1.Duration value } else { deleteAfterDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4896,7 +5288,7 @@ public Builder setDeleteAfterDuration( } else { deleteAfterDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4913,7 +5305,7 @@ public Builder setDeleteAfterDuration( */ public Builder mergeDeleteAfterDuration(com.google.cloud.compute.v1.Duration value) { if (deleteAfterDurationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && deleteAfterDuration_ != null && deleteAfterDuration_ != com.google.cloud.compute.v1.Duration.getDefaultInstance()) { getDeleteAfterDurationBuilder().mergeFrom(value); @@ -4924,7 +5316,7 @@ public Builder mergeDeleteAfterDuration(com.google.cloud.compute.v1.Duration val deleteAfterDurationBuilder_.mergeFrom(value); } if (deleteAfterDuration_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -4941,7 +5333,7 @@ public Builder mergeDeleteAfterDuration(com.google.cloud.compute.v1.Duration val * optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099; */ public Builder clearDeleteAfterDuration() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); deleteAfterDuration_ = null; if (deleteAfterDurationBuilder_ != null) { deleteAfterDurationBuilder_.dispose(); @@ -4962,7 +5354,7 @@ public Builder clearDeleteAfterDuration() { * optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099; */ public com.google.cloud.compute.v1.Duration.Builder getDeleteAfterDurationBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetDeleteAfterDurationFieldBuilder().getBuilder(); } @@ -5029,7 +5421,7 @@ public com.google.cloud.compute.v1.DurationOrBuilder getDeleteAfterDurationOrBui * @return Whether the deleteAtTime field is set. */ public boolean hasDeleteAtTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -5098,7 +5490,7 @@ public Builder setDeleteAtTime(java.lang.String value) { throw new NullPointerException(); } deleteAtTime_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5117,7 +5509,7 @@ public Builder setDeleteAtTime(java.lang.String value) { */ public Builder clearDeleteAtTime() { deleteAtTime_ = getDefaultInstance().getDeleteAtTime(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -5141,7 +5533,7 @@ public Builder setDeleteAtTimeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); deleteAtTime_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5161,7 +5553,7 @@ public Builder setDeleteAtTimeBytes(com.google.protobuf.ByteString value) { * @return Whether the deploymentType field is set. */ public boolean hasDeploymentType() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -5230,7 +5622,7 @@ public Builder setDeploymentType(java.lang.String value) { throw new NullPointerException(); } deploymentType_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5249,7 +5641,7 @@ public Builder setDeploymentType(java.lang.String value) { */ public Builder clearDeploymentType() { deploymentType_ = getDefaultInstance().getDeploymentType(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -5273,7 +5665,7 @@ public Builder setDeploymentTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); deploymentType_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5293,7 +5685,7 @@ public Builder setDeploymentTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the description field is set. */ public boolean hasDescription() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -5362,7 +5754,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5381,7 +5773,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -5405,7 +5797,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5427,7 +5819,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the earlyAccessMaintenance field is set. */ public boolean hasEarlyAccessMaintenance() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -5502,7 +5894,7 @@ public Builder setEarlyAccessMaintenance(java.lang.String value) { throw new NullPointerException(); } earlyAccessMaintenance_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5523,7 +5915,7 @@ public Builder setEarlyAccessMaintenance(java.lang.String value) { */ public Builder clearEarlyAccessMaintenance() { earlyAccessMaintenance_ = getDefaultInstance().getEarlyAccessMaintenance(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -5549,7 +5941,7 @@ public Builder setEarlyAccessMaintenanceBytes(com.google.protobuf.ByteString val } checkByteStringIsUtf8(value); earlyAccessMaintenance_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5570,7 +5962,7 @@ public Builder setEarlyAccessMaintenanceBytes(com.google.protobuf.ByteString val */ @java.lang.Override public boolean hasEnableEmergentMaintenance() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -5606,7 +5998,7 @@ public boolean getEnableEmergentMaintenance() { public Builder setEnableEmergentMaintenance(boolean value) { enableEmergentMaintenance_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5624,7 +6016,7 @@ public Builder setEnableEmergentMaintenance(boolean value) { * @return This builder for chaining. */ public Builder clearEnableEmergentMaintenance() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); enableEmergentMaintenance_ = false; onChanged(); return this; @@ -5646,7 +6038,7 @@ public Builder clearEnableEmergentMaintenance() { */ @java.lang.Override public boolean hasId() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -5682,7 +6074,7 @@ public long getId() { public Builder setId(long value) { id_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5700,7 +6092,7 @@ public Builder setId(long value) { * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); id_ = 0L; onChanged(); return this; @@ -5720,7 +6112,7 @@ public Builder clearId() { * @return Whether the kind field is set. */ public boolean hasKind() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5786,7 +6178,7 @@ public Builder setKind(java.lang.String value) { throw new NullPointerException(); } kind_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5804,7 +6196,7 @@ public Builder setKind(java.lang.String value) { */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -5827,7 +6219,7 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kind_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5839,7 +6231,7 @@ private void ensureLinkedCommitmentsIsMutable() { if (!linkedCommitments_.isModifiable()) { linkedCommitments_ = new com.google.protobuf.LazyStringArrayList(linkedCommitments_); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } /** @@ -5929,7 +6321,7 @@ public Builder setLinkedCommitments(int index, java.lang.String value) { } ensureLinkedCommitmentsIsMutable(); linkedCommitments_.set(index, value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5953,7 +6345,7 @@ public Builder addLinkedCommitments(java.lang.String value) { } ensureLinkedCommitmentsIsMutable(); linkedCommitments_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5974,7 +6366,7 @@ public Builder addLinkedCommitments(java.lang.String value) { public Builder addAllLinkedCommitments(java.lang.Iterable values) { ensureLinkedCommitmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedCommitments_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5993,7 +6385,7 @@ public Builder addAllLinkedCommitments(java.lang.Iterable valu */ public Builder clearLinkedCommitments() { linkedCommitments_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); ; onChanged(); return this; @@ -6019,7 +6411,7 @@ public Builder addLinkedCommitmentsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureLinkedCommitmentsIsMutable(); linkedCommitments_.add(value); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6045,7 +6437,7 @@ public Builder addLinkedCommitmentsBytes(com.google.protobuf.ByteString value) { * @return Whether the name field is set. */ public boolean hasName() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -6132,7 +6524,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6157,7 +6549,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -6187,7 +6579,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6212,7 +6604,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the params field is set. */ public boolean hasParams() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -6256,7 +6648,7 @@ public Builder setParams(com.google.cloud.compute.v1.ReservationParams value) { } else { paramsBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6278,7 +6670,7 @@ public Builder setParams( } else { paramsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6295,7 +6687,7 @@ public Builder setParams( */ public Builder mergeParams(com.google.cloud.compute.v1.ReservationParams value) { if (paramsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && params_ != null && params_ != com.google.cloud.compute.v1.ReservationParams.getDefaultInstance()) { getParamsBuilder().mergeFrom(value); @@ -6306,7 +6698,7 @@ public Builder mergeParams(com.google.cloud.compute.v1.ReservationParams value) paramsBuilder_.mergeFrom(value); } if (params_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6323,7 +6715,7 @@ public Builder mergeParams(com.google.cloud.compute.v1.ReservationParams value) * optional .google.cloud.compute.v1.ReservationParams params = 78313862; */ public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); params_ = null; if (paramsBuilder_ != null) { paramsBuilder_.dispose(); @@ -6344,7 +6736,7 @@ public Builder clearParams() { * optional .google.cloud.compute.v1.ReservationParams params = 78313862; */ public com.google.cloud.compute.v1.ReservationParams.Builder getParamsBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetParamsFieldBuilder().getBuilder(); } @@ -6413,7 +6805,7 @@ public com.google.cloud.compute.v1.ReservationParamsOrBuilder getParamsOrBuilder * @return Whether the protectionTier field is set. */ public boolean hasProtectionTier() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6488,7 +6880,7 @@ public Builder setProtectionTier(java.lang.String value) { throw new NullPointerException(); } protectionTier_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6509,7 +6901,7 @@ public Builder setProtectionTier(java.lang.String value) { */ public Builder clearProtectionTier() { protectionTier_ = getDefaultInstance().getProtectionTier(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -6535,7 +6927,7 @@ public Builder setProtectionTierBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); protectionTier_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6563,7 +6955,7 @@ public Builder setProtectionTierBytes(com.google.protobuf.ByteString value) { * @return Whether the reservationSharingPolicy field is set. */ public boolean hasReservationSharingPolicy() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -6613,7 +7005,7 @@ public Builder setReservationSharingPolicy( } else { reservationSharingPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6637,7 +7029,7 @@ public Builder setReservationSharingPolicy( } else { reservationSharingPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6657,7 +7049,7 @@ public Builder setReservationSharingPolicy( public Builder mergeReservationSharingPolicy( com.google.cloud.compute.v1.AllocationReservationSharingPolicy value) { if (reservationSharingPolicyBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && reservationSharingPolicy_ != null && reservationSharingPolicy_ != com.google.cloud.compute.v1.AllocationReservationSharingPolicy @@ -6670,7 +7062,7 @@ public Builder mergeReservationSharingPolicy( reservationSharingPolicyBuilder_.mergeFrom(value); } if (reservationSharingPolicy_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -6689,7 +7081,7 @@ public Builder mergeReservationSharingPolicy( * */ public Builder clearReservationSharingPolicy() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); reservationSharingPolicy_ = null; if (reservationSharingPolicyBuilder_ != null) { reservationSharingPolicyBuilder_.dispose(); @@ -6713,7 +7105,7 @@ public Builder clearReservationSharingPolicy() { */ public com.google.cloud.compute.v1.AllocationReservationSharingPolicy.Builder getReservationSharingPolicyBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetReservationSharingPolicyFieldBuilder().getBuilder(); } @@ -6791,7 +7183,7 @@ public Builder clearReservationSharingPolicy() { if (!resourcePolicies_.isMutable()) { resourcePolicies_ = resourcePolicies_.copy(); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return resourcePolicies_; } @@ -6891,7 +7283,7 @@ public java.lang.String getResourcePoliciesOrThrow(java.lang.String key) { } public Builder clearResourcePolicies() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); internalGetMutableResourcePolicies().getMutableMap().clear(); return this; } @@ -6918,7 +7310,7 @@ public Builder removeResourcePolicies(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResourcePolicies() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return internalGetMutableResourcePolicies().getMutableMap(); } @@ -6941,7 +7333,7 @@ public Builder putResourcePolicies(java.lang.String key, java.lang.String value) throw new NullPointerException("map value"); } internalGetMutableResourcePolicies().getMutableMap().put(key, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return this; } @@ -6959,7 +7351,7 @@ public Builder putResourcePolicies(java.lang.String key, java.lang.String value) public Builder putAllResourcePolicies( java.util.Map values) { internalGetMutableResourcePolicies().getMutableMap().putAll(values); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return this; } @@ -6983,7 +7375,7 @@ public Builder putAllResourcePolicies( * @return Whether the resourceStatus field is set. */ public boolean hasResourceStatus() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -7027,7 +7419,7 @@ public Builder setResourceStatus(com.google.cloud.compute.v1.AllocationResourceS } else { resourceStatusBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7049,7 +7441,7 @@ public Builder setResourceStatus( } else { resourceStatusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7066,7 +7458,7 @@ public Builder setResourceStatus( */ public Builder mergeResourceStatus(com.google.cloud.compute.v1.AllocationResourceStatus value) { if (resourceStatusBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && resourceStatus_ != null && resourceStatus_ != com.google.cloud.compute.v1.AllocationResourceStatus.getDefaultInstance()) { @@ -7078,7 +7470,7 @@ public Builder mergeResourceStatus(com.google.cloud.compute.v1.AllocationResourc resourceStatusBuilder_.mergeFrom(value); } if (resourceStatus_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -7095,7 +7487,7 @@ public Builder mergeResourceStatus(com.google.cloud.compute.v1.AllocationResourc *
*/ public Builder clearResourceStatus() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); resourceStatus_ = null; if (resourceStatusBuilder_ != null) { resourceStatusBuilder_.dispose(); @@ -7116,7 +7508,7 @@ public Builder clearResourceStatus() { * */ public com.google.cloud.compute.v1.AllocationResourceStatus.Builder getResourceStatusBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return internalGetResourceStatusFieldBuilder().getBuilder(); } @@ -7184,7 +7576,7 @@ public com.google.cloud.compute.v1.AllocationResourceStatus.Builder getResourceS */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -7218,7 +7610,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7235,7 +7627,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); satisfiesPzs_ = false; onChanged(); return this; @@ -7256,7 +7648,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the schedulingType field is set. */ public boolean hasSchedulingType() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -7325,7 +7717,7 @@ public Builder setSchedulingType(java.lang.String value) { throw new NullPointerException(); } schedulingType_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7344,7 +7736,7 @@ public Builder setSchedulingType(java.lang.String value) { */ public Builder clearSchedulingType() { schedulingType_ = getDefaultInstance().getSchedulingType(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -7368,7 +7760,7 @@ public Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); schedulingType_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7387,7 +7779,7 @@ public Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -7453,7 +7845,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7471,7 +7863,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -7494,7 +7886,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7521,7 +7913,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the shareSettings field is set. */ public boolean hasShareSettings() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -7569,7 +7961,7 @@ public Builder setShareSettings(com.google.cloud.compute.v1.ShareSettings value) } else { shareSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7593,7 +7985,7 @@ public Builder setShareSettings( } else { shareSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7612,7 +8004,7 @@ public Builder setShareSettings( */ public Builder mergeShareSettings(com.google.cloud.compute.v1.ShareSettings value) { if (shareSettingsBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x00800000) != 0) && shareSettings_ != null && shareSettings_ != com.google.cloud.compute.v1.ShareSettings.getDefaultInstance()) { getShareSettingsBuilder().mergeFrom(value); @@ -7623,7 +8015,7 @@ public Builder mergeShareSettings(com.google.cloud.compute.v1.ShareSettings valu shareSettingsBuilder_.mergeFrom(value); } if (shareSettings_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -7642,7 +8034,7 @@ public Builder mergeShareSettings(com.google.cloud.compute.v1.ShareSettings valu * optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163; */ public Builder clearShareSettings() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); shareSettings_ = null; if (shareSettingsBuilder_ != null) { shareSettingsBuilder_.dispose(); @@ -7665,7 +8057,7 @@ public Builder clearShareSettings() { * optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163; */ public com.google.cloud.compute.v1.ShareSettings.Builder getShareSettingsBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return internalGetShareSettingsFieldBuilder().getBuilder(); } @@ -7742,7 +8134,7 @@ public com.google.cloud.compute.v1.ShareSettingsOrBuilder getShareSettingsOrBuil * @return Whether the specificReservation field is set. */ public boolean hasSpecificReservation() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -7789,7 +8181,7 @@ public Builder setSpecificReservation( } else { specificReservationBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7812,7 +8204,7 @@ public Builder setSpecificReservation( } else { specificReservationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7831,7 +8223,7 @@ public Builder setSpecificReservation( public Builder mergeSpecificReservation( com.google.cloud.compute.v1.AllocationSpecificSKUReservation value) { if (specificReservationBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x01000000) != 0) && specificReservation_ != null && specificReservation_ != com.google.cloud.compute.v1.AllocationSpecificSKUReservation @@ -7844,7 +8236,7 @@ public Builder mergeSpecificReservation( specificReservationBuilder_.mergeFrom(value); } if (specificReservation_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -7862,7 +8254,7 @@ public Builder mergeSpecificReservation( *
*/ public Builder clearSpecificReservation() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); specificReservation_ = null; if (specificReservationBuilder_ != null) { specificReservationBuilder_.dispose(); @@ -7885,7 +8277,7 @@ public Builder clearSpecificReservation() { */ public com.google.cloud.compute.v1.AllocationSpecificSKUReservation.Builder getSpecificReservationBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return internalGetSpecificReservationFieldBuilder().getBuilder(); } @@ -7957,7 +8349,7 @@ public Builder clearSpecificReservation() { */ @java.lang.Override public boolean hasSpecificReservationRequired() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -7995,7 +8387,7 @@ public boolean getSpecificReservationRequired() { public Builder setSpecificReservationRequired(boolean value) { specificReservationRequired_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -8014,7 +8406,7 @@ public Builder setSpecificReservationRequired(boolean value) { * @return This builder for chaining. */ public Builder clearSpecificReservationRequired() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); specificReservationRequired_ = false; onChanged(); return this; @@ -8043,7 +8435,7 @@ public Builder clearSpecificReservationRequired() { * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -8136,7 +8528,7 @@ public Builder setStatus(java.lang.String value) { throw new NullPointerException(); } status_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8163,7 +8555,7 @@ public Builder setStatus(java.lang.String value) { */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } @@ -8195,7 +8587,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); status_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8215,7 +8607,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { * @return Whether the zone field is set. */ public boolean hasZone() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -8284,7 +8676,7 @@ public Builder setZone(java.lang.String value) { throw new NullPointerException(); } zone_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -8303,7 +8695,7 @@ public Builder setZone(java.lang.String value) { */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } @@ -8327,7 +8719,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); zone_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationOrBuilder.java index 9805d83bc217..5c4a7f1f31c6 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ReservationOrBuilder.java @@ -159,6 +159,48 @@ public interface ReservationOrBuilder */ com.google.protobuf.ByteString getCommitmentBytes(); + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return Whether the confidentialComputeType field is set. + */ + boolean hasConfidentialComputeType(); + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The confidentialComputeType. + */ + java.lang.String getConfidentialComputeType(); + + /** + * + * + *
+   *
+   * Check the ConfidentialComputeType enum for the list of possible values.
+   * 
+ * + * optional string confidential_compute_type = 386447257; + * + * @return The bytes for confidentialComputeType. + */ + com.google.protobuf.ByteString getConfidentialComputeTypeBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..c001b78aa5b3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequest.java @@ -0,0 +1,1318 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.SetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class SetIamPolicyInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) + SetIamPolicyInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SetIamPolicyInstantSnapshotGroupRequest"); + } + + // Use SetIamPolicyInstantSnapshotGroupRequest.newBuilder() to construct. + private SetIamPolicyInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetIamPolicyInstantSnapshotGroupRequest() { + project_ = ""; + resource_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER = 382082107; + private com.google.cloud.compute.v1.ZoneSetPolicyRequest zoneSetPolicyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zoneSetPolicyRequestResource field is set. + */ + @java.lang.Override + public boolean hasZoneSetPolicyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zoneSetPolicyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.ZoneSetPolicyRequest getZoneSetPolicyRequestResource() { + return zoneSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.ZoneSetPolicyRequest.getDefaultInstance() + : zoneSetPolicyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.ZoneSetPolicyRequestOrBuilder + getZoneSetPolicyRequestResourceOrBuilder() { + return zoneSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.ZoneSetPolicyRequest.getDefaultInstance() + : zoneSetPolicyRequestResource_; + } + + 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(382082107, getZoneSetPolicyRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 382082107, getZoneSetPolicyRequestResource()); + } + 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.compute.v1.SetIamPolicyInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getZone().equals(other.getZone())) return false; + if (hasZoneSetPolicyRequestResource() != other.hasZoneSetPolicyRequestResource()) return false; + if (hasZoneSetPolicyRequestResource()) { + if (!getZoneSetPolicyRequestResource().equals(other.getZoneSetPolicyRequestResource())) + 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (hasZoneSetPolicyRequestResource()) { + hash = (37 * hash) + ZONE_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getZoneSetPolicyRequestResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest 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.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SetIamPolicyInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.SetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetZoneSetPolicyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + resource_ = ""; + zone_ = ""; + zoneSetPolicyRequestResource_ = null; + if (zoneSetPolicyRequestResourceBuilder_ != null) { + zoneSetPolicyRequestResourceBuilder_.dispose(); + zoneSetPolicyRequestResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest buildPartial() { + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.zone_ = zone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zoneSetPolicyRequestResource_ = + zoneSetPolicyRequestResourceBuilder_ == null + ? zoneSetPolicyRequestResource_ + : zoneSetPolicyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasZoneSetPolicyRequestResource()) { + mergeZoneSetPolicyRequestResource(other.getZoneSetPolicyRequestResource()); + } + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 29957474 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -1238310438: + { + input.readMessage( + internalGetZoneSetPolicyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -1238310438 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.ZoneSetPolicyRequest zoneSetPolicyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.ZoneSetPolicyRequest, + com.google.cloud.compute.v1.ZoneSetPolicyRequest.Builder, + com.google.cloud.compute.v1.ZoneSetPolicyRequestOrBuilder> + zoneSetPolicyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zoneSetPolicyRequestResource field is set. + */ + public boolean hasZoneSetPolicyRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zoneSetPolicyRequestResource. + */ + public com.google.cloud.compute.v1.ZoneSetPolicyRequest getZoneSetPolicyRequestResource() { + if (zoneSetPolicyRequestResourceBuilder_ == null) { + return zoneSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.ZoneSetPolicyRequest.getDefaultInstance() + : zoneSetPolicyRequestResource_; + } else { + return zoneSetPolicyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setZoneSetPolicyRequestResource( + com.google.cloud.compute.v1.ZoneSetPolicyRequest value) { + if (zoneSetPolicyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + zoneSetPolicyRequestResource_ = value; + } else { + zoneSetPolicyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setZoneSetPolicyRequestResource( + com.google.cloud.compute.v1.ZoneSetPolicyRequest.Builder builderForValue) { + if (zoneSetPolicyRequestResourceBuilder_ == null) { + zoneSetPolicyRequestResource_ = builderForValue.build(); + } else { + zoneSetPolicyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeZoneSetPolicyRequestResource( + com.google.cloud.compute.v1.ZoneSetPolicyRequest value) { + if (zoneSetPolicyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && zoneSetPolicyRequestResource_ != null + && zoneSetPolicyRequestResource_ + != com.google.cloud.compute.v1.ZoneSetPolicyRequest.getDefaultInstance()) { + getZoneSetPolicyRequestResourceBuilder().mergeFrom(value); + } else { + zoneSetPolicyRequestResource_ = value; + } + } else { + zoneSetPolicyRequestResourceBuilder_.mergeFrom(value); + } + if (zoneSetPolicyRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearZoneSetPolicyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + zoneSetPolicyRequestResource_ = null; + if (zoneSetPolicyRequestResourceBuilder_ != null) { + zoneSetPolicyRequestResourceBuilder_.dispose(); + zoneSetPolicyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.ZoneSetPolicyRequest.Builder + getZoneSetPolicyRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetZoneSetPolicyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.ZoneSetPolicyRequestOrBuilder + getZoneSetPolicyRequestResourceOrBuilder() { + if (zoneSetPolicyRequestResourceBuilder_ != null) { + return zoneSetPolicyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return zoneSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.ZoneSetPolicyRequest.getDefaultInstance() + : zoneSetPolicyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.ZoneSetPolicyRequest, + com.google.cloud.compute.v1.ZoneSetPolicyRequest.Builder, + com.google.cloud.compute.v1.ZoneSetPolicyRequestOrBuilder> + internalGetZoneSetPolicyRequestResourceFieldBuilder() { + if (zoneSetPolicyRequestResourceBuilder_ == null) { + zoneSetPolicyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.ZoneSetPolicyRequest, + com.google.cloud.compute.v1.ZoneSetPolicyRequest.Builder, + com.google.cloud.compute.v1.ZoneSetPolicyRequestOrBuilder>( + getZoneSetPolicyRequestResource(), getParentForChildren(), isClean()); + zoneSetPolicyRequestResource_ = null; + } + return zoneSetPolicyRequestResourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetIamPolicyInstantSnapshotGroupRequest 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.compute.v1.SetIamPolicyInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..171e1a641855 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SetIamPolicyInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zoneSetPolicyRequestResource field is set. + */ + boolean hasZoneSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zoneSetPolicyRequestResource. + */ + com.google.cloud.compute.v1.ZoneSetPolicyRequest getZoneSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.ZoneSetPolicyRequestOrBuilder + getZoneSetPolicyRequestResourceOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequest.java new file mode 100644 index 000000000000..35b688386bf6 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequest.java @@ -0,0 +1,1319 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.SetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class SetIamPolicyRegionBackendBucketRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) + SetIamPolicyRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SetIamPolicyRegionBackendBucketRequest"); + } + + // Use SetIamPolicyRegionBackendBucketRequest.newBuilder() to construct. + private SetIamPolicyRegionBackendBucketRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetIamPolicyRegionBackendBucketRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER = 276489091; + private com.google.cloud.compute.v1.RegionSetPolicyRequest regionSetPolicyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionSetPolicyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource() { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder() { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(276489091, getRegionSetPolicyRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 276489091, getRegionSetPolicyRequestResource()); + } + 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.compute.v1.SetIamPolicyRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionSetPolicyRequestResource() != other.hasRegionSetPolicyRequestResource()) + return false; + if (hasRegionSetPolicyRequestResource()) { + if (!getRegionSetPolicyRequestResource().equals(other.getRegionSetPolicyRequestResource())) + return false; + } + if (!getResource().equals(other.getResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionSetPolicyRequestResource()) { + hash = (37 * hash) + REGION_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionSetPolicyRequestResource().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest 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.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SetIamPolicyRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.SetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRegionSetPolicyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + regionSetPolicyRequestResource_ = null; + if (regionSetPolicyRequestResourceBuilder_ != null) { + regionSetPolicyRequestResourceBuilder_.dispose(); + regionSetPolicyRequestResourceBuilder_ = null; + } + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionSetPolicyRequestResource_ = + regionSetPolicyRequestResourceBuilder_ == null + ? regionSetPolicyRequestResource_ + : regionSetPolicyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest other) { + if (other + == com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionSetPolicyRequestResource()) { + mergeRegionSetPolicyRequestResource(other.getRegionSetPolicyRequestResource()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2083054566: + { + input.readMessage( + internalGetRegionSetPolicyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case -2083054566 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionSetPolicyRequest regionSetPolicyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder> + regionSetPolicyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + public boolean hasRegionSetPolicyRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource() { + if (regionSetPolicyRequestResourceBuilder_ == null) { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } else { + return regionSetPolicyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest value) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionSetPolicyRequestResource_ = value; + } else { + regionSetPolicyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder builderForValue) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + regionSetPolicyRequestResource_ = builderForValue.build(); + } else { + regionSetPolicyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest value) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && regionSetPolicyRequestResource_ != null + && regionSetPolicyRequestResource_ + != com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance()) { + getRegionSetPolicyRequestResourceBuilder().mergeFrom(value); + } else { + regionSetPolicyRequestResource_ = value; + } + } else { + regionSetPolicyRequestResourceBuilder_.mergeFrom(value); + } + if (regionSetPolicyRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionSetPolicyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + regionSetPolicyRequestResource_ = null; + if (regionSetPolicyRequestResourceBuilder_ != null) { + regionSetPolicyRequestResourceBuilder_.dispose(); + regionSetPolicyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder + getRegionSetPolicyRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRegionSetPolicyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder() { + if (regionSetPolicyRequestResourceBuilder_ != null) { + return regionSetPolicyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder> + internalGetRegionSetPolicyRequestResourceFieldBuilder() { + if (regionSetPolicyRequestResourceBuilder_ == null) { + regionSetPolicyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder>( + getRegionSetPolicyRequestResource(), getParentForChildren(), isClean()); + regionSetPolicyRequestResource_ = null; + } + return regionSetPolicyRequestResourceBuilder_; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetIamPolicyRegionBackendBucketRequest 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.compute.v1.SetIamPolicyRegionBackendBucketRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..3aa63b9e41a4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SetIamPolicyRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + boolean hasRegionSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..476fedbe0d33 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequest.java @@ -0,0 +1,1329 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.SetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class SetIamPolicyRegionInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) + SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SetIamPolicyRegionInstantSnapshotGroupRequest"); + } + + // Use SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() to construct. + private SetIamPolicyRegionInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetIamPolicyRegionInstantSnapshotGroupRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER = 276489091; + private com.google.cloud.compute.v1.RegionSetPolicyRequest regionSetPolicyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionSetPolicyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource() { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder() { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(276489091, getRegionSetPolicyRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 276489091, getRegionSetPolicyRequestResource()); + } + 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.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionSetPolicyRequestResource() != other.hasRegionSetPolicyRequestResource()) + return false; + if (hasRegionSetPolicyRequestResource()) { + if (!getRegionSetPolicyRequestResource().equals(other.getRegionSetPolicyRequestResource())) + return false; + } + if (!getResource().equals(other.getResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionSetPolicyRequestResource()) { + hash = (37 * hash) + REGION_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionSetPolicyRequestResource().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest 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.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.SetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRegionSetPolicyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + regionSetPolicyRequestResource_ = null; + if (regionSetPolicyRequestResourceBuilder_ != null) { + regionSetPolicyRequestResourceBuilder_.dispose(); + regionSetPolicyRequestResourceBuilder_ = null; + } + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + buildPartial() { + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionSetPolicyRequestResource_ = + regionSetPolicyRequestResourceBuilder_ == null + ? regionSetPolicyRequestResource_ + : regionSetPolicyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionSetPolicyRequestResource()) { + mergeRegionSetPolicyRequestResource(other.getRegionSetPolicyRequestResource()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2083054566: + { + input.readMessage( + internalGetRegionSetPolicyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case -2083054566 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionSetPolicyRequest regionSetPolicyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder> + regionSetPolicyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + public boolean hasRegionSetPolicyRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource() { + if (regionSetPolicyRequestResourceBuilder_ == null) { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } else { + return regionSetPolicyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest value) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionSetPolicyRequestResource_ = value; + } else { + regionSetPolicyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder builderForValue) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + regionSetPolicyRequestResource_ = builderForValue.build(); + } else { + regionSetPolicyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest value) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && regionSetPolicyRequestResource_ != null + && regionSetPolicyRequestResource_ + != com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance()) { + getRegionSetPolicyRequestResourceBuilder().mergeFrom(value); + } else { + regionSetPolicyRequestResource_ = value; + } + } else { + regionSetPolicyRequestResourceBuilder_.mergeFrom(value); + } + if (regionSetPolicyRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionSetPolicyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + regionSetPolicyRequestResource_ = null; + if (regionSetPolicyRequestResourceBuilder_ != null) { + regionSetPolicyRequestResourceBuilder_.dispose(); + regionSetPolicyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder + getRegionSetPolicyRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRegionSetPolicyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder() { + if (regionSetPolicyRequestResourceBuilder_ != null) { + return regionSetPolicyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder> + internalGetRegionSetPolicyRequestResourceFieldBuilder() { + if (regionSetPolicyRequestResourceBuilder_ == null) { + regionSetPolicyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder>( + getRegionSetPolicyRequestResource(), getParentForChildren(), isClean()); + regionSetPolicyRequestResource_ = null; + } + return regionSetPolicyRequestResourceBuilder_; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetIamPolicyRegionInstantSnapshotGroupRequest 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.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..422dd6e7fdef --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SetIamPolicyRegionInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + boolean hasRegionSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequest.java new file mode 100644 index 000000000000..404fa47dc33f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequest.java @@ -0,0 +1,1311 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.SetIamPolicy. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class SetIamPolicyRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) + SetIamPolicyRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SetIamPolicyRegionSnapshotRequest"); + } + + // Use SetIamPolicyRegionSnapshotRequest.newBuilder() to construct. + private SetIamPolicyRegionSnapshotRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetIamPolicyRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.class, + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER = 276489091; + private com.google.cloud.compute.v1.RegionSetPolicyRequest regionSetPolicyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionSetPolicyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource() { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder() { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(276489091, getRegionSetPolicyRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 276489091, getRegionSetPolicyRequestResource()); + } + 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.compute.v1.SetIamPolicyRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest other = + (com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionSetPolicyRequestResource() != other.hasRegionSetPolicyRequestResource()) + return false; + if (hasRegionSetPolicyRequestResource()) { + if (!getRegionSetPolicyRequestResource().equals(other.getRegionSetPolicyRequestResource())) + return false; + } + if (!getResource().equals(other.getResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionSetPolicyRequestResource()) { + hash = (37 * hash) + REGION_SET_POLICY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionSetPolicyRequestResource().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest 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.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SetIamPolicyRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.SetIamPolicy. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.class, + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRegionSetPolicyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + regionSetPolicyRequestResource_ = null; + if (regionSetPolicyRequestResourceBuilder_ != null) { + regionSetPolicyRequestResourceBuilder_.dispose(); + regionSetPolicyRequestResourceBuilder_ = null; + } + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetIamPolicyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest build() { + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest result = + new com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionSetPolicyRequestResource_ = + regionSetPolicyRequestResourceBuilder_ == null + ? regionSetPolicyRequestResource_ + : regionSetPolicyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest other) { + if (other + == com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionSetPolicyRequestResource()) { + mergeRegionSetPolicyRequestResource(other.getRegionSetPolicyRequestResource()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2083054566: + { + input.readMessage( + internalGetRegionSetPolicyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case -2083054566 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionSetPolicyRequest regionSetPolicyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder> + regionSetPolicyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + public boolean hasRegionSetPolicyRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource() { + if (regionSetPolicyRequestResourceBuilder_ == null) { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } else { + return regionSetPolicyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest value) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionSetPolicyRequestResource_ = value; + } else { + regionSetPolicyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder builderForValue) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + regionSetPolicyRequestResource_ = builderForValue.build(); + } else { + regionSetPolicyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionSetPolicyRequestResource( + com.google.cloud.compute.v1.RegionSetPolicyRequest value) { + if (regionSetPolicyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && regionSetPolicyRequestResource_ != null + && regionSetPolicyRequestResource_ + != com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance()) { + getRegionSetPolicyRequestResourceBuilder().mergeFrom(value); + } else { + regionSetPolicyRequestResource_ = value; + } + } else { + regionSetPolicyRequestResourceBuilder_.mergeFrom(value); + } + if (regionSetPolicyRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionSetPolicyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + regionSetPolicyRequestResource_ = null; + if (regionSetPolicyRequestResourceBuilder_ != null) { + regionSetPolicyRequestResourceBuilder_.dispose(); + regionSetPolicyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder + getRegionSetPolicyRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRegionSetPolicyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder() { + if (regionSetPolicyRequestResourceBuilder_ != null) { + return regionSetPolicyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionSetPolicyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetPolicyRequest.getDefaultInstance() + : regionSetPolicyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder> + internalGetRegionSetPolicyRequestResourceFieldBuilder() { + if (regionSetPolicyRequestResourceBuilder_ == null) { + regionSetPolicyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetPolicyRequest, + com.google.cloud.compute.v1.RegionSetPolicyRequest.Builder, + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder>( + getRegionSetPolicyRequestResource(), getParentForChildren(), isClean()); + regionSetPolicyRequestResource_ = null; + } + return regionSetPolicyRequestResourceBuilder_; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetIamPolicyRegionSnapshotRequest 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.compute.v1.SetIamPolicyRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..dff18b13c44c --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetIamPolicyRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SetIamPolicyRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetPolicyRequestResource field is set. + */ + boolean hasRegionSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetPolicyRequestResource. + */ + com.google.cloud.compute.v1.RegionSetPolicyRequest getRegionSetPolicyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionSetPolicyRequestOrBuilder + getRegionSetPolicyRequestResourceOrBuilder(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequest.java new file mode 100644 index 000000000000..b604ba43b2f1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequest.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.SetLabels. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class SetLabelsRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) + SetLabelsRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SetLabelsRegionSnapshotRequest"); + } + + // Use SetLabelsRegionSnapshotRequest.newBuilder() to construct. + private SetLabelsRegionSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetLabelsRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.class, + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_SET_LABELS_REQUEST_RESOURCE_FIELD_NUMBER = 259357782; + private com.google.cloud.compute.v1.RegionSetLabelsRequest regionSetLabelsRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetLabelsRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionSetLabelsRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetLabelsRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetLabelsRequest getRegionSetLabelsRequestResource() { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder + getRegionSetLabelsRequestResourceOrBuilder() { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(259357782, getRegionSetLabelsRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 259357782, getRegionSetLabelsRequestResource()); + } + 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.compute.v1.SetLabelsRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest other = + (com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionSetLabelsRequestResource() != other.hasRegionSetLabelsRequestResource()) + return false; + if (hasRegionSetLabelsRequestResource()) { + if (!getRegionSetLabelsRequestResource().equals(other.getRegionSetLabelsRequestResource())) + return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getResource().equals(other.getResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionSetLabelsRequestResource()) { + hash = (37 * hash) + REGION_SET_LABELS_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionSetLabelsRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest 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.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SetLabelsRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.SetLabels. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SetLabelsRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.class, + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRegionSetLabelsRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + regionSetLabelsRequestResource_ = null; + if (regionSetLabelsRequestResourceBuilder_ != null) { + regionSetLabelsRequestResourceBuilder_.dispose(); + regionSetLabelsRequestResourceBuilder_ = null; + } + requestId_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SetLabelsRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest build() { + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest result = + new com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionSetLabelsRequestResource_ = + regionSetLabelsRequestResourceBuilder_ == null + ? regionSetLabelsRequestResource_ + : regionSetLabelsRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest other) { + if (other == com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionSetLabelsRequestResource()) { + mergeRegionSetLabelsRequestResource(other.getRegionSetLabelsRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case 2074862258: + { + input.readMessage( + internalGetRegionSetLabelsRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 2074862258 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionSetLabelsRequest regionSetLabelsRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetLabelsRequest, + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder, + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder> + regionSetLabelsRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetLabelsRequestResource field is set. + */ + public boolean hasRegionSetLabelsRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetLabelsRequestResource. + */ + public com.google.cloud.compute.v1.RegionSetLabelsRequest getRegionSetLabelsRequestResource() { + if (regionSetLabelsRequestResourceBuilder_ == null) { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } else { + return regionSetLabelsRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetLabelsRequestResource( + com.google.cloud.compute.v1.RegionSetLabelsRequest value) { + if (regionSetLabelsRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionSetLabelsRequestResource_ = value; + } else { + regionSetLabelsRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSetLabelsRequestResource( + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder builderForValue) { + if (regionSetLabelsRequestResourceBuilder_ == null) { + regionSetLabelsRequestResource_ = builderForValue.build(); + } else { + regionSetLabelsRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionSetLabelsRequestResource( + com.google.cloud.compute.v1.RegionSetLabelsRequest value) { + if (regionSetLabelsRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && regionSetLabelsRequestResource_ != null + && regionSetLabelsRequestResource_ + != com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance()) { + getRegionSetLabelsRequestResourceBuilder().mergeFrom(value); + } else { + regionSetLabelsRequestResource_ = value; + } + } else { + regionSetLabelsRequestResourceBuilder_.mergeFrom(value); + } + if (regionSetLabelsRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionSetLabelsRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + regionSetLabelsRequestResource_ = null; + if (regionSetLabelsRequestResourceBuilder_ != null) { + regionSetLabelsRequestResourceBuilder_.dispose(); + regionSetLabelsRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder + getRegionSetLabelsRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRegionSetLabelsRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder + getRegionSetLabelsRequestResourceOrBuilder() { + if (regionSetLabelsRequestResourceBuilder_ != null) { + return regionSetLabelsRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionSetLabelsRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSetLabelsRequest.getDefaultInstance() + : regionSetLabelsRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetLabelsRequest, + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder, + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder> + internalGetRegionSetLabelsRequestResourceFieldBuilder() { + if (regionSetLabelsRequestResourceBuilder_ == null) { + regionSetLabelsRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSetLabelsRequest, + com.google.cloud.compute.v1.RegionSetLabelsRequest.Builder, + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder>( + getRegionSetLabelsRequestResource(), getParentForChildren(), isClean()); + regionSetLabelsRequestResource_ = null; + } + return regionSetLabelsRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLabelsRegionSnapshotRequest 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.compute.v1.SetLabelsRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..7f45235386a1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,233 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SetLabelsRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SetLabelsRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSetLabelsRequestResource field is set. + */ + boolean hasRegionSetLabelsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSetLabelsRequestResource. + */ + com.google.cloud.compute.v1.RegionSetLabelsRequest getRegionSetLabelsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionSetLabelsRequestOrBuilder + getRegionSetLabelsRequestResourceOrBuilder(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Snapshot.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Snapshot.java index d72bf27f1673..fbf60140cc25 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Snapshot.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Snapshot.java @@ -67,7 +67,10 @@ private Snapshot() { licenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); locationHint_ = ""; name_ = ""; + region_ = ""; selfLink_ = ""; + snapshotGroupId_ = ""; + snapshotGroupName_ = ""; snapshotType_ = ""; sourceDisk_ = ""; sourceDiskForRecoveryCheckpoint_ = ""; @@ -2101,6 +2104,78 @@ public com.google.cloud.compute.v1.SnapshotParamsOrBuilder getParamsOrBuilder() : params_; } + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+   * for regional snapshots.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+   * for regional snapshots.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+   * for regional snapshots.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SATISFIES_PZI_FIELD_NUMBER = 480964257; private boolean satisfiesPzi_ = false; @@ -2117,7 +2192,7 @@ public com.google.cloud.compute.v1.SnapshotParamsOrBuilder getParamsOrBuilder() */ @java.lang.Override public boolean hasSatisfiesPzi() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -2152,7 +2227,7 @@ public boolean getSatisfiesPzi() { */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -2189,7 +2264,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasSelfLink() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -2271,7 +2346,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { */ @java.lang.Override public boolean hasSnapshotEncryptionKey() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -2339,6 +2414,150 @@ public com.google.cloud.compute.v1.CustomerEncryptionKey getSnapshotEncryptionKe : snapshotEncryptionKey_; } + public static final int SNAPSHOT_GROUP_ID_FIELD_NUMBER = 255004406; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshotGroupId_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+   * belongs to. The usage of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return Whether the snapshotGroupId field is set. + */ + @java.lang.Override + public boolean hasSnapshotGroupId() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+   * belongs to. The usage of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return The snapshotGroupId. + */ + @java.lang.Override + public java.lang.String getSnapshotGroupId() { + java.lang.Object ref = snapshotGroupId_; + 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(); + snapshotGroupId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+   * belongs to. The usage of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return The bytes for snapshotGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotGroupIdBytes() { + java.lang.Object ref = snapshotGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshotGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_GROUP_NAME_FIELD_NUMBER = 246247846; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshotGroupName_ = ""; + + /** + * + * + *
+   * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+   * of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_name = 246247846; + * + * @return Whether the snapshotGroupName field is set. + */ + @java.lang.Override + public boolean hasSnapshotGroupName() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+   * of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_name = 246247846; + * + * @return The snapshotGroupName. + */ + @java.lang.Override + public java.lang.String getSnapshotGroupName() { + java.lang.Object ref = snapshotGroupName_; + 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(); + snapshotGroupName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+   * of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_name = 246247846; + * + * @return The bytes for snapshotGroupName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotGroupNameBytes() { + java.lang.Object ref = snapshotGroupName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshotGroupName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SNAPSHOT_TYPE_FIELD_NUMBER = 124349653; @SuppressWarnings("serial") @@ -2358,7 +2577,7 @@ public com.google.cloud.compute.v1.CustomerEncryptionKey getSnapshotEncryptionKe */ @java.lang.Override public boolean hasSnapshotType() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -2429,7 +2648,7 @@ public com.google.protobuf.ByteString getSnapshotTypeBytes() { */ @java.lang.Override public boolean hasSourceDisk() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -2500,7 +2719,7 @@ public com.google.protobuf.ByteString getSourceDiskBytes() { */ @java.lang.Override public boolean hasSourceDiskEncryptionKey() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -2565,7 +2784,7 @@ public com.google.cloud.compute.v1.CustomerEncryptionKey getSourceDiskEncryption */ @java.lang.Override public boolean hasSourceDiskForRecoveryCheckpoint() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -2638,7 +2857,7 @@ public com.google.protobuf.ByteString getSourceDiskForRecoveryCheckpointBytes() */ @java.lang.Override public boolean hasSourceDiskId() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -2718,7 +2937,7 @@ public com.google.protobuf.ByteString getSourceDiskIdBytes() { */ @java.lang.Override public boolean hasSourceInstantSnapshot() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -2802,7 +3021,7 @@ public com.google.protobuf.ByteString getSourceInstantSnapshotBytes() { */ @java.lang.Override public boolean hasSourceInstantSnapshotEncryptionKey() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -2869,7 +3088,7 @@ public com.google.cloud.compute.v1.CustomerEncryptionKey getSourceInstantSnapsho */ @java.lang.Override public boolean hasSourceInstantSnapshotId() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -2949,7 +3168,7 @@ public com.google.protobuf.ByteString getSourceInstantSnapshotIdBytes() { */ @java.lang.Override public boolean hasSourceSnapshotSchedulePolicy() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -3021,7 +3240,7 @@ public com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyBytes() { */ @java.lang.Override public boolean hasSourceSnapshotSchedulePolicyId() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -3093,7 +3312,7 @@ public com.google.protobuf.ByteString getSourceSnapshotSchedulePolicyIdBytes() { */ @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -3164,7 +3383,7 @@ public com.google.protobuf.ByteString getStatusBytes() { */ @java.lang.Override public boolean hasStorageBytes() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** @@ -3208,7 +3427,7 @@ public long getStorageBytes() { */ @java.lang.Override public boolean hasStorageBytesStatus() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -3368,7 +3587,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 30525366, creationTimestamp_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { output.writeMessage(43334526, getSnapshotEncryptionKey()); } if (getLicenseCodesList().size() > 0) { @@ -3381,7 +3600,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 68644169, chainName_); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessage.writeString( output, 70489047, sourceSnapshotSchedulePolicyId_); } @@ -3394,26 +3613,35 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(102135228, enableConfidentialCompute_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 124349653, snapshotType_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(125400077, creationSizeBytes_); } + if (((bitField0_ & 0x00010000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 178124825, labelFingerprint_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 181260274, status_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 219202054, sourceInstantSnapshot_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString( output, 235756291, sourceSnapshotSchedulePolicy_); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 246247846, snapshotGroupName_); + } + if (((bitField0_ & 0x00200000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 255004406, snapshotGroupId_); + } + if (((bitField0_ & 0x40000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 287582708, sourceInstantSnapshotId_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -3432,7 +3660,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 350519505, locationHint_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString( output, 359837950, sourceDiskForRecoveryCheckpoint_); } @@ -3442,39 +3670,39 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { output.writeInt64(424631719, storageBytes_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeInt64(435054068, downloadBytes_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { output.writeMessage(436536060, getSourceInstantSnapshotEncryptionKey()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 451753793, sourceDisk_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 454190809, sourceDiskId_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(463922264, autoCreated_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeBool(480964257, satisfiesPzi_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { output.writeBool(480964267, satisfiesPzs_); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 490739082, storageBytesStatus_); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 500195327); - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(531501153, getSourceDiskEncryptionKey()); } getUnknownFields().writeTo(output); @@ -3498,7 +3726,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(30525366, creationTimestamp_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 43334526, getSnapshotEncryptionKey()); @@ -3519,7 +3747,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(68644169, chainName_); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize( 70489047, sourceSnapshotSchedulePolicyId_); @@ -3537,28 +3765,37 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBoolSize( 102135228, enableConfidentialCompute_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(124349653, snapshotType_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(125400077, creationSizeBytes_); } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(178124825, labelFingerprint_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(181260274, status_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(219202054, sourceInstantSnapshot_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize( 235756291, sourceSnapshotSchedulePolicy_); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(246247846, snapshotGroupName_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(255004406, snapshotGroupId_); + } + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize( 287582708, sourceInstantSnapshotId_); @@ -3588,7 +3825,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(350519505, locationHint_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize( 359837950, sourceDiskForRecoveryCheckpoint_); @@ -3599,36 +3836,36 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(424631719, storageBytes_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(435054068, downloadBytes_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 436536060, getSourceInstantSnapshotEncryptionKey()); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(451753793, sourceDisk_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(454190809, sourceDiskId_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(463922264, autoCreated_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964257, satisfiesPzi_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964267, satisfiesPzs_); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(490739082, storageBytesStatus_); } @@ -3642,7 +3879,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(500195327, labels__); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 531501153, getSourceDiskEncryptionKey()); @@ -3730,6 +3967,10 @@ public boolean equals(final java.lang.Object obj) { if (hasParams()) { if (!getParams().equals(other.getParams())) return false; } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion().equals(other.getRegion())) return false; + } if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; if (hasSatisfiesPzi()) { if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; @@ -3746,6 +3987,14 @@ public boolean equals(final java.lang.Object obj) { if (hasSnapshotEncryptionKey()) { if (!getSnapshotEncryptionKey().equals(other.getSnapshotEncryptionKey())) return false; } + if (hasSnapshotGroupId() != other.hasSnapshotGroupId()) return false; + if (hasSnapshotGroupId()) { + if (!getSnapshotGroupId().equals(other.getSnapshotGroupId())) return false; + } + if (hasSnapshotGroupName() != other.hasSnapshotGroupName()) return false; + if (hasSnapshotGroupName()) { + if (!getSnapshotGroupName().equals(other.getSnapshotGroupName())) return false; + } if (hasSnapshotType() != other.hasSnapshotType()) return false; if (hasSnapshotType()) { if (!getSnapshotType().equals(other.getSnapshotType())) return false; @@ -3897,6 +4146,10 @@ public int hashCode() { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } if (hasSatisfiesPzi()) { hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); @@ -3913,6 +4166,14 @@ public int hashCode() { hash = (37 * hash) + SNAPSHOT_ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getSnapshotEncryptionKey().hashCode(); } + if (hasSnapshotGroupId()) { + hash = (37 * hash) + SNAPSHOT_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotGroupId().hashCode(); + } + if (hasSnapshotGroupName()) { + hash = (37 * hash) + SNAPSHOT_GROUP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotGroupName().hashCode(); + } if (hasSnapshotType()) { hash = (37 * hash) + SNAPSHOT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getSnapshotType().hashCode(); @@ -4178,6 +4439,7 @@ public Builder clear() { paramsBuilder_.dispose(); paramsBuilder_ = null; } + region_ = ""; satisfiesPzi_ = false; satisfiesPzs_ = false; selfLink_ = ""; @@ -4186,6 +4448,8 @@ public Builder clear() { snapshotEncryptionKeyBuilder_.dispose(); snapshotEncryptionKeyBuilder_ = null; } + snapshotGroupId_ = ""; + snapshotGroupName_ = ""; snapshotType_ = ""; sourceDisk_ = ""; sourceDiskEncryptionKey_ = null; @@ -4337,60 +4601,57 @@ private void buildPartial0(com.google.cloud.compute.v1.Snapshot result) { to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.satisfiesPzi_ = satisfiesPzi_; + result.region_ = region_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; + result.satisfiesPzi_ = satisfiesPzi_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.selfLink_ = selfLink_; + result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.snapshotEncryptionKey_ = snapshotEncryptionKeyBuilder_ == null ? snapshotEncryptionKey_ : snapshotEncryptionKeyBuilder_.build(); - to_bitField0_ |= 0x00080000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.snapshotType_ = snapshotType_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.sourceDisk_ = sourceDisk_; + result.snapshotGroupId_ = snapshotGroupId_; to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.sourceDiskEncryptionKey_ = - sourceDiskEncryptionKeyBuilder_ == null - ? sourceDiskEncryptionKey_ - : sourceDiskEncryptionKeyBuilder_.build(); + result.snapshotGroupName_ = snapshotGroupName_; to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.sourceDiskForRecoveryCheckpoint_ = sourceDiskForRecoveryCheckpoint_; + result.snapshotType_ = snapshotType_; to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.sourceDiskId_ = sourceDiskId_; + result.sourceDisk_ = sourceDisk_; to_bitField0_ |= 0x01000000; } if (((from_bitField0_ & 0x20000000) != 0)) { - result.sourceInstantSnapshot_ = sourceInstantSnapshot_; + result.sourceDiskEncryptionKey_ = + sourceDiskEncryptionKeyBuilder_ == null + ? sourceDiskEncryptionKey_ + : sourceDiskEncryptionKeyBuilder_.build(); to_bitField0_ |= 0x02000000; } if (((from_bitField0_ & 0x40000000) != 0)) { - result.sourceInstantSnapshotEncryptionKey_ = - sourceInstantSnapshotEncryptionKeyBuilder_ == null - ? sourceInstantSnapshotEncryptionKey_ - : sourceInstantSnapshotEncryptionKeyBuilder_.build(); + result.sourceDiskForRecoveryCheckpoint_ = sourceDiskForRecoveryCheckpoint_; to_bitField0_ |= 0x04000000; } if (((from_bitField0_ & 0x80000000) != 0)) { - result.sourceInstantSnapshotId_ = sourceInstantSnapshotId_; + result.sourceDiskId_ = sourceDiskId_; to_bitField0_ |= 0x08000000; } result.bitField0_ |= to_bitField0_; @@ -4400,27 +4661,42 @@ private void buildPartial1(com.google.cloud.compute.v1.Snapshot result) { int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { - result.sourceSnapshotSchedulePolicy_ = sourceSnapshotSchedulePolicy_; + result.sourceInstantSnapshot_ = sourceInstantSnapshot_; to_bitField0_ |= 0x10000000; } if (((from_bitField1_ & 0x00000002) != 0)) { - result.sourceSnapshotSchedulePolicyId_ = sourceSnapshotSchedulePolicyId_; + result.sourceInstantSnapshotEncryptionKey_ = + sourceInstantSnapshotEncryptionKeyBuilder_ == null + ? sourceInstantSnapshotEncryptionKey_ + : sourceInstantSnapshotEncryptionKeyBuilder_.build(); to_bitField0_ |= 0x20000000; } if (((from_bitField1_ & 0x00000004) != 0)) { - result.status_ = status_; + result.sourceInstantSnapshotId_ = sourceInstantSnapshotId_; to_bitField0_ |= 0x40000000; } if (((from_bitField1_ & 0x00000008) != 0)) { - result.storageBytes_ = storageBytes_; + result.sourceSnapshotSchedulePolicy_ = sourceSnapshotSchedulePolicy_; to_bitField0_ |= 0x80000000; } int to_bitField1_ = 0; if (((from_bitField1_ & 0x00000010) != 0)) { - result.storageBytesStatus_ = storageBytesStatus_; + result.sourceSnapshotSchedulePolicyId_ = sourceSnapshotSchedulePolicyId_; to_bitField1_ |= 0x00000001; } if (((from_bitField1_ & 0x00000020) != 0)) { + result.status_ = status_; + to_bitField1_ |= 0x00000002; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.storageBytes_ = storageBytes_; + to_bitField1_ |= 0x00000004; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.storageBytesStatus_ = storageBytesStatus_; + to_bitField1_ |= 0x00000008; + } + if (((from_bitField1_ & 0x00000100) != 0)) { storageLocations_.makeImmutable(); result.storageLocations_ = storageLocations_; } @@ -4554,6 +4830,11 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Snapshot other) { if (other.hasParams()) { mergeParams(other.getParams()); } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00100000; + onChanged(); + } if (other.hasSatisfiesPzi()) { setSatisfiesPzi(other.getSatisfiesPzi()); } @@ -4562,20 +4843,30 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Snapshot other) { } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (other.hasSnapshotEncryptionKey()) { mergeSnapshotEncryptionKey(other.getSnapshotEncryptionKey()); } + if (other.hasSnapshotGroupId()) { + snapshotGroupId_ = other.snapshotGroupId_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.hasSnapshotGroupName()) { + snapshotGroupName_ = other.snapshotGroupName_; + bitField0_ |= 0x04000000; + onChanged(); + } if (other.hasSnapshotType()) { snapshotType_ = other.snapshotType_; - bitField0_ |= 0x01000000; + bitField0_ |= 0x08000000; onChanged(); } if (other.hasSourceDisk()) { sourceDisk_ = other.sourceDisk_; - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); } if (other.hasSourceDiskEncryptionKey()) { @@ -4583,17 +4874,17 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Snapshot other) { } if (other.hasSourceDiskForRecoveryCheckpoint()) { sourceDiskForRecoveryCheckpoint_ = other.sourceDiskForRecoveryCheckpoint_; - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; onChanged(); } if (other.hasSourceDiskId()) { sourceDiskId_ = other.sourceDiskId_; - bitField0_ |= 0x10000000; + bitField0_ |= 0x80000000; onChanged(); } if (other.hasSourceInstantSnapshot()) { sourceInstantSnapshot_ = other.sourceInstantSnapshot_; - bitField0_ |= 0x20000000; + bitField1_ |= 0x00000001; onChanged(); } if (other.hasSourceInstantSnapshotEncryptionKey()) { @@ -4601,22 +4892,22 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Snapshot other) { } if (other.hasSourceInstantSnapshotId()) { sourceInstantSnapshotId_ = other.sourceInstantSnapshotId_; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000004; onChanged(); } if (other.hasSourceSnapshotSchedulePolicy()) { sourceSnapshotSchedulePolicy_ = other.sourceSnapshotSchedulePolicy_; - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); } if (other.hasSourceSnapshotSchedulePolicyId()) { sourceSnapshotSchedulePolicyId_ = other.sourceSnapshotSchedulePolicyId_; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); } if (other.hasStatus()) { status_ = other.status_; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; onChanged(); } if (other.hasStorageBytes()) { @@ -4624,13 +4915,13 @@ public Builder mergeFrom(com.google.cloud.compute.v1.Snapshot other) { } if (other.hasStorageBytesStatus()) { storageBytesStatus_ = other.storageBytesStatus_; - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000080; onChanged(); } if (!other.storageLocations_.isEmpty()) { if (storageLocations_.isEmpty()) { storageLocations_ = other.storageLocations_; - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000100; } else { ensureStorageLocationsIsMutable(); storageLocations_.addAll(other.storageLocations_); @@ -4691,7 +4982,7 @@ public Builder mergeFrom( { input.readMessage( internalGetSnapshotEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 346676210 case 363861312: @@ -4721,7 +5012,7 @@ public Builder mergeFrom( case 563912378: { sourceSnapshotSchedulePolicyId_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; break; } // case 563912378 case 626510898: @@ -4752,7 +5043,7 @@ public Builder mergeFrom( case 994797226: { snapshotType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x08000000; break; } // case 994797226 case 1003200616: @@ -4761,6 +5052,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 1003200616 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 1111570338 case 1424998602: { labelFingerprint_ = input.readStringRequireUtf8(); @@ -4770,25 +5067,37 @@ public Builder mergeFrom( case 1450082194: { status_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; break; } // case 1450082194 case 1753616434: { sourceInstantSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; + bitField1_ |= 0x00000001; break; } // case 1753616434 case 1886050330: { sourceSnapshotSchedulePolicy_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; break; } // case 1886050330 + case 1969982770: + { + snapshotGroupName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 1969982770 + case 2040035250: + { + snapshotGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 2040035250 case -1994305630: { sourceInstantSnapshotId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000004; break; } // case -1994305630 case -1872541030: @@ -4826,7 +5135,7 @@ public Builder mergeFrom( case -1416263694: { sourceDiskForRecoveryCheckpoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; break; } // case -1416263694 case -1210560792: @@ -4844,7 +5153,7 @@ public Builder mergeFrom( case -897913544: { storageBytes_ = input.readInt64(); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000040; break; } // case -897913544 case -814534752: @@ -4858,25 +5167,25 @@ public Builder mergeFrom( input.readMessage( internalGetSourceInstantSnapshotEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000002; break; } // case -802678814 case -680936950: { sourceDisk_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; break; } // case -680936950 case -661440822: { sourceDiskId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x80000000; break; } // case -661440822 case -645248918: { selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case -645248918 case -583589184: @@ -4888,19 +5197,19 @@ public Builder mergeFrom( case -447253240: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case -447253240 case -447253160: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case -447253160 case -369054638: { storageBytesStatus_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000080; break; } // case -369054638 case -293404678: @@ -4920,7 +5229,7 @@ public Builder mergeFrom( input.readMessage( internalGetSourceDiskEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x20000000; break; } // case -42958070 default: @@ -7787,6 +8096,138 @@ public com.google.cloud.compute.v1.SnapshotParamsOrBuilder getParamsOrBuilder() return paramsBuilder_; } + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+     * for regional snapshots.
+     * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+     * for regional snapshots.
+     * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+     * for regional snapshots.
+     * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+     * for regional snapshots.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+     * for regional snapshots.
+     * 
+ * + * optional string region = 138946292; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+     * for regional snapshots.
+     * 
+ * + * optional string region = 138946292; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + private boolean satisfiesPzi_; /** @@ -7802,7 +8243,7 @@ public com.google.cloud.compute.v1.SnapshotParamsOrBuilder getParamsOrBuilder() */ @java.lang.Override public boolean hasSatisfiesPzi() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -7836,7 +8277,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7853,7 +8294,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); satisfiesPzi_ = false; onChanged(); return this; @@ -7874,7 +8315,7 @@ public Builder clearSatisfiesPzi() { */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -7908,7 +8349,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7925,7 +8366,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); satisfiesPzs_ = false; onChanged(); return this; @@ -7945,7 +8386,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -8011,7 +8452,7 @@ public Builder setSelfLink(java.lang.String value) { throw new NullPointerException(); } selfLink_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8029,7 +8470,7 @@ public Builder setSelfLink(java.lang.String value) { */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -8052,7 +8493,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); selfLink_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8091,7 +8532,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * @return Whether the snapshotEncryptionKey field is set. */ public boolean hasSnapshotEncryptionKey() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -8164,7 +8605,7 @@ public Builder setSnapshotEncryptionKey( } else { snapshotEncryptionKeyBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8200,7 +8641,7 @@ public Builder setSnapshotEncryptionKey( } else { snapshotEncryptionKeyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -8232,7 +8673,7 @@ public Builder setSnapshotEncryptionKey( public Builder mergeSnapshotEncryptionKey( com.google.cloud.compute.v1.CustomerEncryptionKey value) { if (snapshotEncryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x01000000) != 0) && snapshotEncryptionKey_ != null && snapshotEncryptionKey_ != com.google.cloud.compute.v1.CustomerEncryptionKey.getDefaultInstance()) { @@ -8244,7 +8685,7 @@ public Builder mergeSnapshotEncryptionKey( snapshotEncryptionKeyBuilder_.mergeFrom(value); } if (snapshotEncryptionKey_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -8262,134 +8703,398 @@ public Builder mergeSnapshotEncryptionKey( * provide the encryption key when you create a disk from the encrypted * snapshot in a future request. * - * Customer-supplied encryption keys do not protect access to metadata - * of the snapshot. + * Customer-supplied encryption keys do not protect access to metadata + * of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then + * the snapshot will be encrypted using an automatically generated key and you + * do not need to provide a key to use the snapshot later. + *
+ * + * + * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; + * + */ + public Builder clearSnapshotEncryptionKey() { + bitField0_ = (bitField0_ & ~0x01000000); + snapshotEncryptionKey_ = null; + if (snapshotEncryptionKeyBuilder_ != null) { + snapshotEncryptionKeyBuilder_.dispose(); + snapshotEncryptionKeyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Encrypts the snapshot using acustomer-supplied
+     * encryption key.
+     *
+     * After you encrypt a snapshot using a customer-supplied key, you must
+     * provide the same key if you use the snapshot later. For example, you must
+     * provide the encryption key when you create a disk from the encrypted
+     * snapshot in a future request.
+     *
+     * Customer-supplied encryption keys do not protect access to metadata
+     * of the snapshot.
+     *
+     * If you do not provide an encryption key when creating the snapshot, then
+     * the snapshot will be encrypted using an automatically generated key and you
+     * do not need to provide a key to use the snapshot later.
+     * 
+ * + * + * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; + * + */ + public com.google.cloud.compute.v1.CustomerEncryptionKey.Builder + getSnapshotEncryptionKeyBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return internalGetSnapshotEncryptionKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Encrypts the snapshot using acustomer-supplied
+     * encryption key.
+     *
+     * After you encrypt a snapshot using a customer-supplied key, you must
+     * provide the same key if you use the snapshot later. For example, you must
+     * provide the encryption key when you create a disk from the encrypted
+     * snapshot in a future request.
+     *
+     * Customer-supplied encryption keys do not protect access to metadata
+     * of the snapshot.
+     *
+     * If you do not provide an encryption key when creating the snapshot, then
+     * the snapshot will be encrypted using an automatically generated key and you
+     * do not need to provide a key to use the snapshot later.
+     * 
+ * + * + * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; + * + */ + public com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder + getSnapshotEncryptionKeyOrBuilder() { + if (snapshotEncryptionKeyBuilder_ != null) { + return snapshotEncryptionKeyBuilder_.getMessageOrBuilder(); + } else { + return snapshotEncryptionKey_ == null + ? com.google.cloud.compute.v1.CustomerEncryptionKey.getDefaultInstance() + : snapshotEncryptionKey_; + } + } + + /** + * + * + *
+     * Encrypts the snapshot using acustomer-supplied
+     * encryption key.
+     *
+     * After you encrypt a snapshot using a customer-supplied key, you must
+     * provide the same key if you use the snapshot later. For example, you must
+     * provide the encryption key when you create a disk from the encrypted
+     * snapshot in a future request.
+     *
+     * Customer-supplied encryption keys do not protect access to metadata
+     * of the snapshot.
+     *
+     * If you do not provide an encryption key when creating the snapshot, then
+     * the snapshot will be encrypted using an automatically generated key and you
+     * do not need to provide a key to use the snapshot later.
+     * 
+ * + * + * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.CustomerEncryptionKey, + com.google.cloud.compute.v1.CustomerEncryptionKey.Builder, + com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder> + internalGetSnapshotEncryptionKeyFieldBuilder() { + if (snapshotEncryptionKeyBuilder_ == null) { + snapshotEncryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.CustomerEncryptionKey, + com.google.cloud.compute.v1.CustomerEncryptionKey.Builder, + com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder>( + getSnapshotEncryptionKey(), getParentForChildren(), isClean()); + snapshotEncryptionKey_ = null; + } + return snapshotEncryptionKeyBuilder_; + } + + private java.lang.Object snapshotGroupId_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+     * belongs to. The usage of snapshot group feature is restricted.
+     * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return Whether the snapshotGroupId field is set. + */ + public boolean hasSnapshotGroupId() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+     * belongs to. The usage of snapshot group feature is restricted.
+     * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return The snapshotGroupId. + */ + public java.lang.String getSnapshotGroupId() { + java.lang.Object ref = snapshotGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+     * belongs to. The usage of snapshot group feature is restricted.
+     * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return The bytes for snapshotGroupId. + */ + public com.google.protobuf.ByteString getSnapshotGroupIdBytes() { + java.lang.Object ref = snapshotGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshotGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+     * belongs to. The usage of snapshot group feature is restricted.
+     * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @param value The snapshotGroupId to set. + * @return This builder for chaining. + */ + public Builder setSnapshotGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshotGroupId_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+     * belongs to. The usage of snapshot group feature is restricted.
+     * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return This builder for chaining. + */ + public Builder clearSnapshotGroupId() { + snapshotGroupId_ = getDefaultInstance().getSnapshotGroupId(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + + /** + * * - * If you do not provide an encryption key when creating the snapshot, then - * the snapshot will be encrypted using an automatically generated key and you - * do not need to provide a key to use the snapshot later. + *
+     * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+     * belongs to. The usage of snapshot group feature is restricted.
      * 
* - * - * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; - * + * optional string snapshot_group_id = 255004406; + * + * @param value The bytes for snapshotGroupId to set. + * @return This builder for chaining. */ - public Builder clearSnapshotEncryptionKey() { - bitField0_ = (bitField0_ & ~0x00800000); - snapshotEncryptionKey_ = null; - if (snapshotEncryptionKeyBuilder_ != null) { - snapshotEncryptionKeyBuilder_.dispose(); - snapshotEncryptionKeyBuilder_ = null; + public Builder setSnapshotGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + snapshotGroupId_ = value; + bitField0_ |= 0x02000000; onChanged(); return this; } + private java.lang.Object snapshotGroupName_ = ""; + /** * * *
-     * Encrypts the snapshot using acustomer-supplied
-     * encryption key.
+     * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+     * of snapshot group feature is restricted.
+     * 
* - * After you encrypt a snapshot using a customer-supplied key, you must - * provide the same key if you use the snapshot later. For example, you must - * provide the encryption key when you create a disk from the encrypted - * snapshot in a future request. + * optional string snapshot_group_name = 246247846; * - * Customer-supplied encryption keys do not protect access to metadata - * of the snapshot. + * @return Whether the snapshotGroupName field is set. + */ + public boolean hasSnapshotGroupName() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** * - * If you do not provide an encryption key when creating the snapshot, then - * the snapshot will be encrypted using an automatically generated key and you - * do not need to provide a key to use the snapshot later. + * + *
+     * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+     * of snapshot group feature is restricted.
      * 
* - * - * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; - * + * optional string snapshot_group_name = 246247846; + * + * @return The snapshotGroupName. */ - public com.google.cloud.compute.v1.CustomerEncryptionKey.Builder - getSnapshotEncryptionKeyBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return internalGetSnapshotEncryptionKeyFieldBuilder().getBuilder(); + public java.lang.String getSnapshotGroupName() { + java.lang.Object ref = snapshotGroupName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotGroupName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Encrypts the snapshot using acustomer-supplied
-     * encryption key.
+     * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+     * of snapshot group feature is restricted.
+     * 
* - * After you encrypt a snapshot using a customer-supplied key, you must - * provide the same key if you use the snapshot later. For example, you must - * provide the encryption key when you create a disk from the encrypted - * snapshot in a future request. + * optional string snapshot_group_name = 246247846; * - * Customer-supplied encryption keys do not protect access to metadata - * of the snapshot. + * @return The bytes for snapshotGroupName. + */ + public com.google.protobuf.ByteString getSnapshotGroupNameBytes() { + java.lang.Object ref = snapshotGroupName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshotGroupName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** * - * If you do not provide an encryption key when creating the snapshot, then - * the snapshot will be encrypted using an automatically generated key and you - * do not need to provide a key to use the snapshot later. + * + *
+     * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+     * of snapshot group feature is restricted.
      * 
* - * - * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; - * + * optional string snapshot_group_name = 246247846; + * + * @param value The snapshotGroupName to set. + * @return This builder for chaining. */ - public com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder - getSnapshotEncryptionKeyOrBuilder() { - if (snapshotEncryptionKeyBuilder_ != null) { - return snapshotEncryptionKeyBuilder_.getMessageOrBuilder(); - } else { - return snapshotEncryptionKey_ == null - ? com.google.cloud.compute.v1.CustomerEncryptionKey.getDefaultInstance() - : snapshotEncryptionKey_; + public Builder setSnapshotGroupName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + snapshotGroupName_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; } /** * * *
-     * Encrypts the snapshot using acustomer-supplied
-     * encryption key.
+     * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+     * of snapshot group feature is restricted.
+     * 
* - * After you encrypt a snapshot using a customer-supplied key, you must - * provide the same key if you use the snapshot later. For example, you must - * provide the encryption key when you create a disk from the encrypted - * snapshot in a future request. + * optional string snapshot_group_name = 246247846; * - * Customer-supplied encryption keys do not protect access to metadata - * of the snapshot. + * @return This builder for chaining. + */ + public Builder clearSnapshotGroupName() { + snapshotGroupName_ = getDefaultInstance().getSnapshotGroupName(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + return this; + } + + /** * - * If you do not provide an encryption key when creating the snapshot, then - * the snapshot will be encrypted using an automatically generated key and you - * do not need to provide a key to use the snapshot later. + * + *
+     * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+     * of snapshot group feature is restricted.
      * 
* - * - * optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; - * + * optional string snapshot_group_name = 246247846; + * + * @param value The bytes for snapshotGroupName to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.compute.v1.CustomerEncryptionKey, - com.google.cloud.compute.v1.CustomerEncryptionKey.Builder, - com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder> - internalGetSnapshotEncryptionKeyFieldBuilder() { - if (snapshotEncryptionKeyBuilder_ == null) { - snapshotEncryptionKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.compute.v1.CustomerEncryptionKey, - com.google.cloud.compute.v1.CustomerEncryptionKey.Builder, - com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder>( - getSnapshotEncryptionKey(), getParentForChildren(), isClean()); - snapshotEncryptionKey_ = null; + public Builder setSnapshotGroupNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return snapshotEncryptionKeyBuilder_; + checkByteStringIsUtf8(value); + snapshotGroupName_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; } private java.lang.Object snapshotType_ = ""; @@ -8407,7 +9112,7 @@ public Builder clearSnapshotEncryptionKey() { * @return Whether the snapshotType field is set. */ public boolean hasSnapshotType() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -8476,7 +9181,7 @@ public Builder setSnapshotType(java.lang.String value) { throw new NullPointerException(); } snapshotType_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -8495,7 +9200,7 @@ public Builder setSnapshotType(java.lang.String value) { */ public Builder clearSnapshotType() { snapshotType_ = getDefaultInstance().getSnapshotType(); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } @@ -8519,7 +9224,7 @@ public Builder setSnapshotTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); snapshotType_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -8538,7 +9243,7 @@ public Builder setSnapshotTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the sourceDisk field is set. */ public boolean hasSourceDisk() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -8604,7 +9309,7 @@ public Builder setSourceDisk(java.lang.String value) { throw new NullPointerException(); } sourceDisk_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -8622,7 +9327,7 @@ public Builder setSourceDisk(java.lang.String value) { */ public Builder clearSourceDisk() { sourceDisk_ = getDefaultInstance().getSourceDisk(); - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } @@ -8645,7 +9350,7 @@ public Builder setSourceDiskBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); sourceDisk_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -8673,7 +9378,7 @@ public Builder setSourceDiskBytes(com.google.protobuf.ByteString value) { * @return Whether the sourceDiskEncryptionKey field is set. */ public boolean hasSourceDiskEncryptionKey() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -8724,7 +9429,7 @@ public Builder setSourceDiskEncryptionKey( } else { sourceDiskEncryptionKeyBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8749,7 +9454,7 @@ public Builder setSourceDiskEncryptionKey( } else { sourceDiskEncryptionKeyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8770,7 +9475,7 @@ public Builder setSourceDiskEncryptionKey( public Builder mergeSourceDiskEncryptionKey( com.google.cloud.compute.v1.CustomerEncryptionKey value) { if (sourceDiskEncryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && sourceDiskEncryptionKey_ != null && sourceDiskEncryptionKey_ != com.google.cloud.compute.v1.CustomerEncryptionKey.getDefaultInstance()) { @@ -8782,7 +9487,7 @@ public Builder mergeSourceDiskEncryptionKey( sourceDiskEncryptionKeyBuilder_.mergeFrom(value); } if (sourceDiskEncryptionKey_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -8802,7 +9507,7 @@ public Builder mergeSourceDiskEncryptionKey( * */ public Builder clearSourceDiskEncryptionKey() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x20000000); sourceDiskEncryptionKey_ = null; if (sourceDiskEncryptionKeyBuilder_ != null) { sourceDiskEncryptionKeyBuilder_.dispose(); @@ -8827,7 +9532,7 @@ public Builder clearSourceDiskEncryptionKey() { */ public com.google.cloud.compute.v1.CustomerEncryptionKey.Builder getSourceDiskEncryptionKeyBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetSourceDiskEncryptionKeyFieldBuilder().getBuilder(); } @@ -8901,7 +9606,7 @@ public Builder clearSourceDiskEncryptionKey() { * @return Whether the sourceDiskForRecoveryCheckpoint field is set. */ public boolean hasSourceDiskForRecoveryCheckpoint() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -8970,7 +9675,7 @@ public Builder setSourceDiskForRecoveryCheckpoint(java.lang.String value) { throw new NullPointerException(); } sourceDiskForRecoveryCheckpoint_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -8989,7 +9694,7 @@ public Builder setSourceDiskForRecoveryCheckpoint(java.lang.String value) { */ public Builder clearSourceDiskForRecoveryCheckpoint() { sourceDiskForRecoveryCheckpoint_ = getDefaultInstance().getSourceDiskForRecoveryCheckpoint(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -9013,7 +9718,7 @@ public Builder setSourceDiskForRecoveryCheckpointBytes(com.google.protobuf.ByteS } checkByteStringIsUtf8(value); sourceDiskForRecoveryCheckpoint_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -9034,7 +9739,7 @@ public Builder setSourceDiskForRecoveryCheckpointBytes(com.google.protobuf.ByteS * @return Whether the sourceDiskId field is set. */ public boolean hasSourceDiskId() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** @@ -9106,7 +9811,7 @@ public Builder setSourceDiskId(java.lang.String value) { throw new NullPointerException(); } sourceDiskId_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -9126,7 +9831,7 @@ public Builder setSourceDiskId(java.lang.String value) { */ public Builder clearSourceDiskId() { sourceDiskId_ = getDefaultInstance().getSourceDiskId(); - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } @@ -9151,7 +9856,7 @@ public Builder setSourceDiskIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); sourceDiskId_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -9177,7 +9882,7 @@ public Builder setSourceDiskIdBytes(com.google.protobuf.ByteString value) { * @return Whether the sourceInstantSnapshot field is set. */ public boolean hasSourceInstantSnapshot() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -9264,7 +9969,7 @@ public Builder setSourceInstantSnapshot(java.lang.String value) { throw new NullPointerException(); } sourceInstantSnapshot_ = value; - bitField0_ |= 0x20000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -9289,7 +9994,7 @@ public Builder setSourceInstantSnapshot(java.lang.String value) { */ public Builder clearSourceInstantSnapshot() { sourceInstantSnapshot_ = getDefaultInstance().getSourceInstantSnapshot(); - bitField0_ = (bitField0_ & ~0x20000000); + bitField1_ = (bitField1_ & ~0x00000001); onChanged(); return this; } @@ -9319,7 +10024,7 @@ public Builder setSourceInstantSnapshotBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); sourceInstantSnapshot_ = value; - bitField0_ |= 0x20000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -9346,7 +10051,7 @@ public Builder setSourceInstantSnapshotBytes(com.google.protobuf.ByteString valu * @return Whether the sourceInstantSnapshotEncryptionKey field is set. */ public boolean hasSourceInstantSnapshotEncryptionKey() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -9396,7 +10101,7 @@ public Builder setSourceInstantSnapshotEncryptionKey( } else { sourceInstantSnapshotEncryptionKeyBuilder_.setMessage(value); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -9420,7 +10125,7 @@ public Builder setSourceInstantSnapshotEncryptionKey( } else { sourceInstantSnapshotEncryptionKeyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -9440,7 +10145,7 @@ public Builder setSourceInstantSnapshotEncryptionKey( public Builder mergeSourceInstantSnapshotEncryptionKey( com.google.cloud.compute.v1.CustomerEncryptionKey value) { if (sourceInstantSnapshotEncryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) + if (((bitField1_ & 0x00000002) != 0) && sourceInstantSnapshotEncryptionKey_ != null && sourceInstantSnapshotEncryptionKey_ != com.google.cloud.compute.v1.CustomerEncryptionKey.getDefaultInstance()) { @@ -9452,7 +10157,7 @@ public Builder mergeSourceInstantSnapshotEncryptionKey( sourceInstantSnapshotEncryptionKeyBuilder_.mergeFrom(value); } if (sourceInstantSnapshotEncryptionKey_ != null) { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000002; onChanged(); } return this; @@ -9471,7 +10176,7 @@ public Builder mergeSourceInstantSnapshotEncryptionKey( * */ public Builder clearSourceInstantSnapshotEncryptionKey() { - bitField0_ = (bitField0_ & ~0x40000000); + bitField1_ = (bitField1_ & ~0x00000002); sourceInstantSnapshotEncryptionKey_ = null; if (sourceInstantSnapshotEncryptionKeyBuilder_ != null) { sourceInstantSnapshotEncryptionKeyBuilder_.dispose(); @@ -9495,7 +10200,7 @@ public Builder clearSourceInstantSnapshotEncryptionKey() { */ public com.google.cloud.compute.v1.CustomerEncryptionKey.Builder getSourceInstantSnapshotEncryptionKeyBuilder() { - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000002; onChanged(); return internalGetSourceInstantSnapshotEncryptionKeyFieldBuilder().getBuilder(); } @@ -9571,7 +10276,7 @@ public Builder clearSourceInstantSnapshotEncryptionKey() { * @return Whether the sourceInstantSnapshotId field is set. */ public boolean hasSourceInstantSnapshotId() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** @@ -9652,7 +10357,7 @@ public Builder setSourceInstantSnapshotId(java.lang.String value) { throw new NullPointerException(); } sourceInstantSnapshotId_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -9675,7 +10380,7 @@ public Builder setSourceInstantSnapshotId(java.lang.String value) { */ public Builder clearSourceInstantSnapshotId() { sourceInstantSnapshotId_ = getDefaultInstance().getSourceInstantSnapshotId(); - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } @@ -9703,7 +10408,7 @@ public Builder setSourceInstantSnapshotIdBytes(com.google.protobuf.ByteString va } checkByteStringIsUtf8(value); sourceInstantSnapshotId_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -9723,7 +10428,7 @@ public Builder setSourceInstantSnapshotIdBytes(com.google.protobuf.ByteString va * @return Whether the sourceSnapshotSchedulePolicy field is set. */ public boolean hasSourceSnapshotSchedulePolicy() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -9792,7 +10497,7 @@ public Builder setSourceSnapshotSchedulePolicy(java.lang.String value) { throw new NullPointerException(); } sourceSnapshotSchedulePolicy_ = value; - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -9811,7 +10516,7 @@ public Builder setSourceSnapshotSchedulePolicy(java.lang.String value) { */ public Builder clearSourceSnapshotSchedulePolicy() { sourceSnapshotSchedulePolicy_ = getDefaultInstance().getSourceSnapshotSchedulePolicy(); - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } @@ -9835,7 +10540,7 @@ public Builder setSourceSnapshotSchedulePolicyBytes(com.google.protobuf.ByteStri } checkByteStringIsUtf8(value); sourceSnapshotSchedulePolicy_ = value; - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -9855,7 +10560,7 @@ public Builder setSourceSnapshotSchedulePolicyBytes(com.google.protobuf.ByteStri * @return Whether the sourceSnapshotSchedulePolicyId field is set. */ public boolean hasSourceSnapshotSchedulePolicyId() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000010) != 0); } /** @@ -9924,7 +10629,7 @@ public Builder setSourceSnapshotSchedulePolicyId(java.lang.String value) { throw new NullPointerException(); } sourceSnapshotSchedulePolicyId_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -9943,7 +10648,7 @@ public Builder setSourceSnapshotSchedulePolicyId(java.lang.String value) { */ public Builder clearSourceSnapshotSchedulePolicyId() { sourceSnapshotSchedulePolicyId_ = getDefaultInstance().getSourceSnapshotSchedulePolicyId(); - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000010); onChanged(); return this; } @@ -9967,7 +10672,7 @@ public Builder setSourceSnapshotSchedulePolicyIdBytes(com.google.protobuf.ByteSt } checkByteStringIsUtf8(value); sourceSnapshotSchedulePolicyId_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -9987,7 +10692,7 @@ public Builder setSourceSnapshotSchedulePolicyIdBytes(com.google.protobuf.ByteSt * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000020) != 0); } /** @@ -10056,7 +10761,7 @@ public Builder setStatus(java.lang.String value) { throw new NullPointerException(); } status_ = value; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -10075,7 +10780,7 @@ public Builder setStatus(java.lang.String value) { */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000020); onChanged(); return this; } @@ -10099,7 +10804,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); status_ = value; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -10121,7 +10826,7 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasStorageBytes() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** @@ -10159,7 +10864,7 @@ public long getStorageBytes() { public Builder setStorageBytes(long value) { storageBytes_ = value; - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -10178,7 +10883,7 @@ public Builder setStorageBytes(long value) { * @return This builder for chaining. */ public Builder clearStorageBytes() { - bitField1_ = (bitField1_ & ~0x00000008); + bitField1_ = (bitField1_ & ~0x00000040); storageBytes_ = 0L; onChanged(); return this; @@ -10203,7 +10908,7 @@ public Builder clearStorageBytes() { * @return Whether the storageBytesStatus field is set. */ public boolean hasStorageBytesStatus() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** @@ -10284,7 +10989,7 @@ public Builder setStorageBytesStatus(java.lang.String value) { throw new NullPointerException(); } storageBytesStatus_ = value; - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -10307,7 +11012,7 @@ public Builder setStorageBytesStatus(java.lang.String value) { */ public Builder clearStorageBytesStatus() { storageBytesStatus_ = getDefaultInstance().getStorageBytesStatus(); - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000080); onChanged(); return this; } @@ -10335,7 +11040,7 @@ public Builder setStorageBytesStatusBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); storageBytesStatus_ = value; - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -10347,7 +11052,7 @@ private void ensureStorageLocationsIsMutable() { if (!storageLocations_.isModifiable()) { storageLocations_ = new com.google.protobuf.LazyStringArrayList(storageLocations_); } - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000100; } /** @@ -10437,7 +11142,7 @@ public Builder setStorageLocations(int index, java.lang.String value) { } ensureStorageLocationsIsMutable(); storageLocations_.set(index, value); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -10461,7 +11166,7 @@ public Builder addStorageLocations(java.lang.String value) { } ensureStorageLocationsIsMutable(); storageLocations_.add(value); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -10482,7 +11187,7 @@ public Builder addStorageLocations(java.lang.String value) { public Builder addAllStorageLocations(java.lang.Iterable values) { ensureStorageLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storageLocations_); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -10501,7 +11206,7 @@ public Builder addAllStorageLocations(java.lang.Iterable value */ public Builder clearStorageLocations() { storageLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00000020); + bitField1_ = (bitField1_ & ~0x00000100); ; onChanged(); return this; @@ -10527,7 +11232,7 @@ public Builder addStorageLocationsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureStorageLocationsIsMutable(); storageLocations_.add(value); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000100; onChanged(); return this; } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParameters.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParameters.java new file mode 100644 index 000000000000..78ddffc26a71 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParameters.java @@ -0,0 +1,1245 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SnapshotGroupParameters} + */ +@com.google.protobuf.Generated +public final class SnapshotGroupParameters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SnapshotGroupParameters) + SnapshotGroupParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SnapshotGroupParameters"); + } + + // Use SnapshotGroupParameters.newBuilder() to construct. + private SnapshotGroupParameters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnapshotGroupParameters() { + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sourceSnapshotGroup_ = ""; + type_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotGroupParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotGroupParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotGroupParameters.class, + com.google.cloud.compute.v1.SnapshotGroupParameters.Builder.class); + } + + private int bitField0_; + public static final int REPLICA_ZONES_FIELD_NUMBER = 48438272; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList replicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @return A list containing the replicaZones. + */ + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + return replicaZones_; + } + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @return The count of replicaZones. + */ + public int getReplicaZonesCount() { + return replicaZones_.size(); + } + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index of the element to return. + * @return The replicaZones at the given index. + */ + public java.lang.String getReplicaZones(int index) { + return replicaZones_.get(index); + } + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index of the value to return. + * @return The bytes of the replicaZones at the given index. + */ + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + return replicaZones_.getByteString(index); + } + + public static final int SOURCE_SNAPSHOT_GROUP_FIELD_NUMBER = 225130728; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceSnapshotGroup_ = ""; + + /** + * + * + *
+   * The source snapshot group used to create disks. You can provide this as a
+   * partial or full URL to the resource. For example, the following are valid
+   * values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+   * - projects/project/global/snapshotGroups/snapshotGroup
+   * - global/snapshotGroups/snapshotGroup
+   * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return Whether the sourceSnapshotGroup field is set. + */ + @java.lang.Override + public boolean hasSourceSnapshotGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The source snapshot group used to create disks. You can provide this as a
+   * partial or full URL to the resource. For example, the following are valid
+   * values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+   * - projects/project/global/snapshotGroups/snapshotGroup
+   * - global/snapshotGroups/snapshotGroup
+   * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return The sourceSnapshotGroup. + */ + @java.lang.Override + public java.lang.String getSourceSnapshotGroup() { + java.lang.Object ref = sourceSnapshotGroup_; + 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(); + sourceSnapshotGroup_ = s; + return s; + } + } + + /** + * + * + *
+   * The source snapshot group used to create disks. You can provide this as a
+   * partial or full URL to the resource. For example, the following are valid
+   * values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+   * - projects/project/global/snapshotGroups/snapshotGroup
+   * - global/snapshotGroups/snapshotGroup
+   * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return The bytes for sourceSnapshotGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceSnapshotGroupBytes() { + java.lang.Object ref = sourceSnapshotGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3575610; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+   * URL of the disk type resource describing which disk type to use to create
+   * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+   * types.
+   * 
+ * + * optional string type = 3575610; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * URL of the disk type resource describing which disk type to use to create
+   * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+   * types.
+   * 
+ * + * optional string type = 3575610; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + + /** + * + * + *
+   * URL of the disk type resource describing which disk type to use to create
+   * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+   * types.
+   * 
+ * + * optional string type = 3575610; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3575610, type_); + } + for (int i = 0; i < replicaZones_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 48438272, replicaZones_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 225130728, sourceSnapshotGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3575610, type_); + } + { + int dataSize = 0; + for (int i = 0; i < replicaZones_.size(); i++) { + dataSize += computeStringSizeNoTag(replicaZones_.getRaw(i)); + } + size += dataSize; + size += 5 * getReplicaZonesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(225130728, sourceSnapshotGroup_); + } + 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.compute.v1.SnapshotGroupParameters)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SnapshotGroupParameters other = + (com.google.cloud.compute.v1.SnapshotGroupParameters) obj; + + if (!getReplicaZonesList().equals(other.getReplicaZonesList())) return false; + if (hasSourceSnapshotGroup() != other.hasSourceSnapshotGroup()) return false; + if (hasSourceSnapshotGroup()) { + if (!getSourceSnapshotGroup().equals(other.getSourceSnapshotGroup())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) 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 (getReplicaZonesCount() > 0) { + hash = (37 * hash) + REPLICA_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getReplicaZonesList().hashCode(); + } + if (hasSourceSnapshotGroup()) { + hash = (37 * hash) + SOURCE_SNAPSHOT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceSnapshotGroup().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters 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.compute.v1.SnapshotGroupParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SnapshotGroupParameters 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SnapshotGroupParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SnapshotGroupParameters) + com.google.cloud.compute.v1.SnapshotGroupParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotGroupParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotGroupParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotGroupParameters.class, + com.google.cloud.compute.v1.SnapshotGroupParameters.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.SnapshotGroupParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + sourceSnapshotGroup_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotGroupParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotGroupParameters getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotGroupParameters build() { + com.google.cloud.compute.v1.SnapshotGroupParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotGroupParameters buildPartial() { + com.google.cloud.compute.v1.SnapshotGroupParameters result = + new com.google.cloud.compute.v1.SnapshotGroupParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.SnapshotGroupParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + replicaZones_.makeImmutable(); + result.replicaZones_ = replicaZones_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceSnapshotGroup_ = sourceSnapshotGroup_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SnapshotGroupParameters) { + return mergeFrom((com.google.cloud.compute.v1.SnapshotGroupParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.SnapshotGroupParameters other) { + if (other == com.google.cloud.compute.v1.SnapshotGroupParameters.getDefaultInstance()) + return this; + if (!other.replicaZones_.isEmpty()) { + if (replicaZones_.isEmpty()) { + replicaZones_ = other.replicaZones_; + bitField0_ |= 0x00000001; + } else { + ensureReplicaZonesIsMutable(); + replicaZones_.addAll(other.replicaZones_); + } + onChanged(); + } + if (other.hasSourceSnapshotGroup()) { + sourceSnapshotGroup_ = other.sourceSnapshotGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasType()) { + type_ = other.type_; + 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 28604882: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 28604882 + case 387506178: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReplicaZonesIsMutable(); + replicaZones_.add(s); + break; + } // case 387506178 + case 1801045826: + { + sourceSnapshotGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1801045826 + 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.LazyStringArrayList replicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReplicaZonesIsMutable() { + if (!replicaZones_.isModifiable()) { + replicaZones_ = new com.google.protobuf.LazyStringArrayList(replicaZones_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @return A list containing the replicaZones. + */ + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + replicaZones_.makeImmutable(); + return replicaZones_; + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @return The count of replicaZones. + */ + public int getReplicaZonesCount() { + return replicaZones_.size(); + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index of the element to return. + * @return The replicaZones at the given index. + */ + public java.lang.String getReplicaZones(int index) { + return replicaZones_.get(index); + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index of the value to return. + * @return The bytes of the replicaZones at the given index. + */ + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + return replicaZones_.getByteString(index); + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index to set the value at. + * @param value The replicaZones to set. + * @return This builder for chaining. + */ + public Builder setReplicaZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicaZonesIsMutable(); + replicaZones_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @param value The replicaZones to add. + * @return This builder for chaining. + */ + public Builder addReplicaZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicaZonesIsMutable(); + replicaZones_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @param values The replicaZones to add. + * @return This builder for chaining. + */ + public Builder addAllReplicaZones(java.lang.Iterable values) { + ensureReplicaZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaZones_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @return This builder for chaining. + */ + public Builder clearReplicaZones() { + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * URLs of the zones where disks should be replicated to. Only applicable
+     * for regional resources.
+     * 
+ * + * repeated string replica_zones = 48438272; + * + * @param value The bytes of the replicaZones to add. + * @return This builder for chaining. + */ + public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReplicaZonesIsMutable(); + replicaZones_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceSnapshotGroup_ = ""; + + /** + * + * + *
+     * The source snapshot group used to create disks. You can provide this as a
+     * partial or full URL to the resource. For example, the following are valid
+     * values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+     * - projects/project/global/snapshotGroups/snapshotGroup
+     * - global/snapshotGroups/snapshotGroup
+     * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return Whether the sourceSnapshotGroup field is set. + */ + public boolean hasSourceSnapshotGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The source snapshot group used to create disks. You can provide this as a
+     * partial or full URL to the resource. For example, the following are valid
+     * values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+     * - projects/project/global/snapshotGroups/snapshotGroup
+     * - global/snapshotGroups/snapshotGroup
+     * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return The sourceSnapshotGroup. + */ + public java.lang.String getSourceSnapshotGroup() { + java.lang.Object ref = sourceSnapshotGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSnapshotGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The source snapshot group used to create disks. You can provide this as a
+     * partial or full URL to the resource. For example, the following are valid
+     * values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+     * - projects/project/global/snapshotGroups/snapshotGroup
+     * - global/snapshotGroups/snapshotGroup
+     * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return The bytes for sourceSnapshotGroup. + */ + public com.google.protobuf.ByteString getSourceSnapshotGroupBytes() { + java.lang.Object ref = sourceSnapshotGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSnapshotGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The source snapshot group used to create disks. You can provide this as a
+     * partial or full URL to the resource. For example, the following are valid
+     * values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+     * - projects/project/global/snapshotGroups/snapshotGroup
+     * - global/snapshotGroups/snapshotGroup
+     * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @param value The sourceSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceSnapshotGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceSnapshotGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The source snapshot group used to create disks. You can provide this as a
+     * partial or full URL to the resource. For example, the following are valid
+     * values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+     * - projects/project/global/snapshotGroups/snapshotGroup
+     * - global/snapshotGroups/snapshotGroup
+     * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return This builder for chaining. + */ + public Builder clearSourceSnapshotGroup() { + sourceSnapshotGroup_ = getDefaultInstance().getSourceSnapshotGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The source snapshot group used to create disks. You can provide this as a
+     * partial or full URL to the resource. For example, the following are valid
+     * values:
+     *
+     *
+     * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+     * - projects/project/global/snapshotGroups/snapshotGroup
+     * - global/snapshotGroups/snapshotGroup
+     * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @param value The bytes for sourceSnapshotGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceSnapshotGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceSnapshotGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+     * URL of the disk type resource describing which disk type to use to create
+     * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+     * types.
+     * 
+ * + * optional string type = 3575610; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * URL of the disk type resource describing which disk type to use to create
+     * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+     * types.
+     * 
+ * + * optional string type = 3575610; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * URL of the disk type resource describing which disk type to use to create
+     * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+     * types.
+     * 
+ * + * optional string type = 3575610; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * URL of the disk type resource describing which disk type to use to create
+     * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+     * types.
+     * 
+ * + * optional string type = 3575610; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * URL of the disk type resource describing which disk type to use to create
+     * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+     * types.
+     * 
+ * + * optional string type = 3575610; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * URL of the disk type resource describing which disk type to use to create
+     * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+     * types.
+     * 
+ * + * optional string type = 3575610; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SnapshotGroupParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SnapshotGroupParameters) + private static final com.google.cloud.compute.v1.SnapshotGroupParameters DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SnapshotGroupParameters(); + } + + public static com.google.cloud.compute.v1.SnapshotGroupParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotGroupParameters 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.compute.v1.SnapshotGroupParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParametersOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParametersOrBuilder.java new file mode 100644 index 000000000000..26de7106daa2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotGroupParametersOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SnapshotGroupParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SnapshotGroupParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @return A list containing the replicaZones. + */ + java.util.List getReplicaZonesList(); + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @return The count of replicaZones. + */ + int getReplicaZonesCount(); + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index of the element to return. + * @return The replicaZones at the given index. + */ + java.lang.String getReplicaZones(int index); + + /** + * + * + *
+   * URLs of the zones where disks should be replicated to. Only applicable
+   * for regional resources.
+   * 
+ * + * repeated string replica_zones = 48438272; + * + * @param index The index of the value to return. + * @return The bytes of the replicaZones at the given index. + */ + com.google.protobuf.ByteString getReplicaZonesBytes(int index); + + /** + * + * + *
+   * The source snapshot group used to create disks. You can provide this as a
+   * partial or full URL to the resource. For example, the following are valid
+   * values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+   * - projects/project/global/snapshotGroups/snapshotGroup
+   * - global/snapshotGroups/snapshotGroup
+   * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return Whether the sourceSnapshotGroup field is set. + */ + boolean hasSourceSnapshotGroup(); + + /** + * + * + *
+   * The source snapshot group used to create disks. You can provide this as a
+   * partial or full URL to the resource. For example, the following are valid
+   * values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+   * - projects/project/global/snapshotGroups/snapshotGroup
+   * - global/snapshotGroups/snapshotGroup
+   * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return The sourceSnapshotGroup. + */ + java.lang.String getSourceSnapshotGroup(); + + /** + * + * + *
+   * The source snapshot group used to create disks. You can provide this as a
+   * partial or full URL to the resource. For example, the following are valid
+   * values:
+   *
+   *
+   * - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
+   * - projects/project/global/snapshotGroups/snapshotGroup
+   * - global/snapshotGroups/snapshotGroup
+   * 
+ * + * optional string source_snapshot_group = 225130728; + * + * @return The bytes for sourceSnapshotGroup. + */ + com.google.protobuf.ByteString getSourceSnapshotGroupBytes(); + + /** + * + * + *
+   * URL of the disk type resource describing which disk type to use to create
+   * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+   * types.
+   * 
+ * + * optional string type = 3575610; + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
+   * URL of the disk type resource describing which disk type to use to create
+   * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+   * types.
+   * 
+ * + * optional string type = 3575610; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+   * URL of the disk type resource describing which disk type to use to create
+   * disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
+   * types.
+   * 
+ * + * optional string type = 3575610; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotOrBuilder.java index 072fcdc2fe7b..65b2f3317949 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotOrBuilder.java @@ -895,6 +895,48 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.compute.v1.SnapshotParamsOrBuilder getParamsOrBuilder(); + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+   * for regional snapshots.
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+   * for regional snapshots.
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
+   * for regional snapshots.
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + /** * * @@ -1068,6 +1110,90 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.compute.v1.CustomerEncryptionKeyOrBuilder getSnapshotEncryptionKeyOrBuilder(); + /** + * + * + *
+   * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+   * belongs to. The usage of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return Whether the snapshotGroupId field is set. + */ + boolean hasSnapshotGroupId(); + + /** + * + * + *
+   * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+   * belongs to. The usage of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return The snapshotGroupId. + */ + java.lang.String getSnapshotGroupId(); + + /** + * + * + *
+   * Output only. [Output Only] The unique ID of the snapshot group that this snapshot
+   * belongs to. The usage of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_id = 255004406; + * + * @return The bytes for snapshotGroupId. + */ + com.google.protobuf.ByteString getSnapshotGroupIdBytes(); + + /** + * + * + *
+   * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+   * of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_name = 246247846; + * + * @return Whether the snapshotGroupName field is set. + */ + boolean hasSnapshotGroupName(); + + /** + * + * + *
+   * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+   * of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_name = 246247846; + * + * @return The snapshotGroupName. + */ + java.lang.String getSnapshotGroupName(); + + /** + * + * + *
+   * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
+   * of snapshot group feature is restricted.
+   * 
+ * + * optional string snapshot_group_name = 246247846; + * + * @return The bytes for snapshotGroupName. + */ + com.google.protobuf.ByteString getSnapshotGroupNameBytes(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java index 1bf74e752bd4..7bcfb8730b2d 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java @@ -68,6 +68,69 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int ACCESS_LOCATION_FIELD_NUMBER = 18410544; + private com.google.cloud.compute.v1.SnapshotSettingsAccessLocation accessLocation_; + + /** + * + * + *
+   * (Regional snapshots use only)Policy of which location is allowed to access
+   * snapshot.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + * + * @return Whether the accessLocation field is set. + */ + @java.lang.Override + public boolean hasAccessLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * (Regional snapshots use only)Policy of which location is allowed to access
+   * snapshot.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + * + * @return The accessLocation. + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocation getAccessLocation() { + return accessLocation_ == null + ? com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDefaultInstance() + : accessLocation_; + } + + /** + * + * + *
+   * (Regional snapshots use only)Policy of which location is allowed to access
+   * snapshot.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder + getAccessLocationOrBuilder() { + return accessLocation_ == null + ? com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDefaultInstance() + : accessLocation_; + } + public static final int STORAGE_LOCATION_FIELD_NUMBER = 460859641; private com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storageLocation_; @@ -87,7 +150,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasStorageLocation() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -146,6 +209,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(18410544, getAccessLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(460859641, getStorageLocation()); } getUnknownFields().writeTo(output); @@ -158,6 +224,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(18410544, getAccessLocation()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(460859641, getStorageLocation()); } @@ -177,6 +247,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.compute.v1.SnapshotSettings other = (com.google.cloud.compute.v1.SnapshotSettings) obj; + if (hasAccessLocation() != other.hasAccessLocation()) return false; + if (hasAccessLocation()) { + if (!getAccessLocation().equals(other.getAccessLocation())) return false; + } if (hasStorageLocation() != other.hasStorageLocation()) return false; if (hasStorageLocation()) { if (!getStorageLocation().equals(other.getStorageLocation())) return false; @@ -192,6 +266,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAccessLocation()) { + hash = (37 * hash) + ACCESS_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getAccessLocation().hashCode(); + } if (hasStorageLocation()) { hash = (37 * hash) + STORAGE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getStorageLocation().hashCode(); @@ -336,6 +414,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAccessLocationFieldBuilder(); internalGetStorageLocationFieldBuilder(); } } @@ -344,6 +423,11 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + accessLocation_ = null; + if (accessLocationBuilder_ != null) { + accessLocationBuilder_.dispose(); + accessLocationBuilder_ = null; + } storageLocation_ = null; if (storageLocationBuilder_ != null) { storageLocationBuilder_.dispose(); @@ -387,9 +471,14 @@ private void buildPartial0(com.google.cloud.compute.v1.SnapshotSettings result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessLocation_ = + accessLocationBuilder_ == null ? accessLocation_ : accessLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { result.storageLocation_ = storageLocationBuilder_ == null ? storageLocation_ : storageLocationBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -406,6 +495,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.compute.v1.SnapshotSettings other) { if (other == com.google.cloud.compute.v1.SnapshotSettings.getDefaultInstance()) return this; + if (other.hasAccessLocation()) { + mergeAccessLocation(other.getAccessLocation()); + } if (other.hasStorageLocation()) { mergeStorageLocation(other.getStorageLocation()); } @@ -435,11 +527,18 @@ public Builder mergeFrom( case 0: done = true; break; + case 147284354: + { + input.readMessage( + internalGetAccessLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 147284354 case -608090166: { input.readMessage( internalGetStorageLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case -608090166 default: @@ -461,6 +560,234 @@ public Builder mergeFrom( private int bitField0_; + private com.google.cloud.compute.v1.SnapshotSettingsAccessLocation accessLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder> + accessLocationBuilder_; + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + * + * @return Whether the accessLocation field is set. + */ + public boolean hasAccessLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + * + * @return The accessLocation. + */ + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocation getAccessLocation() { + if (accessLocationBuilder_ == null) { + return accessLocation_ == null + ? com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDefaultInstance() + : accessLocation_; + } else { + return accessLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + public Builder setAccessLocation( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation value) { + if (accessLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessLocation_ = value; + } else { + accessLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + public Builder setAccessLocation( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder builderForValue) { + if (accessLocationBuilder_ == null) { + accessLocation_ = builderForValue.build(); + } else { + accessLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + public Builder mergeAccessLocation( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation value) { + if (accessLocationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && accessLocation_ != null + && accessLocation_ + != com.google.cloud.compute.v1.SnapshotSettingsAccessLocation + .getDefaultInstance()) { + getAccessLocationBuilder().mergeFrom(value); + } else { + accessLocation_ = value; + } + } else { + accessLocationBuilder_.mergeFrom(value); + } + if (accessLocation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + public Builder clearAccessLocation() { + bitField0_ = (bitField0_ & ~0x00000001); + accessLocation_ = null; + if (accessLocationBuilder_ != null) { + accessLocationBuilder_.dispose(); + accessLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder + getAccessLocationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAccessLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder + getAccessLocationOrBuilder() { + if (accessLocationBuilder_ != null) { + return accessLocationBuilder_.getMessageOrBuilder(); + } else { + return accessLocation_ == null + ? com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDefaultInstance() + : accessLocation_; + } + } + + /** + * + * + *
+     * (Regional snapshots use only)Policy of which location is allowed to access
+     * snapshot.
+     * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder> + internalGetAccessLocationFieldBuilder() { + if (accessLocationBuilder_ == null) { + accessLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder>( + getAccessLocation(), getParentForChildren(), isClean()); + accessLocation_ = null; + } + return accessLocationBuilder_; + } + private com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storageLocation_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings, @@ -483,7 +810,7 @@ public Builder mergeFrom( * @return Whether the storageLocation field is set. */ public boolean hasStorageLocation() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -534,7 +861,7 @@ public Builder setStorageLocation( } else { storageLocationBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -559,7 +886,7 @@ public Builder setStorageLocation( } else { storageLocationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -579,7 +906,7 @@ public Builder setStorageLocation( public Builder mergeStorageLocation( com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings value) { if (storageLocationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && storageLocation_ != null && storageLocation_ != com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings @@ -592,7 +919,7 @@ public Builder mergeStorageLocation( storageLocationBuilder_.mergeFrom(value); } if (storageLocation_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -611,7 +938,7 @@ public Builder mergeStorageLocation( * */ public Builder clearStorageLocation() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); storageLocation_ = null; if (storageLocationBuilder_ != null) { storageLocationBuilder_.dispose(); @@ -635,7 +962,7 @@ public Builder clearStorageLocation() { */ public com.google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings.Builder getStorageLocationBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return internalGetStorageLocationFieldBuilder().getBuilder(); } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocation.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocation.java new file mode 100644 index 000000000000..2f70e032acbb --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocation.java @@ -0,0 +1,1376 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SnapshotSettingsAccessLocation} + */ +@com.google.protobuf.Generated +public final class SnapshotSettingsAccessLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SnapshotSettingsAccessLocation) + SnapshotSettingsAccessLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SnapshotSettingsAccessLocation"); + } + + // Use SnapshotSettingsAccessLocation.newBuilder() to construct. + private SnapshotSettingsAccessLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnapshotSettingsAccessLocation() { + policy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 413423454: + return internalGetLocations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.class, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder.class); + } + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.SnapshotSettingsAccessLocation.Policy} + */ + public enum Policy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_POLICY = 0; + */ + UNDEFINED_POLICY(0), + /** + * + * + *
+     * Any regions will be able to access the source location.
+     * 
+ * + * ALL_REGIONS = 273143585; + */ + ALL_REGIONS(273143585), + /** POLICY_UNSPECIFIED = 197974922; */ + POLICY_UNSPECIFIED(197974922), + /** + * + * + *
+     * Only allowlisted regions will be able to restore region scoped
+     * snapshots
+     * 
+ * + * SPECIFIC_REGIONS = 454128082; + */ + SPECIFIC_REGIONS(454128082), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Policy"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_POLICY = 0; + */ + public static final int UNDEFINED_POLICY_VALUE = 0; + + /** + * + * + *
+     * Any regions will be able to access the source location.
+     * 
+ * + * ALL_REGIONS = 273143585; + */ + public static final int ALL_REGIONS_VALUE = 273143585; + + /** POLICY_UNSPECIFIED = 197974922; */ + public static final int POLICY_UNSPECIFIED_VALUE = 197974922; + + /** + * + * + *
+     * Only allowlisted regions will be able to restore region scoped
+     * snapshots
+     * 
+ * + * SPECIFIC_REGIONS = 454128082; + */ + public static final int SPECIFIC_REGIONS_VALUE = 454128082; + + 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 Policy 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 Policy forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_POLICY; + case 273143585: + return ALL_REGIONS; + case 197974922: + return POLICY_UNSPECIFIED; + case 454128082: + return SPECIFIC_REGIONS; + 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 Policy findValueByNumber(int number) { + return Policy.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Policy[] VALUES = values(); + + public static Policy 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 Policy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SnapshotSettingsAccessLocation.Policy) + } + + private int bitField0_; + public static final int LOCATIONS_FIELD_NUMBER = 413423454; + + private static final class LocationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_LocationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreference + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + locations_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + internalGetLocations() { + if (locations_ == null) { + return com.google.protobuf.MapField.emptyMapField(LocationsDefaultEntryHolder.defaultEntry); + } + return locations_; + } + + public int getLocationsCount() { + return internalGetLocations().getMap().size(); + } + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public boolean containsLocations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLocations().getMap().containsKey(key); + } + + /** Use {@link #getLocationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getLocations() { + return getLocationsMap(); + } + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getLocationsMap() { + return internalGetLocations().getMap(); + } + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreference + getLocationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + map = internalGetLocations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getLocationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + map = internalGetLocations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int POLICY_FIELD_NUMBER = 91071794; + + @SuppressWarnings("serial") + private volatile java.lang.Object policy_ = ""; + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * Check the Policy enum for the list of possible values.
+   * 
+ * + * optional string policy = 91071794; + * + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * Check the Policy enum for the list of possible values.
+   * 
+ * + * optional string policy = 91071794; + * + * @return The policy. + */ + @java.lang.Override + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + 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(); + policy_ = s; + return s; + } + } + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * Check the Policy enum for the list of possible values.
+   * 
+ * + * optional string policy = 91071794; + * + * @return The bytes for policy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 91071794, policy_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLocations(), LocationsDefaultEntryHolder.defaultEntry, 413423454); + 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.GeneratedMessage.computeStringSize(91071794, policy_); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + entry : internalGetLocations().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + locations__ = + LocationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(413423454, locations__); + } + 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.compute.v1.SnapshotSettingsAccessLocation)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation other = + (com.google.cloud.compute.v1.SnapshotSettingsAccessLocation) obj; + + if (!internalGetLocations().equals(other.internalGetLocations())) return false; + if (hasPolicy() != other.hasPolicy()) return false; + if (hasPolicy()) { + if (!getPolicy().equals(other.getPolicy())) 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 (!internalGetLocations().getMap().isEmpty()) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLocations().hashCode(); + } + if (hasPolicy()) { + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation 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.compute.v1.SnapshotSettingsAccessLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SnapshotSettingsAccessLocation 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SnapshotSettingsAccessLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SnapshotSettingsAccessLocation) + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 413423454: + return internalGetLocations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 413423454: + return internalGetMutableLocations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.class, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableLocations().clear(); + policy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocation getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocation build() { + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocation buildPartial() { + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation result = + new com.google.cloud.compute.v1.SnapshotSettingsAccessLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.SnapshotSettingsAccessLocation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.locations_ = internalGetLocations().build(LocationsDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policy_ = policy_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SnapshotSettingsAccessLocation) { + return mergeFrom((com.google.cloud.compute.v1.SnapshotSettingsAccessLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.SnapshotSettingsAccessLocation other) { + if (other == com.google.cloud.compute.v1.SnapshotSettingsAccessLocation.getDefaultInstance()) + return this; + internalGetMutableLocations().mergeFrom(other.internalGetLocations()); + bitField0_ |= 0x00000001; + if (other.hasPolicy()) { + policy_ = other.policy_; + 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 728574354: + { + policy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 728574354 + case -987579662: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreference> + locations__ = + input.readMessage( + LocationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLocations() + .ensureBuilderMap() + .put(locations__.getKey(), locations__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case -987579662 + 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 static final class LocationsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> { + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + build( + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder + val) { + if (val + instanceof + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) { + return (com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreference) + val; + } + return ((com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + defaultEntry() { + return LocationsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final LocationsConverter locationsConverter = new LocationsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder> + locations_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder> + internalGetLocations() { + if (locations_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(locationsConverter); + } + return locations_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder> + internalGetMutableLocations() { + if (locations_ == null) { + locations_ = new com.google.protobuf.MapFieldBuilder<>(locationsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return locations_; + } + + public int getLocationsCount() { + return internalGetLocations().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public boolean containsLocations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLocations().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getLocationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getLocations() { + return getLocationsMap(); + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getLocationsMap() { + return internalGetLocations().getImmutableMap(); + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreference + getLocationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder> + map = internalGetMutableLocations().ensureBuilderMap(); + return map.containsKey(key) ? locationsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getLocationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder> + map = internalGetMutableLocations().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return locationsConverter.build(map.get(key)); + } + + public Builder clearLocations() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableLocations().clear(); + return this; + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + public Builder removeLocations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLocations().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getMutableLocations() { + bitField0_ |= 0x00000001; + return internalGetMutableLocations().ensureMessageMap(); + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + public Builder putLocations( + java.lang.String key, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLocations().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + public Builder putAllLocations( + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableLocations().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * List of regions that can restore a regional
+     * snapshot from the current region
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder + putLocationsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder> + builderMap = internalGetMutableLocations().ensureBuilderMap(); + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) { + entry = + ((com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder) + entry; + } + + private java.lang.Object policy_ = ""; + + /** + * + * + *
+     * Policy of which location is allowed to access snapshot.
+     * Check the Policy enum for the list of possible values.
+     * 
+ * + * optional string policy = 91071794; + * + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Policy of which location is allowed to access snapshot.
+     * Check the Policy enum for the list of possible values.
+     * 
+ * + * optional string policy = 91071794; + * + * @return The policy. + */ + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Policy of which location is allowed to access snapshot.
+     * Check the Policy enum for the list of possible values.
+     * 
+ * + * optional string policy = 91071794; + * + * @return The bytes for policy. + */ + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Policy of which location is allowed to access snapshot.
+     * Check the Policy enum for the list of possible values.
+     * 
+ * + * optional string policy = 91071794; + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Policy of which location is allowed to access snapshot.
+     * Check the Policy enum for the list of possible values.
+     * 
+ * + * optional string policy = 91071794; + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + policy_ = getDefaultInstance().getPolicy(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Policy of which location is allowed to access snapshot.
+     * Check the Policy enum for the list of possible values.
+     * 
+ * + * optional string policy = 91071794; + * + * @param value The bytes for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SnapshotSettingsAccessLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SnapshotSettingsAccessLocation) + private static final com.google.cloud.compute.v1.SnapshotSettingsAccessLocation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SnapshotSettingsAccessLocation(); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotSettingsAccessLocation 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.compute.v1.SnapshotSettingsAccessLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreference.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreference.java new file mode 100644 index 000000000000..e162dc07ee0e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreference.java @@ -0,0 +1,679 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A structure for specifying an allowed target region.
+ * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} + */ +@com.google.protobuf.Generated +public final class SnapshotSettingsAccessLocationAccessLocationPreference + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SnapshotSettingsAccessLocationAccessLocationPreference"); + } + + // Use SnapshotSettingsAccessLocationAccessLocationPreference.newBuilder() to construct. + private SnapshotSettingsAccessLocationAccessLocationPreference( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnapshotSettingsAccessLocationAccessLocationPreference() { + region_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .class, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder.class); + } + + private int bitField0_; + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Accessible region name
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Accessible region name
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Accessible region name
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + 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.GeneratedMessage.computeStringSize(138946292, region_); + } + 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.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference other = + (com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) obj; + + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion().equals(other.getRegion())) 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 (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + 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.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A structure for specifying an allowed target region.
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .class, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotSettingsAccessLocationAccessLocationPreference_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + build() { + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + buildPartial() { + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference result = + new com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.region_ = region_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) { + return mergeFrom( + (com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference other) { + if (other + == com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + .getDefaultInstance()) return this; + if (other.hasRegion()) { + region_ = other.region_; + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1111570338 + 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 region_ = ""; + + /** + * + * + *
+     * Accessible region name
+     * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Accessible region name
+     * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Accessible region name
+     * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Accessible region name
+     * 
+ * + * optional string region = 138946292; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Accessible region name
+     * 
+ * + * optional string region = 138946292; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Accessible region name
+     * 
+ * + * optional string region = 138946292; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + private static final com.google.cloud.compute.v1 + .SnapshotSettingsAccessLocationAccessLocationPreference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference(); + } + + public static com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + SnapshotSettingsAccessLocationAccessLocationPreference> + PARSER = + new com.google.protobuf.AbstractParser< + SnapshotSettingsAccessLocationAccessLocationPreference>() { + @java.lang.Override + public SnapshotSettingsAccessLocationAccessLocationPreference 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.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder.java new file mode 100644 index 000000000000..1bc8a8c1934f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SnapshotSettingsAccessLocationAccessLocationPreferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Accessible region name
+   * 
+ * + * optional string region = 138946292; + * + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * + * + *
+   * Accessible region name
+   * 
+ * + * optional string region = 138946292; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Accessible region name
+   * 
+ * + * optional string region = 138946292; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationOrBuilder.java new file mode 100644 index 000000000000..da0259e140d6 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsAccessLocationOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SnapshotSettingsAccessLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SnapshotSettingsAccessLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + int getLocationsCount(); + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + boolean containsLocations(java.lang.String key); + + /** Use {@link #getLocationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getLocations(); + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> + getLocationsMap(); + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + /* nullable */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getLocationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + defaultValue); + + /** + * + * + *
+   * List of regions that can restore a regional
+   * snapshot from the current region
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454; + * + */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference + getLocationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * Check the Policy enum for the list of possible values.
+   * 
+ * + * optional string policy = 91071794; + * + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * Check the Policy enum for the list of possible values.
+   * 
+ * + * optional string policy = 91071794; + * + * @return The policy. + */ + java.lang.String getPolicy(); + + /** + * + * + *
+   * Policy of which location is allowed to access snapshot.
+   * Check the Policy enum for the list of possible values.
+   * 
+ * + * optional string policy = 91071794; + * + * @return The bytes for policy. + */ + com.google.protobuf.ByteString getPolicyBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsOrBuilder.java index 9b75e988669d..4c7751238498 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsOrBuilder.java @@ -26,6 +26,52 @@ public interface SnapshotSettingsOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SnapshotSettings) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * (Regional snapshots use only)Policy of which location is allowed to access
+   * snapshot.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + * + * @return Whether the accessLocation field is set. + */ + boolean hasAccessLocation(); + + /** + * + * + *
+   * (Regional snapshots use only)Policy of which location is allowed to access
+   * snapshot.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + * + * @return The accessLocation. + */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocation getAccessLocation(); + + /** + * + * + *
+   * (Regional snapshots use only)Policy of which location is allowed to access
+   * snapshot.
+   * 
+ * + * + * optional .google.cloud.compute.v1.SnapshotSettingsAccessLocation access_location = 18410544; + * + */ + com.google.cloud.compute.v1.SnapshotSettingsAccessLocationOrBuilder getAccessLocationOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequest.java new file mode 100644 index 000000000000..8716253519e3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequest.java @@ -0,0 +1,698 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} + */ +@com.google.protobuf.Generated +public final class SnapshotUpdateKmsKeyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) + SnapshotUpdateKmsKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SnapshotUpdateKmsKeyRequest"); + } + + // Use SnapshotUpdateKmsKeyRequest.newBuilder() to construct. + private SnapshotUpdateKmsKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnapshotUpdateKmsKeyRequest() { + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 484373913; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + @java.lang.Override + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 484373913, kmsKeyName_); + } + 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.GeneratedMessage.computeStringSize(484373913, kmsKeyName_); + } + 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.compute.v1.SnapshotUpdateKmsKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest other = + (com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) obj; + + if (hasKmsKeyName() != other.hasKmsKeyName()) return false; + if (hasKmsKeyName()) { + if (!getKmsKeyName().equals(other.getKmsKeyName())) 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 (hasKmsKeyName()) { + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest 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.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.SnapshotUpdateKmsKeyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.class, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_SnapshotUpdateKmsKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest build() { + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest buildPartial() { + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest result = + new com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) { + return mergeFrom((com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest other) { + if (other == com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance()) + return this; + if (other.hasKmsKeyName()) { + kmsKeyName_ = other.kmsKeyName_; + 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 -419975990: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -419975990 + 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 kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+     * snapshot will be re-encrypted using the primary version of the snapshot's
+     * current KMS key.
+     *
+     * The KMS key can be provided in the following formats:
+     *
+     *
+     * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+     * 
+ * + * optional string kms_key_name = 484373913; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) + private static final com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest(); + } + + public static com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotUpdateKmsKeyRequest 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.compute.v1.SnapshotUpdateKmsKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequestOrBuilder.java new file mode 100644 index 000000000000..619606df39c3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SnapshotUpdateKmsKeyRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface SnapshotUpdateKmsKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return Whether the kmsKeyName field is set. + */ + boolean hasKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Optional. The new KMS key to replace the current one on the snapshot. If empty, the
+   * snapshot will be re-encrypted using the primary version of the snapshot's
+   * current KMS key.
+   *
+   * The KMS key can be provided in the following formats:
+   *
+   *
+   * - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key
+   * 
+ * + * optional string kms_key_name = 484373913; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..01f3de761fcf --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequest.java @@ -0,0 +1,1329 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for InstantSnapshotGroups.TestIamPermissions. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class TestIamPermissionsInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) + TestIamPermissionsInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TestIamPermissionsInstantSnapshotGroupRequest"); + } + + // Use TestIamPermissionsInstantSnapshotGroupRequest.newBuilder() to construct. + private TestIamPermissionsInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TestIamPermissionsInstantSnapshotGroupRequest() { + project_ = ""; + resource_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER = 439214758; + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + @java.lang.Override + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(439214758, getTestPermissionsRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 439214758, getTestPermissionsRequestResource()); + } + 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.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasTestPermissionsRequestResource() != other.hasTestPermissionsRequestResource()) + return false; + if (hasTestPermissionsRequestResource()) { + if (!getTestPermissionsRequestResource().equals(other.getTestPermissionsRequestResource())) + return false; + } + if (!getZone().equals(other.getZone())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasTestPermissionsRequestResource()) { + hash = (37 * hash) + TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTestPermissionsRequestResource().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest 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.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for InstantSnapshotGroups.TestIamPermissions. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTestPermissionsRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + resource_ = ""; + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + buildPartial() { + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resource_ = resource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testPermissionsRequestResource_ = + testPermissionsRequestResourceBuilder_ == null + ? testPermissionsRequestResource_ + : testPermissionsRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTestPermissionsRequestResource()) { + mergeTestPermissionsRequestResource(other.getTestPermissionsRequestResource()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 29957474 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -781249230: + { + input.readMessage( + internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case -781249230 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + testPermissionsRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + if (testPermissionsRequestResourceBuilder_ == null) { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } else { + return testPermissionsRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testPermissionsRequestResource_ = value; + } else { + testPermissionsRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest.Builder builderForValue) { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResource_ = builderForValue.build(); + } else { + testPermissionsRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && testPermissionsRequestResource_ != null + && testPermissionsRequestResource_ + != com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance()) { + getTestPermissionsRequestResourceBuilder().mergeFrom(value); + } else { + testPermissionsRequestResource_ = value; + } + } else { + testPermissionsRequestResourceBuilder_.mergeFrom(value); + } + if (testPermissionsRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTestPermissionsRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequest.Builder + getTestPermissionsRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + if (testPermissionsRequestResourceBuilder_ != null) { + return testPermissionsRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + internalGetTestPermissionsRequestResourceFieldBuilder() { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder>( + getTestPermissionsRequestResource(), getParentForChildren(), isClean()); + testPermissionsRequestResource_ = null; + } + return testPermissionsRequestResourceBuilder_; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsInstantSnapshotGroupRequest 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.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..a1376b52a4e8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface TestIamPermissionsInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + boolean hasTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequest.java new file mode 100644 index 000000000000..3210ef89f8b2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequest.java @@ -0,0 +1,1327 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionBackendBuckets.TestIamPermissions. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} + */ +@com.google.protobuf.Generated +public final class TestIamPermissionsRegionBackendBucketRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) + TestIamPermissionsRegionBackendBucketRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TestIamPermissionsRegionBackendBucketRequest"); + } + + // Use TestIamPermissionsRegionBackendBucketRequest.newBuilder() to construct. + private TestIamPermissionsRegionBackendBucketRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TestIamPermissionsRegionBackendBucketRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER = 439214758; + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + @java.lang.Override + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(439214758, getTestPermissionsRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 439214758, getTestPermissionsRequestResource()); + } + 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.compute.v1.TestIamPermissionsRegionBackendBucketRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest other = + (com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasTestPermissionsRequestResource() != other.hasTestPermissionsRequestResource()) + return false; + if (hasTestPermissionsRequestResource()) { + if (!getTestPermissionsRequestResource().equals(other.getTestPermissionsRequestResource())) + 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasTestPermissionsRequestResource()) { + hash = (37 * hash) + TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTestPermissionsRequestResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest 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.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.TestIamPermissionsRegionBackendBucketRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionBackendBuckets.TestIamPermissions. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTestPermissionsRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + resource_ = ""; + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendBucketRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest build() { + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest buildPartial() { + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest result = + new com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resource_ = resource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.testPermissionsRequestResource_ = + testPermissionsRequestResourceBuilder_ == null + ? testPermissionsRequestResource_ + : testPermissionsRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest other) { + if (other + == com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTestPermissionsRequestResource()) { + mergeTestPermissionsRequestResource(other.getTestPermissionsRequestResource()); + } + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -781249230: + { + input.readMessage( + internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -781249230 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + testPermissionsRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + if (testPermissionsRequestResourceBuilder_ == null) { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } else { + return testPermissionsRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testPermissionsRequestResource_ = value; + } else { + testPermissionsRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest.Builder builderForValue) { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResource_ = builderForValue.build(); + } else { + testPermissionsRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && testPermissionsRequestResource_ != null + && testPermissionsRequestResource_ + != com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance()) { + getTestPermissionsRequestResourceBuilder().mergeFrom(value); + } else { + testPermissionsRequestResource_ = value; + } + } else { + testPermissionsRequestResourceBuilder_.mergeFrom(value); + } + if (testPermissionsRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTestPermissionsRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequest.Builder + getTestPermissionsRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + if (testPermissionsRequestResourceBuilder_ != null) { + return testPermissionsRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + internalGetTestPermissionsRequestResourceFieldBuilder() { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder>( + getTestPermissionsRequestResource(), getParentForChildren(), isClean()); + testPermissionsRequestResource_ = null; + } + return testPermissionsRequestResourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) + private static final com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest(); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsRegionBackendBucketRequest 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.compute.v1.TestIamPermissionsRegionBackendBucketRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequestOrBuilder.java new file mode 100644 index 000000000000..60ff4cb73f95 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionBackendBucketRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface TestIamPermissionsRegionBackendBucketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + boolean hasTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequest.java new file mode 100644 index 000000000000..2d3198b89be4 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequest.java @@ -0,0 +1,1342 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionInstantSnapshotGroups.TestIamPermissions. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} + */ +@com.google.protobuf.Generated +public final class TestIamPermissionsRegionInstantSnapshotGroupRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) + TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TestIamPermissionsRegionInstantSnapshotGroupRequest"); + } + + // Use TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder() to construct. + private TestIamPermissionsRegionInstantSnapshotGroupRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TestIamPermissionsRegionInstantSnapshotGroupRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER = 439214758; + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + @java.lang.Override + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(439214758, getTestPermissionsRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 439214758, getTestPermissionsRequestResource()); + } + 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.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest other = + (com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasTestPermissionsRequestResource() != other.hasTestPermissionsRequestResource()) + return false; + if (hasTestPermissionsRequestResource()) { + if (!getTestPermissionsRequestResource().equals(other.getTestPermissionsRequestResource())) + 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasTestPermissionsRequestResource()) { + hash = (37 * hash) + TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTestPermissionsRequestResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + 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.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionInstantSnapshotGroups.TestIamPermissions. See the method description for details.
+   * 
+ * + * Protobuf type {@code + * google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTestPermissionsRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + resource_ = ""; + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest build() { + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + buildPartial() { + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest result = + new com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resource_ = resource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.testPermissionsRequestResource_ = + testPermissionsRequestResourceBuilder_ == null + ? testPermissionsRequestResource_ + : testPermissionsRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest other) { + if (other + == com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTestPermissionsRequestResource()) { + mergeTestPermissionsRequestResource(other.getTestPermissionsRequestResource()); + } + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -781249230: + { + input.readMessage( + internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -781249230 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + testPermissionsRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + if (testPermissionsRequestResourceBuilder_ == null) { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } else { + return testPermissionsRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testPermissionsRequestResource_ = value; + } else { + testPermissionsRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest.Builder builderForValue) { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResource_ = builderForValue.build(); + } else { + testPermissionsRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && testPermissionsRequestResource_ != null + && testPermissionsRequestResource_ + != com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance()) { + getTestPermissionsRequestResourceBuilder().mergeFrom(value); + } else { + testPermissionsRequestResource_ = value; + } + } else { + testPermissionsRequestResourceBuilder_.mergeFrom(value); + } + if (testPermissionsRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTestPermissionsRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequest.Builder + getTestPermissionsRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + if (testPermissionsRequestResourceBuilder_ != null) { + return testPermissionsRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + internalGetTestPermissionsRequestResourceFieldBuilder() { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder>( + getTestPermissionsRequestResource(), getParentForChildren(), isClean()); + testPermissionsRequestResource_ = null; + } + return testPermissionsRequestResourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) + private static final com.google.cloud.compute.v1 + .TestIamPermissionsRegionInstantSnapshotGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest(); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + TestIamPermissionsRegionInstantSnapshotGroupRequest> + PARSER = + new com.google.protobuf.AbstractParser< + TestIamPermissionsRegionInstantSnapshotGroupRequest>() { + @java.lang.Override + public TestIamPermissionsRegionInstantSnapshotGroupRequest 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.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder.java new file mode 100644 index 000000000000..4c644211122a --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface TestIamPermissionsRegionInstantSnapshotGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + boolean hasTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequest.java new file mode 100644 index 000000000000..7a68da2d5fe7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequest.java @@ -0,0 +1,1319 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.TestIamPermissions. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class TestIamPermissionsRegionSnapshotRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) + TestIamPermissionsRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TestIamPermissionsRegionSnapshotRequest"); + } + + // Use TestIamPermissionsRegionSnapshotRequest.newBuilder() to construct. + private TestIamPermissionsRegionSnapshotRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TestIamPermissionsRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 195806222; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER = 439214758; + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + @java.lang.Override + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + + 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.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(439214758, getTestPermissionsRequestResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(195806222, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 439214758, getTestPermissionsRequestResource()); + } + 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.compute.v1.TestIamPermissionsRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest other = + (com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasTestPermissionsRequestResource() != other.hasTestPermissionsRequestResource()) + return false; + if (hasTestPermissionsRequestResource()) { + if (!getTestPermissionsRequestResource().equals(other.getTestPermissionsRequestResource())) + 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasTestPermissionsRequestResource()) { + hash = (37 * hash) + TEST_PERMISSIONS_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTestPermissionsRequestResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest 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.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.TestIamPermissionsRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.TestIamPermissions. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.class, + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTestPermissionsRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + resource_ = ""; + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_TestIamPermissionsRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest build() { + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest result = + new com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resource_ = resource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.testPermissionsRequestResource_ = + testPermissionsRequestResourceBuilder_ == null + ? testPermissionsRequestResource_ + : testPermissionsRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest other) { + if (other + == com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + .getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTestPermissionsRequestResource()) { + mergeTestPermissionsRequestResource(other.getTestPermissionsRequestResource()); + } + 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 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1566449778: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1566449778 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -781249230: + { + input.readMessage( + internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -781249230 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name or id of the resource for this request.
+     * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.TestPermissionsRequest testPermissionsRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + testPermissionsRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + public boolean hasTestPermissionsRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + public com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource() { + if (testPermissionsRequestResourceBuilder_ == null) { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } else { + return testPermissionsRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testPermissionsRequestResource_ = value; + } else { + testPermissionsRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest.Builder builderForValue) { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResource_ = builderForValue.build(); + } else { + testPermissionsRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTestPermissionsRequestResource( + com.google.cloud.compute.v1.TestPermissionsRequest value) { + if (testPermissionsRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && testPermissionsRequestResource_ != null + && testPermissionsRequestResource_ + != com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance()) { + getTestPermissionsRequestResourceBuilder().mergeFrom(value); + } else { + testPermissionsRequestResource_ = value; + } + } else { + testPermissionsRequestResourceBuilder_.mergeFrom(value); + } + if (testPermissionsRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTestPermissionsRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + testPermissionsRequestResource_ = null; + if (testPermissionsRequestResourceBuilder_ != null) { + testPermissionsRequestResourceBuilder_.dispose(); + testPermissionsRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequest.Builder + getTestPermissionsRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTestPermissionsRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder() { + if (testPermissionsRequestResourceBuilder_ != null) { + return testPermissionsRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return testPermissionsRequestResource_ == null + ? com.google.cloud.compute.v1.TestPermissionsRequest.getDefaultInstance() + : testPermissionsRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder> + internalGetTestPermissionsRequestResourceFieldBuilder() { + if (testPermissionsRequestResourceBuilder_ == null) { + testPermissionsRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.TestPermissionsRequest, + com.google.cloud.compute.v1.TestPermissionsRequest.Builder, + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder>( + getTestPermissionsRequestResource(), getParentForChildren(), isClean()); + testPermissionsRequestResource_ = null; + } + return testPermissionsRequestResourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestIamPermissionsRegionSnapshotRequest 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.compute.v1.TestIamPermissionsRegionSnapshotRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..34468ca3038e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface TestIamPermissionsRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Name or id of the resource for this request.
+   * 
+ * + * string resource = 195806222 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the testPermissionsRequestResource field is set. + */ + boolean hasTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The testPermissionsRequestResource. + */ + com.google.cloud.compute.v1.TestPermissionsRequest getTestPermissionsRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.TestPermissionsRequest test_permissions_request_resource = 439214758 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.TestPermissionsRequestOrBuilder + getTestPermissionsRequestResourceOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequest.java new file mode 100644 index 000000000000..4eff66020b2f --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequest.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for Disks.UpdateKmsKey. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeyDiskRequest} + */ +@com.google.protobuf.Generated +public final class UpdateKmsKeyDiskRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UpdateKmsKeyDiskRequest) + UpdateKmsKeyDiskRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateKmsKeyDiskRequest"); + } + + // Use UpdateKmsKeyDiskRequest.newBuilder() to construct. + private UpdateKmsKeyDiskRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateKmsKeyDiskRequest() { + disk_ = ""; + project_ = ""; + requestId_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.Builder.class); + } + + private int bitField0_; + public static final int DISK_FIELD_NUMBER = 3083677; + + @SuppressWarnings("serial") + private volatile java.lang.Object disk_ = ""; + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The disk. + */ + @java.lang.Override + public java.lang.String getDisk() { + java.lang.Object ref = disk_; + 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(); + disk_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for disk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskBytes() { + java.lang.Object ref = disk_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + disk_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER = 178025952; + private com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskUpdateKmsKeyRequestResource field is set. + */ + @java.lang.Override + public boolean hasDiskUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskUpdateKmsKeyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest getDiskUpdateKmsKeyRequestResource() { + return diskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance() + : diskUpdateKmsKeyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder + getDiskUpdateKmsKeyRequestResourceOrBuilder() { + return diskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance() + : diskUpdateKmsKeyRequestResource_; + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(disk_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3083677, disk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(178025952, getDiskUpdateKmsKeyRequestResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(disk_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3083677, disk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 178025952, getDiskUpdateKmsKeyRequestResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.UpdateKmsKeyDiskRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest other = + (com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest) obj; + + if (!getDisk().equals(other.getDisk())) return false; + if (hasDiskUpdateKmsKeyRequestResource() != other.hasDiskUpdateKmsKeyRequestResource()) + return false; + if (hasDiskUpdateKmsKeyRequestResource()) { + if (!getDiskUpdateKmsKeyRequestResource().equals(other.getDiskUpdateKmsKeyRequestResource())) + return false; + } + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getZone().equals(other.getZone())) 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) + DISK_FIELD_NUMBER; + hash = (53 * hash) + getDisk().hashCode(); + if (hasDiskUpdateKmsKeyRequestResource()) { + hash = (37 * hash) + DISK_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDiskUpdateKmsKeyRequestResource().hashCode(); + } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest 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.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.UpdateKmsKeyDiskRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for Disks.UpdateKmsKey. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeyDiskRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UpdateKmsKeyDiskRequest) + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDiskUpdateKmsKeyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disk_ = ""; + diskUpdateKmsKeyRequestResource_ = null; + if (diskUpdateKmsKeyRequestResourceBuilder_ != null) { + diskUpdateKmsKeyRequestResourceBuilder_.dispose(); + diskUpdateKmsKeyRequestResourceBuilder_ = null; + } + project_ = ""; + requestId_ = ""; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyDiskRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest build() { + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest buildPartial() { + com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest result = + new com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disk_ = disk_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskUpdateKmsKeyRequestResource_ = + diskUpdateKmsKeyRequestResourceBuilder_ == null + ? diskUpdateKmsKeyRequestResource_ + : diskUpdateKmsKeyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest) { + return mergeFrom((com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest other) { + if (other == com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest.getDefaultInstance()) + return this; + if (!other.getDisk().isEmpty()) { + disk_ = other.disk_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDiskUpdateKmsKeyRequestResource()) { + mergeDiskUpdateKmsKeyRequestResource(other.getDiskUpdateKmsKeyRequestResource()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 24669418: + { + disk_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 24669418 + case 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1424207618: + { + input.readMessage( + internalGetDiskUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 1424207618 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1820481738 + 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 disk_ = ""; + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The disk. + */ + public java.lang.String getDisk() { + java.lang.Object ref = disk_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + disk_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for disk. + */ + public com.google.protobuf.ByteString getDiskBytes() { + java.lang.Object ref = disk_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + disk_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The disk to set. + * @return This builder for chaining. + */ + public Builder setDisk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + disk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisk() { + disk_ = getDefaultInstance().getDisk(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for disk to set. + * @return This builder for chaining. + */ + public Builder setDiskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + disk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder> + diskUpdateKmsKeyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskUpdateKmsKeyRequestResource field is set. + */ + public boolean hasDiskUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskUpdateKmsKeyRequestResource. + */ + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest + getDiskUpdateKmsKeyRequestResource() { + if (diskUpdateKmsKeyRequestResourceBuilder_ == null) { + return diskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance() + : diskUpdateKmsKeyRequestResource_; + } else { + return diskUpdateKmsKeyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDiskUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest value) { + if (diskUpdateKmsKeyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + diskUpdateKmsKeyRequestResource_ = value; + } else { + diskUpdateKmsKeyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDiskUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder builderForValue) { + if (diskUpdateKmsKeyRequestResourceBuilder_ == null) { + diskUpdateKmsKeyRequestResource_ = builderForValue.build(); + } else { + diskUpdateKmsKeyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDiskUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest value) { + if (diskUpdateKmsKeyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && diskUpdateKmsKeyRequestResource_ != null + && diskUpdateKmsKeyRequestResource_ + != com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance()) { + getDiskUpdateKmsKeyRequestResourceBuilder().mergeFrom(value); + } else { + diskUpdateKmsKeyRequestResource_ = value; + } + } else { + diskUpdateKmsKeyRequestResourceBuilder_.mergeFrom(value); + } + if (diskUpdateKmsKeyRequestResource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDiskUpdateKmsKeyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000002); + diskUpdateKmsKeyRequestResource_ = null; + if (diskUpdateKmsKeyRequestResourceBuilder_ != null) { + diskUpdateKmsKeyRequestResourceBuilder_.dispose(); + diskUpdateKmsKeyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder + getDiskUpdateKmsKeyRequestResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDiskUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder + getDiskUpdateKmsKeyRequestResourceOrBuilder() { + if (diskUpdateKmsKeyRequestResourceBuilder_ != null) { + return diskUpdateKmsKeyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return diskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.getDefaultInstance() + : diskUpdateKmsKeyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder> + internalGetDiskUpdateKmsKeyRequestResourceFieldBuilder() { + if (diskUpdateKmsKeyRequestResourceBuilder_ == null) { + diskUpdateKmsKeyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder>( + getDiskUpdateKmsKeyRequestResource(), getParentForChildren(), isClean()); + diskUpdateKmsKeyRequestResource_ = null; + } + return diskUpdateKmsKeyRequestResourceBuilder_; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UpdateKmsKeyDiskRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UpdateKmsKeyDiskRequest) + private static final com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest(); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKmsKeyDiskRequest 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.compute.v1.UpdateKmsKeyDiskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequestOrBuilder.java new file mode 100644 index 000000000000..81fdb75d1365 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyDiskRequestOrBuilder.java @@ -0,0 +1,233 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface UpdateKmsKeyDiskRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.UpdateKmsKeyDiskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The disk. + */ + java.lang.String getDisk(); + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for disk. + */ + com.google.protobuf.ByteString getDiskBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskUpdateKmsKeyRequestResource field is set. + */ + boolean hasDiskUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskUpdateKmsKeyRequestResource. + */ + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest getDiskUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.DiskUpdateKmsKeyRequestOrBuilder + getDiskUpdateKmsKeyRequestResourceOrBuilder(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * The name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequest.java new file mode 100644 index 000000000000..0ffd8c0e8175 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequest.java @@ -0,0 +1,1673 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionDisks.UpdateKmsKey. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} + */ +@com.google.protobuf.Generated +public final class UpdateKmsKeyRegionDiskRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) + UpdateKmsKeyRegionDiskRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateKmsKeyRegionDiskRequest"); + } + + // Use UpdateKmsKeyRegionDiskRequest.newBuilder() to construct. + private UpdateKmsKeyRegionDiskRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateKmsKeyRegionDiskRequest() { + disk_ = ""; + project_ = ""; + region_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.Builder.class); + } + + private int bitField0_; + public static final int DISK_FIELD_NUMBER = 3083677; + + @SuppressWarnings("serial") + private volatile java.lang.Object disk_ = ""; + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The disk. + */ + @java.lang.Override + public java.lang.String getDisk() { + java.lang.Object ref = disk_; + 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(); + disk_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for disk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskBytes() { + java.lang.Object ref = disk_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + disk_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_DISK_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER = 10015819; + private com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + regionDiskUpdateKmsKeyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionDiskUpdateKmsKeyRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionDiskUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionDiskUpdateKmsKeyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + getRegionDiskUpdateKmsKeyRequestResource() { + return regionDiskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance() + : regionDiskUpdateKmsKeyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder + getRegionDiskUpdateKmsKeyRequestResourceOrBuilder() { + return regionDiskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance() + : regionDiskUpdateKmsKeyRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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.GeneratedMessage.isStringEmpty(disk_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3083677, disk_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10015819, getRegionDiskUpdateKmsKeyRequestResource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(disk_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3083677, disk_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10015819, getRegionDiskUpdateKmsKeyRequestResource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + 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.compute.v1.UpdateKmsKeyRegionDiskRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest other = + (com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) obj; + + if (!getDisk().equals(other.getDisk())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionDiskUpdateKmsKeyRequestResource() + != other.hasRegionDiskUpdateKmsKeyRequestResource()) return false; + if (hasRegionDiskUpdateKmsKeyRequestResource()) { + if (!getRegionDiskUpdateKmsKeyRequestResource() + .equals(other.getRegionDiskUpdateKmsKeyRequestResource())) return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + 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) + DISK_FIELD_NUMBER; + hash = (53 * hash) + getDisk().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionDiskUpdateKmsKeyRequestResource()) { + hash = (37 * hash) + REGION_DISK_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionDiskUpdateKmsKeyRequestResource().hashCode(); + } + if (hasRequestId()) { + 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.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest 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.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.UpdateKmsKeyRegionDiskRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionDisks.UpdateKmsKey. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRegionDiskUpdateKmsKeyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disk_ = ""; + project_ = ""; + region_ = ""; + regionDiskUpdateKmsKeyRequestResource_ = null; + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ != null) { + regionDiskUpdateKmsKeyRequestResourceBuilder_.dispose(); + regionDiskUpdateKmsKeyRequestResourceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionDiskRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest build() { + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest buildPartial() { + com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest result = + new com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disk_ = disk_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.regionDiskUpdateKmsKeyRequestResource_ = + regionDiskUpdateKmsKeyRequestResourceBuilder_ == null + ? regionDiskUpdateKmsKeyRequestResource_ + : regionDiskUpdateKmsKeyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) { + return mergeFrom((com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest other) { + if (other == com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest.getDefaultInstance()) + return this; + if (!other.getDisk().isEmpty()) { + disk_ = other.disk_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRegionDiskUpdateKmsKeyRequestResource()) { + mergeRegionDiskUpdateKmsKeyRequestResource( + other.getRegionDiskUpdateKmsKeyRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + 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 24669418: + { + disk_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 24669418 + case 80126554: + { + input.readMessage( + internalGetRegionDiskUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 80126554 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1820481738 + 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 disk_ = ""; + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The disk. + */ + public java.lang.String getDisk() { + java.lang.Object ref = disk_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + disk_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for disk. + */ + public com.google.protobuf.ByteString getDiskBytes() { + java.lang.Object ref = disk_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + disk_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The disk to set. + * @return This builder for chaining. + */ + public Builder setDisk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + disk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisk() { + disk_ = getDefaultInstance().getDisk(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the Disk resource, should conform to RFC1035.
+     * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for disk to set. + * @return This builder for chaining. + */ + public Builder setDiskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + disk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + regionDiskUpdateKmsKeyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder> + regionDiskUpdateKmsKeyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionDiskUpdateKmsKeyRequestResource field is set. + */ + public boolean hasRegionDiskUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionDiskUpdateKmsKeyRequestResource. + */ + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + getRegionDiskUpdateKmsKeyRequestResource() { + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ == null) { + return regionDiskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance() + : regionDiskUpdateKmsKeyRequestResource_; + } else { + return regionDiskUpdateKmsKeyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionDiskUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest value) { + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionDiskUpdateKmsKeyRequestResource_ = value; + } else { + regionDiskUpdateKmsKeyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionDiskUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder builderForValue) { + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ == null) { + regionDiskUpdateKmsKeyRequestResource_ = builderForValue.build(); + } else { + regionDiskUpdateKmsKeyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionDiskUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest value) { + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && regionDiskUpdateKmsKeyRequestResource_ != null + && regionDiskUpdateKmsKeyRequestResource_ + != com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance()) { + getRegionDiskUpdateKmsKeyRequestResourceBuilder().mergeFrom(value); + } else { + regionDiskUpdateKmsKeyRequestResource_ = value; + } + } else { + regionDiskUpdateKmsKeyRequestResourceBuilder_.mergeFrom(value); + } + if (regionDiskUpdateKmsKeyRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionDiskUpdateKmsKeyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + regionDiskUpdateKmsKeyRequestResource_ = null; + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ != null) { + regionDiskUpdateKmsKeyRequestResourceBuilder_.dispose(); + regionDiskUpdateKmsKeyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder + getRegionDiskUpdateKmsKeyRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetRegionDiskUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder + getRegionDiskUpdateKmsKeyRequestResourceOrBuilder() { + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ != null) { + return regionDiskUpdateKmsKeyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionDiskUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.getDefaultInstance() + : regionDiskUpdateKmsKeyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder> + internalGetRegionDiskUpdateKmsKeyRequestResourceFieldBuilder() { + if (regionDiskUpdateKmsKeyRequestResourceBuilder_ == null) { + regionDiskUpdateKmsKeyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder>( + getRegionDiskUpdateKmsKeyRequestResource(), getParentForChildren(), isClean()); + regionDiskUpdateKmsKeyRequestResource_ = null; + } + return regionDiskUpdateKmsKeyRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) + private static final com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest(); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKmsKeyRegionDiskRequest 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.compute.v1.UpdateKmsKeyRegionDiskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequestOrBuilder.java new file mode 100644 index 000000000000..5c2d59f481c3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionDiskRequestOrBuilder.java @@ -0,0 +1,234 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface UpdateKmsKeyRegionDiskRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The disk. + */ + java.lang.String getDisk(); + + /** + * + * + *
+   * Name of the Disk resource, should conform to RFC1035.
+   * 
+ * + * string disk = 3083677 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for disk. + */ + com.google.protobuf.ByteString getDiskBytes(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * The name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionDiskUpdateKmsKeyRequestResource field is set. + */ + boolean hasRegionDiskUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionDiskUpdateKmsKeyRequestResource. + */ + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest + getRegionDiskUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestOrBuilder + getRegionDiskUpdateKmsKeyRequestResourceOrBuilder(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequest.java new file mode 100644 index 000000000000..bd55ea1969d3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequest.java @@ -0,0 +1,1679 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for RegionSnapshots.UpdateKmsKey. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} + */ +@com.google.protobuf.Generated +public final class UpdateKmsKeyRegionSnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) + UpdateKmsKeyRegionSnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateKmsKeyRegionSnapshotRequest"); + } + + // Use UpdateKmsKeyRegionSnapshotRequest.newBuilder() to construct. + private UpdateKmsKeyRegionSnapshotRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateKmsKeyRegionSnapshotRequest() { + project_ = ""; + region_ = ""; + requestId_ = ""; + snapshot_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 138946292; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_SNAPSHOT_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER = 279384818; + private com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + regionSnapshotUpdateKmsKeyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSnapshotUpdateKmsKeyRequestResource field is set. + */ + @java.lang.Override + public boolean hasRegionSnapshotUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSnapshotUpdateKmsKeyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + getRegionSnapshotUpdateKmsKeyRequestResource() { + return regionSnapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.getDefaultInstance() + : regionSnapshotUpdateKmsKeyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder + getRegionSnapshotUpdateKmsKeyRequestResourceOrBuilder() { + return regionSnapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.getDefaultInstance() + : regionSnapshotUpdateKmsKeyRequestResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SNAPSHOT_FIELD_NUMBER = 284874180; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + @java.lang.Override + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + 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(); + snapshot_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(279384818, getRegionSnapshotUpdateKmsKeyRequestResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 284874180, snapshot_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(138946292, region_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 279384818, getRegionSnapshotUpdateKmsKeyRequestResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(284874180, snapshot_); + } + 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.compute.v1.UpdateKmsKeyRegionSnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest other = + (com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (hasRegionSnapshotUpdateKmsKeyRequestResource() + != other.hasRegionSnapshotUpdateKmsKeyRequestResource()) return false; + if (hasRegionSnapshotUpdateKmsKeyRequestResource()) { + if (!getRegionSnapshotUpdateKmsKeyRequestResource() + .equals(other.getRegionSnapshotUpdateKmsKeyRequestResource())) return false; + } + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getSnapshot().equals(other.getSnapshot())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + if (hasRegionSnapshotUpdateKmsKeyRequestResource()) { + hash = (37 * hash) + REGION_SNAPSHOT_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegionSnapshotUpdateKmsKeyRequestResource().hashCode(); + } + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest 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.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.UpdateKmsKeyRegionSnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for RegionSnapshots.UpdateKmsKey. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRegionSnapshotUpdateKmsKeyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + region_ = ""; + regionSnapshotUpdateKmsKeyRequestResource_ = null; + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ != null) { + regionSnapshotUpdateKmsKeyRequestResourceBuilder_.dispose(); + regionSnapshotUpdateKmsKeyRequestResourceBuilder_ = null; + } + requestId_ = ""; + snapshot_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeyRegionSnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest build() { + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest buildPartial() { + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest result = + new com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.regionSnapshotUpdateKmsKeyRequestResource_ = + regionSnapshotUpdateKmsKeyRequestResourceBuilder_ == null + ? regionSnapshotUpdateKmsKeyRequestResource_ + : regionSnapshotUpdateKmsKeyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.snapshot_ = snapshot_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest other) { + if (other + == com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRegionSnapshotUpdateKmsKeyRequestResource()) { + mergeRegionSnapshotUpdateKmsKeyRequestResource( + other.getRegionSnapshotUpdateKmsKeyRequestResource()); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 296879706 + case 1111570338: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 1111570338 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2059888750: + { + input.readMessage( + internalGetRegionSnapshotUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case -2059888750 + case -2015973854: + { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case -2015973854 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the region for this request.
+     * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + regionSnapshotUpdateKmsKeyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder> + regionSnapshotUpdateKmsKeyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSnapshotUpdateKmsKeyRequestResource field is set. + */ + public boolean hasRegionSnapshotUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSnapshotUpdateKmsKeyRequestResource. + */ + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + getRegionSnapshotUpdateKmsKeyRequestResource() { + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + return regionSnapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.getDefaultInstance() + : regionSnapshotUpdateKmsKeyRequestResource_; + } else { + return regionSnapshotUpdateKmsKeyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSnapshotUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest value) { + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regionSnapshotUpdateKmsKeyRequestResource_ = value; + } else { + regionSnapshotUpdateKmsKeyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRegionSnapshotUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder builderForValue) { + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + regionSnapshotUpdateKmsKeyRequestResource_ = builderForValue.build(); + } else { + regionSnapshotUpdateKmsKeyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRegionSnapshotUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest value) { + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && regionSnapshotUpdateKmsKeyRequestResource_ != null + && regionSnapshotUpdateKmsKeyRequestResource_ + != com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + .getDefaultInstance()) { + getRegionSnapshotUpdateKmsKeyRequestResourceBuilder().mergeFrom(value); + } else { + regionSnapshotUpdateKmsKeyRequestResource_ = value; + } + } else { + regionSnapshotUpdateKmsKeyRequestResourceBuilder_.mergeFrom(value); + } + if (regionSnapshotUpdateKmsKeyRequestResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRegionSnapshotUpdateKmsKeyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000004); + regionSnapshotUpdateKmsKeyRequestResource_ = null; + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ != null) { + regionSnapshotUpdateKmsKeyRequestResourceBuilder_.dispose(); + regionSnapshotUpdateKmsKeyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder + getRegionSnapshotUpdateKmsKeyRequestResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRegionSnapshotUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder + getRegionSnapshotUpdateKmsKeyRequestResourceOrBuilder() { + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ != null) { + return regionSnapshotUpdateKmsKeyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return regionSnapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.getDefaultInstance() + : regionSnapshotUpdateKmsKeyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder> + internalGetRegionSnapshotUpdateKmsKeyRequestResourceFieldBuilder() { + if (regionSnapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + regionSnapshotUpdateKmsKeyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder>( + getRegionSnapshotUpdateKmsKeyRequestResource(), getParentForChildren(), isClean()); + regionSnapshotUpdateKmsKeyRequestResource_ = null; + } + return regionSnapshotUpdateKmsKeyRequestResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + + private java.lang.Object snapshot_ = ""; + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSnapshot() { + snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) + private static final com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest(); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKmsKeyRegionSnapshotRequest 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.compute.v1.UpdateKmsKeyRegionSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..1a6a13a2fbb2 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeyRegionSnapshotRequestOrBuilder.java @@ -0,0 +1,234 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface UpdateKmsKeyRegionSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Name of the region for this request.
+   * 
+ * + * + * string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"]; + * + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the regionSnapshotUpdateKmsKeyRequestResource field is set. + */ + boolean hasRegionSnapshotUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The regionSnapshotUpdateKmsKeyRequestResource. + */ + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest + getRegionSnapshotUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequestOrBuilder + getRegionSnapshotUpdateKmsKeyRequestResourceOrBuilder(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + java.lang.String getSnapshot(); + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString getSnapshotBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequest.java new file mode 100644 index 000000000000..01ca7ff353a1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequest.java @@ -0,0 +1,1469 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for Snapshots.UpdateKmsKey. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} + */ +@com.google.protobuf.Generated +public final class UpdateKmsKeySnapshotRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) + UpdateKmsKeySnapshotRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateKmsKeySnapshotRequest"); + } + + // Use UpdateKmsKeySnapshotRequest.newBuilder() to construct. + private UpdateKmsKeySnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateKmsKeySnapshotRequest() { + project_ = ""; + requestId_ = ""; + snapshot_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int SNAPSHOT_FIELD_NUMBER = 284874180; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + @java.lang.Override + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + 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(); + snapshot_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER = 103145991; + private com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + snapshotUpdateKmsKeyRequestResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotUpdateKmsKeyRequestResource field is set. + */ + @java.lang.Override + public boolean hasSnapshotUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotUpdateKmsKeyRequestResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + getSnapshotUpdateKmsKeyRequestResource() { + return snapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance() + : snapshotUpdateKmsKeyRequestResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder + getSnapshotUpdateKmsKeyRequestResourceOrBuilder() { + return snapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance() + : snapshotUpdateKmsKeyRequestResource_; + } + + 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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(103145991, getSnapshotUpdateKmsKeyRequestResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 284874180, snapshot_); + } + 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.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103145991, getSnapshotUpdateKmsKeyRequestResource()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(284874180, snapshot_); + } + 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.compute.v1.UpdateKmsKeySnapshotRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest other = + (com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getSnapshot().equals(other.getSnapshot())) return false; + if (hasSnapshotUpdateKmsKeyRequestResource() != other.hasSnapshotUpdateKmsKeyRequestResource()) + return false; + if (hasSnapshotUpdateKmsKeyRequestResource()) { + if (!getSnapshotUpdateKmsKeyRequestResource() + .equals(other.getSnapshotUpdateKmsKeyRequestResource())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + if (hasSnapshotUpdateKmsKeyRequestResource()) { + hash = (37 * hash) + SNAPSHOT_UPDATE_KMS_KEY_REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotUpdateKmsKeyRequestResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest 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.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.UpdateKmsKeySnapshotRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for Snapshots.UpdateKmsKey. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateKmsKeySnapshotRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.class, + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotUpdateKmsKeyRequestResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + requestId_ = ""; + snapshot_ = ""; + snapshotUpdateKmsKeyRequestResource_ = null; + if (snapshotUpdateKmsKeyRequestResourceBuilder_ != null) { + snapshotUpdateKmsKeyRequestResourceBuilder_.dispose(); + snapshotUpdateKmsKeyRequestResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateKmsKeySnapshotRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest getDefaultInstanceForType() { + return com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest build() { + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest buildPartial() { + com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest result = + new com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshot_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.snapshotUpdateKmsKeyRequestResource_ = + snapshotUpdateKmsKeyRequestResourceBuilder_ == null + ? snapshotUpdateKmsKeyRequestResource_ + : snapshotUpdateKmsKeyRequestResourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) { + return mergeFrom((com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest other) { + if (other == com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSnapshotUpdateKmsKeyRequestResource()) { + mergeSnapshotUpdateKmsKeyRequestResource(other.getSnapshotUpdateKmsKeyRequestResource()); + } + 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 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 296879706 + case 825167930: + { + input.readMessage( + internalGetSnapshotUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 825167930 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -2015973854: + { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case -2015973854 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object snapshot_ = ""; + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + public com.google.protobuf.ByteString getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSnapshot() { + snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the snapshot resource to update. Should conform to RFC1035.
+     * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. + */ + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + snapshotUpdateKmsKeyRequestResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder> + snapshotUpdateKmsKeyRequestResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotUpdateKmsKeyRequestResource field is set. + */ + public boolean hasSnapshotUpdateKmsKeyRequestResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotUpdateKmsKeyRequestResource. + */ + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest + getSnapshotUpdateKmsKeyRequestResource() { + if (snapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + return snapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance() + : snapshotUpdateKmsKeyRequestResource_; + } else { + return snapshotUpdateKmsKeyRequestResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSnapshotUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest value) { + if (snapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshotUpdateKmsKeyRequestResource_ = value; + } else { + snapshotUpdateKmsKeyRequestResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSnapshotUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder builderForValue) { + if (snapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + snapshotUpdateKmsKeyRequestResource_ = builderForValue.build(); + } else { + snapshotUpdateKmsKeyRequestResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSnapshotUpdateKmsKeyRequestResource( + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest value) { + if (snapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && snapshotUpdateKmsKeyRequestResource_ != null + && snapshotUpdateKmsKeyRequestResource_ + != com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance()) { + getSnapshotUpdateKmsKeyRequestResourceBuilder().mergeFrom(value); + } else { + snapshotUpdateKmsKeyRequestResource_ = value; + } + } else { + snapshotUpdateKmsKeyRequestResourceBuilder_.mergeFrom(value); + } + if (snapshotUpdateKmsKeyRequestResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSnapshotUpdateKmsKeyRequestResource() { + bitField0_ = (bitField0_ & ~0x00000008); + snapshotUpdateKmsKeyRequestResource_ = null; + if (snapshotUpdateKmsKeyRequestResourceBuilder_ != null) { + snapshotUpdateKmsKeyRequestResourceBuilder_.dispose(); + snapshotUpdateKmsKeyRequestResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder + getSnapshotUpdateKmsKeyRequestResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSnapshotUpdateKmsKeyRequestResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder + getSnapshotUpdateKmsKeyRequestResourceOrBuilder() { + if (snapshotUpdateKmsKeyRequestResourceBuilder_ != null) { + return snapshotUpdateKmsKeyRequestResourceBuilder_.getMessageOrBuilder(); + } else { + return snapshotUpdateKmsKeyRequestResource_ == null + ? com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.getDefaultInstance() + : snapshotUpdateKmsKeyRequestResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder> + internalGetSnapshotUpdateKmsKeyRequestResourceFieldBuilder() { + if (snapshotUpdateKmsKeyRequestResourceBuilder_ == null) { + snapshotUpdateKmsKeyRequestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest.Builder, + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder>( + getSnapshotUpdateKmsKeyRequestResource(), getParentForChildren(), isClean()); + snapshotUpdateKmsKeyRequestResource_ = null; + } + return snapshotUpdateKmsKeyRequestResourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) + private static final com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest(); + } + + public static com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateKmsKeySnapshotRequest 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.compute.v1.UpdateKmsKeySnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..41f45b989c87 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateKmsKeySnapshotRequestOrBuilder.java @@ -0,0 +1,203 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface UpdateKmsKeySnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.UpdateKmsKeySnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The snapshot. + */ + java.lang.String getSnapshot(); + + /** + * + * + *
+   * Name of the snapshot resource to update. Should conform to RFC1035.
+   * 
+ * + * string snapshot = 284874180 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString getSnapshotBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the snapshotUpdateKmsKeyRequestResource field is set. + */ + boolean hasSnapshotUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The snapshotUpdateKmsKeyRequestResource. + */ + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest getSnapshotUpdateKmsKeyRequestResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestOrBuilder + getSnapshotUpdateKmsKeyRequestResourceOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequest.java new file mode 100644 index 000000000000..c8dd38b31974 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequest.java @@ -0,0 +1,1679 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for ZoneVmExtensionPolicies.Update. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateZoneVmExtensionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) + UpdateZoneVmExtensionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateZoneVmExtensionPolicyRequest"); + } + + // Use UpdateZoneVmExtensionPolicyRequest.newBuilder() to construct. + private UpdateZoneVmExtensionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateZoneVmExtensionPolicyRequest() { + project_ = ""; + requestId_ = ""; + vmExtensionPolicy_ = ""; + zone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_FIELD_NUMBER = 227560217; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 37109963; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + @java.lang.Override + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + public static final int VM_EXTENSION_POLICY_FIELD_NUMBER = 331532730; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmExtensionPolicy_ = ""; + + /** + * + * + *
+   * Name of the zone VM extension policy to update.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmExtensionPolicy. + */ + @java.lang.Override + public java.lang.String getVmExtensionPolicy() { + java.lang.Object ref = vmExtensionPolicy_; + 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(); + vmExtensionPolicy_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone VM extension policy to update.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmExtensionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmExtensionPolicyBytes() { + java.lang.Object ref = vmExtensionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmExtensionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_EXTENSION_POLICY_RESOURCE_FIELD_NUMBER = 515669235; + private com.google.cloud.compute.v1.VmExtensionPolicy vmExtensionPolicyResource_; + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmExtensionPolicyResource field is set. + */ + @java.lang.Override + public boolean hasVmExtensionPolicyResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicyResource. + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicy getVmExtensionPolicyResource() { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder + getVmExtensionPolicyResourceOrBuilder() { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } + + public static final int ZONE_FIELD_NUMBER = 3744684; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + 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(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = 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.GeneratedMessage.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vmExtensionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 331532730, vmExtensionPolicy_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(515669235, getVmExtensionPolicyResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3744684, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(37109963, requestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(227560217, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vmExtensionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(331532730, vmExtensionPolicy_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 515669235, getVmExtensionPolicyResource()); + } + 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.compute.v1.UpdateZoneVmExtensionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest other = + (com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (hasRequestId() != other.hasRequestId()) return false; + if (hasRequestId()) { + if (!getRequestId().equals(other.getRequestId())) return false; + } + if (!getVmExtensionPolicy().equals(other.getVmExtensionPolicy())) return false; + if (hasVmExtensionPolicyResource() != other.hasVmExtensionPolicyResource()) return false; + if (hasVmExtensionPolicyResource()) { + if (!getVmExtensionPolicyResource().equals(other.getVmExtensionPolicyResource())) + return false; + } + if (!getZone().equals(other.getZone())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasRequestId()) { + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + } + hash = (37 * hash) + VM_EXTENSION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getVmExtensionPolicy().hashCode(); + if (hasVmExtensionPolicyResource()) { + hash = (37 * hash) + VM_EXTENSION_POLICY_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getVmExtensionPolicyResource().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest 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.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.UpdateZoneVmExtensionPolicyRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A request message for ZoneVmExtensionPolicies.Update. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.class, + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetVmExtensionPolicyResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + requestId_ = ""; + vmExtensionPolicy_ = ""; + vmExtensionPolicyResource_ = null; + if (vmExtensionPolicyResourceBuilder_ != null) { + vmExtensionPolicyResourceBuilder_.dispose(); + vmExtensionPolicyResourceBuilder_ = null; + } + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_UpdateZoneVmExtensionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest build() { + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest buildPartial() { + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest result = + new com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vmExtensionPolicy_ = vmExtensionPolicy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vmExtensionPolicyResource_ = + vmExtensionPolicyResourceBuilder_ == null + ? vmExtensionPolicyResource_ + : vmExtensionPolicyResourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.zone_ = zone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) { + return mergeFrom((com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest other) { + if (other + == com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRequestId()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVmExtensionPolicy().isEmpty()) { + vmExtensionPolicy_ = other.vmExtensionPolicy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasVmExtensionPolicyResource()) { + mergeVmExtensionPolicyResource(other.getVmExtensionPolicyResource()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + 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 29957474: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 29957474 + case 296879706: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 296879706 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 1820481738 + case -1642705454: + { + vmExtensionPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case -1642705454 + case -169613414: + { + input.readMessage( + internalGetVmExtensionPolicyResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case -169613414 + 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 project_ = ""; + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Project ID for this request.
+     * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + public boolean hasRequestId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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; + } + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional 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.
+     *
+     * 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).
+     * 
+ * + * optional string request_id = 37109963; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object vmExtensionPolicy_ = ""; + + /** + * + * + *
+     * Name of the zone VM extension policy to update.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicy. + */ + public java.lang.String getVmExtensionPolicy() { + java.lang.Object ref = vmExtensionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmExtensionPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone VM extension policy to update.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for vmExtensionPolicy. + */ + public com.google.protobuf.ByteString getVmExtensionPolicyBytes() { + java.lang.Object ref = vmExtensionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmExtensionPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone VM extension policy to update.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The vmExtensionPolicy to set. + * @return This builder for chaining. + */ + public Builder setVmExtensionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmExtensionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone VM extension policy to update.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVmExtensionPolicy() { + vmExtensionPolicy_ = getDefaultInstance().getVmExtensionPolicy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone VM extension policy to update.
+     * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for vmExtensionPolicy to set. + * @return This builder for chaining. + */ + public Builder setVmExtensionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmExtensionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.VmExtensionPolicy vmExtensionPolicyResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder> + vmExtensionPolicyResourceBuilder_; + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmExtensionPolicyResource field is set. + */ + public boolean hasVmExtensionPolicyResource() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicyResource. + */ + public com.google.cloud.compute.v1.VmExtensionPolicy getVmExtensionPolicyResource() { + if (vmExtensionPolicyResourceBuilder_ == null) { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } else { + return vmExtensionPolicyResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmExtensionPolicyResource( + com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (vmExtensionPolicyResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmExtensionPolicyResource_ = value; + } else { + vmExtensionPolicyResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVmExtensionPolicyResource( + com.google.cloud.compute.v1.VmExtensionPolicy.Builder builderForValue) { + if (vmExtensionPolicyResourceBuilder_ == null) { + vmExtensionPolicyResource_ = builderForValue.build(); + } else { + vmExtensionPolicyResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVmExtensionPolicyResource( + com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (vmExtensionPolicyResourceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && vmExtensionPolicyResource_ != null + && vmExtensionPolicyResource_ + != com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance()) { + getVmExtensionPolicyResourceBuilder().mergeFrom(value); + } else { + vmExtensionPolicyResource_ = value; + } + } else { + vmExtensionPolicyResourceBuilder_.mergeFrom(value); + } + if (vmExtensionPolicyResource_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVmExtensionPolicyResource() { + bitField0_ = (bitField0_ & ~0x00000008); + vmExtensionPolicyResource_ = null; + if (vmExtensionPolicyResourceBuilder_ != null) { + vmExtensionPolicyResourceBuilder_.dispose(); + vmExtensionPolicyResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicy.Builder + getVmExtensionPolicyResourceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetVmExtensionPolicyResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder + getVmExtensionPolicyResourceOrBuilder() { + if (vmExtensionPolicyResourceBuilder_ != null) { + return vmExtensionPolicyResourceBuilder_.getMessageOrBuilder(); + } else { + return vmExtensionPolicyResource_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance() + : vmExtensionPolicyResource_; + } + } + + /** + * + * + *
+     * The body resource for this request
+     * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder> + internalGetVmExtensionPolicyResourceFieldBuilder() { + if (vmExtensionPolicyResourceBuilder_ == null) { + vmExtensionPolicyResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder>( + getVmExtensionPolicyResource(), getParentForChildren(), isClean()); + vmExtensionPolicyResource_ = null; + } + return vmExtensionPolicyResourceBuilder_; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the zone for this request.
+     * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) + private static final com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest(); + } + + public static com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateZoneVmExtensionPolicyRequest 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.compute.v1.UpdateZoneVmExtensionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..5da250013ce5 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/UpdateZoneVmExtensionPolicyRequestOrBuilder.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface UpdateZoneVmExtensionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * Project ID for this request.
+   * 
+ * + * + * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"]; + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return Whether the requestId field is set. + */ + boolean hasRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional 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.
+   *
+   * 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).
+   * 
+ * + * optional string request_id = 37109963; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Name of the zone VM extension policy to update.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmExtensionPolicy. + */ + java.lang.String getVmExtensionPolicy(); + + /** + * + * + *
+   * Name of the zone VM extension policy to update.
+   * 
+ * + * string vm_extension_policy = 331532730 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmExtensionPolicy. + */ + com.google.protobuf.ByteString getVmExtensionPolicyBytes(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vmExtensionPolicyResource field is set. + */ + boolean hasVmExtensionPolicyResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vmExtensionPolicyResource. + */ + com.google.cloud.compute.v1.VmExtensionPolicy getVmExtensionPolicyResource(); + + /** + * + * + *
+   * The body resource for this request
+   * 
+ * + * + * .google.cloud.compute.v1.VmExtensionPolicy vm_extension_policy_resource = 515669235 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder getVmExtensionPolicyResourceOrBuilder(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+   * Name of the zone for this request.
+   * 
+ * + * + * string zone = 3744684 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "zone"]; + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicy.java new file mode 100644 index 000000000000..80fba426d7e8 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicy.java @@ -0,0 +1,4312 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Represents a VM extension policy.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicy} + */ +@com.google.protobuf.Generated +public final class VmExtensionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmExtensionPolicy) + VmExtensionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VmExtensionPolicy"); + } + + // Use VmExtensionPolicy.newBuilder() to construct. + private VmExtensionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VmExtensionPolicy() { + creationTimestamp_ = ""; + description_ = ""; + globalResourceLink_ = ""; + instanceSelectors_ = java.util.Collections.emptyList(); + kind_ = ""; + name_ = ""; + selfLink_ = ""; + selfLinkWithId_ = ""; + state_ = ""; + updateTimestamp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 227761488: + return internalGetExtensionPolicies(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicy.class, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder.class); + } + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.VmExtensionPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_STATE = 0; + */ + UNDEFINED_STATE(0), + /** + * + * + *
+     * The policy is active and applied to matching VMs.
+     * Newly created VMs that match the policy will also receive the
+     * extension policy.
+     * 
+ * + * ACTIVE = 314733318; + */ + ACTIVE(314733318), + /** + * + * + *
+     * The policy is in the process of being deleted. After the extension is
+     * removed from all matching VMs, the policy will be deleted.
+     * 
+ * + * DELETING = 528602024; + */ + DELETING(528602024), + /** + * + * + *
+     * Default value. Do not use.
+     * 
+ * + * STATE_UNSPECIFIED = 470755401; + */ + STATE_UNSPECIFIED(470755401), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_STATE = 0; + */ + public static final int UNDEFINED_STATE_VALUE = 0; + + /** + * + * + *
+     * The policy is active and applied to matching VMs.
+     * Newly created VMs that match the policy will also receive the
+     * extension policy.
+     * 
+ * + * ACTIVE = 314733318; + */ + public static final int ACTIVE_VALUE = 314733318; + + /** + * + * + *
+     * The policy is in the process of being deleted. After the extension is
+     * removed from all matching VMs, the policy will be deleted.
+     * 
+ * + * DELETING = 528602024; + */ + public static final int DELETING_VALUE = 528602024; + + /** + * + * + *
+     * Default value. Do not use.
+     * 
+ * + * STATE_UNSPECIFIED = 470755401; + */ + public static final int STATE_UNSPECIFIED_VALUE = 470755401; + + 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 UNDEFINED_STATE; + case 314733318: + return ACTIVE; + case 528602024: + return DELETING; + case 470755401: + return STATE_UNSPECIFIED; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.compute.v1.VmExtensionPolicy.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.compute.v1.VmExtensionPolicy.State) + } + + private int bitField0_; + public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; + + @SuppressWarnings("serial") + private volatile java.lang.Object creationTimestamp_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + @java.lang.Override + public boolean hasCreationTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + @java.lang.Override + public java.lang.String getCreationTimestamp() { + java.lang.Object ref = creationTimestamp_; + 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(); + creationTimestamp_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreationTimestampBytes() { + java.lang.Object ref = creationTimestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creationTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 422937596; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * An optional description of this resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * An optional description of this resource.
+   * 
+ * + * optional string description = 422937596; + * + * @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; + } + } + + /** + * + * + *
+   * An optional description of this resource.
+   * 
+ * + * optional string description = 422937596; + * + * @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 EXTENSION_POLICIES_FIELD_NUMBER = 227761488; + + private static final class ExtensionPoliciesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicy_ExtensionPoliciesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + extensionPolicies_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + internalGetExtensionPolicies() { + if (extensionPolicies_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ExtensionPoliciesDefaultEntryHolder.defaultEntry); + } + return extensionPolicies_; + } + + public int getExtensionPoliciesCount() { + return internalGetExtensionPolicies().getMap().size(); + } + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public boolean containsExtensionPolicies(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetExtensionPolicies().getMap().containsKey(key); + } + + /** Use {@link #getExtensionPoliciesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + getExtensionPolicies() { + return getExtensionPoliciesMap(); + } + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + getExtensionPoliciesMap() { + return internalGetExtensionPolicies().getMap(); + } + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + getExtensionPoliciesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetExtensionPolicies().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy getExtensionPoliciesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetExtensionPolicies().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int GLOBAL_RESOURCE_LINK_FIELD_NUMBER = 516569583; + + @SuppressWarnings("serial") + private volatile java.lang.Object globalResourceLink_ = ""; + + /** + * + * + *
+   * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+   * applicable.
+   * 
+ * + * optional string global_resource_link = 516569583; + * + * @return Whether the globalResourceLink field is set. + */ + @java.lang.Override + public boolean hasGlobalResourceLink() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+   * applicable.
+   * 
+ * + * optional string global_resource_link = 516569583; + * + * @return The globalResourceLink. + */ + @java.lang.Override + public java.lang.String getGlobalResourceLink() { + java.lang.Object ref = globalResourceLink_; + 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(); + globalResourceLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+   * applicable.
+   * 
+ * + * optional string global_resource_link = 516569583; + * + * @return The bytes for globalResourceLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGlobalResourceLinkBytes() { + java.lang.Object ref = globalResourceLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + globalResourceLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3355; + private long id_ = 0L; + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int INSTANCE_SELECTORS_FIELD_NUMBER = 520298826; + + @SuppressWarnings("serial") + private java.util.List + instanceSelectors_; + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + @java.lang.Override + public java.util.List + getInstanceSelectorsList() { + return instanceSelectors_; + } + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder> + getInstanceSelectorsOrBuilderList() { + return instanceSelectors_; + } + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + @java.lang.Override + public int getInstanceSelectorsCount() { + return instanceSelectors_.size(); + } + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector getInstanceSelectors( + int index) { + return instanceSelectors_.get(index); + } + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder + getInstanceSelectorsOrBuilder(int index) { + return instanceSelectors_.get(index); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGED_BY_GLOBAL_FIELD_NUMBER = 88605675; + private boolean managedByGlobal_ = false; + + /** + * + * + *
+   * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+   * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return Whether the managedByGlobal field is set. + */ + @java.lang.Override + public boolean hasManagedByGlobal() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+   * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return The managedByGlobal. + */ + @java.lang.Override + public boolean getManagedByGlobal() { + return managedByGlobal_; + } + + public static final int NAME_FIELD_NUMBER = 3373707; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Name of the resource. Provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+   * which means the first character must be a lowercase letter, and all
+   * following characters must be a dash, lowercase letter, or digit, except
+   * the last character, which cannot be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Name of the resource. Provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+   * which means the first character must be a lowercase letter, and all
+   * following characters must be a dash, lowercase letter, or digit, except
+   * the last character, which cannot be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @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; + } + } + + /** + * + * + *
+   * Name of the resource. Provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+   * which means the first character must be a lowercase letter, and all
+   * following characters must be a dash, lowercase letter, or digit, except
+   * the last character, which cannot be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @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 PRIORITY_FIELD_NUMBER = 445151652; + private int priority_ = 0; + + /** + * + * + *
+   * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+   * apply to the same extension.
+   * The policy priority is an integer from 0 to 65535, inclusive. Lower
+   * integers indicate higher priorities. If you do not specify a priority when
+   * creating a rule, it is assigned a priority of 1000. If priorities are
+   * equal, the policy with the most recent creation timestamp takes precedence.
+   * 
+ * + * optional int32 priority = 445151652; + * + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+   * apply to the same extension.
+   * The policy priority is an integer from 0 to 65535, inclusive. Lower
+   * integers indicate higher priorities. If you do not specify a priority when
+   * creating a rule, it is assigned a priority of 1000. If priorities are
+   * equal, the policy with the most recent creation timestamp takes precedence.
+   * 
+ * + * optional int32 priority = 445151652; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_WITH_ID_FIELD_NUMBER = 44520962; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLinkWithId_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + @java.lang.Override + public boolean hasSelfLinkWithId() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + @java.lang.Override + public java.lang.String getSelfLinkWithId() { + java.lang.Object ref = selfLinkWithId_; + 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(); + selfLinkWithId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { + java.lang.Object ref = selfLinkWithId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLinkWithId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 109757585; + + @SuppressWarnings("serial") + private volatile java.lang.Object state_ = ""; + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * Check the State enum for the list of possible values.
+   * 
+ * + * optional string state = 109757585; + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * Check the State enum for the list of possible values.
+   * 
+ * + * optional string state = 109757585; + * + * @return The state. + */ + @java.lang.Override + public java.lang.String getState() { + java.lang.Object ref = state_; + 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(); + state_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * Check the State enum for the list of possible values.
+   * 
+ * + * optional string state = 109757585; + * + * @return The bytes for state. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateBytes() { + java.lang.Object ref = state_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + state_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_TIMESTAMP_FIELD_NUMBER = 120894752; + + @SuppressWarnings("serial") + private volatile java.lang.Object updateTimestamp_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Update timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string update_timestamp = 120894752; + * + * @return Whether the updateTimestamp field is set. + */ + @java.lang.Override + public boolean hasUpdateTimestamp() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Update timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string update_timestamp = 120894752; + * + * @return The updateTimestamp. + */ + @java.lang.Override + public java.lang.String getUpdateTimestamp() { + java.lang.Object ref = updateTimestamp_; + 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(); + updateTimestamp_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Update timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string update_timestamp = 120894752; + * + * @return The bytes for updateTimestamp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUpdateTimestampBytes() { + java.lang.Object ref = updateTimestamp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + updateTimestamp_ = 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 (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt64(3355, id_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3373707, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 30525366, creationTimestamp_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 44520962, selfLinkWithId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(88605675, managedByGlobal_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 109757585, state_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 120894752, updateTimestamp_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetExtensionPolicies(), + ExtensionPoliciesDefaultEntryHolder.defaultEntry, + 227761488); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 422937596, description_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt32(445151652, priority_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 516569583, globalResourceLink_); + } + for (int i = 0; i < instanceSelectors_.size(); i++) { + output.writeMessage(520298826, instanceSelectors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3373707, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(30525366, creationTimestamp_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(44520962, selfLinkWithId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(88605675, managedByGlobal_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(109757585, state_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(120894752, updateTimestamp_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + entry : internalGetExtensionPolicies().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + extensionPolicies__ = + ExtensionPoliciesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(227761488, extensionPolicies__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(422937596, description_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(445151652, priority_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(516569583, globalResourceLink_); + } + for (int i = 0; i < instanceSelectors_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 520298826, instanceSelectors_.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.compute.v1.VmExtensionPolicy)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.VmExtensionPolicy other = + (com.google.cloud.compute.v1.VmExtensionPolicy) obj; + + if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; + if (hasCreationTimestamp()) { + if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (!internalGetExtensionPolicies().equals(other.internalGetExtensionPolicies())) return false; + if (hasGlobalResourceLink() != other.hasGlobalResourceLink()) return false; + if (hasGlobalResourceLink()) { + if (!getGlobalResourceLink().equals(other.getGlobalResourceLink())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (getId() != other.getId()) return false; + } + if (!getInstanceSelectorsList().equals(other.getInstanceSelectorsList())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasManagedByGlobal() != other.hasManagedByGlobal()) return false; + if (hasManagedByGlobal()) { + if (getManagedByGlobal() != other.getManagedByGlobal()) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName().equals(other.getName())) return false; + } + if (hasPriority() != other.hasPriority()) return false; + if (hasPriority()) { + if (getPriority() != other.getPriority()) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (hasSelfLinkWithId() != other.hasSelfLinkWithId()) return false; + if (hasSelfLinkWithId()) { + if (!getSelfLinkWithId().equals(other.getSelfLinkWithId())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (hasUpdateTimestamp() != other.hasUpdateTimestamp()) return false; + if (hasUpdateTimestamp()) { + if (!getUpdateTimestamp().equals(other.getUpdateTimestamp())) 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 (hasCreationTimestamp()) { + hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getCreationTimestamp().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (!internalGetExtensionPolicies().getMap().isEmpty()) { + hash = (37 * hash) + EXTENSION_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetExtensionPolicies().hashCode(); + } + if (hasGlobalResourceLink()) { + hash = (37 * hash) + GLOBAL_RESOURCE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGlobalResourceLink().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); + } + if (getInstanceSelectorsCount() > 0) { + hash = (37 * hash) + INSTANCE_SELECTORS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceSelectorsList().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasManagedByGlobal()) { + hash = (37 * hash) + MANAGED_BY_GLOBAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedByGlobal()); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasPriority()) { + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (hasSelfLinkWithId()) { + hash = (37 * hash) + SELF_LINK_WITH_ID_FIELD_NUMBER; + hash = (53 * hash) + getSelfLinkWithId().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (hasUpdateTimestamp()) { + hash = (37 * hash) + UPDATE_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTimestamp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy 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.compute.v1.VmExtensionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.VmExtensionPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a VM extension policy.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmExtensionPolicy) + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 227761488: + return internalGetExtensionPolicies(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 227761488: + return internalGetMutableExtensionPolicies(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicy.class, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.VmExtensionPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + creationTimestamp_ = ""; + description_ = ""; + internalGetMutableExtensionPolicies().clear(); + globalResourceLink_ = ""; + id_ = 0L; + if (instanceSelectorsBuilder_ == null) { + instanceSelectors_ = java.util.Collections.emptyList(); + } else { + instanceSelectors_ = null; + instanceSelectorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + kind_ = ""; + managedByGlobal_ = false; + name_ = ""; + priority_ = 0; + selfLink_ = ""; + selfLinkWithId_ = ""; + state_ = ""; + updateTimestamp_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicy getDefaultInstanceForType() { + return com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicy build() { + com.google.cloud.compute.v1.VmExtensionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicy buildPartial() { + com.google.cloud.compute.v1.VmExtensionPolicy result = + new com.google.cloud.compute.v1.VmExtensionPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.compute.v1.VmExtensionPolicy result) { + if (instanceSelectorsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + instanceSelectors_ = java.util.Collections.unmodifiableList(instanceSelectors_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.instanceSelectors_ = instanceSelectors_; + } else { + result.instanceSelectors_ = instanceSelectorsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.VmExtensionPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.creationTimestamp_ = creationTimestamp_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extensionPolicies_ = + internalGetExtensionPolicies().build(ExtensionPoliciesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.globalResourceLink_ = globalResourceLink_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.managedByGlobal_ = managedByGlobal_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.priority_ = priority_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.selfLinkWithId_ = selfLinkWithId_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.updateTimestamp_ = updateTimestamp_; + to_bitField0_ |= 0x00000800; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.VmExtensionPolicy) { + return mergeFrom((com.google.cloud.compute.v1.VmExtensionPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.VmExtensionPolicy other) { + if (other == com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance()) return this; + if (other.hasCreationTimestamp()) { + creationTimestamp_ = other.creationTimestamp_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableExtensionPolicies().mergeFrom(other.internalGetExtensionPolicies()); + bitField0_ |= 0x00000004; + if (other.hasGlobalResourceLink()) { + globalResourceLink_ = other.globalResourceLink_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasId()) { + setId(other.getId()); + } + if (instanceSelectorsBuilder_ == null) { + if (!other.instanceSelectors_.isEmpty()) { + if (instanceSelectors_.isEmpty()) { + instanceSelectors_ = other.instanceSelectors_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.addAll(other.instanceSelectors_); + } + onChanged(); + } + } else { + if (!other.instanceSelectors_.isEmpty()) { + if (instanceSelectorsBuilder_.isEmpty()) { + instanceSelectorsBuilder_.dispose(); + instanceSelectorsBuilder_ = null; + instanceSelectors_ = other.instanceSelectors_; + bitField0_ = (bitField0_ & ~0x00000020); + instanceSelectorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInstanceSelectorsFieldBuilder() + : null; + } else { + instanceSelectorsBuilder_.addAllMessages(other.instanceSelectors_); + } + } + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasManagedByGlobal()) { + setManagedByGlobal(other.getManagedByGlobal()); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasPriority()) { + setPriority(other.getPriority()); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasSelfLinkWithId()) { + selfLinkWithId_ = other.selfLinkWithId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasState()) { + state_ = other.state_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasUpdateTimestamp()) { + updateTimestamp_ = other.updateTimestamp_; + bitField0_ |= 0x00002000; + 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 26840: + { + id_ = input.readUInt64(); + bitField0_ |= 0x00000010; + break; + } // case 26840 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 26336418 + case 26989658: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 26989658 + case 244202930: + { + creationTimestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 244202930 + case 356167698: + { + selfLinkWithId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 356167698 + case 708845400: + { + managedByGlobal_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 708845400 + case 878060682: + { + state_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 878060682 + case 967158018: + { + updateTimestamp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 967158018 + case 1822091906: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + extensionPolicies__ = + input.readMessage( + ExtensionPoliciesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableExtensionPolicies() + .ensureBuilderMap() + .put(extensionPolicies__.getKey(), extensionPolicies__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 1822091906 + case -911466526: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -911466526 + case -733754080: + { + priority_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case -733754080 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case -645248918 + case -162410630: + { + globalResourceLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case -162410630 + case -132576686: + { + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector m = + input.readMessage( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.parser(), + extensionRegistry); + if (instanceSelectorsBuilder_ == null) { + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.add(m); + } else { + instanceSelectorsBuilder_.addMessage(m); + } + break; + } // case -132576686 + 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 creationTimestamp_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + public boolean hasCreationTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + public java.lang.String getCreationTimestamp() { + java.lang.Object ref = creationTimestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creationTimestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + public com.google.protobuf.ByteString getCreationTimestampBytes() { + java.lang.Object ref = creationTimestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creationTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @param value The creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestamp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creationTimestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return This builder for chaining. + */ + public Builder clearCreationTimestamp() { + creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Creation timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string creation_timestamp = 30525366; + * + * @param value The bytes for creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creationTimestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * An optional description of this resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * An optional description of this resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional description of this resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return The bytes for description. + */ + 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; + } + } + + /** + * + * + *
+     * An optional description of this resource.
+     * 
+ * + * optional string description = 422937596; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional description of this resource.
+     * 
+ * + * optional string description = 422937596; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional description of this resource.
+     * 
+ * + * optional string description = 422937596; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private static final class ExtensionPoliciesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> { + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy build( + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder val) { + if (val instanceof com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) { + return (com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) val; + } + return ((com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + defaultEntry() { + return ExtensionPoliciesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ExtensionPoliciesConverter extensionPoliciesConverter = + new ExtensionPoliciesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder> + extensionPolicies_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder> + internalGetExtensionPolicies() { + if (extensionPolicies_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(extensionPoliciesConverter); + } + return extensionPolicies_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder> + internalGetMutableExtensionPolicies() { + if (extensionPolicies_ == null) { + extensionPolicies_ = new com.google.protobuf.MapFieldBuilder<>(extensionPoliciesConverter); + } + bitField0_ |= 0x00000004; + onChanged(); + return extensionPolicies_; + } + + public int getExtensionPoliciesCount() { + return internalGetExtensionPolicies().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public boolean containsExtensionPolicies(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetExtensionPolicies().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getExtensionPoliciesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + getExtensionPolicies() { + return getExtensionPoliciesMap(); + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + getExtensionPoliciesMap() { + return internalGetExtensionPolicies().getImmutableMap(); + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + getExtensionPoliciesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder> + map = internalGetMutableExtensionPolicies().ensureBuilderMap(); + return map.containsKey(key) ? extensionPoliciesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy getExtensionPoliciesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder> + map = internalGetMutableExtensionPolicies().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return extensionPoliciesConverter.build(map.get(key)); + } + + public Builder clearExtensionPolicies() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableExtensionPolicies().clear(); + return this; + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + public Builder removeExtensionPolicies(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableExtensionPolicies().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + getMutableExtensionPolicies() { + bitField0_ |= 0x00000004; + return internalGetMutableExtensionPolicies().ensureMessageMap(); + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + public Builder putExtensionPolicies( + java.lang.String key, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableExtensionPolicies().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + public Builder putAllExtensionPolicies( + java.util.Map< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableExtensionPolicies().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Required. A map of extension names (for example, "ops-agent") to their corresponding
+     * policy configurations.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder + putExtensionPoliciesBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder> + builderMap = internalGetMutableExtensionPolicies().ensureBuilderMap(); + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) { + entry = ((com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder) entry; + } + + private java.lang.Object globalResourceLink_ = ""; + + /** + * + * + *
+     * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+     * applicable.
+     * 
+ * + * optional string global_resource_link = 516569583; + * + * @return Whether the globalResourceLink field is set. + */ + public boolean hasGlobalResourceLink() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+     * applicable.
+     * 
+ * + * optional string global_resource_link = 516569583; + * + * @return The globalResourceLink. + */ + public java.lang.String getGlobalResourceLink() { + java.lang.Object ref = globalResourceLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + globalResourceLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+     * applicable.
+     * 
+ * + * optional string global_resource_link = 516569583; + * + * @return The bytes for globalResourceLink. + */ + public com.google.protobuf.ByteString getGlobalResourceLinkBytes() { + java.lang.Object ref = globalResourceLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + globalResourceLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+     * applicable.
+     * 
+ * + * optional string global_resource_link = 516569583; + * + * @param value The globalResourceLink to set. + * @return This builder for chaining. + */ + public Builder setGlobalResourceLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + globalResourceLink_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+     * applicable.
+     * 
+ * + * optional string global_resource_link = 516569583; + * + * @return This builder for chaining. + */ + public Builder clearGlobalResourceLink() { + globalResourceLink_ = getDefaultInstance().getGlobalResourceLink(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+     * applicable.
+     * 
+ * + * optional string global_resource_link = 516569583; + * + * @param value The bytes for globalResourceLink to set. + * @return This builder for chaining. + */ + public Builder setGlobalResourceLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + globalResourceLink_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long id_; + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] The unique identifier for the resource. This identifier is
+     * defined by the server.
+     * 
+ * + * optional uint64 id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000010); + id_ = 0L; + onChanged(); + return this; + } + + private java.util.List + instanceSelectors_ = java.util.Collections.emptyList(); + + private void ensureInstanceSelectorsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + instanceSelectors_ = + new java.util.ArrayList( + instanceSelectors_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder> + instanceSelectorsBuilder_; + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public java.util.List + getInstanceSelectorsList() { + if (instanceSelectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(instanceSelectors_); + } else { + return instanceSelectorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public int getInstanceSelectorsCount() { + if (instanceSelectorsBuilder_ == null) { + return instanceSelectors_.size(); + } else { + return instanceSelectorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector getInstanceSelectors( + int index) { + if (instanceSelectorsBuilder_ == null) { + return instanceSelectors_.get(index); + } else { + return instanceSelectorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder setInstanceSelectors( + int index, com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector value) { + if (instanceSelectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.set(index, value); + onChanged(); + } else { + instanceSelectorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder setInstanceSelectors( + int index, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder builderForValue) { + if (instanceSelectorsBuilder_ == null) { + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.set(index, builderForValue.build()); + onChanged(); + } else { + instanceSelectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder addInstanceSelectors( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector value) { + if (instanceSelectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.add(value); + onChanged(); + } else { + instanceSelectorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder addInstanceSelectors( + int index, com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector value) { + if (instanceSelectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.add(index, value); + onChanged(); + } else { + instanceSelectorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder addInstanceSelectors( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder builderForValue) { + if (instanceSelectorsBuilder_ == null) { + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.add(builderForValue.build()); + onChanged(); + } else { + instanceSelectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder addInstanceSelectors( + int index, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder builderForValue) { + if (instanceSelectorsBuilder_ == null) { + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.add(index, builderForValue.build()); + onChanged(); + } else { + instanceSelectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder addAllInstanceSelectors( + java.lang.Iterable + values) { + if (instanceSelectorsBuilder_ == null) { + ensureInstanceSelectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceSelectors_); + onChanged(); + } else { + instanceSelectorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder clearInstanceSelectors() { + if (instanceSelectorsBuilder_ == null) { + instanceSelectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + instanceSelectorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public Builder removeInstanceSelectors(int index) { + if (instanceSelectorsBuilder_ == null) { + ensureInstanceSelectorsIsMutable(); + instanceSelectors_.remove(index); + onChanged(); + } else { + instanceSelectorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder + getInstanceSelectorsBuilder(int index) { + return internalGetInstanceSelectorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder + getInstanceSelectorsOrBuilder(int index) { + if (instanceSelectorsBuilder_ == null) { + return instanceSelectors_.get(index); + } else { + return instanceSelectorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public java.util.List< + ? extends com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder> + getInstanceSelectorsOrBuilderList() { + if (instanceSelectorsBuilder_ != null) { + return instanceSelectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instanceSelectors_); + } + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder + addInstanceSelectorsBuilder() { + return internalGetInstanceSelectorsFieldBuilder() + .addBuilder( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder + addInstanceSelectorsBuilder(int index) { + return internalGetInstanceSelectorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+     * *any* of the provided selectors (logical OR). If this list is empty, the
+     * policy applies to all VMs.
+     * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + public java.util.List + getInstanceSelectorsBuilderList() { + return internalGetInstanceSelectorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder> + internalGetInstanceSelectorsFieldBuilder() { + if (instanceSelectorsBuilder_ == null) { + instanceSelectorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder>( + instanceSelectors_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + instanceSelectors_ = null; + } + return instanceSelectorsBuilder_; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean managedByGlobal_; + + /** + * + * + *
+     * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+     * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return Whether the managedByGlobal field is set. + */ + @java.lang.Override + public boolean hasManagedByGlobal() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+     * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return The managedByGlobal. + */ + @java.lang.Override + public boolean getManagedByGlobal() { + return managedByGlobal_; + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+     * 
+ * + * optional bool managed_by_global = 88605675; + * + * @param value The managedByGlobal to set. + * @return This builder for chaining. + */ + public Builder setManagedByGlobal(boolean value) { + + managedByGlobal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+     * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return This builder for chaining. + */ + public Builder clearManagedByGlobal() { + bitField0_ = (bitField0_ & ~0x00000080); + managedByGlobal_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Name of the resource. Provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+     * which means the first character must be a lowercase letter, and all
+     * following characters must be a dash, lowercase letter, or digit, except
+     * the last character, which cannot be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Name of the resource. Provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+     * which means the first character must be a lowercase letter, and all
+     * following characters must be a dash, lowercase letter, or digit, except
+     * the last character, which cannot be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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; + } + } + + /** + * + * + *
+     * Name of the resource. Provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+     * which means the first character must be a lowercase letter, and all
+     * following characters must be a dash, lowercase letter, or digit, except
+     * the last character, which cannot be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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; + } + } + + /** + * + * + *
+     * Name of the resource. Provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+     * which means the first character must be a lowercase letter, and all
+     * following characters must be a dash, lowercase letter, or digit, except
+     * the last character, which cannot be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the resource. Provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+     * which means the first character must be a lowercase letter, and all
+     * following characters must be a dash, lowercase letter, or digit, except
+     * the last character, which cannot be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the resource. Provided by the client when the resource is created.
+     * The name must be 1-63 characters long, and comply withRFC1035.
+     * Specifically, the name must be 1-63 characters long and match the regular
+     * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+     * which means the first character must be a lowercase letter, and all
+     * following characters must be a dash, lowercase letter, or digit, except
+     * the last character, which cannot be a dash.
+     * 
+ * + * optional string name = 3373707; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + private int priority_; + + /** + * + * + *
+     * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+     * apply to the same extension.
+     * The policy priority is an integer from 0 to 65535, inclusive. Lower
+     * integers indicate higher priorities. If you do not specify a priority when
+     * creating a rule, it is assigned a priority of 1000. If priorities are
+     * equal, the policy with the most recent creation timestamp takes precedence.
+     * 
+ * + * optional int32 priority = 445151652; + * + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+     * apply to the same extension.
+     * The policy priority is an integer from 0 to 65535, inclusive. Lower
+     * integers indicate higher priorities. If you do not specify a priority when
+     * creating a rule, it is assigned a priority of 1000. If priorities are
+     * equal, the policy with the most recent creation timestamp takes precedence.
+     * 
+ * + * optional int32 priority = 445151652; + * + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + /** + * + * + *
+     * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+     * apply to the same extension.
+     * The policy priority is an integer from 0 to 65535, inclusive. Lower
+     * integers indicate higher priorities. If you do not specify a priority when
+     * creating a rule, it is assigned a priority of 1000. If priorities are
+     * equal, the policy with the most recent creation timestamp takes precedence.
+     * 
+ * + * optional int32 priority = 445151652; + * + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(int value) { + + priority_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+     * apply to the same extension.
+     * The policy priority is an integer from 0 to 65535, inclusive. Lower
+     * integers indicate higher priorities. If you do not specify a priority when
+     * creating a rule, it is assigned a priority of 1000. If priorities are
+     * equal, the policy with the most recent creation timestamp takes precedence.
+     * 
+ * + * optional int32 priority = 445151652; + * + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000200); + priority_ = 0; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object selfLinkWithId_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + public boolean hasSelfLinkWithId() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + public java.lang.String getSelfLinkWithId() { + java.lang.Object ref = selfLinkWithId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLinkWithId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { + java.lang.Object ref = selfLinkWithId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLinkWithId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @param value The selfLinkWithId to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkWithId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLinkWithId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return This builder for chaining. + */ + public Builder clearSelfLinkWithId() { + selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource's resource id.
+     * 
+ * + * optional string self_link_with_id = 44520962; + * + * @param value The bytes for selfLinkWithId to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLinkWithId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object state_ = ""; + + /** + * + * + *
+     * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+     * Check the State enum for the list of possible values.
+     * 
+ * + * optional string state = 109757585; + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+     * Check the State enum for the list of possible values.
+     * 
+ * + * optional string state = 109757585; + * + * @return The state. + */ + public java.lang.String getState() { + java.lang.Object ref = state_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + state_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+     * Check the State enum for the list of possible values.
+     * 
+ * + * optional string state = 109757585; + * + * @return The bytes for state. + */ + public com.google.protobuf.ByteString getStateBytes() { + java.lang.Object ref = state_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + state_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+     * Check the State enum for the list of possible values.
+     * 
+ * + * optional string state = 109757585; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+     * Check the State enum for the list of possible values.
+     * 
+ * + * optional string state = 109757585; + * + * @return This builder for chaining. + */ + public Builder clearState() { + state_ = getDefaultInstance().getState(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+     * Check the State enum for the list of possible values.
+     * 
+ * + * optional string state = 109757585; + * + * @param value The bytes for state to set. + * @return This builder for chaining. + */ + public Builder setStateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + state_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object updateTimestamp_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Update timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string update_timestamp = 120894752; + * + * @return Whether the updateTimestamp field is set. + */ + public boolean hasUpdateTimestamp() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Update timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string update_timestamp = 120894752; + * + * @return The updateTimestamp. + */ + public java.lang.String getUpdateTimestamp() { + java.lang.Object ref = updateTimestamp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + updateTimestamp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Update timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string update_timestamp = 120894752; + * + * @return The bytes for updateTimestamp. + */ + public com.google.protobuf.ByteString getUpdateTimestampBytes() { + java.lang.Object ref = updateTimestamp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + updateTimestamp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Update timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string update_timestamp = 120894752; + * + * @param value The updateTimestamp to set. + * @return This builder for chaining. + */ + public Builder setUpdateTimestamp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + updateTimestamp_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Update timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string update_timestamp = 120894752; + * + * @return This builder for chaining. + */ + public Builder clearUpdateTimestamp() { + updateTimestamp_ = getDefaultInstance().getUpdateTimestamp(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Update timestamp inRFC3339
+     * text format.
+     * 
+ * + * optional string update_timestamp = 120894752; + * + * @param value The bytes for updateTimestamp to set. + * @return This builder for chaining. + */ + public Builder setUpdateTimestampBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + updateTimestamp_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.VmExtensionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmExtensionPolicy) + private static final com.google.cloud.compute.v1.VmExtensionPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmExtensionPolicy(); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmExtensionPolicy 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.compute.v1.VmExtensionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicy.java new file mode 100644 index 000000000000..45ac72c79b62 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicy.java @@ -0,0 +1,877 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Configuration for a specific VM extension.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy} + */ +@com.google.protobuf.Generated +public final class VmExtensionPolicyExtensionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) + VmExtensionPolicyExtensionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VmExtensionPolicyExtensionPolicy"); + } + + // Use VmExtensionPolicyExtensionPolicy.newBuilder() to construct. + private VmExtensionPolicyExtensionPolicy( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VmExtensionPolicyExtensionPolicy() { + pinnedVersion_ = ""; + stringConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.class, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder.class); + } + + private int bitField0_; + public static final int PINNED_VERSION_FIELD_NUMBER = 446267249; + + @SuppressWarnings("serial") + private volatile java.lang.Object pinnedVersion_ = ""; + + /** + * + * + *
+   * Optional. The specific version of the extension to install. If not set, the latest
+   * version is used.
+   * 
+ * + * optional string pinned_version = 446267249; + * + * @return Whether the pinnedVersion field is set. + */ + @java.lang.Override + public boolean hasPinnedVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The specific version of the extension to install. If not set, the latest
+   * version is used.
+   * 
+ * + * optional string pinned_version = 446267249; + * + * @return The pinnedVersion. + */ + @java.lang.Override + public java.lang.String getPinnedVersion() { + java.lang.Object ref = pinnedVersion_; + 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(); + pinnedVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The specific version of the extension to install. If not set, the latest
+   * version is used.
+   * 
+ * + * optional string pinned_version = 446267249; + * + * @return The bytes for pinnedVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPinnedVersionBytes() { + java.lang.Object ref = pinnedVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pinnedVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRING_CONFIG_FIELD_NUMBER = 318905136; + + @SuppressWarnings("serial") + private volatile java.lang.Object stringConfig_ = ""; + + /** + * + * + *
+   * Optional. String-based configuration data for the extension.
+   * 
+ * + * optional string string_config = 318905136; + * + * @return Whether the stringConfig field is set. + */ + @java.lang.Override + public boolean hasStringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. String-based configuration data for the extension.
+   * 
+ * + * optional string string_config = 318905136; + * + * @return The stringConfig. + */ + @java.lang.Override + public java.lang.String getStringConfig() { + java.lang.Object ref = stringConfig_; + 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(); + stringConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. String-based configuration data for the extension.
+   * 
+ * + * optional string string_config = 318905136; + * + * @return The bytes for stringConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringConfigBytes() { + java.lang.Object ref = stringConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stringConfig_ = 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 (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 318905136, stringConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 446267249, pinnedVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(318905136, stringConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(446267249, pinnedVersion_); + } + 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.compute.v1.VmExtensionPolicyExtensionPolicy)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy other = + (com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) obj; + + if (hasPinnedVersion() != other.hasPinnedVersion()) return false; + if (hasPinnedVersion()) { + if (!getPinnedVersion().equals(other.getPinnedVersion())) return false; + } + if (hasStringConfig() != other.hasStringConfig()) return false; + if (hasStringConfig()) { + if (!getStringConfig().equals(other.getStringConfig())) 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 (hasPinnedVersion()) { + hash = (37 * hash) + PINNED_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPinnedVersion().hashCode(); + } + if (hasStringConfig()) { + hash = (37 * hash) + STRING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStringConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy 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.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.VmExtensionPolicyExtensionPolicy 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a specific VM extension.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.class, + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pinnedVersion_ = ""; + stringConfig_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyExtensionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy build() { + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy buildPartial() { + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy result = + new com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pinnedVersion_ = pinnedVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stringConfig_ = stringConfig_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) { + return mergeFrom((com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy other) { + if (other + == com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy.getDefaultInstance()) + return this; + if (other.hasPinnedVersion()) { + pinnedVersion_ = other.pinnedVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStringConfig()) { + stringConfig_ = other.stringConfig_; + 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 -1743726206: + { + stringConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case -1743726206 + case -724829302: + { + pinnedVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -724829302 + 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 pinnedVersion_ = ""; + + /** + * + * + *
+     * Optional. The specific version of the extension to install. If not set, the latest
+     * version is used.
+     * 
+ * + * optional string pinned_version = 446267249; + * + * @return Whether the pinnedVersion field is set. + */ + public boolean hasPinnedVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The specific version of the extension to install. If not set, the latest
+     * version is used.
+     * 
+ * + * optional string pinned_version = 446267249; + * + * @return The pinnedVersion. + */ + public java.lang.String getPinnedVersion() { + java.lang.Object ref = pinnedVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pinnedVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The specific version of the extension to install. If not set, the latest
+     * version is used.
+     * 
+ * + * optional string pinned_version = 446267249; + * + * @return The bytes for pinnedVersion. + */ + public com.google.protobuf.ByteString getPinnedVersionBytes() { + java.lang.Object ref = pinnedVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pinnedVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The specific version of the extension to install. If not set, the latest
+     * version is used.
+     * 
+ * + * optional string pinned_version = 446267249; + * + * @param value The pinnedVersion to set. + * @return This builder for chaining. + */ + public Builder setPinnedVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pinnedVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specific version of the extension to install. If not set, the latest
+     * version is used.
+     * 
+ * + * optional string pinned_version = 446267249; + * + * @return This builder for chaining. + */ + public Builder clearPinnedVersion() { + pinnedVersion_ = getDefaultInstance().getPinnedVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specific version of the extension to install. If not set, the latest
+     * version is used.
+     * 
+ * + * optional string pinned_version = 446267249; + * + * @param value The bytes for pinnedVersion to set. + * @return This builder for chaining. + */ + public Builder setPinnedVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pinnedVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object stringConfig_ = ""; + + /** + * + * + *
+     * Optional. String-based configuration data for the extension.
+     * 
+ * + * optional string string_config = 318905136; + * + * @return Whether the stringConfig field is set. + */ + public boolean hasStringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. String-based configuration data for the extension.
+     * 
+ * + * optional string string_config = 318905136; + * + * @return The stringConfig. + */ + public java.lang.String getStringConfig() { + java.lang.Object ref = stringConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stringConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. String-based configuration data for the extension.
+     * 
+ * + * optional string string_config = 318905136; + * + * @return The bytes for stringConfig. + */ + public com.google.protobuf.ByteString getStringConfigBytes() { + java.lang.Object ref = stringConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stringConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. String-based configuration data for the extension.
+     * 
+ * + * optional string string_config = 318905136; + * + * @param value The stringConfig to set. + * @return This builder for chaining. + */ + public Builder setStringConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stringConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String-based configuration data for the extension.
+     * 
+ * + * optional string string_config = 318905136; + * + * @return This builder for chaining. + */ + public Builder clearStringConfig() { + stringConfig_ = getDefaultInstance().getStringConfig(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String-based configuration data for the extension.
+     * 
+ * + * optional string string_config = 318905136; + * + * @param value The bytes for stringConfig to set. + * @return This builder for chaining. + */ + public Builder setStringConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stringConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) + private static final com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy(); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmExtensionPolicyExtensionPolicy 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.compute.v1.VmExtensionPolicyExtensionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicyOrBuilder.java new file mode 100644 index 000000000000..b028751f3875 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyExtensionPolicyOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface VmExtensionPolicyExtensionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The specific version of the extension to install. If not set, the latest
+   * version is used.
+   * 
+ * + * optional string pinned_version = 446267249; + * + * @return Whether the pinnedVersion field is set. + */ + boolean hasPinnedVersion(); + + /** + * + * + *
+   * Optional. The specific version of the extension to install. If not set, the latest
+   * version is used.
+   * 
+ * + * optional string pinned_version = 446267249; + * + * @return The pinnedVersion. + */ + java.lang.String getPinnedVersion(); + + /** + * + * + *
+   * Optional. The specific version of the extension to install. If not set, the latest
+   * version is used.
+   * 
+ * + * optional string pinned_version = 446267249; + * + * @return The bytes for pinnedVersion. + */ + com.google.protobuf.ByteString getPinnedVersionBytes(); + + /** + * + * + *
+   * Optional. String-based configuration data for the extension.
+   * 
+ * + * optional string string_config = 318905136; + * + * @return Whether the stringConfig field is set. + */ + boolean hasStringConfig(); + + /** + * + * + *
+   * Optional. String-based configuration data for the extension.
+   * 
+ * + * optional string string_config = 318905136; + * + * @return The stringConfig. + */ + java.lang.String getStringConfig(); + + /** + * + * + *
+   * Optional. String-based configuration data for the extension.
+   * 
+ * + * optional string string_config = 318905136; + * + * @return The bytes for stringConfig. + */ + com.google.protobuf.ByteString getStringConfigBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelector.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelector.java new file mode 100644 index 000000000000..00d9a414625e --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelector.java @@ -0,0 +1,738 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Defines how to select VMs to apply a zone VM extension policy.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyInstanceSelector} + */ +@com.google.protobuf.Generated +public final class VmExtensionPolicyInstanceSelector extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) + VmExtensionPolicyInstanceSelectorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VmExtensionPolicyInstanceSelector"); + } + + // Use VmExtensionPolicyInstanceSelector.newBuilder() to construct. + private VmExtensionPolicyInstanceSelector( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VmExtensionPolicyInstanceSelector() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.class, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder.class); + } + + private int bitField0_; + public static final int LABEL_SELECTOR_FIELD_NUMBER = 349780170; + private com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector labelSelector_; + + /** + * + * + *
+   * Optional. LabelSelector selects VMs based on their labels.
+   * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + * + * @return Whether the labelSelector field is set. + */ + @java.lang.Override + public boolean hasLabelSelector() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. LabelSelector selects VMs based on their labels.
+   * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + * + * @return The labelSelector. + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector getLabelSelector() { + return labelSelector_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.getDefaultInstance() + : labelSelector_; + } + + /** + * + * + *
+   * Optional. LabelSelector selects VMs based on their labels.
+   * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder + getLabelSelectorOrBuilder() { + return labelSelector_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.getDefaultInstance() + : labelSelector_; + } + + 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(349780170, getLabelSelector()); + } + 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(349780170, getLabelSelector()); + } + 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.compute.v1.VmExtensionPolicyInstanceSelector)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector other = + (com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) obj; + + if (hasLabelSelector() != other.hasLabelSelector()) return false; + if (hasLabelSelector()) { + if (!getLabelSelector().equals(other.getLabelSelector())) 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 (hasLabelSelector()) { + hash = (37 * hash) + LABEL_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getLabelSelector().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector 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.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.VmExtensionPolicyInstanceSelector 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines how to select VMs to apply a zone VM extension policy.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyInstanceSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.class, + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLabelSelectorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + labelSelector_ = null; + if (labelSelectorBuilder_ != null) { + labelSelectorBuilder_.dispose(); + labelSelectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyInstanceSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector build() { + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector buildPartial() { + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector result = + new com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.labelSelector_ = + labelSelectorBuilder_ == null ? labelSelector_ : labelSelectorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) { + return mergeFrom((com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector other) { + if (other + == com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector.getDefaultInstance()) + return this; + if (other.hasLabelSelector()) { + mergeLabelSelector(other.getLabelSelector()); + } + 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 -1496725934: + { + input.readMessage( + internalGetLabelSelectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case -1496725934 + 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.compute.v1.VmExtensionPolicyLabelSelector labelSelector_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder> + labelSelectorBuilder_; + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + * + * @return Whether the labelSelector field is set. + */ + public boolean hasLabelSelector() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + * + * @return The labelSelector. + */ + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector getLabelSelector() { + if (labelSelectorBuilder_ == null) { + return labelSelector_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.getDefaultInstance() + : labelSelector_; + } else { + return labelSelectorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + public Builder setLabelSelector( + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector value) { + if (labelSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labelSelector_ = value; + } else { + labelSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + public Builder setLabelSelector( + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder builderForValue) { + if (labelSelectorBuilder_ == null) { + labelSelector_ = builderForValue.build(); + } else { + labelSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + public Builder mergeLabelSelector( + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector value) { + if (labelSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && labelSelector_ != null + && labelSelector_ + != com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector + .getDefaultInstance()) { + getLabelSelectorBuilder().mergeFrom(value); + } else { + labelSelector_ = value; + } + } else { + labelSelectorBuilder_.mergeFrom(value); + } + if (labelSelector_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + public Builder clearLabelSelector() { + bitField0_ = (bitField0_ & ~0x00000001); + labelSelector_ = null; + if (labelSelectorBuilder_ != null) { + labelSelectorBuilder_.dispose(); + labelSelectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder + getLabelSelectorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLabelSelectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder + getLabelSelectorOrBuilder() { + if (labelSelectorBuilder_ != null) { + return labelSelectorBuilder_.getMessageOrBuilder(); + } else { + return labelSelector_ == null + ? com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.getDefaultInstance() + : labelSelector_; + } + } + + /** + * + * + *
+     * Optional. LabelSelector selects VMs based on their labels.
+     * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder> + internalGetLabelSelectorFieldBuilder() { + if (labelSelectorBuilder_ == null) { + labelSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder>( + getLabelSelector(), getParentForChildren(), isClean()); + labelSelector_ = null; + } + return labelSelectorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) + private static final com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector(); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmExtensionPolicyInstanceSelector 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.compute.v1.VmExtensionPolicyInstanceSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelectorOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelectorOrBuilder.java new file mode 100644 index 000000000000..67748c2c4c84 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyInstanceSelectorOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface VmExtensionPolicyInstanceSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.VmExtensionPolicyInstanceSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. LabelSelector selects VMs based on their labels.
+   * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + * + * @return Whether the labelSelector field is set. + */ + boolean hasLabelSelector(); + + /** + * + * + *
+   * Optional. LabelSelector selects VMs based on their labels.
+   * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + * + * @return The labelSelector. + */ + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector getLabelSelector(); + + /** + * + * + *
+   * Optional. LabelSelector selects VMs based on their labels.
+   * 
+ * + * + * optional .google.cloud.compute.v1.VmExtensionPolicyLabelSelector label_selector = 349780170; + * + */ + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder getLabelSelectorOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelector.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelector.java new file mode 100644 index 000000000000..8d82f22225e1 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelector.java @@ -0,0 +1,867 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A LabelSelector is applied to a VM only if it matches all the specified
+ * labels.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyLabelSelector} + */ +@com.google.protobuf.Generated +public final class VmExtensionPolicyLabelSelector extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmExtensionPolicyLabelSelector) + VmExtensionPolicyLabelSelectorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VmExtensionPolicyLabelSelector"); + } + + // Use VmExtensionPolicyLabelSelector.newBuilder() to construct. + private VmExtensionPolicyLabelSelector(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VmExtensionPolicyLabelSelector() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 501312642: + return internalGetInclusionLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.class, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder.class); + } + + public static final int INCLUSION_LABELS_FIELD_NUMBER = 501312642; + + private static final class InclusionLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_InclusionLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField inclusionLabels_; + + private com.google.protobuf.MapField + internalGetInclusionLabels() { + if (inclusionLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InclusionLabelsDefaultEntryHolder.defaultEntry); + } + return inclusionLabels_; + } + + public int getInclusionLabelsCount() { + return internalGetInclusionLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public boolean containsInclusionLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInclusionLabels().getMap().containsKey(key); + } + + /** Use {@link #getInclusionLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInclusionLabels() { + return getInclusionLabelsMap(); + } + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public java.util.Map getInclusionLabelsMap() { + return internalGetInclusionLabels().getMap(); + } + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public /* nullable */ java.lang.String getInclusionLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public java.lang.String getInclusionLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().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.GeneratedMessage.serializeStringMapTo( + output, + internalGetInclusionLabels(), + InclusionLabelsDefaultEntryHolder.defaultEntry, + 501312642); + 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 : + internalGetInclusionLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry inclusionLabels__ = + InclusionLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(501312642, inclusionLabels__); + } + 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.compute.v1.VmExtensionPolicyLabelSelector)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector other = + (com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector) obj; + + if (!internalGetInclusionLabels().equals(other.internalGetInclusionLabels())) 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 (!internalGetInclusionLabels().getMap().isEmpty()) { + hash = (37 * hash) + INCLUSION_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInclusionLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector 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.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.VmExtensionPolicyLabelSelector 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A LabelSelector is applied to a VM only if it matches all the specified
+   * labels.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyLabelSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmExtensionPolicyLabelSelector) + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 501312642: + return internalGetInclusionLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 501312642: + return internalGetMutableInclusionLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.class, + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableInclusionLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyLabelSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector getDefaultInstanceForType() { + return com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector build() { + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector buildPartial() { + com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector result = + new com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inclusionLabels_ = internalGetInclusionLabels(); + result.inclusionLabels_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector) { + return mergeFrom((com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector other) { + if (other == com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector.getDefaultInstance()) + return this; + internalGetMutableInclusionLabels().mergeFrom(other.internalGetInclusionLabels()); + 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 -284466158: + { + com.google.protobuf.MapEntry inclusionLabels__ = + input.readMessage( + InclusionLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableInclusionLabels() + .getMutableMap() + .put(inclusionLabels__.getKey(), inclusionLabels__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case -284466158 + 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 inclusionLabels_; + + private com.google.protobuf.MapField + internalGetInclusionLabels() { + if (inclusionLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InclusionLabelsDefaultEntryHolder.defaultEntry); + } + return inclusionLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableInclusionLabels() { + if (inclusionLabels_ == null) { + inclusionLabels_ = + com.google.protobuf.MapField.newMapField( + InclusionLabelsDefaultEntryHolder.defaultEntry); + } + if (!inclusionLabels_.isMutable()) { + inclusionLabels_ = inclusionLabels_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return inclusionLabels_; + } + + public int getInclusionLabelsCount() { + return internalGetInclusionLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public boolean containsInclusionLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInclusionLabels().getMap().containsKey(key); + } + + /** Use {@link #getInclusionLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInclusionLabels() { + return getInclusionLabelsMap(); + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public java.util.Map getInclusionLabelsMap() { + return internalGetInclusionLabels().getMap(); + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public /* nullable */ java.lang.String getInclusionLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + @java.lang.Override + public java.lang.String getInclusionLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetInclusionLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearInclusionLabels() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableInclusionLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + public Builder removeInclusionLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInclusionLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableInclusionLabels() { + bitField0_ |= 0x00000001; + return internalGetMutableInclusionLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + public Builder putInclusionLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInclusionLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+     * Optional. A map of key-value pairs representing VM labels.
+     * VMs must have all of the labels specified in this map to be selected
+     * (logical AND).
+     *
+     * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+     * "value2")}, the VM labels must contain both ("key1", "value1") and
+     * ("key2", "value2") to be selected. If the VM labels are ("key1",
+     * "value1") and ("something", "else"), it will not be selected.
+     *
+     * If the map is empty, it's considered a match.
+     * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + public Builder putAllInclusionLabels(java.util.Map values) { + internalGetMutableInclusionLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.VmExtensionPolicyLabelSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmExtensionPolicyLabelSelector) + private static final com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector(); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyLabelSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmExtensionPolicyLabelSelector 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.compute.v1.VmExtensionPolicyLabelSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelectorOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelectorOrBuilder.java new file mode 100644 index 000000000000..5afd045ea586 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyLabelSelectorOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface VmExtensionPolicyLabelSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.VmExtensionPolicyLabelSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + int getInclusionLabelsCount(); + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + boolean containsInclusionLabels(java.lang.String key); + + /** Use {@link #getInclusionLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getInclusionLabels(); + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + java.util.Map getInclusionLabelsMap(); + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + /* nullable */ + java.lang.String getInclusionLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. A map of key-value pairs representing VM labels.
+   * VMs must have all of the labels specified in this map to be selected
+   * (logical AND).
+   *
+   * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2",
+   * "value2")}, the VM labels must contain both ("key1", "value1") and
+   * ("key2", "value2") to be selected. If the VM labels are ("key1",
+   * "value1") and ("something", "else"), it will not be selected.
+   *
+   * If the map is empty, it's considered a match.
+   * 
+ * + * map<string, string> inclusion_labels = 501312642; + */ + java.lang.String getInclusionLabelsOrThrow(java.lang.String key); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyList.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyList.java new file mode 100644 index 000000000000..6456ba0381a3 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyList.java @@ -0,0 +1,2718 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyList} + */ +@com.google.protobuf.Generated +public final class VmExtensionPolicyList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmExtensionPolicyList) + VmExtensionPolicyListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VmExtensionPolicyList"); + } + + // Use VmExtensionPolicyList.newBuilder() to construct. + private VmExtensionPolicyList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VmExtensionPolicyList() { + etag_ = ""; + id_ = ""; + items_ = java.util.Collections.emptyList(); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyList.class, + com.google.cloud.compute.v1.VmExtensionPolicyList.Builder.class); + } + + private int bitField0_; + public static final int ETAG_FIELD_NUMBER = 3123477; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+   * in this object. This field is used in optimistic locking. This field will
+   * be ignored when inserting a VmExtensionPolicy. An up-to-date
+   * fingerprint must be provided in order to update the VmExtensionPolicy.
+   *
+   * To see the latest value of the fingerprint, make a get() request to
+   * retrieve a VmExtensionPolicy.
+   * 
+ * + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+   * in this object. This field is used in optimistic locking. This field will
+   * be ignored when inserting a VmExtensionPolicy. An up-to-date
+   * fingerprint must be provided in order to update the VmExtensionPolicy.
+   *
+   * To see the latest value of the fingerprint, make a get() request to
+   * retrieve a VmExtensionPolicy.
+   * 
+ * + * optional string etag = 3123477; + * + * @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. [Output Only] Fingerprint of this resource. A hash of the contents stored
+   * in this object. This field is used in optimistic locking. This field will
+   * be ignored when inserting a VmExtensionPolicy. An up-to-date
+   * fingerprint must be provided in order to update the VmExtensionPolicy.
+   *
+   * To see the latest value of the fingerprint, make a get() request to
+   * retrieve a VmExtensionPolicy.
+   * 
+ * + * optional string etag = 3123477; + * + * @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 ID_FIELD_NUMBER = 3355; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 100526016; + + @SuppressWarnings("serial") + private java.util.List items_; + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + @java.lang.Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicy getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder getItemsOrBuilder(int index) { + return items_.get(index); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + @java.lang.Override + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @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 SELF_LINK_FIELD_NUMBER = 456214797; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + @java.lang.Override + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLES_FIELD_NUMBER = 243372063; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + return unreachables_; + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + @java.lang.Override + public com.google.cloud.compute.v1.Warning getWarning() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + @java.lang.Override + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; + } + + 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_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(100526016, items_.get(i)); + } + for (int i = 0; i < unreachables_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 243372063, unreachables_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 456214797, selfLink_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3123477, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(79797525, nextPageToken_); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unreachables_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); + } + size += dataSize; + size += 5 * getUnreachablesList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(456214797, selfLink_); + } + 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.compute.v1.VmExtensionPolicyList)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.VmExtensionPolicyList other = + (com.google.cloud.compute.v1.VmExtensionPolicyList) obj; + + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!getItemsList().equals(other.getItemsList())) return false; + if (hasKind() != other.hasKind()) return false; + if (hasKind()) { + if (!getKind().equals(other.getKind())) return false; + } + if (hasNextPageToken() != other.hasNextPageToken()) return false; + if (hasNextPageToken()) { + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + } + if (hasSelfLink() != other.hasSelfLink()) return false; + if (hasSelfLink()) { + if (!getSelfLink().equals(other.getSelfLink())) return false; + } + if (!getUnreachablesList().equals(other.getUnreachablesList())) return false; + if (hasWarning() != other.hasWarning()) return false; + if (hasWarning()) { + if (!getWarning().equals(other.getWarning())) 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 (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasNextPageToken()) { + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + } + if (hasSelfLink()) { + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + } + if (getUnreachablesCount() > 0) { + hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER; + hash = (53 * hash) + getUnreachablesList().hashCode(); + } + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList 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.compute.v1.VmExtensionPolicyList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.compute.v1.VmExtensionPolicyList 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.VmExtensionPolicyList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmExtensionPolicyList) + com.google.cloud.compute.v1.VmExtensionPolicyListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.VmExtensionPolicyList.class, + com.google.cloud.compute.v1.VmExtensionPolicyList.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.VmExtensionPolicyList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetItemsFieldBuilder(); + internalGetWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + etag_ = ""; + id_ = ""; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_VmExtensionPolicyList_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyList getDefaultInstanceForType() { + return com.google.cloud.compute.v1.VmExtensionPolicyList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyList build() { + com.google.cloud.compute.v1.VmExtensionPolicyList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.VmExtensionPolicyList buildPartial() { + com.google.cloud.compute.v1.VmExtensionPolicyList result = + new com.google.cloud.compute.v1.VmExtensionPolicyList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.VmExtensionPolicyList result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.VmExtensionPolicyList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + unreachables_.makeImmutable(); + result.unreachables_ = unreachables_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.VmExtensionPolicyList) { + return mergeFrom((com.google.cloud.compute.v1.VmExtensionPolicyList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.VmExtensionPolicyList other) { + if (other == com.google.cloud.compute.v1.VmExtensionPolicyList.getDefaultInstance()) + return this; + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000004); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetItemsFieldBuilder() + : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.unreachables_.isEmpty()) { + if (unreachables_.isEmpty()) { + unreachables_ = other.unreachables_; + bitField0_ |= 0x00000040; + } else { + ensureUnreachablesIsMutable(); + unreachables_.addAll(other.unreachables_); + } + onChanged(); + } + if (other.hasWarning()) { + mergeWarning(other.getWarning()); + } + 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 26842: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26842 + case 24987818: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 24987818 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(internalGetWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 638380202 + case 804208130: + { + com.google.cloud.compute.v1.VmExtensionPolicy m = + input.readMessage( + com.google.cloud.compute.v1.VmExtensionPolicy.parser(), extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 804208130 + case 1946976506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachablesIsMutable(); + unreachables_.add(s); + break; + } // case 1946976506 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case -645248918 + 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 etag_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+     * in this object. This field is used in optimistic locking. This field will
+     * be ignored when inserting a VmExtensionPolicy. An up-to-date
+     * fingerprint must be provided in order to update the VmExtensionPolicy.
+     *
+     * To see the latest value of the fingerprint, make a get() request to
+     * retrieve a VmExtensionPolicy.
+     * 
+ * + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+     * in this object. This field is used in optimistic locking. This field will
+     * be ignored when inserting a VmExtensionPolicy. An up-to-date
+     * fingerprint must be provided in order to update the VmExtensionPolicy.
+     *
+     * To see the latest value of the fingerprint, make a get() request to
+     * retrieve a VmExtensionPolicy.
+     * 
+ * + * optional string etag = 3123477; + * + * @return The etag. + */ + 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; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+     * in this object. This field is used in optimistic locking. This field will
+     * be ignored when inserting a VmExtensionPolicy. An up-to-date
+     * fingerprint must be provided in order to update the VmExtensionPolicy.
+     *
+     * To see the latest value of the fingerprint, make a get() request to
+     * retrieve a VmExtensionPolicy.
+     * 
+ * + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + 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; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+     * in this object. This field is used in optimistic locking. This field will
+     * be ignored when inserting a VmExtensionPolicy. An up-to-date
+     * fingerprint must be provided in order to update the VmExtensionPolicy.
+     *
+     * To see the latest value of the fingerprint, make a get() request to
+     * retrieve a VmExtensionPolicy.
+     * 
+ * + * optional string etag = 3123477; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+     * in this object. This field is used in optimistic locking. This field will
+     * be ignored when inserting a VmExtensionPolicy. An up-to-date
+     * fingerprint must be provided in order to update the VmExtensionPolicy.
+     *
+     * To see the latest value of the fingerprint, make a get() request to
+     * retrieve a VmExtensionPolicy.
+     * 
+ * + * optional string etag = 3123477; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+     * in this object. This field is used in optimistic locking. This field will
+     * be ignored when inserting a VmExtensionPolicy. An up-to-date
+     * fingerprint must be provided in order to update the VmExtensionPolicy.
+     *
+     * To see the latest value of the fingerprint, make a get() request to
+     * retrieve a VmExtensionPolicy.
+     * 
+ * + * optional string etag = 3123477; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+     * 
+ * + * optional string id = 3355; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder> + itemsBuilder_; + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public com.google.cloud.compute.v1.VmExtensionPolicy getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder setItems(int index, com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder setItems( + int index, com.google.cloud.compute.v1.VmExtensionPolicy.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder addItems(int index, com.google.cloud.compute.v1.VmExtensionPolicy value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder addItems(com.google.cloud.compute.v1.VmExtensionPolicy.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder addItems( + int index, com.google.cloud.compute.v1.VmExtensionPolicy.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public com.google.cloud.compute.v1.VmExtensionPolicy.Builder getItemsBuilder(int index) { + return internalGetItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder getItemsOrBuilder(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public com.google.cloud.compute.v1.VmExtensionPolicy.Builder addItemsBuilder() { + return internalGetItemsFieldBuilder() + .addBuilder(com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public com.google.cloud.compute.v1.VmExtensionPolicy.Builder addItemsBuilder(int index) { + return internalGetItemsFieldBuilder() + .addBuilder(index, com.google.cloud.compute.v1.VmExtensionPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. [Output Only] A list of VM extension policy resources.
+     * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + public java.util.List + getItemsBuilderList() { + return internalGetItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder> + internalGetItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.compute.v1.VmExtensionPolicy, + com.google.cloud.compute.v1.VmExtensionPolicy.Builder, + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder>( + items_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private java.lang.Object kind_ = ""; + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of resource.
+     * 
+ * + * optional string kind = 3292052; + * + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + public boolean hasNextPageToken() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] This token allows you to get the next page of results for
+     * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+     * the query parameter pageToken in the next list request.
+     * Subsequent list requests will have their own nextPageToken to
+     * continue paging through the results.
+     * 
+ * + * optional string next_page_token = 79797525; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + public boolean hasSelfLink() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Server-defined URL for this resource.
+     * 
+ * + * optional string self_link = 456214797; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachablesIsMutable() { + if (!unreachables_.isModifiable()) { + unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + unreachables_.makeImmutable(); + return unreachables_; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + public java.lang.String getUnreachables(int index) { + return unreachables_.get(index); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + public com.google.protobuf.ByteString getUnreachablesBytes(int index) { + return unreachables_.getByteString(index); + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index to set the value at. + * @param value The unreachables to set. + * @return This builder for chaining. + */ + public Builder setUnreachables(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param value The unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachables(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param values The unreachables to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachables(java.lang.Iterable values) { + ensureUnreachablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return This builder for chaining. + */ + public Builder clearUnreachables() { + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @param value The bytes of the unreachables to add. + * @return This builder for chaining. + */ + public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachablesIsMutable(); + unreachables_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.compute.v1.Warning warning_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + warningBuilder_; + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + public com.google.cloud.compute.v1.Warning getWarning() { + if (warningBuilder_ == null) { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } else { + return warningBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warning_ = value; + } else { + warningBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { + if (warningBuilder_ == null) { + warning_ = builderForValue.build(); + } else { + warningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && warning_ != null + && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { + getWarningBuilder().mergeFrom(value); + } else { + warning_ = value; + } + } else { + warningBuilder_.mergeFrom(value); + } + if (warning_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000080); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetWarningFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { + if (warningBuilder_ != null) { + return warningBuilder_.getMessageOrBuilder(); + } else { + return warning_ == null + ? com.google.cloud.compute.v1.Warning.getDefaultInstance() + : warning_; + } + } + + /** + * + * + *
+     * Output only. [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder> + internalGetWarningFieldBuilder() { + if (warningBuilder_ == null) { + warningBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.compute.v1.Warning, + com.google.cloud.compute.v1.Warning.Builder, + com.google.cloud.compute.v1.WarningOrBuilder>( + getWarning(), getParentForChildren(), isClean()); + warning_ = null; + } + return warningBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.VmExtensionPolicyList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmExtensionPolicyList) + private static final com.google.cloud.compute.v1.VmExtensionPolicyList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmExtensionPolicyList(); + } + + public static com.google.cloud.compute.v1.VmExtensionPolicyList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmExtensionPolicyList 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.compute.v1.VmExtensionPolicyList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyListOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyListOrBuilder.java new file mode 100644 index 000000000000..4c33bb04817b --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyListOrBuilder.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface VmExtensionPolicyListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.VmExtensionPolicyList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+   * in this object. This field is used in optimistic locking. This field will
+   * be ignored when inserting a VmExtensionPolicy. An up-to-date
+   * fingerprint must be provided in order to update the VmExtensionPolicy.
+   *
+   * To see the latest value of the fingerprint, make a get() request to
+   * retrieve a VmExtensionPolicy.
+   * 
+ * + * optional string etag = 3123477; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * + * + *
+   * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+   * in this object. This field is used in optimistic locking. This field will
+   * be ignored when inserting a VmExtensionPolicy. An up-to-date
+   * fingerprint must be provided in order to update the VmExtensionPolicy.
+   *
+   * To see the latest value of the fingerprint, make a get() request to
+   * retrieve a VmExtensionPolicy.
+   * 
+ * + * optional string etag = 3123477; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored
+   * in this object. This field is used in optimistic locking. This field will
+   * be ignored when inserting a VmExtensionPolicy. An up-to-date
+   * fingerprint must be provided in order to update the VmExtensionPolicy.
+   *
+   * To see the latest value of the fingerprint, make a get() request to
+   * retrieve a VmExtensionPolicy.
+   * 
+ * + * optional string etag = 3123477; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. [Output Only] Unique identifier for the resource; defined by the server.
+   * 
+ * + * optional string id = 3355; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + java.util.List getItemsList(); + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + com.google.cloud.compute.v1.VmExtensionPolicy getItems(int index); + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + int getItemsCount(); + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + java.util.List + getItemsOrBuilderList(); + + /** + * + * + *
+   * Output only. [Output Only] A list of VM extension policy resources.
+   * 
+ * + * repeated .google.cloud.compute.v1.VmExtensionPolicy items = 100526016; + */ + com.google.cloud.compute.v1.VmExtensionPolicyOrBuilder getItemsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. Type of resource.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return Whether the nextPageToken field is set. + */ + boolean hasNextPageToken(); + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Output only. [Output Only] This token allows you to get the next page of results for
+   * list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
+   * the query parameter pageToken in the next list request.
+   * Subsequent list requests will have their own nextPageToken to
+   * continue paging through the results.
+   * 
+ * + * optional string next_page_token = 79797525; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + java.util.List getUnreachablesList(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + int getUnreachablesCount(); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the element to return. + * @return The unreachables at the given index. + */ + java.lang.String getUnreachables(int index); + + /** + * + * + *
+   * Output only. [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @param index The index of the value to return. + * @return The bytes of the unreachables at the given index. + */ + com.google.protobuf.ByteString getUnreachablesBytes(int index); + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + + /** + * + * + *
+   * Output only. [Output Only] Informational warning message.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyOrBuilder.java new file mode 100644 index 000000000000..05098d797848 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VmExtensionPolicyOrBuilder.java @@ -0,0 +1,658 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/compute/v1/compute.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.compute.v1; + +@com.google.protobuf.Generated +public interface VmExtensionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.VmExtensionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return Whether the creationTimestamp field is set. + */ + boolean hasCreationTimestamp(); + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The creationTimestamp. + */ + java.lang.String getCreationTimestamp(); + + /** + * + * + *
+   * Output only. [Output Only] Creation timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string creation_timestamp = 30525366; + * + * @return The bytes for creationTimestamp. + */ + com.google.protobuf.ByteString getCreationTimestampBytes(); + + /** + * + * + *
+   * An optional description of this resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+   * An optional description of this resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * An optional description of this resource.
+   * 
+ * + * optional string description = 422937596; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + int getExtensionPoliciesCount(); + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + boolean containsExtensionPolicies(java.lang.String key); + + /** Use {@link #getExtensionPoliciesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getExtensionPolicies(); + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + java.util.Map + getExtensionPoliciesMap(); + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + /* nullable */ + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy getExtensionPoliciesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy defaultValue); + + /** + * + * + *
+   * Required. A map of extension names (for example, "ops-agent") to their corresponding
+   * policy configurations.
+   * 
+ * + * + * map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; + * + */ + com.google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy getExtensionPoliciesOrThrow( + java.lang.String key); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+   * applicable.
+   * 
+ * + * optional string global_resource_link = 516569583; + * + * @return Whether the globalResourceLink field is set. + */ + boolean hasGlobalResourceLink(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+   * applicable.
+   * 
+ * + * optional string global_resource_link = 516569583; + * + * @return The globalResourceLink. + */ + java.lang.String getGlobalResourceLink(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if
+   * applicable.
+   * 
+ * + * optional string global_resource_link = 516569583; + * + * @return The bytes for globalResourceLink. + */ + com.google.protobuf.ByteString getGlobalResourceLinkBytes(); + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return Whether the id field is set. + */ + boolean hasId(); + + /** + * + * + *
+   * Output only. [Output Only] The unique identifier for the resource. This identifier is
+   * defined by the server.
+   * 
+ * + * optional uint64 id = 3355; + * + * @return The id. + */ + long getId(); + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + java.util.List + getInstanceSelectorsList(); + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector getInstanceSelectors(int index); + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + int getInstanceSelectorsCount(); + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + java.util.List + getInstanceSelectorsOrBuilderList(); + + /** + * + * + *
+   * Optional. Selectors to target VMs for this policy. VMs are selected if they match
+   * *any* of the provided selectors (logical OR). If this list is empty, the
+   * policy applies to all VMs.
+   * 
+ * + * + * repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + * + */ + com.google.cloud.compute.v1.VmExtensionPolicyInstanceSelectorOrBuilder + getInstanceSelectorsOrBuilder(int index); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + * + * + *
+   * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+   * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return Whether the managedByGlobal field is set. + */ + boolean hasManagedByGlobal(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
+   * 
+ * + * optional bool managed_by_global = 88605675; + * + * @return The managedByGlobal. + */ + boolean getManagedByGlobal(); + + /** + * + * + *
+   * Name of the resource. Provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+   * which means the first character must be a lowercase letter, and all
+   * following characters must be a dash, lowercase letter, or digit, except
+   * the last character, which cannot be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return Whether the name field is set. + */ + boolean hasName(); + + /** + * + * + *
+   * Name of the resource. Provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+   * which means the first character must be a lowercase letter, and all
+   * following characters must be a dash, lowercase letter, or digit, except
+   * the last character, which cannot be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Name of the resource. Provided by the client when the resource is created.
+   * The name must be 1-63 characters long, and comply withRFC1035.
+   * Specifically, the name must be 1-63 characters long and match the regular
+   * expression `[a-z]([-a-z0-9]*[a-z0-9])?`
+   * which means the first character must be a lowercase letter, and all
+   * following characters must be a dash, lowercase letter, or digit, except
+   * the last character, which cannot be a dash.
+   * 
+ * + * optional string name = 3373707; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+   * apply to the same extension.
+   * The policy priority is an integer from 0 to 65535, inclusive. Lower
+   * integers indicate higher priorities. If you do not specify a priority when
+   * creating a rule, it is assigned a priority of 1000. If priorities are
+   * equal, the policy with the most recent creation timestamp takes precedence.
+   * 
+ * + * optional int32 priority = 445151652; + * + * @return Whether the priority field is set. + */ + boolean hasPriority(); + + /** + * + * + *
+   * Optional. Priority of this policy. Used to resolve conflicts when multiple policies
+   * apply to the same extension.
+   * The policy priority is an integer from 0 to 65535, inclusive. Lower
+   * integers indicate higher priorities. If you do not specify a priority when
+   * creating a rule, it is assigned a priority of 1000. If priorities are
+   * equal, the policy with the most recent creation timestamp takes precedence.
+   * 
+ * + * optional int32 priority = 445151652; + * + * @return The priority. + */ + int getPriority(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return Whether the selfLink field is set. + */ + boolean hasSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined fully-qualified URL for this resource.
+   * 
+ * + * optional string self_link = 456214797; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return Whether the selfLinkWithId field is set. + */ + boolean hasSelfLinkWithId(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The selfLinkWithId. + */ + java.lang.String getSelfLinkWithId(); + + /** + * + * + *
+   * Output only. [Output Only] Server-defined URL for this resource's resource id.
+   * 
+ * + * optional string self_link_with_id = 44520962; + * + * @return The bytes for selfLinkWithId. + */ + com.google.protobuf.ByteString getSelfLinkWithIdBytes(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * Check the State enum for the list of possible values.
+   * 
+ * + * optional string state = 109757585; + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * Check the State enum for the list of possible values.
+   * 
+ * + * optional string state = 109757585; + * + * @return The state. + */ + java.lang.String getState(); + + /** + * + * + *
+   * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING.
+   * Check the State enum for the list of possible values.
+   * 
+ * + * optional string state = 109757585; + * + * @return The bytes for state. + */ + com.google.protobuf.ByteString getStateBytes(); + + /** + * + * + *
+   * Output only. [Output Only] Update timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string update_timestamp = 120894752; + * + * @return Whether the updateTimestamp field is set. + */ + boolean hasUpdateTimestamp(); + + /** + * + * + *
+   * Output only. [Output Only] Update timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string update_timestamp = 120894752; + * + * @return The updateTimestamp. + */ + java.lang.String getUpdateTimestamp(); + + /** + * + * + *
+   * Output only. [Output Only] Update timestamp inRFC3339
+   * text format.
+   * 
+ * + * optional string update_timestamp = 120894752; + * + * @return The bytes for updateTimestamp. + */ + com.google.protobuf.ByteString getUpdateTimestampBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto index 4e072f2aac8d..f1f4776007af 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto +++ b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20260227 +// Source file revision: 20260331 // API name: compute // API version: v1 @@ -2001,6 +2001,119 @@ message AggregatedListAutoscalersRequest { } +// A request message for BackendBuckets.AggregatedList. See the method description for details. +message AggregatedListBackendBucketsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + // A request message for BackendServices.AggregatedList. See the method description for details. message AggregatedListBackendServicesRequest { // A filter expression that filters resources listed in the response. Most @@ -9259,6 +9372,9 @@ message Backend { // Based on custom defined and reported metrics. CUSTOM_METRICS = 331575765; + // Balance based on the number of in-flight requests. + IN_FLIGHT = 190040266; + // Balance based on requests per second (RPS). RATE = 2508000; @@ -9292,6 +9408,23 @@ message Backend { } + // + enum TrafficDuration { + // A value indicating that the enum field is not set. + UNDEFINED_TRAFFIC_DURATION = 0; + + // Most of the requests are expected to take more than multiple seconds to + // finish. + LONG = 2342524; + + // Most requests are expected to finish with a sub-second latency. + SHORT = 78875740; + + // Traffic duration is unspecified. + TRAFFIC_DURATION_UNSPECIFIED = 265201166; + + } + // Specifies how to determine whether the backend of a load balancer can // handle additional traffic or is fully loaded. For usage guidelines, see // Connection balancing mode. @@ -9369,6 +9502,20 @@ message Backend { // Not available if the backend's balancingMode isRATE. optional int32 max_connections_per_instance = 104671900; + // Defines a maximum number of in-flight requests for the whole NEG or + // instance group. Not available if backend's balancingMode isRATE or CONNECTION. + optional int32 max_in_flight_requests = 273269332; + + // Defines a maximum number of in-flight requests for a single endpoint. + // Not available if backend's balancingMode is RATE + // or CONNECTION. + optional int32 max_in_flight_requests_per_endpoint = 307928706; + + // Defines a maximum number of in-flight requests for a single VM. + // Not available if backend's balancingMode is RATE + // or CONNECTION. + optional int32 max_in_flight_requests_per_instance = 195696002; + // Defines a maximum number of HTTP requests per second (RPS). For // usage guidelines, seeRate // balancing mode and Utilization @@ -9415,6 +9562,10 @@ message Backend { // Check the Preference enum for the list of possible values. optional string preference = 150781147; + // + // Check the TrafficDuration enum for the list of possible values. + optional string traffic_duration = 11618710; + } // A message containing information about the resource or system that manages @@ -9456,6 +9607,10 @@ message BackendBucket { // A value indicating that the enum field is not set. UNDEFINED_LOAD_BALANCING_SCHEME = 0; + // Signifies that this will be used for regional external Application Load + // Balancers. + EXTERNAL_MANAGED = 512006923; + // Signifies that this will be used for internal Application Load Balancers. INTERNAL_MANAGED = 37350397; @@ -9518,6 +9673,12 @@ message BackendBucket { // as part of resource payload. optional BackendBucketParams params = 78313862; + // Output only. [Output Only] URL of the region where the regional backend bucket + // resides. This field is not applicable to global backend buckets. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + optional string region = 138946292; + // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; @@ -9526,6 +9687,32 @@ message BackendBucket { } +// +message BackendBucketAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of BackendBucketsScopedList resources. + map items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Message containing Cloud CDN configuration for a backend bucket. message BackendBucketCdnPolicy { // Specifies the cache setting for all responses from this backend. @@ -9761,6 +9948,33 @@ message BackendBucketList { } +// +message BackendBucketListUsable { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of BackendBucket resources. + repeated BackendBucket items = 100526016; + + // Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend + // buckets. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Additional Backend Bucket parameters. message BackendBucketParams { // Tag keys/values directly bound to this resource. @@ -9787,6 +10001,17 @@ message BackendBucketUsedBy { } +// +message BackendBucketsScopedList { + // A list of BackendBuckets contained in this scope. + repeated BackendBucket backend_buckets = 158780702; + + // Informational warning which replaces the list of + // backend services when the list is empty. + optional Warning warning = 50704284; + +} + // Custom Metrics are used for CUSTOM_METRICS balancing_mode. message BackendCustomMetric { // If true, the metric data is collected and reported to Cloud @@ -9991,7 +10216,7 @@ message BackendService { // metrics to use for computing the weights are specified via thecustomMetrics field. // // This field is applicable to either: - // - A regional backend service with the service_protocol set to HTTP, + // - A regional backend service with the service protocol set to HTTP, // HTTPS, HTTP2 or H2C, and load_balancing_scheme set to // INTERNAL_MANAGED. // - A global backend service with the @@ -10223,7 +10448,7 @@ message BackendService { // // This field is applicable to either: // - // - A regional backend service with the service_protocol set to HTTP, + // - A regional backend service with the service protocol set to HTTP, // HTTPS, HTTP2 or H2C, and load_balancing_scheme set to // INTERNAL_MANAGED. // - A global backend service with the @@ -10453,7 +10678,7 @@ message BackendService { // metrics to use for computing the weights are specified via thecustomMetrics field. // // This field is applicable to either: - // - A regional backend service with the service_protocol set to HTTP, + // - A regional backend service with the service protocol set to HTTP, // HTTPS, HTTP2 or H2C, and load_balancing_scheme set to // INTERNAL_MANAGED. // - A global backend service with the @@ -10559,7 +10784,7 @@ message BackendService { // - A global backend service with the loadBalancingScheme set to // INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. // - A regional backend - // service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + // service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and // loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not // supported for Serverless NEGs. // @@ -12216,6 +12441,13 @@ message BulkInsertDiskRequest { // compute.regionDisks.bulkInsert. It is only used to process // requests and is not persisted. message BulkInsertDiskResource { + // The parameters for the instant snapshot group. + optional InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623; + + // The parameters for the snapshot group. The usage of snapshot group feature + // is restricted. + optional SnapshotGroupParameters snapshot_group_parameters = 42252485; + // The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. // This may be a full or partial URL, such as: // @@ -12695,6 +12927,46 @@ message CancelInstanceGroupManagerResizeRequestRequest { } +// A request message for RegionInstanceGroupManagerResizeRequests.Cancel. See the method description for details. +message CancelRegionInstanceGroupManagerResizeRequestRequest { + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region + // scoping this request. Name should conform to RFC1035. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The name of the resize request to cancel. + // Name should conform to RFC1035 or be a resource ID. + string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; + +} + // Settings controlling the volume of requests, connections and retries to this // backend service. message CircuitBreakers { @@ -13061,6 +13333,10 @@ message Commitment { // cannot be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional CommitmentParams params = 78313862; + // The minimum time duration that you commit to purchasing resources. // The plan that you choose determines the preset term length of the // commitment (which is 1 year or 3 years) and affects the discount rate that @@ -13187,6 +13463,19 @@ message CommitmentList { } +// Additional commitment params. +message CommitmentParams { + // Input only. Resource manager tags to be bound to the commitment. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // [Output Only] Contains output only fields. message CommitmentResourceStatus { // Output only. [Output Only] Indicates the end time of customer's eligibility to send @@ -13300,6 +13589,34 @@ message CompositeHealthCheckAggregatedList { } +// Response message for RegionCompositeHealthChecks.GetHealth +message CompositeHealthCheckHealth { + // Health state of the CompositeHealthCheck. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health sources and their corresponding health states. + repeated CompositeHealthChecksGetHealthResponseHealthSourceHealth health_sources = 397879509; + + // Health state of the CompositeHealthCheck. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of + // composite health checks. + optional string kind = 3292052; + +} + // message CompositeHealthCheckList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -13326,6 +13643,30 @@ message CompositeHealthCheckList { } +// +message CompositeHealthChecksGetHealthResponseHealthSourceHealth { + // Health state of the associated HealthSource resource. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health state of the associated HealthSource resource. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Fully qualified URL of the associated HealthSource resource. + optional string source = 177235995; + +} + // message CompositeHealthChecksScopedList { // A list of CompositeHealthChecks contained in this scope. @@ -14747,6 +15088,40 @@ message DeleteInstancesRegionInstanceGroupManagerRequest { } +// A request message for InstantSnapshotGroups.Delete. See the method description for details. +message DeleteInstantSnapshotGroupRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InstantSnapshots.Delete. See the method description for details. message DeleteInstantSnapshotRequest { // Name of the InstantSnapshot resource to delete. @@ -15461,6 +15836,41 @@ message DeleteRegionAutoscalerRequest { } +// A request message for RegionBackendBuckets.Delete. See the method description for details. +message DeleteRegionBackendBucketRequest { + // Name of the BackendBucket resource to delete. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + // end_interface: MixerMutationRequestBuilder + optional string request_id = 37109963; + +} + // A request message for RegionBackendServices.Delete. See the method description for details. message DeleteRegionBackendServiceRequest { // Name of the BackendService resource to delete. @@ -15734,6 +16144,46 @@ message DeleteRegionInstanceGroupManagerRequest { } +// A request message for RegionInstanceGroupManagerResizeRequests.Delete. See the method description for details. +message DeleteRegionInstanceGroupManagerResizeRequestRequest { + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region + // scoping this request. Name should conform to RFC1035. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The name of the resize request to delete. + // Name should conform to RFC1035 or be a resource ID. + string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstanceTemplates.Delete. See the method description for details. message DeleteRegionInstanceTemplateRequest { // The name of the instance template to delete. @@ -15768,6 +16218,40 @@ message DeleteRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshotGroups.Delete. See the method description for details. +message DeleteRegionInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to delete. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + +} + // A request message for RegionInstantSnapshots.Delete. See the method description for details. message DeleteRegionInstantSnapshotRequest { // Name of the InstantSnapshot resource to delete. @@ -15958,6 +16442,40 @@ message DeleteRegionSecurityPolicyRequest { } +// A request message for RegionSnapshots.Delete. See the method description for details. +message DeleteRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // Name of the snapshot resource to delete. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionSslCertificates.Delete. See the method description for details. message DeleteRegionSslCertificateRequest { // Project ID for this request. @@ -16985,6 +17503,40 @@ message DeleteZoneOperationRequest { message DeleteZoneOperationResponse { } +// A request message for ZoneVmExtensionPolicies.Delete. See the method description for details. +message DeleteZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // Name of the zone VM extension policy to delete. + string vm_extension_policy = 331532730 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // message Denied { // The IP protocol to which this rule applies. The protocol type is @@ -18124,6 +18676,24 @@ message DiskTypesScopedList { } +// +message DiskUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the disk. If empty, the disk + // will be re-encrypted using the primary version of the disk's current KMS + // key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + // + // + // Where project is the project ID or + // project number. + optional string kms_key_name = 484373913; + +} + // message DisksAddResourcePoliciesRequest { // Full or relative path to the resource policy to be added to this disk. You @@ -18343,7 +18913,7 @@ message EnableXpnResourceProjectRequest { } -// Output only. [Output Only] Encountered errors. +// Output only. Encountered errors. message Error { // [Output Only] The array of errors encountered while processing this // operation. @@ -20216,6 +20786,18 @@ message ForwardingRulesScopedList { // message FutureReservation { + // + enum ConfidentialComputeType { + // A value indicating that the enum field is not set. + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + + // Intel Trust Domain Extensions. + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; + + } + // Type of the deployment requested as part of future reservation. enum DeploymentType { // A value indicating that the enum field is not set. @@ -20308,6 +20890,10 @@ message FutureReservation { // existing commitment. optional FutureReservationCommitmentInfo commitment_info = 164362136; + // + // Check the ConfidentialComputeType enum for the list of possible values. + optional string confidential_compute_type = 386447257; + // Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -20346,6 +20932,10 @@ message FutureReservation { // reservations name format will be -date-####. optional string name_prefix = 236409542; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional FutureReservationParams params = 78313862; + // Planning state before being submitted for evaluation // Check the PlanningStatus enum for the list of possible values. optional string planning_status = 19714836; @@ -20446,6 +21036,19 @@ message FutureReservationCommitmentInfo { } +// Additional future reservation params. +message FutureReservationParams { + // Input only. Resource manager tags to be bound to the future reservation. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // message FutureReservationSpecificSKUProperties { // Properties of the SKU instances being reserved. @@ -21607,6 +22210,32 @@ message GetHealthRegionBackendServiceRequest { } +// A request message for RegionCompositeHealthChecks.GetHealth. See the method description for details. +message GetHealthRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to get health for. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for RegionHealthSources.GetHealth. See the method description for details. +message GetHealthRegionHealthSourceRequest { + // Name of the HealthSource resource to get health for. + string health_source = 376521566 [(google.api.field_behavior) = REQUIRED]; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for TargetPools.GetHealth. See the method description for details. message GetHealthTargetPoolRequest { // The body resource for this request @@ -21717,6 +22346,22 @@ message GetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicyInstantSnapshotGroupRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.GetIamPolicy. See the method description for details. message GetIamPolicyInstantSnapshotRequest { // Requested IAM Policy version. @@ -21846,6 +22491,22 @@ message GetIamPolicyNodeTemplateRequest { } +// A request message for RegionBackendBuckets.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionBackendBucketRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.GetIamPolicy. See the method description for details. message GetIamPolicyRegionBackendServiceRequest { // Requested IAM Policy version. @@ -21878,6 +22539,22 @@ message GetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshotGroups.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionInstantSnapshotGroupRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.GetIamPolicy. See the method description for details. message GetIamPolicyRegionInstantSnapshotRequest { // Requested IAM Policy version. @@ -21910,6 +22587,22 @@ message GetIamPolicyRegionNetworkFirewallPolicyRequest { } +// A request message for RegionSnapshots.GetIamPolicy. See the method description for details. +message GetIamPolicyRegionSnapshotRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ReservationBlocks.GetIamPolicy. See the method description for details. message GetIamPolicyReservationBlockRequest { // Requested IAM Policy version. @@ -22144,6 +22837,19 @@ message GetInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.Get. See the method description for details. +message GetInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to return. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.Get. See the method description for details. message GetInstantSnapshotRequest { // Name of the InstantSnapshot resource to return. @@ -22619,6 +23325,19 @@ message GetRegionAutoscalerRequest { } +// A request message for RegionBackendBuckets.Get. See the method description for details. +message GetRegionBackendBucketRequest { + // Name of the BackendBucket resource to return. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.Get. See the method description for details. message GetRegionBackendServiceRequest { // Name of the BackendService resource to return. @@ -22750,6 +23469,25 @@ message GetRegionInstanceGroupManagerRequest { } +// A request message for RegionInstanceGroupManagerResizeRequests.Get. See the method description for details. +message GetRegionInstanceGroupManagerResizeRequestRequest { + // The name of the managed instance group. + // Name should conform to RFC1035 or be a resource ID. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region + // scoping this request. Name should conform to RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The name of the resize request. + // Name should conform to RFC1035 or be a resource ID. + string resize_request = 216941060 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstanceGroups.Get. See the method description for details. message GetRegionInstanceGroupRequest { // Name of the instance group resource to return. @@ -22776,6 +23514,19 @@ message GetRegionInstanceTemplateRequest { } +// A request message for RegionInstantSnapshotGroups.Get. See the method description for details. +message GetRegionInstantSnapshotGroupRequest { + // Name of the InstantSnapshotGroup resource to return. + string instant_snapshot_group = 223180386 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.Get. See the method description for details. message GetRegionInstantSnapshotRequest { // Name of the InstantSnapshot resource to return. @@ -22869,6 +23620,29 @@ message GetRegionSecurityPolicyRequest { } +// A request message for RegionSnapshots.Get. See the method description for details. +message GetRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name of the Snapshot resource to return. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for RegionSnapshotSettings.Get. See the method description for details. +message GetRegionSnapshotSettingRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionSslCertificates.Get. See the method description for details. message GetRegionSslCertificateRequest { // Project ID for this request. @@ -23773,6 +24547,19 @@ message GetZoneRequest { } +// A request message for ZoneVmExtensionPolicies.Get. See the method description for details. +message GetZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the VM extension policy resource to return. + string vm_extension_policy = 331532730 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // message GlobalAddressesMoveRequest { // An optional destination address description if intended to be different @@ -23971,6 +24758,7 @@ message GuestOsFeature { // - TDX_CAPABLE // - IDPF // - SNP_SVSM_CAPABLE + // - CCA_CAPABLE // // // For more information, see @@ -24026,6 +24814,7 @@ message GuestOsFeature { // - TDX_CAPABLE // - IDPF // - SNP_SVSM_CAPABLE + // - CCA_CAPABLE // // // For more information, see @@ -25060,6 +25849,33 @@ message HealthSourceAggregatedList { } +// Response message for RegionHealthSources.GetHealth +message HealthSourceHealth { + // Health state of the HealthSource. + enum HealthState { + // A value indicating that the enum field is not set. + UNDEFINED_HEALTH_STATE = 0; + + HEALTHY = 439801213; + + UNHEALTHY = 462118084; + + UNKNOWN = 433141802; + + } + + // Health state of the HealthSource. + // Check the HealthState enum for the list of possible values. + optional string health_state = 324007150; + + // Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of health sources. + optional string kind = 3292052; + + // Health state details of the sources. + repeated HealthSourcesGetHealthResponseSourceInfo sources = 125606840; + +} + // message HealthSourceList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -25086,6 +25902,39 @@ message HealthSourceList { } +// +message HealthSourcesGetHealthResponseSourceInfo { + // Represents an instance group or network endpoint group behind the source + // backend service. Only used if the sourceType of the regionHealthSource + // is BACKEND_SERVICE. + repeated HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903; + + // Fully qualified URL of the forwarding rule associated with the source + // resource if it is a L4ILB backend service. + optional string forwarding_rule = 269964030; + + // Fully qualified URL of the associated source resource. This is always a + // backend service URL. + optional string source = 177235995; + +} + +// +message HealthSourcesGetHealthResponseSourceInfoBackendInfo { + // Total number of endpoints when determining the health of the + // regionHealthSource. + optional int32 endpoint_count = 486641125; + + // Fully qualified URL of an instance group or network endpoint group + // behind the source backend service. + optional string group = 98629247; + + // Number of endpoints considered healthy when determining health of the + // regionHealthSource. + optional int32 healthy_endpoint_count = 291284167; + +} + // message HealthSourcesScopedList { // A list of HealthSources contained in this scope. @@ -27020,6 +27869,43 @@ message InsertInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.Insert. See the method description for details. +message InsertInstantSnapshotGroupRequest { + // The body resource for this request + InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // begin_interface: MixerMutationRequestBuilder + optional string source_consistency_group = 531359348; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for InstantSnapshots.Insert. See the method description for details. message InsertInstantSnapshotRequest { // The body resource for this request @@ -27628,44 +28514,10 @@ message InsertRegionAutoscalerRequest { } -// A request message for RegionBackendServices.Insert. See the method description for details. -message InsertRegionBackendServiceRequest { - // The body resource for this request - BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // Name of the region scoping this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional 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. - // - // 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). - optional string request_id = 37109963; - -} - -// A request message for RegionCommitments.Insert. See the method description for details. -message InsertRegionCommitmentRequest { +// A request message for RegionBackendBuckets.Insert. See the method description for details. +message InsertRegionBackendBucketRequest { // The body resource for this request - Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; + BackendBucket backend_bucket_resource = 380757784 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27673,7 +28525,7 @@ message InsertRegionCommitmentRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region of this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -27696,10 +28548,10 @@ message InsertRegionCommitmentRequest { } -// A request message for RegionCompositeHealthChecks.Insert. See the method description for details. -message InsertRegionCompositeHealthCheckRequest { +// A request message for RegionBackendServices.Insert. See the method description for details. +message InsertRegionBackendServiceRequest { // The body resource for this request - CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; + BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27730,10 +28582,10 @@ message InsertRegionCompositeHealthCheckRequest { } -// A request message for RegionDisks.Insert. See the method description for details. -message InsertRegionDiskRequest { +// A request message for RegionCommitments.Insert. See the method description for details. +message InsertRegionCommitmentRequest { // The body resource for this request - Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; + Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27762,15 +28614,12 @@ message InsertRegionDiskRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Source image to restore onto a disk. This field is optional. - optional string source_image = 50443319; - } -// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. -message InsertRegionHealthAggregationPolicyRequest { +// A request message for RegionCompositeHealthChecks.Insert. See the method description for details. +message InsertRegionCompositeHealthCheckRequest { // The body resource for this request - HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27801,10 +28650,10 @@ message InsertRegionHealthAggregationPolicyRequest { } -// A request message for RegionHealthChecks.Insert. See the method description for details. -message InsertRegionHealthCheckRequest { +// A request message for RegionDisks.Insert. See the method description for details. +message InsertRegionDiskRequest { // The body resource for this request - HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; + Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27812,7 +28661,7 @@ message InsertRegionHealthCheckRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -27833,12 +28682,15 @@ message InsertRegionHealthCheckRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // Source image to restore onto a disk. This field is optional. + optional string source_image = 50443319; + } -// A request message for RegionHealthCheckServices.Insert. See the method description for details. -message InsertRegionHealthCheckServiceRequest { +// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. +message InsertRegionHealthAggregationPolicyRequest { // The body resource for this request - HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27869,10 +28721,10 @@ message InsertRegionHealthCheckServiceRequest { } -// A request message for RegionHealthSources.Insert. See the method description for details. -message InsertRegionHealthSourceRequest { +// A request message for RegionHealthChecks.Insert. See the method description for details. +message InsertRegionHealthCheckRequest { // The body resource for this request - HealthSource health_source_resource = 357735375 [(google.api.field_behavior) = REQUIRED]; + HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27903,10 +28755,10 @@ message InsertRegionHealthSourceRequest { } -// A request message for RegionInstanceGroupManagers.Insert. See the method description for details. -message InsertRegionInstanceGroupManagerRequest { +// A request message for RegionHealthCheckServices.Insert. See the method description for details. +message InsertRegionHealthCheckServiceRequest { // The body resource for this request - InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; + HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27937,10 +28789,10 @@ message InsertRegionInstanceGroupManagerRequest { } -// A request message for RegionInstanceTemplates.Insert. See the method description for details. -message InsertRegionInstanceTemplateRequest { +// A request message for RegionHealthSources.Insert. See the method description for details. +message InsertRegionHealthSourceRequest { // The body resource for this request - InstanceTemplate instance_template_resource = 10679561 [(google.api.field_behavior) = REQUIRED]; + HealthSource health_source_resource = 357735375 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27948,7 +28800,7 @@ message InsertRegionInstanceTemplateRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -27971,10 +28823,10 @@ message InsertRegionInstanceTemplateRequest { } -// A request message for RegionInstantSnapshots.Insert. See the method description for details. -message InsertRegionInstantSnapshotRequest { +// A request message for RegionInstanceGroupManagers.Insert. See the method description for details. +message InsertRegionInstanceGroupManagerRequest { // The body resource for this request - InstantSnapshot instant_snapshot_resource = 383915339 [(google.api.field_behavior) = REQUIRED]; + InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -27982,7 +28834,7 @@ message InsertRegionInstantSnapshotRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28005,10 +28857,14 @@ message InsertRegionInstantSnapshotRequest { } -// A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. -message InsertRegionNetworkEndpointGroupRequest { +// A request message for RegionInstanceGroupManagerResizeRequests.Insert. See the method description for details. +message InsertRegionInstanceGroupManagerResizeRequestRequest { + // Name of the managed instance group to which the resize request is scoped. + // Name should conform to RFC1035 or be a resource ID. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // The body resource for this request - NetworkEndpointGroup network_endpoint_group_resource = 525788839 [(google.api.field_behavior) = REQUIRED]; + InstanceGroupManagerResizeRequest instance_group_manager_resize_request_resource = 468541293 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28016,9 +28872,8 @@ message InsertRegionNetworkEndpointGroupRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region where - // you want to create the network endpoint group. It should comply with - // RFC1035. + // Name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28041,10 +28896,10 @@ message InsertRegionNetworkEndpointGroupRequest { } -// A request message for RegionNetworkFirewallPolicies.Insert. See the method description for details. -message InsertRegionNetworkFirewallPolicyRequest { +// A request message for RegionInstanceTemplates.Insert. See the method description for details. +message InsertRegionInstanceTemplateRequest { // The body resource for this request - FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; + InstanceTemplate instance_template_resource = 10679561 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28052,14 +28907,14 @@ message InsertRegionNetworkFirewallPolicyRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // The name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional 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 + // An optional 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. // // For example, consider a situation where you make an initial request and @@ -28075,10 +28930,10 @@ message InsertRegionNetworkFirewallPolicyRequest { } -// A request message for RegionNotificationEndpoints.Insert. See the method description for details. -message InsertRegionNotificationEndpointRequest { +// A request message for RegionInstantSnapshotGroups.Insert. See the method description for details. +message InsertRegionInstantSnapshotGroupRequest { // The body resource for this request - NotificationEndpoint notification_endpoint_resource = 338459940 [(google.api.field_behavior) = REQUIRED]; + InstantSnapshotGroup instant_snapshot_group_resource = 145067339 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28086,7 +28941,7 @@ message InsertRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28107,17 +28962,23 @@ message InsertRegionNotificationEndpointRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // begin_interface: MixerMutationRequestBuilder + optional string source_consistency_group = 531359348; + } -// A request message for RegionSecurityPolicies.Insert. See the method description for details. -message InsertRegionSecurityPolicyRequest { +// A request message for RegionInstantSnapshots.Insert. See the method description for details. +message InsertRegionInstantSnapshotRequest { + // The body resource for this request + InstantSnapshot instant_snapshot_resource = 383915339 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28138,23 +28999,22 @@ message InsertRegionSecurityPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request will not be committed. - optional bool validate_only = 242744629; - } -// A request message for RegionSslCertificates.Insert. See the method description for details. -message InsertRegionSslCertificateRequest { +// A request message for RegionNetworkEndpointGroups.Insert. See the method description for details. +message InsertRegionNetworkEndpointGroupRequest { + // The body resource for this request + NetworkEndpointGroup network_endpoint_group_resource = 525788839 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // The name of the region where + // you want to create the network endpoint group. It should comply with + // RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28175,13 +29035,13 @@ message InsertRegionSslCertificateRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - SslCertificate ssl_certificate_resource = 180709897 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionSslPolicies.Insert. See the method description for details. -message InsertRegionSslPolicyRequest { +// A request message for RegionNetworkFirewallPolicies.Insert. See the method description for details. +message InsertRegionNetworkFirewallPolicyRequest { + // The body resource for this request + FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28194,8 +29054,8 @@ message InsertRegionSslPolicyRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional 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 + // An optional 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. // // For example, consider a situation where you make an initial request and @@ -28209,13 +29069,13 @@ message InsertRegionSslPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - SslPolicy ssl_policy_resource = 274891848 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionTargetHttpProxies.Insert. See the method description for details. -message InsertRegionTargetHttpProxyRequest { +// A request message for RegionNotificationEndpoints.Insert. See the method description for details. +message InsertRegionNotificationEndpointRequest { + // The body resource for this request + NotificationEndpoint notification_endpoint_resource = 338459940 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28243,13 +29103,10 @@ message InsertRegionTargetHttpProxyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // The body resource for this request - TargetHttpProxy target_http_proxy_resource = 24696744 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionTargetHttpsProxies.Insert. See the method description for details. -message InsertRegionTargetHttpsProxyRequest { +// A request message for RegionSecurityPolicies.Insert. See the method description for details. +message InsertRegionSecurityPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28278,19 +29135,22 @@ message InsertRegionTargetHttpsProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetHttpsProxy target_https_proxy_resource = 433657473 [(google.api.field_behavior) = REQUIRED]; + SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request will not be committed. + optional bool validate_only = 242744629; } -// A request message for RegionTargetTcpProxies.Insert. See the method description for details. -message InsertRegionTargetTcpProxyRequest { +// A request message for RegionSnapshots.Insert. See the method description for details. +message InsertRegionSnapshotRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28312,12 +29172,12 @@ message InsertRegionTargetTcpProxyRequest { optional string request_id = 37109963; // The body resource for this request - TargetTcpProxy target_tcp_proxy_resource = 145913931 [(google.api.field_behavior) = REQUIRED]; + Snapshot snapshot_resource = 481319977 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionUrlMaps.Insert. See the method description for details. -message InsertRegionUrlMapRequest { +// A request message for RegionSslCertificates.Insert. See the method description for details. +message InsertRegionSslCertificateRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28330,23 +29190,40 @@ message InsertRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder - // Request ID to support idempotency. + // An optional 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. + // + // 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). optional string request_id = 37109963; // The body resource for this request - UrlMap url_map_resource = 168675425 [(google.api.field_behavior) = REQUIRED]; + SslCertificate ssl_certificate_resource = 180709897 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Reservations.Insert. See the method description for details. -message InsertReservationRequest { +// A request message for RegionSslPolicies.Insert. See the method description for details. +message InsertRegionSslPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + // An optional 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. @@ -28363,25 +29240,19 @@ message InsertReservationRequest { optional string request_id = 37109963; // The body resource for this request - Reservation reservation_resource = 285030177 [(google.api.field_behavior) = REQUIRED]; - - // Name of the zone for this request. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; + SslPolicy ssl_policy_resource = 274891848 [(google.api.field_behavior) = REQUIRED]; } -// A request message for ResourcePolicies.Insert. See the method description for details. -message InsertResourcePolicyRequest { +// A request message for RegionTargetHttpProxies.Insert. See the method description for details. +message InsertRegionTargetHttpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28403,18 +29274,24 @@ message InsertResourcePolicyRequest { optional string request_id = 37109963; // The body resource for this request - ResourcePolicy resource_policy_resource = 76826186 [(google.api.field_behavior) = REQUIRED]; + TargetHttpProxy target_http_proxy_resource = 24696744 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routes.Insert. See the method description for details. -message InsertRouteRequest { +// A request message for RegionTargetHttpsProxies.Insert. See the method description for details. +message InsertRegionTargetHttpsProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + // An optional 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. @@ -28431,19 +29308,19 @@ message InsertRouteRequest { optional string request_id = 37109963; // The body resource for this request - Route route_resource = 225428804 [(google.api.field_behavior) = REQUIRED]; + TargetHttpsProxy target_https_proxy_resource = 433657473 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routers.Insert. See the method description for details. -message InsertRouterRequest { +// A request message for RegionTargetTcpProxies.Insert. See the method description for details. +message InsertRegionTargetTcpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28465,12 +29342,35 @@ message InsertRouterRequest { optional string request_id = 37109963; // The body resource for this request - Router router_resource = 155222084 [(google.api.field_behavior) = REQUIRED]; + TargetTcpProxy target_tcp_proxy_resource = 145913931 [(google.api.field_behavior) = REQUIRED]; } -// A request message for SecurityPolicies.Insert. See the method description for details. -message InsertSecurityPolicyRequest { +// A request message for RegionUrlMaps.Insert. See the method description for details. +message InsertRegionUrlMapRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. + optional string request_id = 37109963; + + // The body resource for this request + UrlMap url_map_resource = 168675425 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Reservations.Insert. See the method description for details. +message InsertReservationRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -28493,22 +29393,25 @@ message InsertSecurityPolicyRequest { optional string request_id = 37109963; // The body resource for this request - SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + Reservation reservation_resource = 285030177 [(google.api.field_behavior) = REQUIRED]; - // If true, the request will not be committed. - optional bool validate_only = 242744629; + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; } -// A request message for ServiceAttachments.Insert. See the method description for details. -message InsertServiceAttachmentRequest { +// A request message for ResourcePolicies.Insert. See the method description for details. +message InsertResourcePolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region of this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -28530,12 +29433,139 @@ message InsertServiceAttachmentRequest { optional string request_id = 37109963; // The body resource for this request - ServiceAttachment service_attachment_resource = 472980256 [(google.api.field_behavior) = REQUIRED]; + ResourcePolicy resource_policy_resource = 76826186 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Snapshots.Insert. See the method description for details. -message InsertSnapshotRequest { +// A request message for Routes.Insert. See the method description for details. +message InsertRouteRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The body resource for this request + Route route_resource = 225428804 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Routers.Insert. See the method description for details. +message InsertRouterRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The body resource for this request + Router router_resource = 155222084 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for SecurityPolicies.Insert. See the method description for details. +message InsertSecurityPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The body resource for this request + SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request will not be committed. + optional bool validate_only = 242744629; + +} + +// A request message for ServiceAttachments.Insert. See the method description for details. +message InsertServiceAttachmentRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region of this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The body resource for this request + ServiceAttachment service_attachment_resource = 472980256 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Snapshots.Insert. See the method description for details. +message InsertSnapshotRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -29058,6 +30088,40 @@ message InsertWireGroupRequest { } +// A request message for ZoneVmExtensionPolicies.Insert. See the method description for details. +message InsertZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The body resource for this request + VmExtensionPolicy vm_extension_policy_resource = 515669235 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // Represents an Instance resource. // // An instance is a virtual machine that is hosted on Google Cloud Platform. @@ -29668,11 +30732,11 @@ message InstanceGroupManager { // [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) optional string base_instance_name = 389106439; - // Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 + // Output only. The creation timestamp for this managed instance group inRFC3339 // text format. optional string creation_timestamp = 30525366; - // Output only. [Output Only] The list of instance actions and the number of instances + // Output only. The list of instance actions and the number of instances // in this managed instance group that are scheduled for each of those // actions. optional InstanceGroupManagerActionsSummary current_actions = 164045879; @@ -29693,7 +30757,7 @@ message InstanceGroupManager { // retrieve an InstanceGroupManager. optional string fingerprint = 234678500; - // Output only. [Output Only] A unique identifier for this resource type. The server + // Output only. A unique identifier for this resource type. The server // generates this identifier. optional uint64 id = 3355; @@ -29703,7 +30767,7 @@ message InstanceGroupManager { // template configuration. optional InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090; - // Output only. [Output Only] The URL of the Instance Group resource. + // Output only. The URL of the Instance Group resource. optional string instance_group = 81095253; // The repair policy for this managed instance group. @@ -29715,7 +30779,7 @@ message InstanceGroupManager { // group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. optional string instance_template = 309248228; - // Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups. + // Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups. optional string kind = 3292052; // Pagination behavior of the listManagedInstances API method for @@ -29738,13 +30802,13 @@ message InstanceGroupManager { // Resource policies for this managed instance group. optional InstanceGroupManagerResourcePolicies resource_policies = 22220385; - // Output only. [Output Only] Reserved for future use. + // Output only. Reserved for future use. optional bool satisfies_pzi = 480964257; - // Output only. [Output Only] Reserved for future use. + // Output only. Reserved for future use. optional bool satisfies_pzs = 480964267; - // Output only. [Output Only] The URL for this managed instance group. The server defines + // Output only. The URL for this managed instance group. The server defines // this URL. optional string self_link = 456214797; @@ -29754,7 +30818,7 @@ message InstanceGroupManager { // Stateful configuration for this Instanced Group Manager optional StatefulPolicy stateful_policy = 47538565; - // Output only. [Output Only] The status of this managed instance group. + // Output only. The status of this managed instance group. optional InstanceGroupManagerStatus status = 181260274; // The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically @@ -29805,7 +30869,7 @@ message InstanceGroupManager { // updates. repeated InstanceGroupManagerVersion versions = 162430619; - // Output only. [Output Only] The URL of azone + // Output only. The URL of azone // where the managed instance group is located (for zonal resources). optional string zone = 3744684; @@ -29813,12 +30877,12 @@ message InstanceGroupManager { // message InstanceGroupManagerActionsSummary { - // Output only. [Output Only] The total number of instances in the managed instance group + // Output only. The total number of instances in the managed instance group // that are scheduled to be abandoned. Abandoning an instance removes it // from the managed instance group without deleting it. optional int32 abandoning = 440023373; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be created or are currently being created. If the group // fails to create any of these instances, it tries again until it creates // the instance successfully. @@ -29827,54 +30891,54 @@ message InstanceGroupManagerActionsSummary { // instead, the creatingWithoutRetries field will be populated. optional int32 creating = 209809081; - // Output only. [Output Only] The number of instances that the managed instance group + // Output only. The number of instances that the managed instance group // will attempt to create. The group attempts to create each instance // only once. If the group fails to create any of these instances, it // decreases the group's targetSize value accordingly. optional int32 creating_without_retries = 369916745; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be deleted or are currently being deleted. optional int32 deleting = 282846120; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are running and have no scheduled actions. optional int32 none = 3387192; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be recreated or are currently being being recreated. // Recreating an instance deletes the existing root persistent disk // and creates a new disk from the image that is defined in the // instance template. optional int32 recreating = 339057132; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are being reconfigured with properties that do not require a restart // or a recreate action. For example, setting or removing target // pools for the instance. optional int32 refreshing = 215044903; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be restarted or are currently being restarted. optional int32 restarting = 372312947; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be resumed or are currently being resumed. optional int32 resuming = 201100714; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be started or are currently being started. optional int32 starting = 243064896; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be stopped or are currently being stopped. optional int32 stopping = 105035892; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are scheduled to be suspended or are currently being suspended. optional int32 suspending = 29113894; - // Output only. [Output Only] The number of instances in the managed instance group that + // Output only. The number of instances in the managed instance group that // are being verified. See the managedInstances[].currentAction // property in the listManagedInstances method documentation. optional int32 verifying = 451612873; @@ -30108,7 +31172,7 @@ message InstanceGroupManagerList { // and the VMs created by this request are added to the owning // InstanceGroupManager. message InstanceGroupManagerResizeRequest { - // Output only. [Output only] Current state of the request. + // Output only. Current state of the request. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -30136,25 +31200,29 @@ message InstanceGroupManagerResizeRequest { } - // Output only. [Output Only] The creation timestamp for this resize request inRFC3339 + // Output only. The creation timestamp for this resize request inRFC3339 // text format. optional string creation_timestamp = 30525366; // An optional description of this resource. optional string description = 422937596; - // Output only. [Output Only] A unique identifier for this resource type. The server - // generates this identifier. + // Output only. A unique identifier for this resource type. The server generates this + // identifier. optional uint64 id = 3355; - // Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - // resize requests. + // Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests. optional string kind = 3292052; // The name of this resize request. The name must be 1-63 characters // long, and comply withRFC1035. optional string name = 3373707; + // Output only. The URL of a region + // where the resize request is located. Populated only for regional resize + // requests. + optional string region = 138946292; + // Requested run duration for instances that will be created by this request. // At the end of the run duration instance will be deleted. optional Duration requested_run_duration = 232146425; @@ -30164,21 +31232,20 @@ message InstanceGroupManagerResizeRequest { // together with 'instances'. optional int32 resize_by = 533735362; - // Output only. [Output Only] The URL for this resize request. The server defines - // this URL. + // Output only. The URL for this resize request. The server defines this URL. optional string self_link = 456214797; - // Output only. [Output Only] Server-defined URL for this resource with the resource id. + // Output only. Server-defined URL for this resource with the resource id. optional string self_link_with_id = 44520962; - // Output only. [Output only] Current state of the request. + // Output only. Current state of the request. // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output only] Status of the request. + // Output only. Status of the request. optional InstanceGroupManagerResizeRequestStatus status = 181260274; - // Output only. [Output Only] The URL of azone + // Output only. The URL of a zone // where the resize request is located. Populated only for zonal resize // requests. optional string zone = 3744684; @@ -30187,21 +31254,20 @@ message InstanceGroupManagerResizeRequest { // message InstanceGroupManagerResizeRequestStatus { - // Output only. [Output only] Fatal errors encountered during the queueing or - // provisioning phases of the ResizeRequest that caused the transition to - // the FAILED state. Contrary to the last_attempt errors, this field is - // final and errors are never removed from here, as the ResizeRequest is not - // going to retry. + // Output only. Fatal errors encountered during the queueing or provisioning phases of + // the ResizeRequest that caused the transition to the FAILED state. + // Contrary to the last_attempt errors, this field is final and errors are + // never removed from here, as the ResizeRequest is not going to retry. optional Error error = 96784904; - // Output only. [Output only] Information about the last attempt to fulfill the request. - // The value is temporary since the ResizeRequest can retry, as long as it's - // still active and the last attempt value can either be cleared or replaced - // with a different error. Since ResizeRequest retries infrequently, the - // value may be stale and no longer show an active problem. The value is - // cleared when ResizeRequest transitions to the final state (becomes - // inactive). If the final state is FAILED the error describing it will be - // storred in the "error" field only. + // Output only. Information about the last attempt to fulfill the request. The value is + // temporary since the ResizeRequest can retry, as long as it's still active + // and the last attempt value can either be cleared or replaced with a + // different error. Since ResizeRequest retries infrequently, the value may + // be stale and no longer show an active problem. The value is cleared when + // ResizeRequest transitions to the final state (becomes inactive). If the + // final state is FAILED the error describing it will be stored in the + // "error" field only. optional InstanceGroupManagerResizeRequestStatusLastAttempt last_attempt = 434771492; } @@ -30289,21 +31355,26 @@ message InstanceGroupManagerStandbyPolicy { // message InstanceGroupManagerStatus { - // Output only. [Output only] Status of all-instances configuration on the group. + // Output only. Status of all-instances configuration on the group. optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; - // Output only. [Output Only] The accelerator topology applied to this MIG. + // Output only. The accelerator topology applied to this MIG. // Currently only one accelerator topology is supported. repeated InstanceGroupManagerStatusAcceleratorTopology applied_accelerator_topologies = 481392547; - // Output only. [Output Only] The URL of theAutoscaler + // Output only. The URL of theAutoscaler // that targets this instance group manager. optional string autoscaler = 517258967; - // Output only. [Output Only] The status of bulk instance operation. + // Output only. The status of bulk instance operation. optional InstanceGroupManagerStatusBulkInstanceOperation bulk_instance_operation = 501667466; - // Output only. [Output Only] A bit indicating whether the managed instance group is in a + // Output only. The list of instance statuses and the number of instances + // in this managed instance group that have the status. Currently only shown + // for TPU MIGs + optional InstanceGroupManagerStatusInstanceStatusSummary current_instance_statuses = 269432644; + + // Output only. A bit indicating whether the managed instance group is in a // stable state. A stable state means that: none of the instances in the // managed instance group is currently undergoing any type of change (for // example, creation, restart, or deletion); no future changes are scheduled @@ -30311,10 +31382,10 @@ message InstanceGroupManagerStatus { // group itself is not being modified. optional bool is_stable = 108410864; - // Output only. [Output Only] Stateful status of the given Instance Group Manager. + // Output only. Stateful status of the given Instance Group Manager. optional InstanceGroupManagerStatusStateful stateful = 244462412; - // Output only. [Output Only] A status of consistency of Instances' versions with their + // Output only. A status of consistency of Instances' versions with their // target version specified by version field on Instance Group // Manager. optional InstanceGroupManagerStatusVersionTarget version_target = 289386200; @@ -30323,7 +31394,7 @@ message InstanceGroupManagerStatus { // message InstanceGroupManagerStatusAcceleratorTopology { - // Output only. [Output Only] The state of the accelerator topology. + // Output only. The state of the accelerator topology. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -30349,15 +31420,15 @@ message InstanceGroupManagerStatusAcceleratorTopology { } - // Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. + // Output only. Topology in the format of: "16x16", "4x4x4", etc. // The value is the same as configured in the WorkloadPolicy. optional string accelerator_topology = 389323203; - // Output only. [Output Only] The state of the accelerator topology. + // Output only. The state of the accelerator topology. // Check the State enum for the list of possible values. optional string state = 109757585; - // Output only. [Output Only] The result of the latest accelerator topology state + // Output only. The result of the latest accelerator topology state // check. optional InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails state_details = 95566996; @@ -30365,10 +31436,10 @@ message InstanceGroupManagerStatusAcceleratorTopology { // message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { - // Output only. [Output Only] Encountered errors. + // Output only. Encountered errors. optional Error error = 96784904; - // Output only. [Output Only] Timestamp is shown only if there is an error. The field + // Output only. Timestamp is shown only if there is an error. The field // has // RFC3339 // // text format. optional string timestamp = 55126294; @@ -30377,11 +31448,11 @@ message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDet // message InstanceGroupManagerStatusAllInstancesConfig { - // Output only. [Output Only] Current all-instances configuration revision. + // Output only. Current all-instances configuration revision. // This value is in RFC3339 text format. optional string current_revision = 38355937; - // Output only. [Output Only] A bit indicating whether this configuration has + // Output only. A bit indicating whether this configuration has // been applied to all managed instances in the group. optional bool effective = 141961639; @@ -30390,10 +31461,10 @@ message InstanceGroupManagerStatusAllInstancesConfig { // Bulk instance operation is the creation of VMs in a MIG when the // targetSizePolicy.mode is set to BULK. message InstanceGroupManagerStatusBulkInstanceOperation { - // Output only. [Output Only] Informs whether bulk instance operation is in progress. + // Output only. Informs whether bulk instance operation is in progress. optional bool in_progress = 320200711; - // Output only. [Output Only] Information from the last progress check of bulk instance + // Output only. Information from the last progress check of bulk instance // operation. optional InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck last_progress_check = 208638271; @@ -30401,18 +31472,83 @@ message InstanceGroupManagerStatusBulkInstanceOperation { // message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { - // Output only. [Output Only] Errors encountered during bulk instance operation. + // Output only. Errors encountered during bulk instance operation. optional Error error = 96784904; - // Output only. [Output Only] Timestamp of the last progress check of bulk instance + // Output only. Timestamp of the last progress check of bulk instance // operation. Timestamp is in RFC3339 text format. optional string timestamp = 55126294; } +// The list of instance statuses and the number of instances in this managed +// instance group that have the status. For more information about how to +// interpret each status check the instance lifecycle documentation. +// Currently only shown for TPU MIGs. +message InstanceGroupManagerStatusInstanceStatusSummary { + // Output only. The number of instances in the managed instance group + // that have DEPROVISIONING status. + optional int32 deprovisioning = 462169582; + + // Output only. The number of instances that have not been created yet or + // have been deleted. Includes only instances that would be shown in the + // listManagedInstances method and not all instances that have been + // deleted in the lifetime of the MIG. + // Does not include FlexStart instances that are waiting for the resources + // availability, they are considered as 'pending'. + optional int32 non_existent = 468485062; + + // Output only. The number of instances in the managed instance group + // that have PENDING status, that is FlexStart instances that are waiting + // for resources. Instances that do not exist because of the other reasons + // are counted as 'non_existent'. + optional int32 pending = 391154071; + + // Output only. The number of instances in the managed instance group + // that have PENDING_STOP status. + optional int32 pending_stop = 163159466; + + // Output only. The number of instances in the managed instance group + // that have PROVISIONING status. + optional int32 provisioning = 121098989; + + // Output only. The number of instances in the managed instance group + // that have REPAIRING status. + optional int32 repairing = 311243061; + + // Output only. The number of instances in the managed instance group + // that have RUNNING status. + optional int32 running = 477042111; + + // Output only. The number of instances in the managed instance group + // that have STAGING status. + optional int32 staging = 249960507; + + // Output only. The number of instances in the managed instance group + // that have STOPPED status. + optional int32 stopped = 263164365; + + // Output only. The number of instances in the managed instance group + // that have STOPPING status. + optional int32 stopping = 105035892; + + // Output only. The number of instances in the managed instance group + // that have SUSPENDED status. + optional int32 suspended = 485854683; + + // Output only. The number of instances in the managed instance group + // that have SUSPENDING status. + optional int32 suspending = 29113894; + + // Output only. The number of instances in the managed instance group + // that have TERMINATED status. + optional int32 terminated = 301796899; + +} + // message InstanceGroupManagerStatusStateful { - // Output only. [Output Only] A bit indicating whether the managed instance group + // Output only. A bit indicating whether the managed instance group // has stateful configuration, that is, if you have configured any items // in a stateful policy or in per-instance configs. // The group might report that it has no stateful configuration even when @@ -30420,7 +31556,7 @@ message InstanceGroupManagerStatusStateful { // if you have deleted all PICs but not yet applied those deletions. optional bool has_stateful_config = 110474224; - // Output only. [Output Only] Status of per-instance configurations on the instances. + // Output only. Status of per-instance configurations on the instances. optional InstanceGroupManagerStatusStatefulPerInstanceConfigs per_instance_configs = 526265001; } @@ -30436,7 +31572,7 @@ message InstanceGroupManagerStatusStatefulPerInstanceConfigs { // message InstanceGroupManagerStatusVersionTarget { - // Output only. [Output Only] A bit indicating whether version target has been reached + // Output only. A bit indicating whether version target has been reached // in this managed instance group, i.e. all instances are in their target // version. Instances' target version are specified byversion field on Instance Group Manager. optional bool is_reached = 433209149; @@ -32052,6 +33188,17 @@ message InstantSnapshot { // was taken from the current or a previous instance of a given disk name. optional string source_disk_id = 454190809; + // Output only. [Output Only] URL of the source instant snapshot this instant snapshot is + // part of. Note that the source instant snapshot group must be in the same + // zone/region as the instant snapshot to be created. This can be a full or + // valid partial URL. + optional string source_instant_snapshot_group = 525991686; + + // Output only. [Output Only] The ID value of the source instant snapshot group this + // InstantSnapshot is part of. This value may be used to determine whether the + // InstantSnapshot was created as part of an InstantSnapshotGroup creation. + optional string source_instant_snapshot_group_id = 167103732; + // Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, orREADY. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -32093,6 +33240,113 @@ message InstantSnapshotAggregatedList { } +// Represents an InstantSnapshotGroup resource. +// +// An instant snapshot group is a set of instant snapshots that represents a +// point in time state of a consistency group. +message InstantSnapshotGroup { + // Output only. [Output Only] + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + CREATING = 455564985; + + DELETING = 528602024; + + FAILED = 455706685; + + INVALID = 530283991; + + READY = 77848963; + + UNKNOWN = 433141802; + + } + + // Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // Optional. An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Output only. [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup + // resources. + optional string kind = 3292052; + + // Identifier. Name of the resource; provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must be + // a dash, lowercase letter, or digit, except the last character, which cannot + // be a dash. + optional string name = 3373707; + + // Output only. [Output Only] URL of the region where the instant snapshot group resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + optional string region = 138946292; + + optional InstantSnapshotGroupResourceStatus resource_status = 249429315; + + // Output only. [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + optional string source_consistency_group = 531359348; + + // Output only. [Output Only] + // Check the Status enum for the list of possible values. + optional string status = 181260274; + + // Output only. [Output Only] URL of the zone where the instant snapshot group resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + optional string zone = 3744684; + +} + +// +message InstantSnapshotGroupParameters { + // The source instant snapshot group used to create disks. You can provide + // this as a partial or full URL to the resource. For example, the following + // are valid values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup + // - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup + // - zones/zone/instantSnapshotGroups/instantSnapshotGroup + optional string source_instant_snapshot_group = 525991686; + +} + +// +message InstantSnapshotGroupResourceStatus { + // Output only. [Output Only] + optional string consistency_membership_resolution_time = 346675870; + + // Output only. [Output Only] + optional InstantSnapshotGroupSourceInfo source_info = 451907154; + +} + +// +message InstantSnapshotGroupSourceInfo { + optional string consistency_group = 508183960; + + optional string consistency_group_id = 85599522; + +} + // Contains a list of InstantSnapshot resources. message InstantSnapshotList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -39297,8 +40551,40 @@ message ListInstancesRequest { } -// A request message for InstantSnapshots.List. See the method description for details. -message ListInstantSnapshotsRequest { +// Contains a list of InstantSnapshotGroup resources. +message ListInstantSnapshotGroups { + optional string etag = 3123477; + + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of InstantSnapshotGroup resources. + repeated InstantSnapshotGroup items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// A request message for InstantSnapshotGroups.List. See the method description for details. +message ListInstantSnapshotGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39400,8 +40686,8 @@ message ListInstantSnapshotsRequest { } -// A request message for InterconnectAttachmentGroups.List. See the method description for details. -message ListInterconnectAttachmentGroupsRequest { +// A request message for InstantSnapshots.List. See the method description for details. +message ListInstantSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39498,10 +40784,13 @@ message ListInterconnectAttachmentGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for InterconnectAttachments.List. See the method description for details. -message ListInterconnectAttachmentsRequest { +// A request message for InterconnectAttachmentGroups.List. See the method description for details. +message ListInterconnectAttachmentGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39590,9 +40879,6 @@ message ListInterconnectAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -39603,8 +40889,8 @@ message ListInterconnectAttachmentsRequest { } -// A request message for InterconnectGroups.List. See the method description for details. -message ListInterconnectGroupsRequest { +// A request message for InterconnectAttachments.List. See the method description for details. +message ListInterconnectAttachmentsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39693,6 +40979,9 @@ message ListInterconnectGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -39703,8 +40992,8 @@ message ListInterconnectGroupsRequest { } -// A request message for InterconnectLocations.List. See the method description for details. -message ListInterconnectLocationsRequest { +// A request message for InterconnectGroups.List. See the method description for details. +message ListInterconnectGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39803,8 +41092,8 @@ message ListInterconnectLocationsRequest { } -// A request message for InterconnectRemoteLocations.List. See the method description for details. -message ListInterconnectRemoteLocationsRequest { +// A request message for InterconnectLocations.List. See the method description for details. +message ListInterconnectLocationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -39903,8 +41192,8 @@ message ListInterconnectRemoteLocationsRequest { } -// A request message for Interconnects.List. See the method description for details. -message ListInterconnectsRequest { +// A request message for InterconnectRemoteLocations.List. See the method description for details. +message ListInterconnectRemoteLocationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40003,8 +41292,8 @@ message ListInterconnectsRequest { } -// A request message for Licenses.List. See the method description for details. -message ListLicensesRequest { +// A request message for Interconnects.List. See the method description for details. +message ListInterconnectsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40103,8 +41392,8 @@ message ListLicensesRequest { } -// A request message for MachineImages.List. See the method description for details. -message ListMachineImagesRequest { +// A request message for Licenses.List. See the method description for details. +message ListLicensesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40203,8 +41492,8 @@ message ListMachineImagesRequest { } -// A request message for MachineTypes.List. See the method description for details. -message ListMachineTypesRequest { +// A request message for MachineImages.List. See the method description for details. +message ListMachineImagesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40301,13 +41590,10 @@ message ListMachineTypesRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. -message ListManagedInstancesInstanceGroupManagersRequest { +// A request message for MachineTypes.List. See the method description for details. +message ListMachineTypesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40368,9 +41654,6 @@ message ListManagedInstancesInstanceGroupManagersRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of results per page that should be returned. // If the number of available results is larger than `maxResults`, // Compute Engine returns a `nextPageToken` that can be used to get @@ -40407,14 +41690,13 @@ message ListManagedInstancesInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone where the managed - // instance group is located. + // The name of the zone for this request. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. -message ListManagedInstancesRegionInstanceGroupManagersRequest { +// A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. +message ListManagedInstancesInstanceGroupManagersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40506,9 +41788,6 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -40517,10 +41796,14 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone where the managed + // instance group is located. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for NetworkAttachments.List. See the method description for details. -message ListNetworkAttachmentsRequest { +// A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. +message ListManagedInstancesRegionInstanceGroupManagersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40581,6 +41864,9 @@ message ListNetworkAttachmentsRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // The maximum number of results per page that should be returned. // If the number of available results is larger than `maxResults`, // Compute Engine returns a `nextPageToken` that can be used to get @@ -40609,7 +41895,7 @@ message ListNetworkAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -40622,8 +41908,8 @@ message ListNetworkAttachmentsRequest { } -// A request message for NetworkEndpointGroups.List. See the method description for details. -message ListNetworkEndpointGroupsRequest { +// A request message for NetworkAttachments.List. See the method description for details. +message ListNetworkAttachmentsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40712,6 +41998,9 @@ message ListNetworkEndpointGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -40720,14 +42009,10 @@ message ListNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone - // where the network endpoint group is located. It should comply with RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { +// A request message for NetworkEndpointGroups.List. See the method description for details. +message ListNetworkEndpointGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40795,10 +42080,6 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the network endpoint group from which you want to generate a - // list of included network endpoints. It should comply with RFC1035. - string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -40828,10 +42109,14 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone + // where the network endpoint group is located. It should comply with RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsNetworkEndpointGroupsRequest { +// A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. +message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -40903,9 +42188,6 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // list of included network endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - // The body resource for this request - NetworkEndpointGroupsListEndpointsRequest network_endpoint_groups_list_endpoints_request_resource = 59493390 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -40935,14 +42217,10 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where - // the network endpoint group is located. It should comply with RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { +// A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. +message ListNetworkEndpointsNetworkEndpointGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -41014,109 +42292,8 @@ message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { // list of included network endpoints. It should comply with RFC1035. string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results - // are returned in alphanumerical order based on the resource name. - // - // You can also sort results in descending order based on the creation - // timestamp using `orderBy="creationTimestamp desc"`. This sorts - // results based on the `creationTimestamp` field in - // reverse chronological order (newest result first). Use this to sort - // resources like operations so that the newest operation is returned first. - // - // Currently, only sorting by `name` or - // `creationTimestamp desc` is supported. - optional string order_by = 160562920; - - // Specifies a page token to use. Set `pageToken` to the - // `nextPageToken` returned by a previous list request to get - // the next page of results. - optional string page_token = 19994697; - - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - - // The name of theregion - // where the network endpoint group is located. It should comply with RFC1035. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - - // Opt-in for partial success behavior which provides partial results in case - // of failure. The default value is false. - // - // For example, when partial success behavior is enabled, aggregatedList for a - // single zone scope either returns all resources in the zone or no resources, - // with an error code. - optional bool return_partial_success = 517198390; - -} - -// A request message for NetworkFirewallPolicies.List. See the method description for details. -message ListNetworkFirewallPoliciesRequest { - // A filter expression that filters resources listed in the response. Most - // Compute resources support two types of filter expressions: - // expressions that support regular expressions and expressions that follow - // API improvement proposal AIP-160. - // These two types of filter expressions cannot be mixed in one request. - // - // If you want to use AIP-160, your expression must specify the field name, an - // operator, and the value that you want to use for filtering. The value - // must be a string, a number, or a boolean. The operator - // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - // - // For example, if you are filtering Compute Engine instances, you can - // exclude instances named `example-instance` by specifying - // `name != example-instance`. - // - // The `:*` comparison can be used to test whether a key has been defined. - // For example, to find all objects with `owner` label use: - // ``` - // labels.owner:* - // ``` - // - // You can also filter nested fields. For example, you could specify - // `scheduling.automaticRestart = false` to include instances only - // if they are not scheduled for automatic restarts. You can use filtering - // on nested fields to filter based onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for instances that do not end with name "instance", - // you would use `name ne .*instance`. - // - // You cannot combine constraints on multiple fields using regular - // expressions. - optional string filter = 336120696; - - // The maximum number of results per page that should be returned. - // If the number of available results is larger than `maxResults`, - // Compute Engine returns a `nextPageToken` that can be used to get - // the next page of results in subsequent list requests. Acceptable values are - // `0` to `500`, inclusive. (Default: `500`) - optional uint32 max_results = 54715419; + // The body resource for this request + NetworkEndpointGroupsListEndpointsRequest network_endpoint_groups_list_endpoints_request_resource = 59493390 [(google.api.field_behavior) = REQUIRED]; // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. @@ -41147,10 +42324,222 @@ message ListNetworkFirewallPoliciesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for NetworkProfiles.List. See the method description for details. -message ListNetworkProfilesRequest { +// A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. +message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // The name of the network endpoint group from which you want to generate a + // list of included network endpoints. It should comply with RFC1035. + string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of theregion + // where the network endpoint group is located. It should comply with RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for NetworkFirewallPolicies.List. See the method description for details. +message ListNetworkFirewallPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for NetworkProfiles.List. See the method description for details. +message ListNetworkProfilesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43021,8 +44410,8 @@ message ListRegionAutoscalersRequest { } -// A request message for RegionBackendServices.List. See the method description for details. -message ListRegionBackendServicesRequest { +// A request message for RegionBackendBuckets.List. See the method description for details. +message ListRegionBackendBucketsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43111,7 +44500,7 @@ message ListRegionBackendServicesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // Name of the region of this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43124,8 +44513,8 @@ message ListRegionBackendServicesRequest { } -// A request message for RegionCommitments.List. See the method description for details. -message ListRegionCommitmentsRequest { +// A request message for RegionBackendServices.List. See the method description for details. +message ListRegionBackendServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43214,7 +44603,7 @@ message ListRegionCommitmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43227,8 +44616,8 @@ message ListRegionCommitmentsRequest { } -// A request message for RegionCompositeHealthChecks.List. See the method description for details. -message ListRegionCompositeHealthChecksRequest { +// A request message for RegionCommitments.List. See the method description for details. +message ListRegionCommitmentsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43317,7 +44706,7 @@ message ListRegionCompositeHealthChecksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43330,8 +44719,8 @@ message ListRegionCompositeHealthChecksRequest { } -// A request message for RegionDiskTypes.List. See the method description for details. -message ListRegionDiskTypesRequest { +// A request message for RegionCompositeHealthChecks.List. See the method description for details. +message ListRegionCompositeHealthChecksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43420,7 +44809,7 @@ message ListRegionDiskTypesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43433,8 +44822,8 @@ message ListRegionDiskTypesRequest { } -// A request message for RegionDisks.List. See the method description for details. -message ListRegionDisksRequest { +// A request message for RegionDiskTypes.List. See the method description for details. +message ListRegionDiskTypesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43523,7 +44912,7 @@ message ListRegionDisksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43536,8 +44925,8 @@ message ListRegionDisksRequest { } -// A request message for RegionHealthAggregationPolicies.List. See the method description for details. -message ListRegionHealthAggregationPoliciesRequest { +// A request message for RegionDisks.List. See the method description for details. +message ListRegionDisksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43626,7 +45015,7 @@ message ListRegionHealthAggregationPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43639,8 +45028,8 @@ message ListRegionHealthAggregationPoliciesRequest { } -// A request message for RegionHealthCheckServices.List. See the method description for details. -message ListRegionHealthCheckServicesRequest { +// A request message for RegionHealthAggregationPolicies.List. See the method description for details. +message ListRegionHealthAggregationPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43742,8 +45131,8 @@ message ListRegionHealthCheckServicesRequest { } -// A request message for RegionHealthChecks.List. See the method description for details. -message ListRegionHealthChecksRequest { +// A request message for RegionHealthCheckServices.List. See the method description for details. +message ListRegionHealthCheckServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43845,8 +45234,8 @@ message ListRegionHealthChecksRequest { } -// A request message for RegionHealthSources.List. See the method description for details. -message ListRegionHealthSourcesRequest { +// A request message for RegionHealthChecks.List. See the method description for details. +message ListRegionHealthChecksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43948,8 +45337,8 @@ message ListRegionHealthSourcesRequest { } -// A request message for RegionInstanceGroupManagers.List. See the method description for details. -message ListRegionInstanceGroupManagersRequest { +// A request message for RegionHealthSources.List. See the method description for details. +message ListRegionHealthSourcesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44051,8 +45440,8 @@ message ListRegionInstanceGroupManagersRequest { } -// A request message for RegionInstanceGroups.List. See the method description for details. -message ListRegionInstanceGroupsRequest { +// A request message for RegionInstanceGroupManagerResizeRequests.List. See the method description for details. +message ListRegionInstanceGroupManagerResizeRequestsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44113,211 +45502,8 @@ message ListRegionInstanceGroupsRequest { // expressions. optional string filter = 336120696; - // The maximum number of results per page that should be returned. - // If the number of available results is larger than `maxResults`, - // Compute Engine returns a `nextPageToken` that can be used to get - // the next page of results in subsequent list requests. Acceptable values are - // `0` to `500`, inclusive. (Default: `500`) - optional uint32 max_results = 54715419; - - // Sorts list results by a certain order. By default, results - // are returned in alphanumerical order based on the resource name. - // - // You can also sort results in descending order based on the creation - // timestamp using `orderBy="creationTimestamp desc"`. This sorts - // results based on the `creationTimestamp` field in - // reverse chronological order (newest result first). Use this to sort - // resources like operations so that the newest operation is returned first. - // - // Currently, only sorting by `name` or - // `creationTimestamp desc` is supported. - optional string order_by = 160562920; - - // Specifies a page token to use. Set `pageToken` to the - // `nextPageToken` returned by a previous list request to get - // the next page of results. - optional string page_token = 19994697; - - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - - // Opt-in for partial success behavior which provides partial results in case - // of failure. The default value is false. - // - // For example, when partial success behavior is enabled, aggregatedList for a - // single zone scope either returns all resources in the zone or no resources, - // with an error code. - optional bool return_partial_success = 517198390; - -} - -// A request message for RegionInstanceTemplates.List. See the method description for details. -message ListRegionInstanceTemplatesRequest { - // A filter expression that filters resources listed in the response. Most - // Compute resources support two types of filter expressions: - // expressions that support regular expressions and expressions that follow - // API improvement proposal AIP-160. - // These two types of filter expressions cannot be mixed in one request. - // - // If you want to use AIP-160, your expression must specify the field name, an - // operator, and the value that you want to use for filtering. The value - // must be a string, a number, or a boolean. The operator - // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - // - // For example, if you are filtering Compute Engine instances, you can - // exclude instances named `example-instance` by specifying - // `name != example-instance`. - // - // The `:*` comparison can be used to test whether a key has been defined. - // For example, to find all objects with `owner` label use: - // ``` - // labels.owner:* - // ``` - // - // You can also filter nested fields. For example, you could specify - // `scheduling.automaticRestart = false` to include instances only - // if they are not scheduled for automatic restarts. You can use filtering - // on nested fields to filter based onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for instances that do not end with name "instance", - // you would use `name ne .*instance`. - // - // You cannot combine constraints on multiple fields using regular - // expressions. - optional string filter = 336120696; - - // The maximum number of results per page that should be returned. - // If the number of available results is larger than `maxResults`, - // Compute Engine returns a `nextPageToken` that can be used to get - // the next page of results in subsequent list requests. Acceptable values are - // `0` to `500`, inclusive. (Default: `500`) - optional uint32 max_results = 54715419; - - // Sorts list results by a certain order. By default, results - // are returned in alphanumerical order based on the resource name. - // - // You can also sort results in descending order based on the creation - // timestamp using `orderBy="creationTimestamp desc"`. This sorts - // results based on the `creationTimestamp` field in - // reverse chronological order (newest result first). Use this to sort - // resources like operations so that the newest operation is returned first. - // - // Currently, only sorting by `name` or - // `creationTimestamp desc` is supported. - optional string order_by = 160562920; - - // Specifies a page token to use. Set `pageToken` to the - // `nextPageToken` returned by a previous list request to get - // the next page of results. - optional string page_token = 19994697; - - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - - // The name of the regions for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - - // Opt-in for partial success behavior which provides partial results in case - // of failure. The default value is false. - // - // For example, when partial success behavior is enabled, aggregatedList for a - // single zone scope either returns all resources in the zone or no resources, - // with an error code. - optional bool return_partial_success = 517198390; - -} - -// A request message for RegionInstantSnapshots.List. See the method description for details. -message ListRegionInstantSnapshotsRequest { - // A filter expression that filters resources listed in the response. Most - // Compute resources support two types of filter expressions: - // expressions that support regular expressions and expressions that follow - // API improvement proposal AIP-160. - // These two types of filter expressions cannot be mixed in one request. - // - // If you want to use AIP-160, your expression must specify the field name, an - // operator, and the value that you want to use for filtering. The value - // must be a string, a number, or a boolean. The operator - // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - // - // For example, if you are filtering Compute Engine instances, you can - // exclude instances named `example-instance` by specifying - // `name != example-instance`. - // - // The `:*` comparison can be used to test whether a key has been defined. - // For example, to find all objects with `owner` label use: - // ``` - // labels.owner:* - // ``` - // - // You can also filter nested fields. For example, you could specify - // `scheduling.automaticRestart = false` to include instances only - // if they are not scheduled for automatic restarts. You can use filtering - // on nested fields to filter based onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for instances that do not end with name "instance", - // you would use `name ne .*instance`. - // - // You cannot combine constraints on multiple fields using regular - // expressions. - optional string filter = 336120696; + // The name of the managed instance group. The name should conform to RFC1035. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // The maximum number of results per page that should be returned. // If the number of available results is larger than `maxResults`, @@ -44347,7 +45533,8 @@ message ListRegionInstantSnapshotsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region for this request. + // Name of the region + // scoping this request. Name should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44360,8 +45547,8 @@ message ListRegionInstantSnapshotsRequest { } -// A request message for RegionNetworkEndpointGroups.List. See the method description for details. -message ListRegionNetworkEndpointGroupsRequest { +// A request message for RegionInstanceGroupManagers.List. See the method description for details. +message ListRegionInstanceGroupManagersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44450,8 +45637,7 @@ message ListRegionNetworkEndpointGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of theregion - // where the network endpoint group is located. It should comply with RFC1035. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44464,8 +45650,8 @@ message ListRegionNetworkEndpointGroupsRequest { } -// A request message for RegionNetworkFirewallPolicies.List. See the method description for details. -message ListRegionNetworkFirewallPoliciesRequest { +// A request message for RegionInstanceGroups.List. See the method description for details. +message ListRegionInstanceGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44567,8 +45753,8 @@ message ListRegionNetworkFirewallPoliciesRequest { } -// A request message for RegionNotificationEndpoints.List. See the method description for details. -message ListRegionNotificationEndpointsRequest { +// A request message for RegionInstanceTemplates.List. See the method description for details. +message ListRegionInstanceTemplatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44657,7 +45843,7 @@ message ListRegionNotificationEndpointsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // The name of the regions for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44670,8 +45856,8 @@ message ListRegionNotificationEndpointsRequest { } -// A request message for RegionOperations.List. See the method description for details. -message ListRegionOperationsRequest { +// A request message for RegionInstantSnapshotGroups.List. See the method description for details. +message ListRegionInstantSnapshotGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44760,7 +45946,7 @@ message ListRegionOperationsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44773,8 +45959,8 @@ message ListRegionOperationsRequest { } -// A request message for RegionSecurityPolicies.List. See the method description for details. -message ListRegionSecurityPoliciesRequest { +// A request message for RegionInstantSnapshots.List. See the method description for details. +message ListRegionInstantSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44863,7 +46049,7 @@ message ListRegionSecurityPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44876,8 +46062,8 @@ message ListRegionSecurityPoliciesRequest { } -// A request message for RegionSslCertificates.List. See the method description for details. -message ListRegionSslCertificatesRequest { +// A request message for RegionNetworkEndpointGroups.List. See the method description for details. +message ListRegionNetworkEndpointGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44966,7 +46152,8 @@ message ListRegionSslCertificatesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // The name of theregion + // where the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44979,8 +46166,8 @@ message ListRegionSslCertificatesRequest { } -// A request message for RegionSslPolicies.List. See the method description for details. -message ListRegionSslPoliciesRequest { +// A request message for RegionNetworkFirewallPolicies.List. See the method description for details. +message ListRegionNetworkFirewallPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45082,8 +46269,8 @@ message ListRegionSslPoliciesRequest { } -// A request message for RegionTargetHttpProxies.List. See the method description for details. -message ListRegionTargetHttpProxiesRequest { +// A request message for RegionNotificationEndpoints.List. See the method description for details. +message ListRegionNotificationEndpointsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45185,8 +46372,8 @@ message ListRegionTargetHttpProxiesRequest { } -// A request message for RegionTargetHttpsProxies.List. See the method description for details. -message ListRegionTargetHttpsProxiesRequest { +// A request message for RegionOperations.List. See the method description for details. +message ListRegionOperationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45275,7 +46462,7 @@ message ListRegionTargetHttpsProxiesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -45288,8 +46475,8 @@ message ListRegionTargetHttpsProxiesRequest { } -// A request message for RegionTargetTcpProxies.List. See the method description for details. -message ListRegionTargetTcpProxiesRequest { +// A request message for RegionSecurityPolicies.List. See the method description for details. +message ListRegionSecurityPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45391,8 +46578,8 @@ message ListRegionTargetTcpProxiesRequest { } -// A request message for RegionUrlMaps.List. See the method description for details. -message ListRegionUrlMapsRequest { +// A request message for RegionSnapshots.List. See the method description for details. +message ListRegionSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45481,7 +46668,7 @@ message ListRegionUrlMapsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -45494,8 +46681,8 @@ message ListRegionUrlMapsRequest { } -// A request message for RegionZones.List. See the method description for details. -message ListRegionZonesRequest { +// A request message for RegionSslCertificates.List. See the method description for details. +message ListRegionSslCertificatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45584,7 +46771,7 @@ message ListRegionZonesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Region for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -45597,8 +46784,8 @@ message ListRegionZonesRequest { } -// A request message for Regions.List. See the method description for details. -message ListRegionsRequest { +// A request message for RegionSslPolicies.List. See the method description for details. +message ListRegionSslPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45687,6 +46874,9 @@ message ListRegionsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -45697,8 +46887,8 @@ message ListRegionsRequest { } -// A request message for ReservationBlocks.List. See the method description for details. -message ListReservationBlocksRequest { +// A request message for RegionTargetHttpProxies.List. See the method description for details. +message ListRegionTargetHttpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45787,9 +46977,8 @@ message ListReservationBlocksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation. - // Name should conform to RFC1035 or be a resource ID. - string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -45799,13 +46988,10 @@ message ListReservationBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for ReservationSlots.List. See the method description for details. -message ListReservationSlotsRequest { +// A request message for RegionTargetHttpsProxies.List. See the method description for details. +message ListRegionTargetHttpsProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45891,13 +47077,12 @@ message ListReservationSlotsRequest { // the next page of results. optional string page_token = 19994697; - // The name of the parent reservation and parent block, formatted as - // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - - // The project ID for this request. + // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -45906,13 +47091,10 @@ message ListReservationSlotsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request, formatted as RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for ReservationSubBlocks.List. See the method description for details. -message ListReservationSubBlocksRequest { +// A request message for RegionTargetTcpProxies.List. See the method description for details. +message ListRegionTargetTcpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45998,13 +47180,12 @@ message ListReservationSubBlocksRequest { // the next page of results. optional string page_token = 19994697; - // The name of the parent reservation and parent block. In the format of - // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46013,13 +47194,10 @@ message ListReservationSubBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Reservations.List. See the method description for details. -message ListReservationsRequest { +// A request message for RegionUrlMaps.List. See the method description for details. +message ListRegionUrlMapsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46108,6 +47286,9 @@ message ListReservationsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46116,13 +47297,10 @@ message ListReservationsRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for ResourcePolicies.List. See the method description for details. -message ListResourcePoliciesRequest { +// A request message for RegionZones.List. See the method description for details. +message ListRegionZonesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46211,7 +47389,7 @@ message ListResourcePoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // Region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -46224,8 +47402,8 @@ message ListResourcePoliciesRequest { } -// A request message for Routers.ListRoutePolicies. See the method description for details. -message ListRoutePoliciesRoutersRequest { +// A request message for Regions.List. See the method description for details. +message ListRegionsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46314,9 +47492,6 @@ message ListRoutePoliciesRoutersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46325,14 +47500,10 @@ message ListRoutePoliciesRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name or id of the resource for this request. - // Name should conform to RFC1035. - string router = 148608841 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Routers.List. See the method description for details. -message ListRoutersRequest { +// A request message for ReservationBlocks.List. See the method description for details. +message ListReservationBlocksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46421,8 +47592,9 @@ message ListRoutersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // The name of the reservation. + // Name should conform to RFC1035 or be a resource ID. + string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -46432,10 +47604,13 @@ message ListRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. Zone name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Routes.List. See the method description for details. -message ListRoutesRequest { +// A request message for ReservationSlots.List. See the method description for details. +message ListReservationSlotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46521,6 +47696,117 @@ message ListRoutesRequest { // the next page of results. optional string page_token = 19994697; + // The name of the parent reservation and parent block, formatted as + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // The project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The name of the zone for this request, formatted as RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for ReservationSubBlocks.List. See the method description for details. +message ListReservationSubBlocksRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; @@ -46532,10 +47818,13 @@ message ListRoutesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. Zone name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for SecurityPolicies.List. See the method description for details. -message ListSecurityPoliciesRequest { +// A request message for Reservations.List. See the method description for details. +message ListReservationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46632,10 +47921,13 @@ message ListSecurityPoliciesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for ServiceAttachments.List. See the method description for details. -message ListServiceAttachmentsRequest { +// A request message for ResourcePolicies.List. See the method description for details. +message ListResourcePoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46724,7 +48016,7 @@ message ListServiceAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -46737,8 +48029,8 @@ message ListServiceAttachmentsRequest { } -// A request message for Snapshots.List. See the method description for details. -message ListSnapshotsRequest { +// A request message for Routers.ListRoutePolicies. See the method description for details. +message ListRoutePoliciesRoutersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46827,6 +48119,9 @@ message ListSnapshotsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46835,10 +48130,14 @@ message ListSnapshotsRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name or id of the resource for this request. + // Name should conform to RFC1035. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for SslCertificates.List. See the method description for details. -message ListSslCertificatesRequest { +// A request message for Routers.List. See the method description for details. +message ListRoutersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46927,6 +48226,9 @@ message ListSslCertificatesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46937,8 +48239,8 @@ message ListSslCertificatesRequest { } -// A request message for SslPolicies.List. See the method description for details. -message ListSslPoliciesRequest { +// A request message for Routes.List. See the method description for details. +message ListRoutesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47037,8 +48339,8 @@ message ListSslPoliciesRequest { } -// A request message for StoragePoolTypes.List. See the method description for details. -message ListStoragePoolTypesRequest { +// A request message for SecurityPolicies.List. See the method description for details. +message ListSecurityPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47135,13 +48437,10 @@ message ListStoragePoolTypesRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for StoragePools.List. See the method description for details. -message ListStoragePoolsRequest { +// A request message for ServiceAttachments.List. See the method description for details. +message ListServiceAttachmentsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47230,6 +48529,9 @@ message ListStoragePoolsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -47238,29 +48540,10 @@ message ListStoragePoolsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Subnetworks.List. See the method description for details. -message ListSubnetworksRequest { - // Defines the extra views returned back in the subnetwork resource. - // Supported values: - // - // - WITH_UTILIZATION: Utilization data is included in the - // response. - enum Views { - // A value indicating that the enum field is not set. - UNDEFINED_VIEWS = 0; - - DEFAULT = 115302945; - - // Utilization data is included in the response. - WITH_UTILIZATION = 504090633; - - } - +// A request message for Snapshots.List. See the method description for details. +message ListSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47349,9 +48632,6 @@ message ListSubnetworksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -47360,18 +48640,10 @@ message ListSubnetworksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Defines the extra views returned back in the subnetwork resource. - // Supported values: - // - // - WITH_UTILIZATION: Utilization data is included in the - // response. - // Check the Views enum for the list of possible values. - optional string views = 112204398; - } -// A request message for TargetGrpcProxies.List. See the method description for details. -message ListTargetGrpcProxiesRequest { +// A request message for SslCertificates.List. See the method description for details. +message ListSslCertificatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47470,8 +48742,8 @@ message ListTargetGrpcProxiesRequest { } -// A request message for TargetHttpProxies.List. See the method description for details. -message ListTargetHttpProxiesRequest { +// A request message for SslPolicies.List. See the method description for details. +message ListSslPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47570,8 +48842,8 @@ message ListTargetHttpProxiesRequest { } -// A request message for TargetHttpsProxies.List. See the method description for details. -message ListTargetHttpsProxiesRequest { +// A request message for StoragePoolTypes.List. See the method description for details. +message ListStoragePoolTypesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47668,10 +48940,13 @@ message ListTargetHttpsProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for TargetInstances.List. See the method description for details. -message ListTargetInstancesRequest { +// A request message for StoragePools.List. See the method description for details. +message ListStoragePoolsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47768,13 +49043,29 @@ message ListTargetInstancesRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone scoping this request. + // The name of the zone for this request. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for TargetPools.List. See the method description for details. -message ListTargetPoolsRequest { +// A request message for Subnetworks.List. See the method description for details. +message ListSubnetworksRequest { + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + enum Views { + // A value indicating that the enum field is not set. + UNDEFINED_VIEWS = 0; + + DEFAULT = 115302945; + + // Utilization data is included in the response. + WITH_UTILIZATION = 504090633; + + } + // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47874,10 +49165,18 @@ message ListTargetPoolsRequest { // with an error code. optional bool return_partial_success = 517198390; + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + // Check the Views enum for the list of possible values. + optional string views = 112204398; + } -// A request message for TargetSslProxies.List. See the method description for details. -message ListTargetSslProxiesRequest { +// A request message for TargetGrpcProxies.List. See the method description for details. +message ListTargetGrpcProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47976,8 +49275,8 @@ message ListTargetSslProxiesRequest { } -// A request message for TargetTcpProxies.List. See the method description for details. -message ListTargetTcpProxiesRequest { +// A request message for TargetHttpProxies.List. See the method description for details. +message ListTargetHttpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48076,8 +49375,8 @@ message ListTargetTcpProxiesRequest { } -// A request message for TargetVpnGateways.List. See the method description for details. -message ListTargetVpnGatewaysRequest { +// A request message for TargetHttpsProxies.List. See the method description for details. +message ListTargetHttpsProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48166,9 +49465,6 @@ message ListTargetVpnGatewaysRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -48179,8 +49475,8 @@ message ListTargetVpnGatewaysRequest { } -// A request message for UrlMaps.List. See the method description for details. -message ListUrlMapsRequest { +// A request message for TargetInstances.List. See the method description for details. +message ListTargetInstancesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48277,10 +49573,13 @@ message ListUrlMapsRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone scoping this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for BackendServices.ListUsable. See the method description for details. -message ListUsableBackendServicesRequest { +// A request message for TargetPools.List. See the method description for details. +message ListTargetPoolsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48369,6 +49668,9 @@ message ListUsableBackendServicesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -48379,8 +49681,8 @@ message ListUsableBackendServicesRequest { } -// A request message for RegionBackendServices.ListUsable. See the method description for details. -message ListUsableRegionBackendServicesRequest { +// A request message for TargetSslProxies.List. See the method description for details. +message ListTargetSslProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48469,10 +49771,6 @@ message ListUsableRegionBackendServicesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - // It must be a string that meets the requirements in RFC1035. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -48483,8 +49781,8 @@ message ListUsableRegionBackendServicesRequest { } -// A request message for Subnetworks.ListUsable. See the method description for details. -message ListUsableSubnetworksRequest { +// A request message for TargetTcpProxies.List. See the method description for details. +message ListTargetTcpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48581,15 +49879,10 @@ message ListUsableSubnetworksRequest { // with an error code. optional bool return_partial_success = 517198390; - // The project id or project number in which the subnetwork is intended to be - // used. Only applied for Shared VPC. See [Shared VPC - // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) - optional string service_project = 530592655; - } -// A request message for VpnGateways.List. See the method description for details. -message ListVpnGatewaysRequest { +// A request message for TargetVpnGateways.List. See the method description for details. +message ListTargetVpnGatewaysRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48691,8 +49984,8 @@ message ListVpnGatewaysRequest { } -// A request message for VpnTunnels.List. See the method description for details. -message ListVpnTunnelsRequest { +// A request message for UrlMaps.List. See the method description for details. +message ListUrlMapsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48781,9 +50074,6 @@ message ListVpnTunnelsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -48794,10 +50084,108 @@ message ListVpnTunnelsRequest { } -// A request message for WireGroups.List. See the method description for details. -message ListWireGroupsRequest { - string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; +// A request message for BackendBuckets.ListUsable. See the method description for details. +message ListUsableBackendBucketsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} +// A request message for BackendServices.ListUsable. See the method description for details. +message ListUsableBackendServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -48896,8 +50284,629 @@ message ListWireGroupsRequest { } -// A request message for Projects.ListXpnHosts. See the method description for details. -message ListXpnHostsProjectsRequest { +// A request message for RegionBackendBuckets.ListUsable. See the method description for details. +message ListUsableRegionBackendBucketsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for RegionBackendServices.ListUsable. See the method description for details. +message ListUsableRegionBackendServicesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for Subnetworks.ListUsable. See the method description for details. +message ListUsableSubnetworksRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The project id or project number in which the subnetwork is intended to be + // used. Only applied for Shared VPC. See [Shared VPC + // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + optional string service_project = 530592655; + +} + +// A request message for VpnGateways.List. See the method description for details. +message ListVpnGatewaysRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for VpnTunnels.List. See the method description for details. +message ListVpnTunnelsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for WireGroups.List. See the method description for details. +message ListWireGroupsRequest { + string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; + + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for Projects.ListXpnHosts. See the method description for details. +message ListXpnHostsProjectsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -49102,6 +51111,109 @@ message ListZoneOperationsRequest { } +// A request message for ZoneVmExtensionPolicies.List. See the method description for details. +message ListZoneVmExtensionPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for Zones.List. See the method description for details. message ListZonesRequest { // A filter expression that filters resources listed in the response. Most @@ -50560,6 +52672,10 @@ message NetworkAttachmentConnectedEndpoint { // Alias IP ranges from the same subnetwork. repeated string secondary_ip_cidr_ranges = 117184788; + // The service class id of the producer service to which the IP was + // assigned. + optional string service_class_id = 422763404; + // The status of a connected endpoint to this network attachment. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -51406,6 +53522,12 @@ message NetworkInterface { // if not specified by the users. optional int32 queue_count = 503708769; + // Optional. Producer Service's Service class Id for the region of this network + // interface. Can only be used with network_attachment. It is not possible to + // use on its own however, network_attachment can be used without + // service_class_id. + optional string service_class_id = 422763404; + // The stack type for this network interface. To assign only IPv4 addresses, // use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. // @@ -55311,6 +57433,44 @@ message PatchRegionAutoscalerRequest { } +// A request message for RegionBackendBuckets.Patch. See the method description for details. +message PatchRegionBackendBucketRequest { + // Name of the BackendBucket resource to patch. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + BackendBucket backend_bucket_resource = 380757784 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + // end_interface: MixerMutationRequestBuilder + optional string request_id = 37109963; + +} + // A request message for RegionBackendServices.Patch. See the method description for details. message PatchRegionBackendServiceRequest { // Name of the BackendService resource to patch. @@ -55537,14 +57697,82 @@ message PatchRegionHealthSourceRequest { } -// A request message for RegionInstanceGroupManagers.Patch. See the method description for details. -message PatchRegionInstanceGroupManagerRequest { - // The name of the instance group manager. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; - +// A request message for RegionInstanceGroupManagers.Patch. See the method description for details. +message PatchRegionInstanceGroupManagerRequest { + // The name of the instance group manager. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupManager instance_group_manager_resource = 261063946 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + +} + +// A request message for RegionNetworkFirewallPolicies.Patch. See the method description for details. +message PatchRegionNetworkFirewallPolicyRequest { + // Name of the firewall policy to update. + string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + +} + +// A request message for RegionSecurityPolicies.Patch. See the method description for details. +message PatchRegionSecurityPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -55572,54 +57800,26 @@ message PatchRegionInstanceGroupManagerRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; -} - -// A request message for RegionNetworkFirewallPolicies.Patch. See the method description for details. -message PatchRegionNetworkFirewallPolicyRequest { - // Name of the firewall policy to update. - string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; + // Name of the security policy to update. + string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // Name of the region scoping this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; + SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; - // An optional 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. - // - // 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). - optional string request_id = 37109963; + // Indicates fields to be cleared as part of this request. + optional string update_mask = 500079778; } -// A request message for RegionSecurityPolicies.Patch. See the method description for details. -message PatchRegionSecurityPolicyRequest { +// A request message for RegionSnapshotSettings.Patch. See the method description for details. +message PatchRegionSnapshotSettingRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -55640,13 +57840,10 @@ message PatchRegionSecurityPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the security policy to update. - string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; - // The body resource for this request - SecurityPolicy security_policy_resource = 216159612 [(google.api.field_behavior) = REQUIRED]; + SnapshotSettings snapshot_settings_resource = 357664495 [(google.api.field_behavior) = REQUIRED]; - // Indicates fields to be cleared as part of this request. + // update_mask indicates fields to be updated as part of this request. optional string update_mask = 500079778; } @@ -58697,12 +60894,14 @@ message RawDisk { // by the client when the disk image is created. optional string sha1_checksum = 314444349; - // The full Google Cloud Storage URL where the raw disk image archive is - // stored. - // The following are valid formats for the URL: + // The full Google Cloud Storage URL or Artifact Registry path where the raw + // disk image archive is stored. + // The following are valid formats: // // - https://storage.googleapis.com/bucket_name/image_archive_name // - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + // - projects/project/locations/location/repositories/repo/packages/package/versions/version_id + // - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value // // // @@ -58944,6 +61143,24 @@ message RegionDiskTypeList { } +// +message RegionDiskUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the disk. If empty, the disk + // will be re-encrypted using the primary version of the disk's current KMS + // key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + // + // + // Where project is the project ID or + // project number. + optional string kms_key_name = 484373913; + +} + // message RegionDisksAddResourcePoliciesRequest { // Resource policies to be added to this disk. @@ -59063,6 +61280,39 @@ message RegionInstanceGroupManagerPatchInstanceConfigReq { } +// +message RegionInstanceGroupManagerResizeRequestsListResponse { + optional string etag = 3123477; + + // Output only. [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of Resize Request resources. + repeated InstanceGroupManagerResizeRequest items = 100526016; + + // Output only. [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList for + // a list of Resize Requests. + optional string kind = 3292052; + + // Output only. [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + // end_interface: MixerListResponseWithEtagBuilder + repeated string unreachables = 243372063; + + // Output only. [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // RegionInstanceGroupManagers.updatePerInstanceConfigs message RegionInstanceGroupManagerUpdateInstanceConfigReq { // The list of per-instance configurations to insert or patch on this managed @@ -59523,6 +61773,20 @@ message RegionSetPolicyRequest { } +// +message RegionSnapshotUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the snapshot. If empty, the + // snapshot will be re-encrypted using the primary version of the snapshot's + // current KMS key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/region/keyRings/region/cryptoKeys/key + optional string kms_key_name = 484373913; + +} + // message RegionTargetHttpsProxiesSetSslCertificatesRequest { // New set of SslCertificate resources to associate @@ -60234,6 +62498,18 @@ message RequestRemovePeeringNetworkRequest { // information, read Reserving zonal // resources. message Reservation { + // + enum ConfidentialComputeType { + // A value indicating that the enum field is not set. + UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE = 0; + + // Intel Trust Domain Extensions. + CONFIDENTIAL_COMPUTE_TYPE_TDX = 301241954; + + CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED = 42227601; + + } + // Specifies the deployment strategy for this reservation. enum DeploymentType { // A value indicating that the enum field is not set. @@ -60348,6 +62624,10 @@ message Reservation { // displays for reservations that are tied to a commitment. optional string commitment = 482134805; + // + // Check the ConfidentialComputeType enum for the list of possible values. + optional string confidential_compute_type = 386447257; + // Output only. [Output Only] Creation timestamp inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -66679,6 +68959,22 @@ message SetIamPolicyInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicyInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ZoneSetPolicyRequest zone_set_policy_request_resource = 382082107 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.SetIamPolicy. See the method description for details. message SetIamPolicyInstantSnapshotRequest { // Project ID for this request. @@ -66808,6 +69104,22 @@ message SetIamPolicyNodeTemplateRequest { } +// A request message for RegionBackendBuckets.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionBackendBucketRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.SetIamPolicy. See the method description for details. message SetIamPolicyRegionBackendServiceRequest { // Project ID for this request. @@ -66840,6 +69152,22 @@ message SetIamPolicyRegionDiskRequest { } +// A request message for RegionInstantSnapshotGroups.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.SetIamPolicy. See the method description for details. message SetIamPolicyRegionInstantSnapshotRequest { // Project ID for this request. @@ -66872,6 +69200,22 @@ message SetIamPolicyRegionNetworkFirewallPolicyRequest { } +// A request message for RegionSnapshots.SetIamPolicy. See the method description for details. +message SetIamPolicyRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ReservationBlocks.SetIamPolicy. See the method description for details. message SetIamPolicyReservationBlockRequest { // Name or id of parent resource of the resource for this request. @@ -67507,6 +69851,43 @@ message SetLabelsRegionSecurityPolicyRequest { } +// A request message for RegionSnapshots.SetLabels. See the method description for details. +message SetLabelsRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionSetLabelsRequest region_set_labels_request_resource = 259357782 [(google.api.field_behavior) = REQUIRED]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for SecurityPolicies.SetLabels. See the method description for details. message SetLabelsSecurityPolicyRequest { // The body resource for this request @@ -69244,6 +71625,10 @@ message Snapshot { // as part of resource payload. optional SnapshotParams params = 78313862; + // Output only. [Output Only] URL of the region where the snapshot resides. Only applicable + // for regional snapshots. + optional string region = 138946292; + // Output only. Reserved for future use. optional bool satisfies_pzi = 480964257; @@ -69269,6 +71654,14 @@ message Snapshot { // do not need to provide a key to use the snapshot later. optional CustomerEncryptionKey snapshot_encryption_key = 43334526; + // Output only. [Output Only] The unique ID of the snapshot group that this snapshot + // belongs to. The usage of snapshot group feature is restricted. + optional string snapshot_group_id = 255004406; + + // Output only. [Output only] The snapshot group that this snapshot belongs to. The usage + // of snapshot group feature is restricted. + optional string snapshot_group_name = 246247846; + // Indicates the type of the snapshot. // Check the SnapshotType enum for the list of possible values. optional string snapshot_type = 124349653; @@ -69343,6 +71736,29 @@ message Snapshot { } +// +message SnapshotGroupParameters { + // URLs of the zones where disks should be replicated to. Only applicable + // for regional resources. + repeated string replica_zones = 48438272; + + // The source snapshot group used to create disks. You can provide this as a + // partial or full URL to the resource. For example, the following are valid + // values: + // + // + // - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup + // - projects/project/global/snapshotGroups/snapshotGroup + // - global/snapshotGroups/snapshotGroup + optional string source_snapshot_group = 225130728; + + // URL of the disk type resource describing which disk type to use to create + // disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk + // types. + optional string type = 3575610; + +} + // Contains a list of Snapshot resources. message SnapshotList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -69384,12 +71800,51 @@ message SnapshotParams { // message SnapshotSettings { + // (Regional snapshots use only)Policy of which location is allowed to access + // snapshot. + optional SnapshotSettingsAccessLocation access_location = 18410544; + // Policy of which storage location is going to be resolved, and additional // data that particularizes how the policy is going to be carried out. optional SnapshotSettingsStorageLocationSettings storage_location = 460859641; } +// +message SnapshotSettingsAccessLocation { + // Policy of which location is allowed to access snapshot. + enum Policy { + // A value indicating that the enum field is not set. + UNDEFINED_POLICY = 0; + + // Any regions will be able to access the source location. + ALL_REGIONS = 273143585; + + POLICY_UNSPECIFIED = 197974922; + + // Only allowlisted regions will be able to restore region scoped + // snapshots + SPECIFIC_REGIONS = 454128082; + + } + + // List of regions that can restore a regional + // snapshot from the current region + map locations = 413423454; + + // Policy of which location is allowed to access snapshot. + // Check the Policy enum for the list of possible values. + optional string policy = 91071794; + +} + +// A structure for specifying an allowed target region. +message SnapshotSettingsAccessLocationAccessLocationPreference { + // Accessible region name + optional string region = 138946292; + +} + // message SnapshotSettingsStorageLocationSettings { // The chosen location policy. @@ -69433,6 +71888,20 @@ message SnapshotSettingsStorageLocationSettingsStorageLocationPreference { } +// +message SnapshotUpdateKmsKeyRequest { + // Optional. The new KMS key to replace the current one on the snapshot. If empty, the + // snapshot will be re-encrypted using the primary version of the snapshot's + // current KMS key. + // + // The KMS key can be provided in the following formats: + // + // + // - projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key + optional string kms_key_name = 484373913; + +} + // message SourceDiskEncryptionKey { // Thecustomer-supplied @@ -73876,6 +76345,22 @@ message TestIamPermissionsInstanceTemplateRequest { } +// A request message for InstantSnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for InstantSnapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsInstantSnapshotRequest { // Project ID for this request. @@ -74066,6 +76551,22 @@ message TestIamPermissionsRegionAutoscalerRequest { } +// A request message for RegionBackendBuckets.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionBackendBucketRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionBackendServices.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionBackendServiceRequest { // Project ID for this request. @@ -74194,6 +76695,22 @@ message TestIamPermissionsRegionInstanceGroupRequest { } +// A request message for RegionInstantSnapshotGroups.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionInstantSnapshotGroupRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstantSnapshots.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionInstantSnapshotRequest { // Project ID for this request. @@ -74242,6 +76759,22 @@ message TestIamPermissionsRegionNotificationEndpointRequest { } +// A request message for RegionSnapshots.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ReservationBlocks.TestIamPermissions. See the method description for details. message TestIamPermissionsReservationBlockRequest { // Name or id of parent resource of the resource for this request. @@ -74947,92 +77480,234 @@ message UpdateHealthCheckRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; -} - -// A request message for Instances.Update. See the method description for details. -message UpdateInstanceRequest { - // Specifies the action to take when updating an instance even if the - // updated properties do not require it. If not specified, then - // Compute Engine acts based on the minimum action that the updated - // properties require. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // INVALID - // NO_EFFECT - // REFRESH - // RESTART - enum MinimalAction { - // A value indicating that the enum field is not set. - UNDEFINED_MINIMAL_ACTION = 0; - - } - - // Specifies the most disruptive action that can be taken on the instance - // as part of the update. Compute Engine returns an error if the - // instance properties require a more disruptive action as part of the - // instance update. Valid options from lowest to highest are - // NO_EFFECT, REFRESH, and RESTART. - // Additional supported values which may be not listed in the enum directly due to technical reasons: - // INVALID - // NO_EFFECT - // REFRESH - // RESTART - enum MostDisruptiveAllowedAction { - // A value indicating that the enum field is not set. - UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0; - - } - - // Whether to discard local SSDs from the instance during restart - // default value is false. - optional bool discard_local_ssd = 319517903; - - // Name of the instance resource to update. - string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; +} + +// A request message for Instances.Update. See the method description for details. +message UpdateInstanceRequest { + // Specifies the action to take when updating an instance even if the + // updated properties do not require it. If not specified, then + // Compute Engine acts based on the minimum action that the updated + // properties require. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // INVALID + // NO_EFFECT + // REFRESH + // RESTART + enum MinimalAction { + // A value indicating that the enum field is not set. + UNDEFINED_MINIMAL_ACTION = 0; + + } + + // Specifies the most disruptive action that can be taken on the instance + // as part of the update. Compute Engine returns an error if the + // instance properties require a more disruptive action as part of the + // instance update. Valid options from lowest to highest are + // NO_EFFECT, REFRESH, and RESTART. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // INVALID + // NO_EFFECT + // REFRESH + // RESTART + enum MostDisruptiveAllowedAction { + // A value indicating that the enum field is not set. + UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0; + + } + + // Whether to discard local SSDs from the instance during restart + // default value is false. + optional bool discard_local_ssd = 319517903; + + // Name of the instance resource to update. + string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Instance instance_resource = 215988344 [(google.api.field_behavior) = REQUIRED]; + + // Specifies the action to take when updating an instance even if the + // updated properties do not require it. If not specified, then + // Compute Engine acts based on the minimum action that the updated + // properties require. + // Check the MinimalAction enum for the list of possible values. + optional string minimal_action = 270567060; + + // Specifies the most disruptive action that can be taken on the instance + // as part of the update. Compute Engine returns an error if the + // instance properties require a more disruptive action as part of the + // instance update. Valid options from lowest to highest are + // NO_EFFECT, REFRESH, and RESTART. + // Check the MostDisruptiveAllowedAction enum for the list of possible values. + optional string most_disruptive_allowed_action = 66103053; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for Disks.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyDiskRequest { + // Name of the Disk resource, should conform to RFC1035. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + DiskUpdateKmsKeyRequest disk_update_kms_key_request_resource = 178025952 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for RegionDisks.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyRegionDiskRequest { + // Name of the Disk resource, should conform to RFC1035. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionDiskUpdateKmsKeyRequest region_disk_update_kms_key_request_resource = 10015819 [(google.api.field_behavior) = REQUIRED]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + +} + +// A request message for RegionSnapshots.UpdateKmsKey. See the method description for details. +message UpdateKmsKeyRegionSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // The body resource for this request + RegionSnapshotUpdateKmsKeyRequest region_snapshot_update_kms_key_request_resource = 279384818 [(google.api.field_behavior) = REQUIRED]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // Name of the snapshot resource to update. Should conform to RFC1035. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for Snapshots.UpdateKmsKey. See the method description for details. +message UpdateKmsKeySnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // Name of the snapshot resource to update. Should conform to RFC1035. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - Instance instance_resource = 215988344 [(google.api.field_behavior) = REQUIRED]; - - // Specifies the action to take when updating an instance even if the - // updated properties do not require it. If not specified, then - // Compute Engine acts based on the minimum action that the updated - // properties require. - // Check the MinimalAction enum for the list of possible values. - optional string minimal_action = 270567060; - - // Specifies the most disruptive action that can be taken on the instance - // as part of the update. Compute Engine returns an error if the - // instance properties require a more disruptive action as part of the - // instance update. Valid options from lowest to highest are - // NO_EFFECT, REFRESH, and RESTART. - // Check the MostDisruptiveAllowedAction enum for the list of possible values. - optional string most_disruptive_allowed_action = 66103053; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // An optional 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. - // - // 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). - optional string request_id = 37109963; - - // The name of the zone for this request. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; + SnapshotUpdateKmsKeyRequest snapshot_update_kms_key_request_resource = 103145991 [(google.api.field_behavior) = REQUIRED]; } @@ -75723,6 +78398,43 @@ message UpdateUrlMapRequest { } +// A request message for ZoneVmExtensionPolicies.Update. See the method description for details. +message UpdateZoneVmExtensionPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional 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. + // + // 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). + optional string request_id = 37109963; + + // Name of the zone VM extension policy to update. + string vm_extension_policy = 331532730 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + VmExtensionPolicy vm_extension_policy_resource = 515669235 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // Represents a URL Map resource. // // Compute Engine has two URL Map resources: @@ -76487,6 +79199,163 @@ message VmEndpointNatMappingsList { } +// Represents a VM extension policy. +message VmExtensionPolicy { + // Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The policy is active and applied to matching VMs. + // Newly created VMs that match the policy will also receive the + // extension policy. + ACTIVE = 314733318; + + // The policy is in the process of being deleted. After the extension is + // removed from all matching VMs, the policy will be deleted. + DELETING = 528602024; + + // Default value. Do not use. + STATE_UNSPECIFIED = 470755401; + + } + + // Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. + optional string description = 422937596; + + // Required. A map of extension names (for example, "ops-agent") to their corresponding + // policy configurations. + map extension_policies = 227761488; + + // Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if + // applicable. + optional string global_resource_link = 516569583; + + // Output only. [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Optional. Selectors to target VMs for this policy. VMs are selected if they match + // *any* of the provided selectors (logical OR). If this list is empty, the + // policy applies to all VMs. + repeated VmExtensionPolicyInstanceSelector instance_selectors = 520298826; + + // Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + optional string kind = 3292052; + + // Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + optional bool managed_by_global = 88605675; + + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` + // which means the first character must be a lowercase letter, and all + // following characters must be a dash, lowercase letter, or digit, except + // the last character, which cannot be a dash. + optional string name = 3373707; + + // Optional. Priority of this policy. Used to resolve conflicts when multiple policies + // apply to the same extension. + // The policy priority is an integer from 0 to 65535, inclusive. Lower + // integers indicate higher priorities. If you do not specify a priority when + // creating a rule, it is assigned a priority of 1000. If priorities are + // equal, the policy with the most recent creation timestamp takes precedence. + optional int32 priority = 445151652; + + // Output only. [Output Only] Server-defined fully-qualified URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // Output only. [Output Only] Update timestamp inRFC3339 + // text format. + optional string update_timestamp = 120894752; + +} + +// Configuration for a specific VM extension. +message VmExtensionPolicyExtensionPolicy { + // Optional. The specific version of the extension to install. If not set, the latest + // version is used. + optional string pinned_version = 446267249; + + // Optional. String-based configuration data for the extension. + optional string string_config = 318905136; + +} + +// Defines how to select VMs to apply a zone VM extension policy. +message VmExtensionPolicyInstanceSelector { + // Optional. LabelSelector selects VMs based on their labels. + optional VmExtensionPolicyLabelSelector label_selector = 349780170; + +} + +// A LabelSelector is applied to a VM only if it matches all the specified +// labels. +message VmExtensionPolicyLabelSelector { + // Optional. A map of key-value pairs representing VM labels. + // VMs must have all of the labels specified in this map to be selected + // (logical AND). + // + // e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", + // "value2")}, the VM labels must contain both ("key1", "value1") and + // ("key2", "value2") to be selected. If the VM labels are ("key1", + // "value1") and ("something", "else"), it will not be selected. + // + // If the map is empty, it's considered a match. + map inclusion_labels = 501312642; + +} + +// +message VmExtensionPolicyList { + // Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored + // in this object. This field is used in optimistic locking. This field will + // be ignored when inserting a VmExtensionPolicy. An up-to-date + // fingerprint must be provided in order to update the VmExtensionPolicy. + // + // To see the latest value of the fingerprint, make a get() request to + // retrieve a VmExtensionPolicy. + optional string etag = 3123477; + + // Output only. [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // Output only. [Output Only] A list of VM extension policy resources. + repeated VmExtensionPolicy items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // Output only. [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // Output only. [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Represents a HA VPN gateway. // // HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely @@ -78354,6 +81223,18 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } + // Retrieves the list of all BackendBucket resources, regional and global, + // available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListBackendBucketsRequest) returns (BackendBucketAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/backendBuckets" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified BackendBucket resource. rpc Delete(DeleteBackendBucketRequest) returns (Operation) { option (google.api.http) = { @@ -78410,6 +81291,14 @@ service BackendBuckets { option (google.api.method_signature) = "project"; } + // Retrieves a list of all usable backend buckets in the specified project. + rpc ListUsable(ListUsableBackendBucketsRequest) returns (BackendBucketListUsable) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/backendBuckets/listUsable" + }; + option (google.api.method_signature) = "project"; + } + // Updates the specified BackendBucket resource with the data included in the // request. This method supportsPATCH // semantics and uses theJSON merge @@ -78969,6 +81858,17 @@ service Disks { option (google.cloud.operation_service) = "ZoneOperations"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified persistent disk. + rpc UpdateKmsKey(UpdateKmsKeyDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "disk_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey" + }; + option (google.api.method_signature) = "project,zone,disk,disk_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + } // The ExternalVpnGateways API. @@ -81453,6 +84353,81 @@ service Instances { } +// The InstantSnapshotGroups API. +service InstantSnapshotGroups { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // deletes a Zonal InstantSnapshotGroup resource + rpc Delete(DeleteInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // returns the specified InstantSnapshotGroup resource in the specified zone. + rpc Get(GetInstantSnapshotGroupRequest) returns (InstantSnapshotGroup) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource"; + } + + // inserts a Zonal InstantSnapshotGroup resource + rpc Insert(InsertInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_group_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,zone,instant_snapshot_group_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // retrieves the list of InstantSnapshotGroup resources contained within + // the specified zone. + rpc List(ListInstantSnapshotGroupsRequest) returns (ListInstantSnapshotGroups) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,zone"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "zone_set_policy_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,zone,resource,zone_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsInstantSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; + } + +} + // The InstantSnapshots API. service InstantSnapshots { option (google.api.default_host) = @@ -83990,6 +86965,104 @@ service RegionAutoscalers { } +// The RegionBackendBuckets API. +service RegionBackendBuckets { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes the specified regional BackendBucket resource. + rpc Delete(DeleteRegionBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + }; + option (google.api.method_signature) = "project,region,backend_bucket"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified regional BackendBucket resource. + rpc Get(GetRegionBackendBucketRequest) returns (BackendBucket) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + }; + option (google.api.method_signature) = "project,region,backend_bucket"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionBackendBucketRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // Creates a RegionBackendBucket in the specified project in the given scope + // using the parameters that are included in the request. + rpc Insert(InsertRegionBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + body: "backend_bucket_resource" + post: "/compute/v1/projects/{project}/regions/{region}/backendBuckets" + }; + option (google.api.method_signature) = "project,region,backend_bucket_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves the list of BackendBucket resources available to the specified + // project in the given region. + rpc List(ListRegionBackendBucketsRequest) returns (BackendBucketList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/backendBuckets" + }; + option (google.api.method_signature) = "project,region"; + } + + // Retrieves a list of all usable backend buckets in the specified project in + // the given region. + rpc ListUsable(ListUsableRegionBackendBucketsRequest) returns (BackendBucketListUsable) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/listUsable" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified BackendBucket resource with the data included in the + // request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + body: "backend_bucket_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{backend_bucket}" + }; + option (google.api.method_signature) = "project,region,backend_bucket,backend_bucket_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionBackendBucketRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionBackendBucketRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionBackendServices API. service RegionBackendServices { option (google.api.default_host) = @@ -84225,6 +87298,15 @@ service RegionCompositeHealthChecks { option (google.api.method_signature) = "project,region,composite_health_check"; } + // Gets the most recent health check results for this + // regional CompositeHealthCheck. + rpc GetHealth(GetHealthRegionCompositeHealthCheckRequest) returns (CompositeHealthCheckHealth) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}/getHealth" + }; + option (google.api.method_signature) = "project,region,composite_health_check"; + } + // Create a CompositeHealthCheck in the specified project in the given region // using the parameters that are included in the request. rpc Insert(InsertRegionCompositeHealthCheckRequest) returns (Operation) { @@ -84482,6 +87564,17 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified persistent disk. + rpc UpdateKmsKey(UpdateKmsKeyRegionDiskRequest) returns (Operation) { + option (google.api.http) = { + body: "region_disk_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/updateKmsKey" + }; + option (google.api.method_signature) = "project,region,disk,region_disk_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionHealthAggregationPolicies API. @@ -84766,6 +87859,15 @@ service RegionHealthSources { option (google.api.method_signature) = "project,region,health_source"; } + // Gets the most recent health check results for this + // regional HealthSource. + rpc GetHealth(GetHealthRegionHealthSourceRequest) returns (HealthSourceHealth) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}/getHealth" + }; + option (google.api.method_signature) = "project,region,health_source"; + } + // Create a HealthSource in the specified project in the given region // using the parameters that are included in the request. rpc Insert(InsertRegionHealthSourceRequest) returns (Operation) { @@ -84809,6 +87911,68 @@ service RegionHealthSources { } +// The RegionInstanceGroupManagerResizeRequests API. +service RegionInstanceGroupManagerResizeRequests { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Cancels the specified resize request. + // Cancelled resize request no longer waits for the resources to be + // provisioned. Cancel is only possible for requests that are in accepted + // state. + rpc Cancel(CancelRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { + option (google.api.http) = { + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}/cancel" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,resize_request"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Deletes the specified, inactive resize request. Requests that are still + // active cannot be deleted. Deleting request does not delete instances that + // were provisioned previously. + rpc Delete(DeleteRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,resize_request"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns all of the details about the specified resize request. + rpc Get(GetRegionInstanceGroupManagerResizeRequestRequest) returns (InstanceGroupManagerResizeRequest) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests/{resize_request}" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,resize_request"; + } + + // Creates a new Resize Request that starts provisioning VMs immediately + // or queues VM creation. + rpc Insert(InsertRegionInstanceGroupManagerResizeRequestRequest) returns (Operation) { + option (google.api.http) = { + body: "instance_group_manager_resize_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" + }; + option (google.api.method_signature) = "project,region,instance_group_manager,instance_group_manager_resize_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves a list of Resize Requests that are contained in the + // managed instance group. + rpc List(ListRegionInstanceGroupManagerResizeRequestsRequest) returns (RegionInstanceGroupManagerResizeRequestsListResponse) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/resizeRequests" + }; + option (google.api.method_signature) = "project,region,instance_group_manager"; + } + +} + // The RegionInstanceGroupManagers API. service RegionInstanceGroupManagers { option (google.api.default_host) = @@ -85341,6 +88505,82 @@ service RegionInstances { } +// The RegionInstantSnapshotGroups API. +service RegionInstantSnapshotGroups { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // deletes a Regional InstantSnapshotGroup resource + rpc Delete(DeleteRegionInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // returns the specified InstantSnapshotGroup resource in the specified + // region. + rpc Get(GetRegionInstantSnapshotGroupRequest) returns (InstantSnapshotGroup) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{instant_snapshot_group}" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // creates a Regional InstantSnapshotGroup resource + rpc Insert(InsertRegionInstantSnapshotGroupRequest) returns (Operation) { + option (google.api.http) = { + body: "instant_snapshot_group_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,region,instant_snapshot_group_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // retrieves the list of InstantSnapshotGroup resources contained within + // the specified region. + rpc List(ListRegionInstantSnapshotGroupsRequest) returns (ListInstantSnapshotGroups) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups" + }; + option (google.api.method_signature) = "project,region"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionInstantSnapshots API. service RegionInstantSnapshots { option (google.api.default_host) = @@ -85929,6 +89169,141 @@ service RegionSecurityPolicies { } +// The RegionSnapshotSettings API. +service RegionSnapshotSettings { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Get region snapshot settings. + rpc Get(GetRegionSnapshotSettingRequest) returns (SnapshotSettings) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshotSettings" + }; + option (google.api.method_signature) = "project,region"; + } + + // Patch region snapshot settings. + rpc Patch(PatchRegionSnapshotSettingRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_settings_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/snapshotSettings" + }; + option (google.api.method_signature) = "project,region,snapshot_settings_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + +} + +// The RegionSnapshots API. +service RegionSnapshots { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes the specified Snapshot resource. Keep in mind that deleting + // a single snapshot might not necessarily delete all the data on that + // snapshot. If any data on the snapshot that is marked for deletion is + // needed for subsequent snapshots, the data will be moved to the next + // corresponding snapshot. + // + // For more information, seeDeleting + // snapshots. + rpc Delete(DeleteRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}" + }; + option (google.api.method_signature) = "project,region,snapshot"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified Snapshot resource. + rpc Get(GetRegionSnapshotRequest) returns (Snapshot) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}" + }; + option (google.api.method_signature) = "project,region,snapshot"; + } + + // Gets the access control policy for a resource. May be empty if no such + // policy or resource exists. + rpc GetIamPolicy(GetIamPolicyRegionSnapshotRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // Creates a snapshot in the specified region using the data included + // in the request. + rpc Insert(InsertRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots" + }; + option (google.api.method_signature) = "project,region,snapshot_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Retrieves the list of Snapshot resources contained within + // the specified region. + rpc List(ListRegionSnapshotsRequest) returns (SnapshotList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/snapshots" + }; + option (google.api.method_signature) = "project,region"; + } + + // Sets the access control policy on the specified resource. + // Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyRegionSnapshotRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Sets the labels on a regional snapshot. To learn more about labels, read + // the Labeling Resources + // documentation. + rpc SetLabels(SetLabelsRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "region_set_labels_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/setLabels" + }; + option (google.api.method_signature) = "project,region,resource,region_set_labels_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionSnapshotRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + + // Rotates the customer-managed + // encryption key to the latest version for the specified snapshot. + rpc UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "region_snapshot_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey" + }; + option (google.api.method_signature) = "project,region,snapshot,region_snapshot_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + +} + // The RegionSslCertificates API. service RegionSslCertificates { option (google.api.default_host) = @@ -87397,6 +90772,17 @@ service Snapshots { option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; } + // Rotates the customer-managed + // encryption key to the latest version for the specified snapshot. + rpc UpdateKmsKey(UpdateKmsKeySnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_update_kms_key_request_resource" + post: "/compute/v1/projects/{project}/global/snapshots/{snapshot}/updateKmsKey" + }; + option (google.api.method_signature) = "project,snapshot,snapshot_update_kms_key_request_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + } // The SslCertificates API. @@ -88975,6 +92361,62 @@ service ZoneOperations { } +// The ZoneVmExtensionPolicies API. +service ZoneVmExtensionPolicies { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes a specified zone VM extension policy. + rpc Delete(DeleteZoneVmExtensionPolicyRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Retrieves details of a specific zone VM extension policy. + rpc Get(GetZoneVmExtensionPolicyRequest) returns (VmExtensionPolicy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy"; + } + + // Creates a new zone-level VM extension policy within a project. + rpc Insert(InsertZoneVmExtensionPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "vm_extension_policy_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + + // Lists all VM extension policies within a specific zone for a project. + rpc List(ListZoneVmExtensionPoliciesRequest) returns (VmExtensionPolicyList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies" + }; + option (google.api.method_signature) = "project,zone"; + } + + // Modifies an existing zone VM extension policy. + rpc Update(UpdateZoneVmExtensionPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "vm_extension_policy_resource" + patch: "/compute/v1/projects/{project}/zones/{zone}/vmExtensionPolicies/{vm_extension_policy}" + }; + option (google.api.method_signature) = "project,zone,vm_extension_policy,vm_extension_policy_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + +} + // The Zones API. service Zones { option (google.api.default_host) = diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedList.java new file mode 100644 index 000000000000..a17387a16480 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedList.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_AggregatedList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest; +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.BackendBucketsScopedList; +import java.util.Map; + +public class AsyncAggregatedList { + + public static void main(String[] args) throws Exception { + asyncAggregatedList(); + } + + public static void asyncAggregatedList() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + AggregatedListBackendBucketsRequest request = + AggregatedListBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setIncludeAllScopes(true) + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setServiceProjectNumber(-1293855239) + .build(); + ApiFuture> future = + backendBucketsClient.aggregatedListPagedCallable().futureCall(request); + // Do something. + for (Map.Entry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_BackendBuckets_AggregatedList_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedListPaged.java new file mode 100644 index 000000000000..c9642340ab32 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/AsyncAggregatedListPaged.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_AggregatedList_Paged_async] +import com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest; +import com.google.cloud.compute.v1.BackendBucketAggregatedList; +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.BackendBucketsScopedList; +import com.google.common.base.Strings; +import java.util.Map; + +public class AsyncAggregatedListPaged { + + public static void main(String[] args) throws Exception { + asyncAggregatedListPaged(); + } + + public static void asyncAggregatedListPaged() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + AggregatedListBackendBucketsRequest request = + AggregatedListBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setIncludeAllScopes(true) + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setServiceProjectNumber(-1293855239) + .build(); + while (true) { + BackendBucketAggregatedList response = + backendBucketsClient.aggregatedListCallable().call(request); + for (Map.Entry element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_BackendBuckets_AggregatedList_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedList.java new file mode 100644 index 000000000000..91e4ae95bd1e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedList.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_AggregatedList_sync] +import com.google.cloud.compute.v1.AggregatedListBackendBucketsRequest; +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.BackendBucketsScopedList; +import java.util.Map; + +public class SyncAggregatedList { + + public static void main(String[] args) throws Exception { + syncAggregatedList(); + } + + public static void syncAggregatedList() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + AggregatedListBackendBucketsRequest request = + AggregatedListBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setIncludeAllScopes(true) + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setServiceProjectNumber(-1293855239) + .build(); + for (Map.Entry element : + backendBucketsClient.aggregatedList(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_BackendBuckets_AggregatedList_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedListString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedListString.java new file mode 100644 index 000000000000..268d2400e26f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/aggregatedlist/SyncAggregatedListString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_AggregatedList_String_sync] +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.BackendBucketsScopedList; +import java.util.Map; + +public class SyncAggregatedListString { + + public static void main(String[] args) throws Exception { + syncAggregatedListString(); + } + + public static void syncAggregatedListString() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + String project = "project-309310695"; + for (Map.Entry element : + backendBucketsClient.aggregatedList(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_BackendBuckets_AggregatedList_String_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsable.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsable.java new file mode 100644 index 000000000000..81f7a823aa51 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsable.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_ListUsable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.ListUsableBackendBucketsRequest; + +public class AsyncListUsable { + + public static void main(String[] args) throws Exception { + asyncListUsable(); + } + + public static void asyncListUsable() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + ListUsableBackendBucketsRequest request = + ListUsableBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + backendBucketsClient.listUsablePagedCallable().futureCall(request); + // Do something. + for (BackendBucket element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_BackendBuckets_ListUsable_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsablePaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsablePaged.java new file mode 100644 index 000000000000..0c4ab31c266d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/AsyncListUsablePaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_ListUsable_Paged_async] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketListUsable; +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.ListUsableBackendBucketsRequest; +import com.google.common.base.Strings; + +public class AsyncListUsablePaged { + + public static void main(String[] args) throws Exception { + asyncListUsablePaged(); + } + + public static void asyncListUsablePaged() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + ListUsableBackendBucketsRequest request = + ListUsableBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .build(); + while (true) { + BackendBucketListUsable response = backendBucketsClient.listUsableCallable().call(request); + for (BackendBucket element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_BackendBuckets_ListUsable_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsable.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsable.java new file mode 100644 index 000000000000..978bc5eba8d6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsable.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_ListUsable_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketsClient; +import com.google.cloud.compute.v1.ListUsableBackendBucketsRequest; + +public class SyncListUsable { + + public static void main(String[] args) throws Exception { + syncListUsable(); + } + + public static void syncListUsable() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + ListUsableBackendBucketsRequest request = + ListUsableBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .build(); + for (BackendBucket element : backendBucketsClient.listUsable(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_BackendBuckets_ListUsable_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsableString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsableString.java new file mode 100644 index 000000000000..f5e61102545e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/backendbuckets/listusable/SyncListUsableString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_BackendBuckets_ListUsable_String_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketsClient; + +public class SyncListUsableString { + + public static void main(String[] args) throws Exception { + syncListUsableString(); + } + + public static void syncListUsableString() 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 (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { + String project = "project-309310695"; + for (BackendBucket element : backendBucketsClient.listUsable(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_BackendBuckets_ListUsable_String_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKey.java new file mode 100644 index 000000000000..9dc8fd2fe3da --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKey.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Disks_UpdateKmsKey_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.DisksClient; +import com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKey(); + } + + public static void asyncUpdateKmsKey() 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 (DisksClient disksClient = DisksClient.create()) { + UpdateKmsKeyDiskRequest request = + UpdateKmsKeyDiskRequest.newBuilder() + .setDisk("disk3083677") + .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + ApiFuture future = disksClient.updateKmsKeyCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_Disks_UpdateKmsKey_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKeyLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKeyLRO.java new file mode 100644 index 000000000000..604d2b01ddba --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/AsyncUpdateKmsKeyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Disks_UpdateKmsKey_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.DisksClient; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest; + +public class AsyncUpdateKmsKeyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKeyLRO(); + } + + public static void asyncUpdateKmsKeyLRO() 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 (DisksClient disksClient = DisksClient.create()) { + UpdateKmsKeyDiskRequest request = + UpdateKmsKeyDiskRequest.newBuilder() + .setDisk("disk3083677") + .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + OperationFuture future = + disksClient.updateKmsKeyOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_Disks_UpdateKmsKey_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKey.java new file mode 100644 index 000000000000..447cb2b2284d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKey.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Disks_UpdateKmsKey_sync] +import com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.DisksClient; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.UpdateKmsKeyDiskRequest; + +public class SyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKey(); + } + + public static void syncUpdateKmsKey() 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 (DisksClient disksClient = DisksClient.create()) { + UpdateKmsKeyDiskRequest request = + UpdateKmsKeyDiskRequest.newBuilder() + .setDisk("disk3083677") + .setDiskUpdateKmsKeyRequestResource(DiskUpdateKmsKeyRequest.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + Operation response = disksClient.updateKmsKeyAsync(request).get(); + } + } +} +// [END compute_v1_generated_Disks_UpdateKmsKey_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest.java new file mode 100644 index 000000000000..def29b215f75 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/disks/updatekmskey/SyncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Disks_UpdateKmsKey_StringStringStringDiskupdatekmskeyrequest_sync] +import com.google.cloud.compute.v1.DiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.DisksClient; +import com.google.cloud.compute.v1.Operation; + +public class SyncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest(); + } + + public static void syncUpdateKmsKeyStringStringStringDiskupdatekmskeyrequest() 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 (DisksClient disksClient = DisksClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String disk = "disk3083677"; + DiskUpdateKmsKeyRequest diskUpdateKmsKeyRequestResource = + DiskUpdateKmsKeyRequest.newBuilder().build(); + Operation response = + disksClient.updateKmsKeyAsync(project, zone, disk, diskUpdateKmsKeyRequestResource).get(); + } + } +} +// [END compute_v1_generated_Disks_UpdateKmsKey_StringStringStringDiskupdatekmskeyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..a9c6c61553fb --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.InstantSnapshotGroupsSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + InstantSnapshotGroupsSettings instantSnapshotGroupsSettings = + InstantSnapshotGroupsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create(instantSnapshotGroupsSettings); + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..12e9cbac38ef --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.InstantSnapshotGroupsSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + InstantSnapshotGroupsSettings instantSnapshotGroupsSettings = + InstantSnapshotGroupsSettings.newBuilder().setEndpoint(myEndpoint).build(); + InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create(instantSnapshotGroupsSettings); + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDelete.java new file mode 100644 index 000000000000..9571ea09227b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDelete.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Delete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.longrunning.Operation; + +public class AsyncDelete { + + public static void main(String[] args) throws Exception { + asyncDelete(); + } + + public static void asyncDelete() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + DeleteInstantSnapshotGroupRequest request = + DeleteInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + ApiFuture future = + instantSnapshotGroupsClient.deleteCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Delete_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDeleteLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDeleteLRO.java new file mode 100644 index 000000000000..6db507532685 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/AsyncDeleteLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Delete_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Operation; + +public class AsyncDeleteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLRO(); + } + + public static void asyncDeleteLRO() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + DeleteInstantSnapshotGroupRequest request = + DeleteInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + OperationFuture future = + instantSnapshotGroupsClient.deleteOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Delete_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDelete.java new file mode 100644 index 000000000000..507156aa6bb4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDelete.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Delete_sync] +import com.google.cloud.compute.v1.DeleteInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Operation; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + DeleteInstantSnapshotGroupRequest request = + DeleteInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setZone("zone3744684") + .build(); + Operation response = instantSnapshotGroupsClient.deleteAsync(request).get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDeleteStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDeleteStringStringString.java new file mode 100644 index 000000000000..49463b5c47c8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/delete/SyncDeleteStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Delete_StringStringString_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Operation; + +public class SyncDeleteStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteStringStringString(); + } + + public static void syncDeleteStringStringString() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String instantSnapshotGroup = "instantSnapshotGroup500796090"; + Operation response = + instantSnapshotGroupsClient.deleteAsync(project, zone, instantSnapshotGroup).get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Delete_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/AsyncGet.java new file mode 100644 index 000000000000..a7236e566e48 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/AsyncGet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + GetInstantSnapshotGroupRequest request = + GetInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setZone("zone3744684") + .build(); + ApiFuture future = + instantSnapshotGroupsClient.getCallable().futureCall(request); + // Do something. + InstantSnapshotGroup response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGet.java new file mode 100644 index 000000000000..b508e3e465a8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Get_sync] +import com.google.cloud.compute.v1.GetInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + GetInstantSnapshotGroupRequest request = + GetInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setZone("zone3744684") + .build(); + InstantSnapshotGroup response = instantSnapshotGroupsClient.get(request); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGetStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGetStringStringString.java new file mode 100644 index 000000000000..27e0538ad24e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/get/SyncGetStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Get_StringStringString_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; + +public class SyncGetStringStringString { + + public static void main(String[] args) throws Exception { + syncGetStringStringString(); + } + + public static void syncGetStringStringString() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String instantSnapshotGroup = "instantSnapshotGroup500796090"; + InstantSnapshotGroup response = + instantSnapshotGroupsClient.get(project, zone, instantSnapshotGroup); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Get_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..6fb3bd58b4b4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + GetIamPolicyInstantSnapshotGroupRequest request = + GetIamPolicyInstantSnapshotGroupRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setResource("resource-341064690") + .setZone("zone3744684") + .build(); + ApiFuture future = + instantSnapshotGroupsClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..d78355dc6adb --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_sync] +import com.google.cloud.compute.v1.GetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + GetIamPolicyInstantSnapshotGroupRequest request = + GetIamPolicyInstantSnapshotGroupRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setResource("resource-341064690") + .setZone("zone3744684") + .build(); + Policy response = instantSnapshotGroupsClient.getIamPolicy(request); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java new file mode 100644 index 000000000000..dca2fe36158f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_StringStringString_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Policy; + +public class SyncGetIamPolicyStringStringString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyStringStringString(); + } + + public static void syncGetIamPolicyStringStringString() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String resource = "resource-341064690"; + Policy response = instantSnapshotGroupsClient.getIamPolicy(project, zone, resource); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsert.java new file mode 100644 index 000000000000..a5b0ffb98061 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsert.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Insert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.longrunning.Operation; + +public class AsyncInsert { + + public static void main(String[] args) throws Exception { + asyncInsert(); + } + + public static void asyncInsert() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + InsertInstantSnapshotGroupRequest request = + InsertInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .setZone("zone3744684") + .build(); + ApiFuture future = + instantSnapshotGroupsClient.insertCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Insert_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsertLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsertLRO.java new file mode 100644 index 000000000000..82596e5e0a42 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/AsyncInsertLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Insert_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Operation; + +public class AsyncInsertLRO { + + public static void main(String[] args) throws Exception { + asyncInsertLRO(); + } + + public static void asyncInsertLRO() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + InsertInstantSnapshotGroupRequest request = + InsertInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .setZone("zone3744684") + .build(); + OperationFuture future = + instantSnapshotGroupsClient.insertOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Insert_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsert.java new file mode 100644 index 000000000000..8ca8850ee425 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsert.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Insert_sync] +import com.google.cloud.compute.v1.InsertInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Operation; + +public class SyncInsert { + + public static void main(String[] args) throws Exception { + syncInsert(); + } + + public static void syncInsert() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + InsertInstantSnapshotGroupRequest request = + InsertInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build()) + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .setZone("zone3744684") + .build(); + Operation response = instantSnapshotGroupsClient.insertAsync(request).get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Insert_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java new file mode 100644 index 000000000000..d3613fb584ca --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_Insert_StringStringInstantsnapshotgroup_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Operation; + +public class SyncInsertStringStringInstantsnapshotgroup { + + public static void main(String[] args) throws Exception { + syncInsertStringStringInstantsnapshotgroup(); + } + + public static void syncInsertStringStringInstantsnapshotgroup() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build(); + Operation response = + instantSnapshotGroupsClient + .insertAsync(project, zone, instantSnapshotGroupResource) + .get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_Insert_StringStringInstantsnapshotgroup_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncList.java new file mode 100644 index 000000000000..4887da6343f7 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncList.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + ListInstantSnapshotGroupsRequest request = + ListInstantSnapshotGroupsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setZone("zone3744684") + .build(); + ApiFuture future = + instantSnapshotGroupsClient.listPagedCallable().futureCall(request); + // Do something. + for (InstantSnapshotGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncListPaged.java new file mode 100644 index 000000000000..75af1add5a15 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/AsyncListPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_List_Paged_async] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + ListInstantSnapshotGroupsRequest request = + ListInstantSnapshotGroupsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setZone("zone3744684") + .build(); + while (true) { + ListInstantSnapshotGroups response = + instantSnapshotGroupsClient.listCallable().call(request); + for (InstantSnapshotGroup element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncList.java new file mode 100644 index 000000000000..587585b6e2a1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncList.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_List_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.ListInstantSnapshotGroupsRequest; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + ListInstantSnapshotGroupsRequest request = + ListInstantSnapshotGroupsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setZone("zone3744684") + .build(); + for (InstantSnapshotGroup element : instantSnapshotGroupsClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncListStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncListStringString.java new file mode 100644 index 000000000000..7b367488e1a6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/list/SyncListStringString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_List_StringString_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; + +public class SyncListStringString { + + public static void main(String[] args) throws Exception { + syncListStringString(); + } + + public static void syncListStringString() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + for (InstantSnapshotGroup element : + instantSnapshotGroupsClient.list(project, zone).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_List_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..257ea9e64049 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.ZoneSetPolicyRequest; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + SetIamPolicyInstantSnapshotGroupRequest request = + SetIamPolicyInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setResource("resource-341064690") + .setZone("zone3744684") + .setZoneSetPolicyRequestResource(ZoneSetPolicyRequest.newBuilder().build()) + .build(); + ApiFuture future = + instantSnapshotGroupsClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..6d6752c5b737 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.SetIamPolicyInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.ZoneSetPolicyRequest; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + SetIamPolicyInstantSnapshotGroupRequest request = + SetIamPolicyInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setResource("resource-341064690") + .setZone("zone3744684") + .setZoneSetPolicyRequestResource(ZoneSetPolicyRequest.newBuilder().build()) + .build(); + Policy response = instantSnapshotGroupsClient.setIamPolicy(request); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringZonesetpolicyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringZonesetpolicyrequest.java new file mode 100644 index 000000000000..b1745475dbb5 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringZonesetpolicyrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_StringStringStringZonesetpolicyrequest_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.ZoneSetPolicyRequest; + +public class SyncSetIamPolicyStringStringStringZonesetpolicyrequest { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringStringStringZonesetpolicyrequest(); + } + + public static void syncSetIamPolicyStringStringStringZonesetpolicyrequest() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String resource = "resource-341064690"; + ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build(); + Policy response = + instantSnapshotGroupsClient.setIamPolicy( + project, zone, resource, zoneSetPolicyRequestResource); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_StringStringStringZonesetpolicyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..d24e12e65d5f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + TestIamPermissionsInstantSnapshotGroupRequest request = + TestIamPermissionsInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .setZone("zone3744684") + .build(); + ApiFuture future = + instantSnapshotGroupsClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestPermissionsResponse response = future.get(); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..2ff8d244c685 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.TestIamPermissionsInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + TestIamPermissionsInstantSnapshotGroupRequest request = + TestIamPermissionsInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .setZone("zone3744684") + .build(); + TestPermissionsResponse response = instantSnapshotGroupsClient.testIamPermissions(request); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java new file mode 100644 index 000000000000..21190ace533a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissionsStringStringStringTestpermissionsrequest { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringStringStringTestpermissionsrequest(); + } + + public static void syncTestIamPermissionsStringStringStringTestpermissionsrequest() + 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 (InstantSnapshotGroupsClient instantSnapshotGroupsClient = + InstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String resource = "resource-341064690"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + TestPermissionsResponse response = + instantSnapshotGroupsClient.testIamPermissions( + project, zone, resource, testPermissionsRequestResource); + } + } +} +// [END compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/delete/SyncDelete.java new file mode 100644 index 000000000000..c7e67584ba6a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroupsSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.InstantSnapshotGroupsSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + InstantSnapshotGroupsSettings.Builder instantSnapshotGroupsSettingsBuilder = + InstantSnapshotGroupsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + instantSnapshotGroupsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_InstantSnapshotGroupsSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/get/SyncGet.java new file mode 100644 index 000000000000..4bfbab9c6497 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/instantsnapshotgroupssettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_InstantSnapshotGroupsSettings_Get_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroupsSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + InstantSnapshotGroupsSettings.Builder instantSnapshotGroupsSettingsBuilder = + InstantSnapshotGroupsSettings.newBuilder(); + instantSnapshotGroupsSettingsBuilder + .getSettings() + .setRetrySettings( + instantSnapshotGroupsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + InstantSnapshotGroupsSettings instantSnapshotGroupsSettings = + instantSnapshotGroupsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_InstantSnapshotGroupsSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..6dfa3b8f5ae2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.RegionBackendBucketsSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + RegionBackendBucketsSettings regionBackendBucketsSettings = + RegionBackendBucketsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create(regionBackendBucketsSettings); + } +} +// [END compute_v1_generated_RegionBackendBuckets_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..fa22da5317d2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.RegionBackendBucketsSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + RegionBackendBucketsSettings regionBackendBucketsSettings = + RegionBackendBucketsSettings.newBuilder().setEndpoint(myEndpoint).build(); + RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create(regionBackendBucketsSettings); + } +} +// [END compute_v1_generated_RegionBackendBuckets_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDelete.java new file mode 100644 index 000000000000..22296d964c41 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDelete.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Delete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.longrunning.Operation; + +public class AsyncDelete { + + public static void main(String[] args) throws Exception { + asyncDelete(); + } + + public static void asyncDelete() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + DeleteRegionBackendBucketRequest request = + DeleteRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = regionBackendBucketsClient.deleteCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Delete_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDeleteLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDeleteLRO.java new file mode 100644 index 000000000000..6bed0999b9a6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/AsyncDeleteLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Delete_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncDeleteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLRO(); + } + + public static void asyncDeleteLRO() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + DeleteRegionBackendBucketRequest request = + DeleteRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionBackendBucketsClient.deleteOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Delete_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDelete.java new file mode 100644 index 000000000000..09de6679aeac --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDelete.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Delete_sync] +import com.google.cloud.compute.v1.DeleteRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + DeleteRegionBackendBucketRequest request = + DeleteRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + Operation response = regionBackendBucketsClient.deleteAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDeleteStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDeleteStringStringString.java new file mode 100644 index 000000000000..cfb513b5c422 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/delete/SyncDeleteStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Delete_StringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncDeleteStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteStringStringString(); + } + + public static void syncDeleteStringStringString() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String backendBucket = "backendBucket713751966"; + Operation response = + regionBackendBucketsClient.deleteAsync(project, region, backendBucket).get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Delete_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/AsyncGet.java new file mode 100644 index 000000000000..982207d9d00e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/AsyncGet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.GetRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + GetRegionBackendBucketRequest request = + GetRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = + regionBackendBucketsClient.getCallable().futureCall(request); + // Do something. + BackendBucket response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGet.java new file mode 100644 index 000000000000..9ba1dec8276a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Get_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.GetRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + GetRegionBackendBucketRequest request = + GetRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + BackendBucket response = regionBackendBucketsClient.get(request); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGetStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGetStringStringString.java new file mode 100644 index 000000000000..4c680262116e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/get/SyncGetStringStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Get_StringStringString_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncGetStringStringString { + + public static void main(String[] args) throws Exception { + syncGetStringStringString(); + } + + public static void syncGetStringStringString() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String backendBucket = "backendBucket713751966"; + BackendBucket response = regionBackendBucketsClient.get(project, region, backendBucket); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Get_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/AsyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..491eb8683a7f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + GetIamPolicyRegionBackendBucketRequest request = + GetIamPolicyRegionBackendBucketRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .build(); + ApiFuture future = + regionBackendBucketsClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_GetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..1e3aee281d17 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_GetIamPolicy_sync] +import com.google.cloud.compute.v1.GetIamPolicyRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + GetIamPolicyRegionBackendBucketRequest request = + GetIamPolicyRegionBackendBucketRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .build(); + Policy response = regionBackendBucketsClient.getIamPolicy(request); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_GetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicyStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicyStringStringString.java new file mode 100644 index 000000000000..4534612f5062 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/getiampolicy/SyncGetIamPolicyStringStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_GetIamPolicy_StringStringString_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncGetIamPolicyStringStringString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyStringStringString(); + } + + public static void syncGetIamPolicyStringStringString() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + Policy response = regionBackendBucketsClient.getIamPolicy(project, region, resource); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_GetIamPolicy_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsert.java new file mode 100644 index 000000000000..61f9212673da --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsert.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Insert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.InsertRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.longrunning.Operation; + +public class AsyncInsert { + + public static void main(String[] args) throws Exception { + asyncInsert(); + } + + public static void asyncInsert() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + InsertRegionBackendBucketRequest request = + InsertRegionBackendBucketRequest.newBuilder() + .setBackendBucketResource(BackendBucket.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = regionBackendBucketsClient.insertCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Insert_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsertLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsertLRO.java new file mode 100644 index 000000000000..d4d06f5776d3 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/AsyncInsertLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Insert_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.InsertRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncInsertLRO { + + public static void main(String[] args) throws Exception { + asyncInsertLRO(); + } + + public static void asyncInsertLRO() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + InsertRegionBackendBucketRequest request = + InsertRegionBackendBucketRequest.newBuilder() + .setBackendBucketResource(BackendBucket.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionBackendBucketsClient.insertOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Insert_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsert.java new file mode 100644 index 000000000000..af8c061c5612 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsert.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Insert_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.InsertRegionBackendBucketRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncInsert { + + public static void main(String[] args) throws Exception { + syncInsert(); + } + + public static void syncInsert() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + InsertRegionBackendBucketRequest request = + InsertRegionBackendBucketRequest.newBuilder() + .setBackendBucketResource(BackendBucket.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + Operation response = regionBackendBucketsClient.insertAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Insert_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsertStringStringBackendbucket.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsertStringStringBackendbucket.java new file mode 100644 index 000000000000..82c58fca9807 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/insert/SyncInsertStringStringBackendbucket.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Insert_StringStringBackendbucket_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncInsertStringStringBackendbucket { + + public static void main(String[] args) throws Exception { + syncInsertStringStringBackendbucket(); + } + + public static void syncInsertStringStringBackendbucket() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); + Operation response = + regionBackendBucketsClient.insertAsync(project, region, backendBucketResource).get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Insert_StringStringBackendbucket_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncList.java new file mode 100644 index 000000000000..37ad644a0c69 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncList.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.ListRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + ListRegionBackendBucketsRequest request = + ListRegionBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + regionBackendBucketsClient.listPagedCallable().futureCall(request); + // Do something. + for (BackendBucket element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncListPaged.java new file mode 100644 index 000000000000..025c9a5cca92 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/AsyncListPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_List_Paged_async] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketList; +import com.google.cloud.compute.v1.ListRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + ListRegionBackendBucketsRequest request = + ListRegionBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + while (true) { + BackendBucketList response = regionBackendBucketsClient.listCallable().call(request); + for (BackendBucket element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncList.java new file mode 100644 index 000000000000..678c73094df2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncList.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_List_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.ListRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + ListRegionBackendBucketsRequest request = + ListRegionBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + for (BackendBucket element : regionBackendBucketsClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncListStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncListStringString.java new file mode 100644 index 000000000000..df9166e8ea96 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/list/SyncListStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_List_StringString_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncListStringString { + + public static void main(String[] args) throws Exception { + syncListStringString(); + } + + public static void syncListStringString() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + for (BackendBucket element : regionBackendBucketsClient.list(project, region).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_List_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsable.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsable.java new file mode 100644 index 000000000000..5644b422adff --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsable.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_ListUsable_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncListUsable { + + public static void main(String[] args) throws Exception { + asyncListUsable(); + } + + public static void asyncListUsable() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + ListUsableRegionBackendBucketsRequest request = + ListUsableRegionBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + regionBackendBucketsClient.listUsablePagedCallable().futureCall(request); + // Do something. + for (BackendBucket element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_ListUsable_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsablePaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsablePaged.java new file mode 100644 index 000000000000..3d1f5e766532 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/AsyncListUsablePaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_ListUsable_Paged_async] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.BackendBucketListUsable; +import com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.common.base.Strings; + +public class AsyncListUsablePaged { + + public static void main(String[] args) throws Exception { + asyncListUsablePaged(); + } + + public static void asyncListUsablePaged() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + ListUsableRegionBackendBucketsRequest request = + ListUsableRegionBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + while (true) { + BackendBucketListUsable response = + regionBackendBucketsClient.listUsableCallable().call(request); + for (BackendBucket element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_ListUsable_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsable.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsable.java new file mode 100644 index 000000000000..81a41da677d1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsable.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_ListUsable_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.ListUsableRegionBackendBucketsRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncListUsable { + + public static void main(String[] args) throws Exception { + syncListUsable(); + } + + public static void syncListUsable() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + ListUsableRegionBackendBucketsRequest request = + ListUsableRegionBackendBucketsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + for (BackendBucket element : regionBackendBucketsClient.listUsable(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_ListUsable_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsableStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsableStringString.java new file mode 100644 index 000000000000..6bf2ac693e7e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/listusable/SyncListUsableStringString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_ListUsable_StringString_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncListUsableStringString { + + public static void main(String[] args) throws Exception { + syncListUsableStringString(); + } + + public static void syncListUsableStringString() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + for (BackendBucket element : + regionBackendBucketsClient.listUsable(project, region).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_ListUsable_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatch.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatch.java new file mode 100644 index 000000000000..389732a49d7b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatch.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Patch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.PatchRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.longrunning.Operation; + +public class AsyncPatch { + + public static void main(String[] args) throws Exception { + asyncPatch(); + } + + public static void asyncPatch() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + PatchRegionBackendBucketRequest request = + PatchRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setBackendBucketResource(BackendBucket.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = regionBackendBucketsClient.patchCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Patch_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatchLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatchLRO.java new file mode 100644 index 000000000000..8ebb662fcc68 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/AsyncPatchLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Patch_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class AsyncPatchLRO { + + public static void main(String[] args) throws Exception { + asyncPatchLRO(); + } + + public static void asyncPatchLRO() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + PatchRegionBackendBucketRequest request = + PatchRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setBackendBucketResource(BackendBucket.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionBackendBucketsClient.patchOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Patch_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatch.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatch.java new file mode 100644 index 000000000000..2c8dc3e88969 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatch.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Patch_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionBackendBucketRequest; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncPatch { + + public static void main(String[] args) throws Exception { + syncPatch(); + } + + public static void syncPatch() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + PatchRegionBackendBucketRequest request = + PatchRegionBackendBucketRequest.newBuilder() + .setBackendBucket("backendBucket713751966") + .setBackendBucketResource(BackendBucket.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + Operation response = regionBackendBucketsClient.patchAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Patch_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatchStringStringStringBackendbucket.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatchStringStringStringBackendbucket.java new file mode 100644 index 000000000000..aa46c26ef17a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/patch/SyncPatchStringStringStringBackendbucket.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_Patch_StringStringStringBackendbucket_sync] +import com.google.cloud.compute.v1.BackendBucket; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; + +public class SyncPatchStringStringStringBackendbucket { + + public static void main(String[] args) throws Exception { + syncPatchStringStringStringBackendbucket(); + } + + public static void syncPatchStringStringStringBackendbucket() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String backendBucket = "backendBucket713751966"; + BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); + Operation response = + regionBackendBucketsClient + .patchAsync(project, region, backendBucket, backendBucketResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_Patch_StringStringStringBackendbucket_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/AsyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..c746465d2cd8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + SetIamPolicyRegionBackendBucketRequest request = + SetIamPolicyRegionBackendBucketRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build()) + .setResource("resource-341064690") + .build(); + ApiFuture future = + regionBackendBucketsClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_SetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..47d255b80178 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_SetIamPolicy_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.SetIamPolicyRegionBackendBucketRequest; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + SetIamPolicyRegionBackendBucketRequest request = + SetIamPolicyRegionBackendBucketRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build()) + .setResource("resource-341064690") + .build(); + Policy response = regionBackendBucketsClient.setIamPolicy(request); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_SetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java new file mode 100644 index 000000000000..f3a0685e0bf9 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_SetIamPolicy_StringStringStringRegionsetpolicyrequest_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; + +public class SyncSetIamPolicyStringStringStringRegionsetpolicyrequest { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringStringStringRegionsetpolicyrequest(); + } + + public static void syncSetIamPolicyStringStringStringRegionsetpolicyrequest() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + Policy response = + regionBackendBucketsClient.setIamPolicy( + project, region, resource, regionSetPolicyRequestResource); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_SetIamPolicy_StringStringStringRegionsetpolicyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/AsyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..f36fd1677041 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + TestIamPermissionsRegionBackendBucketRequest request = + TestIamPermissionsRegionBackendBucketRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .build(); + ApiFuture future = + regionBackendBucketsClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestPermissionsResponse response = future.get(); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_TestIamPermissions_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..814dedfbe647 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_TestIamPermissions_sync] +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.TestIamPermissionsRegionBackendBucketRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + TestIamPermissionsRegionBackendBucketRequest request = + TestIamPermissionsRegionBackendBucketRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .build(); + TestPermissionsResponse response = regionBackendBucketsClient.testIamPermissions(request); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_TestIamPermissions_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java new file mode 100644 index 000000000000..7a1bdae5a135 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbuckets/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBuckets_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] +import com.google.cloud.compute.v1.RegionBackendBucketsClient; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissionsStringStringStringTestpermissionsrequest { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringStringStringTestpermissionsrequest(); + } + + public static void syncTestIamPermissionsStringStringStringTestpermissionsrequest() + 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 (RegionBackendBucketsClient regionBackendBucketsClient = + RegionBackendBucketsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + TestPermissionsResponse response = + regionBackendBucketsClient.testIamPermissions( + project, region, resource, testPermissionsRequestResource); + } + } +} +// [END compute_v1_generated_RegionBackendBuckets_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/delete/SyncDelete.java new file mode 100644 index 000000000000..5528aa4fab95 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBucketsSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.RegionBackendBucketsSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + RegionBackendBucketsSettings.Builder regionBackendBucketsSettingsBuilder = + RegionBackendBucketsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionBackendBucketsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionBackendBucketsSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/get/SyncGet.java new file mode 100644 index 000000000000..9f9d8ec9c285 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionbackendbucketssettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionBackendBucketsSettings_Get_sync] +import com.google.cloud.compute.v1.RegionBackendBucketsSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionBackendBucketsSettings.Builder regionBackendBucketsSettingsBuilder = + RegionBackendBucketsSettings.newBuilder(); + regionBackendBucketsSettingsBuilder + .getSettings() + .setRetrySettings( + regionBackendBucketsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionBackendBucketsSettings regionBackendBucketsSettings = + regionBackendBucketsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionBackendBucketsSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/AsyncGetHealth.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/AsyncGetHealth.java new file mode 100644 index 000000000000..6abc7babf7c1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/AsyncGetHealth.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionCompositeHealthChecks_GetHealth_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.CompositeHealthCheckHealth; +import com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; +import com.google.cloud.compute.v1.RegionCompositeHealthChecksClient; + +public class AsyncGetHealth { + + public static void main(String[] args) throws Exception { + asyncGetHealth(); + } + + public static void asyncGetHealth() 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 (RegionCompositeHealthChecksClient regionCompositeHealthChecksClient = + RegionCompositeHealthChecksClient.create()) { + GetHealthRegionCompositeHealthCheckRequest request = + GetHealthRegionCompositeHealthCheckRequest.newBuilder() + .setCompositeHealthCheck("compositeHealthCheck-1727645947") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = + regionCompositeHealthChecksClient.getHealthCallable().futureCall(request); + // Do something. + CompositeHealthCheckHealth response = future.get(); + } + } +} +// [END compute_v1_generated_RegionCompositeHealthChecks_GetHealth_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealth.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealth.java new file mode 100644 index 000000000000..e46a616444a4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealth.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionCompositeHealthChecks_GetHealth_sync] +import com.google.cloud.compute.v1.CompositeHealthCheckHealth; +import com.google.cloud.compute.v1.GetHealthRegionCompositeHealthCheckRequest; +import com.google.cloud.compute.v1.RegionCompositeHealthChecksClient; + +public class SyncGetHealth { + + public static void main(String[] args) throws Exception { + syncGetHealth(); + } + + public static void syncGetHealth() 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 (RegionCompositeHealthChecksClient regionCompositeHealthChecksClient = + RegionCompositeHealthChecksClient.create()) { + GetHealthRegionCompositeHealthCheckRequest request = + GetHealthRegionCompositeHealthCheckRequest.newBuilder() + .setCompositeHealthCheck("compositeHealthCheck-1727645947") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + CompositeHealthCheckHealth response = regionCompositeHealthChecksClient.getHealth(request); + } + } +} +// [END compute_v1_generated_RegionCompositeHealthChecks_GetHealth_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealthStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealthStringStringString.java new file mode 100644 index 000000000000..e0547b895673 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioncompositehealthchecks/gethealth/SyncGetHealthStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionCompositeHealthChecks_GetHealth_StringStringString_sync] +import com.google.cloud.compute.v1.CompositeHealthCheckHealth; +import com.google.cloud.compute.v1.RegionCompositeHealthChecksClient; + +public class SyncGetHealthStringStringString { + + public static void main(String[] args) throws Exception { + syncGetHealthStringStringString(); + } + + public static void syncGetHealthStringStringString() 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 (RegionCompositeHealthChecksClient regionCompositeHealthChecksClient = + RegionCompositeHealthChecksClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String compositeHealthCheck = "compositeHealthCheck-1727645947"; + CompositeHealthCheckHealth response = + regionCompositeHealthChecksClient.getHealth(project, region, compositeHealthCheck); + } + } +} +// [END compute_v1_generated_RegionCompositeHealthChecks_GetHealth_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKey.java new file mode 100644 index 000000000000..7f74d3ede204 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKey.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionDisks_UpdateKmsKey_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionDisksClient; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKey(); + } + + public static void asyncUpdateKmsKey() 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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) { + UpdateKmsKeyRegionDiskRequest request = + UpdateKmsKeyRegionDiskRequest.newBuilder() + .setDisk("disk3083677") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionDiskUpdateKmsKeyRequestResource( + RegionDiskUpdateKmsKeyRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = regionDisksClient.updateKmsKeyCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionDisks_UpdateKmsKey_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKeyLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKeyLRO.java new file mode 100644 index 000000000000..9d6afdf3759e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/AsyncUpdateKmsKeyLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionDisks_UpdateKmsKey_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionDisksClient; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; + +public class AsyncUpdateKmsKeyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKeyLRO(); + } + + public static void asyncUpdateKmsKeyLRO() 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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) { + UpdateKmsKeyRegionDiskRequest request = + UpdateKmsKeyRegionDiskRequest.newBuilder() + .setDisk("disk3083677") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionDiskUpdateKmsKeyRequestResource( + RegionDiskUpdateKmsKeyRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionDisksClient.updateKmsKeyOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionDisks_UpdateKmsKey_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKey.java new file mode 100644 index 000000000000..02c065d6fd39 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKey.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionDisks_UpdateKmsKey_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionDisksClient; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionDiskRequest; + +public class SyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKey(); + } + + public static void syncUpdateKmsKey() 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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) { + UpdateKmsKeyRegionDiskRequest request = + UpdateKmsKeyRegionDiskRequest.newBuilder() + .setDisk("disk3083677") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionDiskUpdateKmsKeyRequestResource( + RegionDiskUpdateKmsKeyRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Operation response = regionDisksClient.updateKmsKeyAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionDisks_UpdateKmsKey_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest.java new file mode 100644 index 000000000000..8514c9082b18 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regiondisks/updatekmskey/SyncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionDisks_UpdateKmsKey_StringStringStringRegiondiskupdatekmskeyrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionDisksClient; + +public class SyncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest(); + } + + public static void syncUpdateKmsKeyStringStringStringRegiondiskupdatekmskeyrequest() + 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 (RegionDisksClient regionDisksClient = RegionDisksClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String disk = "disk3083677"; + RegionDiskUpdateKmsKeyRequest regionDiskUpdateKmsKeyRequestResource = + RegionDiskUpdateKmsKeyRequest.newBuilder().build(); + Operation response = + regionDisksClient + .updateKmsKeyAsync(project, region, disk, regionDiskUpdateKmsKeyRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionDisks_UpdateKmsKey_StringStringStringRegiondiskupdatekmskeyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/AsyncGetHealth.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/AsyncGetHealth.java new file mode 100644 index 000000000000..76e21366f61a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/AsyncGetHealth.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionHealthSources_GetHealth_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; +import com.google.cloud.compute.v1.HealthSourceHealth; +import com.google.cloud.compute.v1.RegionHealthSourcesClient; + +public class AsyncGetHealth { + + public static void main(String[] args) throws Exception { + asyncGetHealth(); + } + + public static void asyncGetHealth() 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 (RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.create()) { + GetHealthRegionHealthSourceRequest request = + GetHealthRegionHealthSourceRequest.newBuilder() + .setHealthSource("healthSource513679767") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = + regionHealthSourcesClient.getHealthCallable().futureCall(request); + // Do something. + HealthSourceHealth response = future.get(); + } + } +} +// [END compute_v1_generated_RegionHealthSources_GetHealth_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealth.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealth.java new file mode 100644 index 000000000000..ac3e4ee1ee63 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealth.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionHealthSources_GetHealth_sync] +import com.google.cloud.compute.v1.GetHealthRegionHealthSourceRequest; +import com.google.cloud.compute.v1.HealthSourceHealth; +import com.google.cloud.compute.v1.RegionHealthSourcesClient; + +public class SyncGetHealth { + + public static void main(String[] args) throws Exception { + syncGetHealth(); + } + + public static void syncGetHealth() 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 (RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.create()) { + GetHealthRegionHealthSourceRequest request = + GetHealthRegionHealthSourceRequest.newBuilder() + .setHealthSource("healthSource513679767") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + HealthSourceHealth response = regionHealthSourcesClient.getHealth(request); + } + } +} +// [END compute_v1_generated_RegionHealthSources_GetHealth_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealthStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealthStringStringString.java new file mode 100644 index 000000000000..5b11acbccf50 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionhealthsources/gethealth/SyncGetHealthStringStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionHealthSources_GetHealth_StringStringString_sync] +import com.google.cloud.compute.v1.HealthSourceHealth; +import com.google.cloud.compute.v1.RegionHealthSourcesClient; + +public class SyncGetHealthStringStringString { + + public static void main(String[] args) throws Exception { + syncGetHealthStringStringString(); + } + + public static void syncGetHealthStringStringString() 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 (RegionHealthSourcesClient regionHealthSourcesClient = RegionHealthSourcesClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String healthSource = "healthSource513679767"; + HealthSourceHealth response = + regionHealthSourcesClient.getHealth(project, region, healthSource); + } + } +} +// [END compute_v1_generated_RegionHealthSources_GetHealth_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancel.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancel.java new file mode 100644 index 000000000000..3a10f3b5aed5 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancel.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; +import com.google.longrunning.Operation; + +public class AsyncCancel { + + public static void main(String[] args) throws Exception { + asyncCancel(); + } + + public static void asyncCancel() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + CancelRegionInstanceGroupManagerResizeRequestRequest request = + CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setResizeRequest("resizeRequest-1656358085") + .build(); + ApiFuture future = + regionInstanceGroupManagerResizeRequestsClient.cancelCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancelLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancelLRO.java new file mode 100644 index 000000000000..2c136d7ba789 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/AsyncCancelLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class AsyncCancelLRO { + + public static void main(String[] args) throws Exception { + asyncCancelLRO(); + } + + public static void asyncCancelLRO() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + CancelRegionInstanceGroupManagerResizeRequestRequest request = + CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setResizeRequest("resizeRequest-1656358085") + .build(); + OperationFuture future = + regionInstanceGroupManagerResizeRequestsClient + .cancelOperationCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancel.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancel.java new file mode 100644 index 000000000000..c899cc8e96e2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancel.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_sync] +import com.google.cloud.compute.v1.CancelRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncCancel { + + public static void main(String[] args) throws Exception { + syncCancel(); + } + + public static void syncCancel() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + CancelRegionInstanceGroupManagerResizeRequestRequest request = + CancelRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setResizeRequest("resizeRequest-1656358085") + .build(); + Operation response = + regionInstanceGroupManagerResizeRequestsClient.cancelAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancelStringStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancelStringStringStringString.java new file mode 100644 index 000000000000..20aec6ba468f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/cancel/SyncCancelStringStringStringString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_StringStringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncCancelStringStringStringString { + + public static void main(String[] args) throws Exception { + syncCancelStringStringStringString(); + } + + public static void syncCancelStringStringStringString() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + String resizeRequest = "resizeRequest-1656358085"; + Operation response = + regionInstanceGroupManagerResizeRequestsClient + .cancelAsync(project, region, instanceGroupManager, resizeRequest) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_StringStringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9b73eaff97b2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + RegionInstanceGroupManagerResizeRequestsSettings + regionInstanceGroupManagerResizeRequestsSettings = + RegionInstanceGroupManagerResizeRequestsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RegionInstanceGroupManagerResizeRequestsClient regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create( + regionInstanceGroupManagerResizeRequestsSettings); + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..2cf2e1033507 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/create/SyncCreateSetEndpoint.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + RegionInstanceGroupManagerResizeRequestsSettings + regionInstanceGroupManagerResizeRequestsSettings = + RegionInstanceGroupManagerResizeRequestsSettings.newBuilder() + .setEndpoint(myEndpoint) + .build(); + RegionInstanceGroupManagerResizeRequestsClient regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create( + regionInstanceGroupManagerResizeRequestsSettings); + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDelete.java new file mode 100644 index 000000000000..e8c63417c9b8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDelete.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; +import com.google.longrunning.Operation; + +public class AsyncDelete { + + public static void main(String[] args) throws Exception { + asyncDelete(); + } + + public static void asyncDelete() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + DeleteRegionInstanceGroupManagerResizeRequestRequest request = + DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setResizeRequest("resizeRequest-1656358085") + .build(); + ApiFuture future = + regionInstanceGroupManagerResizeRequestsClient.deleteCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDeleteLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDeleteLRO.java new file mode 100644 index 000000000000..75cb36ab3efd --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/AsyncDeleteLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class AsyncDeleteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLRO(); + } + + public static void asyncDeleteLRO() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + DeleteRegionInstanceGroupManagerResizeRequestRequest request = + DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setResizeRequest("resizeRequest-1656358085") + .build(); + OperationFuture future = + regionInstanceGroupManagerResizeRequestsClient + .deleteOperationCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDelete.java new file mode 100644 index 000000000000..fb3c4e82ef0b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDelete.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_sync] +import com.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + DeleteRegionInstanceGroupManagerResizeRequestRequest request = + DeleteRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setResizeRequest("resizeRequest-1656358085") + .build(); + Operation response = + regionInstanceGroupManagerResizeRequestsClient.deleteAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDeleteStringStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDeleteStringStringStringString.java new file mode 100644 index 000000000000..be950a526311 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/delete/SyncDeleteStringStringStringString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_StringStringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncDeleteStringStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteStringStringStringString(); + } + + public static void syncDeleteStringStringStringString() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + String resizeRequest = "resizeRequest-1656358085"; + Operation response = + regionInstanceGroupManagerResizeRequestsClient + .deleteAsync(project, region, instanceGroupManager, resizeRequest) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_StringStringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/AsyncGet.java new file mode 100644 index 000000000000..5b92c3b506e5 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/AsyncGet.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + GetRegionInstanceGroupManagerResizeRequestRequest request = + GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setResizeRequest("resizeRequest-1656358085") + .build(); + ApiFuture future = + regionInstanceGroupManagerResizeRequestsClient.getCallable().futureCall(request); + // Do something. + InstanceGroupManagerResizeRequest response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGet.java new file mode 100644 index 000000000000..73a9bb85200e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_sync] +import com.google.cloud.compute.v1.GetRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + GetRegionInstanceGroupManagerResizeRequestRequest request = + GetRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setProject("project-309310695") + .setRegion("region-934795532") + .setResizeRequest("resizeRequest-1656358085") + .build(); + InstanceGroupManagerResizeRequest response = + regionInstanceGroupManagerResizeRequestsClient.get(request); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGetStringStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGetStringStringStringString.java new file mode 100644 index 000000000000..a6f256589f77 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/get/SyncGetStringStringStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_StringStringStringString_sync] +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncGetStringStringStringString { + + public static void main(String[] args) throws Exception { + syncGetStringStringStringString(); + } + + public static void syncGetStringStringStringString() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + String resizeRequest = "resizeRequest-1656358085"; + InstanceGroupManagerResizeRequest response = + regionInstanceGroupManagerResizeRequestsClient.get( + project, region, instanceGroupManager, resizeRequest); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_StringStringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsert.java new file mode 100644 index 000000000000..6384afde52b0 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsert.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; +import com.google.longrunning.Operation; + +public class AsyncInsert { + + public static void main(String[] args) throws Exception { + asyncInsert(); + } + + public static void asyncInsert() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + InsertRegionInstanceGroupManagerResizeRequestRequest request = + InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagerResizeRequestResource( + InstanceGroupManagerResizeRequest.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + regionInstanceGroupManagerResizeRequestsClient.insertCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsertLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsertLRO.java new file mode 100644 index 000000000000..3b0a489f72e8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/AsyncInsertLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class AsyncInsertLRO { + + public static void main(String[] args) throws Exception { + asyncInsertLRO(); + } + + public static void asyncInsertLRO() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + InsertRegionInstanceGroupManagerResizeRequestRequest request = + InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagerResizeRequestResource( + InstanceGroupManagerResizeRequest.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionInstanceGroupManagerResizeRequestsClient + .insertOperationCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsert.java new file mode 100644 index 000000000000..4a55e1ccd11f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsert.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_sync] +import com.google.cloud.compute.v1.InsertRegionInstanceGroupManagerResizeRequestRequest; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncInsert { + + public static void main(String[] args) throws Exception { + syncInsert(); + } + + public static void syncInsert() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + InsertRegionInstanceGroupManagerResizeRequestRequest request = + InsertRegionInstanceGroupManagerResizeRequestRequest.newBuilder() + .setInstanceGroupManager("instanceGroupManager-388242077") + .setInstanceGroupManagerResizeRequestResource( + InstanceGroupManagerResizeRequest.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + Operation response = + regionInstanceGroupManagerResizeRequestsClient.insertAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsertStringStringStringInstancegroupmanagerresizerequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsertStringStringStringInstancegroupmanagerresizerequest.java new file mode 100644 index 000000000000..3e9b810cad52 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/insert/SyncInsertStringStringStringInstancegroupmanagerresizerequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_StringStringStringInstancegroupmanagerresizerequest_sync] +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncInsertStringStringStringInstancegroupmanagerresizerequest { + + public static void main(String[] args) throws Exception { + syncInsertStringStringStringInstancegroupmanagerresizerequest(); + } + + public static void syncInsertStringStringStringInstancegroupmanagerresizerequest() + 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource = + InstanceGroupManagerResizeRequest.newBuilder().build(); + Operation response = + regionInstanceGroupManagerResizeRequestsClient + .insertAsync( + project, region, instanceGroupManager, instanceGroupManagerResizeRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_StringStringStringInstancegroupmanagerresizerequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncList.java new file mode 100644 index 000000000000..7dbfdd8102e7 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncList.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + ListRegionInstanceGroupManagerResizeRequestsRequest request = + ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder() + .setFilter("filter-1274492040") + .setInstanceGroupManager("instanceGroupManager-388242077") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + regionInstanceGroupManagerResizeRequestsClient.listPagedCallable().futureCall(request); + // Do something. + for (InstanceGroupManagerResizeRequest element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncListPaged.java new file mode 100644 index 000000000000..956d7bdff3d3 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/AsyncListPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_Paged_async] +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + ListRegionInstanceGroupManagerResizeRequestsRequest request = + ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder() + .setFilter("filter-1274492040") + .setInstanceGroupManager("instanceGroupManager-388242077") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + while (true) { + RegionInstanceGroupManagerResizeRequestsListResponse response = + regionInstanceGroupManagerResizeRequestsClient.listCallable().call(request); + for (InstanceGroupManagerResizeRequest element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncList.java new file mode 100644 index 000000000000..33df3abeced1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncList.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_sync] +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.ListRegionInstanceGroupManagerResizeRequestsRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + ListRegionInstanceGroupManagerResizeRequestsRequest request = + ListRegionInstanceGroupManagerResizeRequestsRequest.newBuilder() + .setFilter("filter-1274492040") + .setInstanceGroupManager("instanceGroupManager-388242077") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + for (InstanceGroupManagerResizeRequest element : + regionInstanceGroupManagerResizeRequestsClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncListStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncListStringStringString.java new file mode 100644 index 000000000000..800eca8d4b46 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequests/list/SyncListStringStringString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_StringStringString_sync] +import com.google.cloud.compute.v1.InstanceGroupManagerResizeRequest; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient; + +public class SyncListStringStringString { + + public static void main(String[] args) throws Exception { + syncListStringStringString(); + } + + public static void syncListStringStringString() 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 (RegionInstanceGroupManagerResizeRequestsClient + regionInstanceGroupManagerResizeRequestsClient = + RegionInstanceGroupManagerResizeRequestsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instanceGroupManager = "instanceGroupManager-388242077"; + for (InstanceGroupManagerResizeRequest element : + regionInstanceGroupManagerResizeRequestsClient + .list(project, region, instanceGroupManager) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/cancel/SyncCancel.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/cancel/SyncCancel.java new file mode 100644 index 000000000000..58120a257fa9 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/cancel/SyncCancel.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequestsSettings_Cancel_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsSettings; +import java.time.Duration; + +public class SyncCancel { + + public static void main(String[] args) throws Exception { + syncCancel(); + } + + public static void syncCancel() 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 + RegionInstanceGroupManagerResizeRequestsSettings.Builder + regionInstanceGroupManagerResizeRequestsSettingsBuilder = + RegionInstanceGroupManagerResizeRequestsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionInstanceGroupManagerResizeRequestsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequestsSettings_Cancel_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/get/SyncGet.java new file mode 100644 index 000000000000..20d3df29496c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstancegroupmanagerresizerequestssettings/get/SyncGet.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequestsSettings_Get_sync] +import com.google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionInstanceGroupManagerResizeRequestsSettings.Builder + regionInstanceGroupManagerResizeRequestsSettingsBuilder = + RegionInstanceGroupManagerResizeRequestsSettings.newBuilder(); + regionInstanceGroupManagerResizeRequestsSettingsBuilder + .getSettings() + .setRetrySettings( + regionInstanceGroupManagerResizeRequestsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionInstanceGroupManagerResizeRequestsSettings + regionInstanceGroupManagerResizeRequestsSettings = + regionInstanceGroupManagerResizeRequestsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequestsSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e5dc7e0efe61 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + RegionInstantSnapshotGroupsSettings regionInstantSnapshotGroupsSettings = + RegionInstantSnapshotGroupsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create(regionInstantSnapshotGroupsSettings); + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..4b036b9d7e95 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + RegionInstantSnapshotGroupsSettings regionInstantSnapshotGroupsSettings = + RegionInstantSnapshotGroupsSettings.newBuilder().setEndpoint(myEndpoint).build(); + RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create(regionInstantSnapshotGroupsSettings); + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDelete.java new file mode 100644 index 000000000000..3a4690d5e4d2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDelete.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Delete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.longrunning.Operation; + +public class AsyncDelete { + + public static void main(String[] args) throws Exception { + asyncDelete(); + } + + public static void asyncDelete() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + DeleteRegionInstantSnapshotGroupRequest request = + DeleteRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.deleteCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Delete_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDeleteLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDeleteLRO.java new file mode 100644 index 000000000000..ef6c6bbdcae0 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/AsyncDeleteLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Delete_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class AsyncDeleteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLRO(); + } + + public static void asyncDeleteLRO() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + DeleteRegionInstantSnapshotGroupRequest request = + DeleteRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + regionInstantSnapshotGroupsClient.deleteOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Delete_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDelete.java new file mode 100644 index 000000000000..a22c8da85d89 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDelete.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Delete_sync] +import com.google.cloud.compute.v1.DeleteRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + DeleteRegionInstantSnapshotGroupRequest request = + DeleteRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .build(); + Operation response = regionInstantSnapshotGroupsClient.deleteAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDeleteStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDeleteStringStringString.java new file mode 100644 index 000000000000..7366eedc100e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/delete/SyncDeleteStringStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Delete_StringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncDeleteStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteStringStringString(); + } + + public static void syncDeleteStringStringString() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instantSnapshotGroup = "instantSnapshotGroup500796090"; + Operation response = + regionInstantSnapshotGroupsClient + .deleteAsync(project, region, instantSnapshotGroup) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Delete_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/AsyncGet.java new file mode 100644 index 000000000000..3fc8827811b4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/AsyncGet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + GetRegionInstantSnapshotGroupRequest request = + GetRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.getCallable().futureCall(request); + // Do something. + InstantSnapshotGroup response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGet.java new file mode 100644 index 000000000000..7358188eb210 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Get_sync] +import com.google.cloud.compute.v1.GetRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + GetRegionInstantSnapshotGroupRequest request = + GetRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroup("instantSnapshotGroup500796090") + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + InstantSnapshotGroup response = regionInstantSnapshotGroupsClient.get(request); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGetStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGetStringStringString.java new file mode 100644 index 000000000000..d4aec172cc9c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/get/SyncGetStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Get_StringStringString_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncGetStringStringString { + + public static void main(String[] args) throws Exception { + syncGetStringStringString(); + } + + public static void syncGetStringStringString() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String instantSnapshotGroup = "instantSnapshotGroup500796090"; + InstantSnapshotGroup response = + regionInstantSnapshotGroupsClient.get(project, region, instantSnapshotGroup); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Get_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..532b162cbd70 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + GetIamPolicyRegionInstantSnapshotGroupRequest request = + GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..23b88c8b2f52 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_sync] +import com.google.cloud.compute.v1.GetIamPolicyRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + GetIamPolicyRegionInstantSnapshotGroupRequest request = + GetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .build(); + Policy response = regionInstantSnapshotGroupsClient.getIamPolicy(request); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java new file mode 100644 index 000000000000..92d28b7a1a01 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/getiampolicy/SyncGetIamPolicyStringStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_StringStringString_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncGetIamPolicyStringStringString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyStringStringString(); + } + + public static void syncGetIamPolicyStringStringString() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + Policy response = regionInstantSnapshotGroupsClient.getIamPolicy(project, region, resource); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsert.java new file mode 100644 index 000000000000..906c7ec815e8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsert.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Insert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.longrunning.Operation; + +public class AsyncInsert { + + public static void main(String[] args) throws Exception { + asyncInsert(); + } + + public static void asyncInsert() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + InsertRegionInstantSnapshotGroupRequest request = + InsertRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.insertCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Insert_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsertLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsertLRO.java new file mode 100644 index 000000000000..1933de92b492 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/AsyncInsertLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Insert_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class AsyncInsertLRO { + + public static void main(String[] args) throws Exception { + asyncInsertLRO(); + } + + public static void asyncInsertLRO() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + InsertRegionInstantSnapshotGroupRequest request = + InsertRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .build(); + OperationFuture future = + regionInstantSnapshotGroupsClient.insertOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Insert_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsert.java new file mode 100644 index 000000000000..eb3d960a7e86 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsert.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Insert_sync] +import com.google.cloud.compute.v1.InsertRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncInsert { + + public static void main(String[] args) throws Exception { + syncInsert(); + } + + public static void syncInsert() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + InsertRegionInstantSnapshotGroupRequest request = + InsertRegionInstantSnapshotGroupRequest.newBuilder() + .setInstantSnapshotGroupResource(InstantSnapshotGroup.newBuilder().build()) + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSourceConsistencyGroup("sourceConsistencyGroup-2056893054") + .build(); + Operation response = regionInstantSnapshotGroupsClient.insertAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Insert_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java new file mode 100644 index 000000000000..190240824a18 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/insert/SyncInsertStringStringInstantsnapshotgroup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_Insert_StringStringInstantsnapshotgroup_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncInsertStringStringInstantsnapshotgroup { + + public static void main(String[] args) throws Exception { + syncInsertStringStringInstantsnapshotgroup(); + } + + public static void syncInsertStringStringInstantsnapshotgroup() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + InstantSnapshotGroup instantSnapshotGroupResource = InstantSnapshotGroup.newBuilder().build(); + Operation response = + regionInstantSnapshotGroupsClient + .insertAsync(project, region, instantSnapshotGroupResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_Insert_StringStringInstantsnapshotgroup_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncList.java new file mode 100644 index 000000000000..b83e19f9cf08 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncList.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + ListRegionInstantSnapshotGroupsRequest request = + ListRegionInstantSnapshotGroupsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.listPagedCallable().futureCall(request); + // Do something. + for (InstantSnapshotGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncListPaged.java new file mode 100644 index 000000000000..e9d4d2516506 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/AsyncListPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_List_Paged_async] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListInstantSnapshotGroups; +import com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + ListRegionInstantSnapshotGroupsRequest request = + ListRegionInstantSnapshotGroupsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListInstantSnapshotGroups response = + regionInstantSnapshotGroupsClient.listCallable().call(request); + for (InstantSnapshotGroup element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncList.java new file mode 100644 index 000000000000..7df3f1b0542c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncList.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_List_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.ListRegionInstantSnapshotGroupsRequest; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + ListRegionInstantSnapshotGroupsRequest request = + ListRegionInstantSnapshotGroupsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + for (InstantSnapshotGroup element : + regionInstantSnapshotGroupsClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncListStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncListStringString.java new file mode 100644 index 000000000000..991c7aa3c8e9 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/list/SyncListStringString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_List_StringString_sync] +import com.google.cloud.compute.v1.InstantSnapshotGroup; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; + +public class SyncListStringString { + + public static void main(String[] args) throws Exception { + syncListStringString(); + } + + public static void syncListStringString() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + for (InstantSnapshotGroup element : + regionInstantSnapshotGroupsClient.list(project, region).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_List_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..d5d3ba1158b2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + SetIamPolicyRegionInstantSnapshotGroupRequest request = + SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build()) + .setResource("resource-341064690") + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..d58afce33d5d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.SetIamPolicyRegionInstantSnapshotGroupRequest; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + SetIamPolicyRegionInstantSnapshotGroupRequest request = + SetIamPolicyRegionInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build()) + .setResource("resource-341064690") + .build(); + Policy response = regionInstantSnapshotGroupsClient.setIamPolicy(request); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java new file mode 100644 index 000000000000..50ef221c15ed --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_StringStringStringRegionsetpolicyrequest_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; + +public class SyncSetIamPolicyStringStringStringRegionsetpolicyrequest { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringStringStringRegionsetpolicyrequest(); + } + + public static void syncSetIamPolicyStringStringStringRegionsetpolicyrequest() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + Policy response = + regionInstantSnapshotGroupsClient.setIamPolicy( + project, region, resource, regionSetPolicyRequestResource); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_StringStringStringRegionsetpolicyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..b0b29bb546e1 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + TestIamPermissionsRegionInstantSnapshotGroupRequest request = + TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .build(); + ApiFuture future = + regionInstantSnapshotGroupsClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestPermissionsResponse response = future.get(); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..71cca7bd7b8d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_sync] +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.TestIamPermissionsRegionInstantSnapshotGroupRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + TestIamPermissionsRegionInstantSnapshotGroupRequest request = + TestIamPermissionsRegionInstantSnapshotGroupRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .build(); + TestPermissionsResponse response = + regionInstantSnapshotGroupsClient.testIamPermissions(request); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java new file mode 100644 index 000000000000..26716ce7386a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroups/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsClient; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissionsStringStringStringTestpermissionsrequest { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringStringStringTestpermissionsrequest(); + } + + public static void syncTestIamPermissionsStringStringStringTestpermissionsrequest() + 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 (RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = + RegionInstantSnapshotGroupsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + TestPermissionsResponse response = + regionInstantSnapshotGroupsClient.testIamPermissions( + project, region, resource, testPermissionsRequestResource); + } + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/delete/SyncDelete.java new file mode 100644 index 000000000000..2a966f9319df --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroupsSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + RegionInstantSnapshotGroupsSettings.Builder regionInstantSnapshotGroupsSettingsBuilder = + RegionInstantSnapshotGroupsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionInstantSnapshotGroupsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroupsSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/get/SyncGet.java new file mode 100644 index 000000000000..5589a2a4a0b0 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regioninstantsnapshotgroupssettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroupsSettings_Get_sync] +import com.google.cloud.compute.v1.RegionInstantSnapshotGroupsSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionInstantSnapshotGroupsSettings.Builder regionInstantSnapshotGroupsSettingsBuilder = + RegionInstantSnapshotGroupsSettings.newBuilder(); + regionInstantSnapshotGroupsSettingsBuilder + .getSettings() + .setRetrySettings( + regionInstantSnapshotGroupsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionInstantSnapshotGroupsSettings regionInstantSnapshotGroupsSettings = + regionInstantSnapshotGroupsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroupsSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9ea7140422de --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.RegionSnapshotsSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + RegionSnapshotsSettings regionSnapshotsSettings = + RegionSnapshotsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RegionSnapshotsClient regionSnapshotsClient = + RegionSnapshotsClient.create(regionSnapshotsSettings); + } +} +// [END compute_v1_generated_RegionSnapshots_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..5abd2e3da198 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.RegionSnapshotsSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + RegionSnapshotsSettings regionSnapshotsSettings = + RegionSnapshotsSettings.newBuilder().setEndpoint(myEndpoint).build(); + RegionSnapshotsClient regionSnapshotsClient = + RegionSnapshotsClient.create(regionSnapshotsSettings); + } +} +// [END compute_v1_generated_RegionSnapshots_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDelete.java new file mode 100644 index 000000000000..0fee4404b3a2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDelete.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Delete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DeleteRegionSnapshotRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.longrunning.Operation; + +public class AsyncDelete { + + public static void main(String[] args) throws Exception { + asyncDelete(); + } + + public static void asyncDelete() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + DeleteRegionSnapshotRequest request = + DeleteRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .build(); + ApiFuture future = regionSnapshotsClient.deleteCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Delete_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDeleteLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDeleteLRO.java new file mode 100644 index 000000000000..aeba724ce3d2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/AsyncDeleteLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Delete_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DeleteRegionSnapshotRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class AsyncDeleteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLRO(); + } + + public static void asyncDeleteLRO() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + DeleteRegionSnapshotRequest request = + DeleteRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .build(); + OperationFuture future = + regionSnapshotsClient.deleteOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Delete_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDelete.java new file mode 100644 index 000000000000..f8024259d898 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDelete.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Delete_sync] +import com.google.cloud.compute.v1.DeleteRegionSnapshotRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + DeleteRegionSnapshotRequest request = + DeleteRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .build(); + Operation response = regionSnapshotsClient.deleteAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDeleteStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDeleteStringStringString.java new file mode 100644 index 000000000000..f7d20179f9a6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/delete/SyncDeleteStringStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Delete_StringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncDeleteStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteStringStringString(); + } + + public static void syncDeleteStringStringString() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String snapshot = "snapshot284874180"; + Operation response = regionSnapshotsClient.deleteAsync(project, region, snapshot).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Delete_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/AsyncGet.java new file mode 100644 index 000000000000..e423f319d12d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/AsyncGet.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetRegionSnapshotRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + GetRegionSnapshotRequest request = + GetRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setSnapshot("snapshot284874180") + .build(); + ApiFuture future = regionSnapshotsClient.getCallable().futureCall(request); + // Do something. + Snapshot response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGet.java new file mode 100644 index 000000000000..869d664a2e8a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Get_sync] +import com.google.cloud.compute.v1.GetRegionSnapshotRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + GetRegionSnapshotRequest request = + GetRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setSnapshot("snapshot284874180") + .build(); + Snapshot response = regionSnapshotsClient.get(request); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGetStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGetStringStringString.java new file mode 100644 index 000000000000..05380eb9cea4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/get/SyncGetStringStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Get_StringStringString_sync] +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class SyncGetStringStringString { + + public static void main(String[] args) throws Exception { + syncGetStringStringString(); + } + + public static void syncGetStringStringString() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String snapshot = "snapshot284874180"; + Snapshot response = regionSnapshotsClient.get(project, region, snapshot); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Get_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/AsyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..778cdd01b3fd --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + GetIamPolicyRegionSnapshotRequest request = + GetIamPolicyRegionSnapshotRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .build(); + ApiFuture future = regionSnapshotsClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_GetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..cf9cb885c26c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_GetIamPolicy_sync] +import com.google.cloud.compute.v1.GetIamPolicyRegionSnapshotRequest; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + GetIamPolicyRegionSnapshotRequest request = + GetIamPolicyRegionSnapshotRequest.newBuilder() + .setOptionsRequestedPolicyVersion(-574521795) + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .build(); + Policy response = regionSnapshotsClient.getIamPolicy(request); + } + } +} +// [END compute_v1_generated_RegionSnapshots_GetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicyStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicyStringStringString.java new file mode 100644 index 000000000000..b5d761f9d56f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/getiampolicy/SyncGetIamPolicyStringStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_GetIamPolicy_StringStringString_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncGetIamPolicyStringStringString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyStringStringString(); + } + + public static void syncGetIamPolicyStringStringString() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + Policy response = regionSnapshotsClient.getIamPolicy(project, region, resource); + } + } +} +// [END compute_v1_generated_RegionSnapshots_GetIamPolicy_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsert.java new file mode 100644 index 000000000000..c10195d642c4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsert.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Insert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InsertRegionSnapshotRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; +import com.google.longrunning.Operation; + +public class AsyncInsert { + + public static void main(String[] args) throws Exception { + asyncInsert(); + } + + public static void asyncInsert() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + InsertRegionSnapshotRequest request = + InsertRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshotResource(Snapshot.newBuilder().build()) + .build(); + ApiFuture future = regionSnapshotsClient.insertCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Insert_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsertLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsertLRO.java new file mode 100644 index 000000000000..24e469d10c7f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/AsyncInsertLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Insert_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InsertRegionSnapshotRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class AsyncInsertLRO { + + public static void main(String[] args) throws Exception { + asyncInsertLRO(); + } + + public static void asyncInsertLRO() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + InsertRegionSnapshotRequest request = + InsertRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshotResource(Snapshot.newBuilder().build()) + .build(); + OperationFuture future = + regionSnapshotsClient.insertOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Insert_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsert.java new file mode 100644 index 000000000000..dae4a4e0c4ff --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsert.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Insert_sync] +import com.google.cloud.compute.v1.InsertRegionSnapshotRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class SyncInsert { + + public static void main(String[] args) throws Exception { + syncInsert(); + } + + public static void syncInsert() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + InsertRegionSnapshotRequest request = + InsertRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshotResource(Snapshot.newBuilder().build()) + .build(); + Operation response = regionSnapshotsClient.insertAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Insert_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsertStringStringSnapshot.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsertStringStringSnapshot.java new file mode 100644 index 000000000000..b22f38d61ab8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/insert/SyncInsertStringStringSnapshot.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_Insert_StringStringSnapshot_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class SyncInsertStringStringSnapshot { + + public static void main(String[] args) throws Exception { + syncInsertStringStringSnapshot(); + } + + public static void syncInsertStringStringSnapshot() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + Snapshot snapshotResource = Snapshot.newBuilder().build(); + Operation response = + regionSnapshotsClient.insertAsync(project, region, snapshotResource).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_Insert_StringStringSnapshot_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncList.java new file mode 100644 index 000000000000..d518debbaa46 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncList.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.ListRegionSnapshotsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + ListRegionSnapshotsRequest request = + ListRegionSnapshotsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = regionSnapshotsClient.listPagedCallable().futureCall(request); + // Do something. + for (Snapshot element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionSnapshots_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncListPaged.java new file mode 100644 index 000000000000..0818070f5186 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/AsyncListPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_List_Paged_async] +import com.google.cloud.compute.v1.ListRegionSnapshotsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; +import com.google.cloud.compute.v1.SnapshotList; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + ListRegionSnapshotsRequest request = + ListRegionSnapshotsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + while (true) { + SnapshotList response = regionSnapshotsClient.listCallable().call(request); + for (Snapshot element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_RegionSnapshots_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncList.java new file mode 100644 index 000000000000..06836d134085 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncList.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_List_sync] +import com.google.cloud.compute.v1.ListRegionSnapshotsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + ListRegionSnapshotsRequest request = + ListRegionSnapshotsRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setRegion("region-934795532") + .setReturnPartialSuccess(true) + .build(); + for (Snapshot element : regionSnapshotsClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionSnapshots_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncListStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncListStringString.java new file mode 100644 index 000000000000..875f73676e4c --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/list/SyncListStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_List_StringString_sync] +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.Snapshot; + +public class SyncListStringString { + + public static void main(String[] args) throws Exception { + syncListStringString(); + } + + public static void syncListStringString() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + for (Snapshot element : regionSnapshotsClient.list(project, region).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_RegionSnapshots_List_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/AsyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..3ce76bcc3baf --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + SetIamPolicyRegionSnapshotRequest request = + SetIamPolicyRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build()) + .setResource("resource-341064690") + .build(); + ApiFuture future = regionSnapshotsClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetIamPolicy_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..b5393546d25d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetIamPolicy_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.SetIamPolicyRegionSnapshotRequest; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + SetIamPolicyRegionSnapshotRequest request = + SetIamPolicyRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetPolicyRequestResource(RegionSetPolicyRequest.newBuilder().build()) + .setResource("resource-341064690") + .build(); + Policy response = regionSnapshotsClient.setIamPolicy(request); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetIamPolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java new file mode 100644 index 000000000000..5680f5761590 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setiampolicy/SyncSetIamPolicyStringStringStringRegionsetpolicyrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetIamPolicy_StringStringStringRegionsetpolicyrequest_sync] +import com.google.cloud.compute.v1.Policy; +import com.google.cloud.compute.v1.RegionSetPolicyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncSetIamPolicyStringStringStringRegionsetpolicyrequest { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringStringStringRegionsetpolicyrequest(); + } + + public static void syncSetIamPolicyStringStringStringRegionsetpolicyrequest() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + RegionSetPolicyRequest regionSetPolicyRequestResource = + RegionSetPolicyRequest.newBuilder().build(); + Policy response = + regionSnapshotsClient.setIamPolicy( + project, region, resource, regionSetPolicyRequestResource); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetIamPolicy_StringStringStringRegionsetpolicyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabels.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabels.java new file mode 100644 index 000000000000..fadd6b578ef4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabels.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetLabels_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; +import com.google.longrunning.Operation; + +public class AsyncSetLabels { + + public static void main(String[] args) throws Exception { + asyncSetLabels(); + } + + public static void asyncSetLabels() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + SetLabelsRegionSnapshotRequest request = + SetLabelsRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setResource("resource-341064690") + .build(); + ApiFuture future = regionSnapshotsClient.setLabelsCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetLabels_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabelsLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabelsLRO.java new file mode 100644 index 000000000000..2888b722ffcc --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/AsyncSetLabelsLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetLabels_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; + +public class AsyncSetLabelsLRO { + + public static void main(String[] args) throws Exception { + asyncSetLabelsLRO(); + } + + public static void asyncSetLabelsLRO() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + SetLabelsRegionSnapshotRequest request = + SetLabelsRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setResource("resource-341064690") + .build(); + OperationFuture future = + regionSnapshotsClient.setLabelsOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetLabels_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabels.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabels.java new file mode 100644 index 000000000000..50fbb46fd30d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabels.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetLabels_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.SetLabelsRegionSnapshotRequest; + +public class SyncSetLabels { + + public static void main(String[] args) throws Exception { + syncSetLabels(); + } + + public static void syncSetLabels() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + SetLabelsRegionSnapshotRequest request = + SetLabelsRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSetLabelsRequestResource(RegionSetLabelsRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setResource("resource-341064690") + .build(); + Operation response = regionSnapshotsClient.setLabelsAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetLabels_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.java new file mode 100644 index 000000000000..e3f26d519d2b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/setlabels/SyncSetLabelsStringStringStringRegionsetlabelsrequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_SetLabels_StringStringStringRegionsetlabelsrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSetLabelsRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncSetLabelsStringStringStringRegionsetlabelsrequest { + + public static void main(String[] args) throws Exception { + syncSetLabelsStringStringStringRegionsetlabelsrequest(); + } + + public static void syncSetLabelsStringStringStringRegionsetlabelsrequest() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + RegionSetLabelsRequest regionSetLabelsRequestResource = + RegionSetLabelsRequest.newBuilder().build(); + Operation response = + regionSnapshotsClient + .setLabelsAsync(project, region, resource, regionSetLabelsRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_SetLabels_StringStringStringRegionsetlabelsrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/AsyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..a87f22c13bd7 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + TestIamPermissionsRegionSnapshotRequest request = + TestIamPermissionsRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .build(); + ApiFuture future = + regionSnapshotsClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestPermissionsResponse response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_TestIamPermissions_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissions.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..60b430512692 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_TestIamPermissions_sync] +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.TestIamPermissionsRegionSnapshotRequest; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + TestIamPermissionsRegionSnapshotRequest request = + TestIamPermissionsRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setResource("resource-341064690") + .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build()) + .build(); + TestPermissionsResponse response = regionSnapshotsClient.testIamPermissions(request); + } + } +} +// [END compute_v1_generated_RegionSnapshots_TestIamPermissions_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java new file mode 100644 index 000000000000..45d0aa1ad874 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/testiampermissions/SyncTestIamPermissionsStringStringStringTestpermissionsrequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.TestPermissionsRequest; +import com.google.cloud.compute.v1.TestPermissionsResponse; + +public class SyncTestIamPermissionsStringStringStringTestpermissionsrequest { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringStringStringTestpermissionsrequest(); + } + + public static void syncTestIamPermissionsStringStringStringTestpermissionsrequest() + 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String resource = "resource-341064690"; + TestPermissionsRequest testPermissionsRequestResource = + TestPermissionsRequest.newBuilder().build(); + TestPermissionsResponse response = + regionSnapshotsClient.testIamPermissions( + project, region, resource, testPermissionsRequestResource); + } + } +} +// [END compute_v1_generated_RegionSnapshots_TestIamPermissions_StringStringStringTestpermissionsrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKey.java new file mode 100644 index 000000000000..18e108b46cec --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKey.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_UpdateKmsKey_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKey(); + } + + public static void asyncUpdateKmsKey() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + UpdateKmsKeyRegionSnapshotRequest request = + UpdateKmsKeyRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSnapshotUpdateKmsKeyRequestResource( + RegionSnapshotUpdateKmsKeyRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .build(); + ApiFuture future = + regionSnapshotsClient.updateKmsKeyCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_UpdateKmsKey_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java new file mode 100644 index 000000000000..f457b2f4aa36 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_UpdateKmsKey_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; + +public class AsyncUpdateKmsKeyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKeyLRO(); + } + + public static void asyncUpdateKmsKeyLRO() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + UpdateKmsKeyRegionSnapshotRequest request = + UpdateKmsKeyRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSnapshotUpdateKmsKeyRequestResource( + RegionSnapshotUpdateKmsKeyRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .build(); + OperationFuture future = + regionSnapshotsClient.updateKmsKeyOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_UpdateKmsKey_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKey.java new file mode 100644 index 000000000000..82c609234622 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKey.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_UpdateKmsKey_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; +import com.google.cloud.compute.v1.UpdateKmsKeyRegionSnapshotRequest; + +public class SyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKey(); + } + + public static void syncUpdateKmsKey() 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + UpdateKmsKeyRegionSnapshotRequest request = + UpdateKmsKeyRegionSnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRegionSnapshotUpdateKmsKeyRequestResource( + RegionSnapshotUpdateKmsKeyRequest.newBuilder().build()) + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .build(); + Operation response = regionSnapshotsClient.updateKmsKeyAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_UpdateKmsKey_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest.java new file mode 100644 index 000000000000..1c23df713698 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshots/updatekmskey/SyncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshots_UpdateKmsKey_StringStringStringRegionsnapshotupdatekmskeyrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.RegionSnapshotsClient; + +public class SyncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest(); + } + + public static void syncUpdateKmsKeyStringStringStringRegionsnapshotupdatekmskeyrequest() + 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 (RegionSnapshotsClient regionSnapshotsClient = RegionSnapshotsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + String snapshot = "snapshot284874180"; + RegionSnapshotUpdateKmsKeyRequest regionSnapshotUpdateKmsKeyRequestResource = + RegionSnapshotUpdateKmsKeyRequest.newBuilder().build(); + Operation response = + regionSnapshotsClient + .updateKmsKeyAsync( + project, region, snapshot, regionSnapshotUpdateKmsKeyRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_RegionSnapshots_UpdateKmsKey_StringStringStringRegionsnapshotupdatekmskeyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..936a470ef557 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.RegionSnapshotSettingsSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + RegionSnapshotSettingsSettings regionSnapshotSettingsSettings = + RegionSnapshotSettingsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create(regionSnapshotSettingsSettings); + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..e3d773736b47 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.RegionSnapshotSettingsSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + RegionSnapshotSettingsSettings regionSnapshotSettingsSettings = + RegionSnapshotSettingsSettings.newBuilder().setEndpoint(myEndpoint).build(); + RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create(regionSnapshotSettingsSettings); + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/AsyncGet.java new file mode 100644 index 000000000000..c41ce795d2ea --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/AsyncGet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + GetRegionSnapshotSettingRequest request = + GetRegionSnapshotSettingRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + ApiFuture future = + regionSnapshotSettingsClient.getCallable().futureCall(request); + // Do something. + SnapshotSettings response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGet.java new file mode 100644 index 000000000000..43fe9a66c19a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Get_sync] +import com.google.cloud.compute.v1.GetRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + GetRegionSnapshotSettingRequest request = + GetRegionSnapshotSettingRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .build(); + SnapshotSettings response = regionSnapshotSettingsClient.get(request); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGetStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGetStringString.java new file mode 100644 index 000000000000..5fdcebb6a847 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/get/SyncGetStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Get_StringString_sync] +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; + +public class SyncGetStringString { + + public static void main(String[] args) throws Exception { + syncGetStringString(); + } + + public static void syncGetStringString() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + SnapshotSettings response = regionSnapshotSettingsClient.get(project, region); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Get_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatch.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatch.java new file mode 100644 index 000000000000..eae14667e5bf --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatch.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Patch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; +import com.google.longrunning.Operation; + +public class AsyncPatch { + + public static void main(String[] args) throws Exception { + asyncPatch(); + } + + public static void asyncPatch() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + PatchRegionSnapshotSettingRequest request = + PatchRegionSnapshotSettingRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshotSettingsResource(SnapshotSettings.newBuilder().build()) + .setUpdateMask("updateMask-296147115") + .build(); + ApiFuture future = + regionSnapshotSettingsClient.patchCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Patch_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatchLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatchLRO.java new file mode 100644 index 000000000000..32117622081e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/AsyncPatchLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Patch_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; + +public class AsyncPatchLRO { + + public static void main(String[] args) throws Exception { + asyncPatchLRO(); + } + + public static void asyncPatchLRO() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + PatchRegionSnapshotSettingRequest request = + PatchRegionSnapshotSettingRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshotSettingsResource(SnapshotSettings.newBuilder().build()) + .setUpdateMask("updateMask-296147115") + .build(); + OperationFuture future = + regionSnapshotSettingsClient.patchOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Patch_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatch.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatch.java new file mode 100644 index 000000000000..69781f74f60b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatch.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Patch_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.PatchRegionSnapshotSettingRequest; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; + +public class SyncPatch { + + public static void main(String[] args) throws Exception { + syncPatch(); + } + + public static void syncPatch() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + PatchRegionSnapshotSettingRequest request = + PatchRegionSnapshotSettingRequest.newBuilder() + .setProject("project-309310695") + .setRegion("region-934795532") + .setRequestId("requestId693933066") + .setSnapshotSettingsResource(SnapshotSettings.newBuilder().build()) + .setUpdateMask("updateMask-296147115") + .build(); + Operation response = regionSnapshotSettingsClient.patchAsync(request).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Patch_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatchStringStringSnapshotsettings.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatchStringStringSnapshotsettings.java new file mode 100644 index 000000000000..5027abacee63 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettings/patch/SyncPatchStringStringSnapshotsettings.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettings_Patch_StringStringSnapshotsettings_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.RegionSnapshotSettingsClient; +import com.google.cloud.compute.v1.SnapshotSettings; + +public class SyncPatchStringStringSnapshotsettings { + + public static void main(String[] args) throws Exception { + syncPatchStringStringSnapshotsettings(); + } + + public static void syncPatchStringStringSnapshotsettings() 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 (RegionSnapshotSettingsClient regionSnapshotSettingsClient = + RegionSnapshotSettingsClient.create()) { + String project = "project-309310695"; + String region = "region-934795532"; + SnapshotSettings snapshotSettingsResource = SnapshotSettings.newBuilder().build(); + Operation response = + regionSnapshotSettingsClient.patchAsync(project, region, snapshotSettingsResource).get(); + } + } +} +// [END compute_v1_generated_RegionSnapshotSettings_Patch_StringStringSnapshotsettings_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/get/SyncGet.java new file mode 100644 index 000000000000..012d14d82aff --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettingsSettings_Get_sync] +import com.google.cloud.compute.v1.RegionSnapshotSettingsSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionSnapshotSettingsSettings.Builder regionSnapshotSettingsSettingsBuilder = + RegionSnapshotSettingsSettings.newBuilder(); + regionSnapshotSettingsSettingsBuilder + .getSettings() + .setRetrySettings( + regionSnapshotSettingsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionSnapshotSettingsSettings regionSnapshotSettingsSettings = + regionSnapshotSettingsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionSnapshotSettingsSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/patch/SyncPatch.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/patch/SyncPatch.java new file mode 100644 index 000000000000..e0ca2d0f0f53 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotsettingssettings/patch/SyncPatch.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotSettingsSettings_Patch_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.RegionSnapshotSettingsSettings; +import java.time.Duration; + +public class SyncPatch { + + public static void main(String[] args) throws Exception { + syncPatch(); + } + + public static void syncPatch() 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 + RegionSnapshotSettingsSettings.Builder regionSnapshotSettingsSettingsBuilder = + RegionSnapshotSettingsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionSnapshotSettingsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionSnapshotSettingsSettings_Patch_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/delete/SyncDelete.java new file mode 100644 index 000000000000..3c5389c3db4b --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotsSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.RegionSnapshotsSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + RegionSnapshotsSettings.Builder regionSnapshotsSettingsBuilder = + RegionSnapshotsSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionSnapshotsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionSnapshotsSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/get/SyncGet.java new file mode 100644 index 000000000000..662f6e15cfb4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/regionsnapshotssettings/get/SyncGet.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_RegionSnapshotsSettings_Get_sync] +import com.google.cloud.compute.v1.RegionSnapshotsSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionSnapshotsSettings.Builder regionSnapshotsSettingsBuilder = + RegionSnapshotsSettings.newBuilder(); + regionSnapshotsSettingsBuilder + .getSettings() + .setRetrySettings( + regionSnapshotsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionSnapshotsSettings regionSnapshotsSettings = regionSnapshotsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionSnapshotsSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKey.java new file mode 100644 index 000000000000..4560e5707760 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKey.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Snapshots_UpdateKmsKey_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.SnapshotsClient; +import com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKey(); + } + + public static void asyncUpdateKmsKey() 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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) { + UpdateKmsKeySnapshotRequest request = + UpdateKmsKeySnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .setSnapshotUpdateKmsKeyRequestResource( + SnapshotUpdateKmsKeyRequest.newBuilder().build()) + .build(); + ApiFuture future = snapshotsClient.updateKmsKeyCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_Snapshots_UpdateKmsKey_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java new file mode 100644 index 000000000000..9fa8be6f3a7f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/AsyncUpdateKmsKeyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Snapshots_UpdateKmsKey_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.SnapshotsClient; +import com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; + +public class AsyncUpdateKmsKeyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateKmsKeyLRO(); + } + + public static void asyncUpdateKmsKeyLRO() 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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) { + UpdateKmsKeySnapshotRequest request = + UpdateKmsKeySnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .setSnapshotUpdateKmsKeyRequestResource( + SnapshotUpdateKmsKeyRequest.newBuilder().build()) + .build(); + OperationFuture future = + snapshotsClient.updateKmsKeyOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_Snapshots_UpdateKmsKey_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKey.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKey.java new file mode 100644 index 000000000000..5608262ec9fc --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKey.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Snapshots_UpdateKmsKey_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.SnapshotsClient; +import com.google.cloud.compute.v1.UpdateKmsKeySnapshotRequest; + +public class SyncUpdateKmsKey { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKey(); + } + + public static void syncUpdateKmsKey() 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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) { + UpdateKmsKeySnapshotRequest request = + UpdateKmsKeySnapshotRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setSnapshot("snapshot284874180") + .setSnapshotUpdateKmsKeyRequestResource( + SnapshotUpdateKmsKeyRequest.newBuilder().build()) + .build(); + Operation response = snapshotsClient.updateKmsKeyAsync(request).get(); + } + } +} +// [END compute_v1_generated_Snapshots_UpdateKmsKey_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest.java new file mode 100644 index 000000000000..a7508c8e62c8 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/snapshots/updatekmskey/SyncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_Snapshots_UpdateKmsKey_StringStringSnapshotupdatekmskeyrequest_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest; +import com.google.cloud.compute.v1.SnapshotsClient; + +public class SyncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest { + + public static void main(String[] args) throws Exception { + syncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest(); + } + + public static void syncUpdateKmsKeyStringStringSnapshotupdatekmskeyrequest() 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 (SnapshotsClient snapshotsClient = SnapshotsClient.create()) { + String project = "project-309310695"; + String snapshot = "snapshot284874180"; + SnapshotUpdateKmsKeyRequest snapshotUpdateKmsKeyRequestResource = + SnapshotUpdateKmsKeyRequest.newBuilder().build(); + Operation response = + snapshotsClient + .updateKmsKeyAsync(project, snapshot, snapshotUpdateKmsKeyRequestResource) + .get(); + } + } +} +// [END compute_v1_generated_Snapshots_UpdateKmsKey_StringStringSnapshotupdatekmskeyrequest_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/delete/SyncDelete.java new file mode 100644 index 000000000000..4e224932c305 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_InstantSnapshotGroupsStubSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.InstantSnapshotGroupsStubSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + InstantSnapshotGroupsStubSettings.Builder instantSnapshotGroupsSettingsBuilder = + InstantSnapshotGroupsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + instantSnapshotGroupsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_InstantSnapshotGroupsStubSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..3b2b5fd69bca --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/instantsnapshotgroupsstubsettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_InstantSnapshotGroupsStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.InstantSnapshotGroupsStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + InstantSnapshotGroupsStubSettings.Builder instantSnapshotGroupsSettingsBuilder = + InstantSnapshotGroupsStubSettings.newBuilder(); + instantSnapshotGroupsSettingsBuilder + .getSettings() + .setRetrySettings( + instantSnapshotGroupsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + InstantSnapshotGroupsStubSettings instantSnapshotGroupsSettings = + instantSnapshotGroupsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_InstantSnapshotGroupsStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/delete/SyncDelete.java new file mode 100644 index 000000000000..5f840172b274 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionBackendBucketsStubSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.RegionBackendBucketsStubSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + RegionBackendBucketsStubSettings.Builder regionBackendBucketsSettingsBuilder = + RegionBackendBucketsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionBackendBucketsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionBackendBucketsStubSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..b5c2931945b2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionbackendbucketsstubsettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionBackendBucketsStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.RegionBackendBucketsStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionBackendBucketsStubSettings.Builder regionBackendBucketsSettingsBuilder = + RegionBackendBucketsStubSettings.newBuilder(); + regionBackendBucketsSettingsBuilder + .getSettings() + .setRetrySettings( + regionBackendBucketsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionBackendBucketsStubSettings regionBackendBucketsSettings = + regionBackendBucketsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionBackendBucketsStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/cancel/SyncCancel.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/cancel/SyncCancel.java new file mode 100644 index 000000000000..f8a814ac2718 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/cancel/SyncCancel.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequestsStubSettings_Cancel_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerResizeRequestsStubSettings; +import java.time.Duration; + +public class SyncCancel { + + public static void main(String[] args) throws Exception { + syncCancel(); + } + + public static void syncCancel() 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 + RegionInstanceGroupManagerResizeRequestsStubSettings.Builder + regionInstanceGroupManagerResizeRequestsSettingsBuilder = + RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionInstanceGroupManagerResizeRequestsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequestsStubSettings_Cancel_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..080f2d136fbb --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstancegroupmanagerresizerequestsstubsettings/get/SyncGet.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionInstanceGroupManagerResizeRequestsStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerResizeRequestsStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionInstanceGroupManagerResizeRequestsStubSettings.Builder + regionInstanceGroupManagerResizeRequestsSettingsBuilder = + RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder(); + regionInstanceGroupManagerResizeRequestsSettingsBuilder + .getSettings() + .setRetrySettings( + regionInstanceGroupManagerResizeRequestsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionInstanceGroupManagerResizeRequestsStubSettings + regionInstanceGroupManagerResizeRequestsSettings = + regionInstanceGroupManagerResizeRequestsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionInstanceGroupManagerResizeRequestsStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/delete/SyncDelete.java new file mode 100644 index 000000000000..6ab4dff55b53 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroupsStubSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.RegionInstantSnapshotGroupsStubSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + RegionInstantSnapshotGroupsStubSettings.Builder regionInstantSnapshotGroupsSettingsBuilder = + RegionInstantSnapshotGroupsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionInstantSnapshotGroupsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroupsStubSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..90b3410471af --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regioninstantsnapshotgroupsstubsettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionInstantSnapshotGroupsStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.RegionInstantSnapshotGroupsStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionInstantSnapshotGroupsStubSettings.Builder regionInstantSnapshotGroupsSettingsBuilder = + RegionInstantSnapshotGroupsStubSettings.newBuilder(); + regionInstantSnapshotGroupsSettingsBuilder + .getSettings() + .setRetrySettings( + regionInstantSnapshotGroupsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionInstantSnapshotGroupsStubSettings regionInstantSnapshotGroupsSettings = + regionInstantSnapshotGroupsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionInstantSnapshotGroupsStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..a4a0365419a4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionSnapshotSettingsStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.RegionSnapshotSettingsStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionSnapshotSettingsStubSettings.Builder regionSnapshotSettingsSettingsBuilder = + RegionSnapshotSettingsStubSettings.newBuilder(); + regionSnapshotSettingsSettingsBuilder + .getSettings() + .setRetrySettings( + regionSnapshotSettingsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionSnapshotSettingsStubSettings regionSnapshotSettingsSettings = + regionSnapshotSettingsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionSnapshotSettingsStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/patch/SyncPatch.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/patch/SyncPatch.java new file mode 100644 index 000000000000..ec08923c1df5 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsettingsstubsettings/patch/SyncPatch.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionSnapshotSettingsStubSettings_Patch_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.RegionSnapshotSettingsStubSettings; +import java.time.Duration; + +public class SyncPatch { + + public static void main(String[] args) throws Exception { + syncPatch(); + } + + public static void syncPatch() 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 + RegionSnapshotSettingsStubSettings.Builder regionSnapshotSettingsSettingsBuilder = + RegionSnapshotSettingsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionSnapshotSettingsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionSnapshotSettingsStubSettings_Patch_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/delete/SyncDelete.java new file mode 100644 index 000000000000..b997a9c5475f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionSnapshotsStubSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.RegionSnapshotsStubSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + RegionSnapshotsStubSettings.Builder regionSnapshotsSettingsBuilder = + RegionSnapshotsStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + regionSnapshotsSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_RegionSnapshotsStubSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..6f9ed7e276a6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/regionsnapshotsstubsettings/get/SyncGet.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_RegionSnapshotsStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.RegionSnapshotsStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + RegionSnapshotsStubSettings.Builder regionSnapshotsSettingsBuilder = + RegionSnapshotsStubSettings.newBuilder(); + regionSnapshotsSettingsBuilder + .getSettings() + .setRetrySettings( + regionSnapshotsSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + RegionSnapshotsStubSettings regionSnapshotsSettings = regionSnapshotsSettingsBuilder.build(); + } +} +// [END compute_v1_generated_RegionSnapshotsStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/delete/SyncDelete.java new file mode 100644 index 000000000000..08a6edb86c1e --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_ZoneVmExtensionPoliciesStubSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.stub.ZoneVmExtensionPoliciesStubSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + ZoneVmExtensionPoliciesStubSettings.Builder zoneVmExtensionPoliciesSettingsBuilder = + ZoneVmExtensionPoliciesStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + zoneVmExtensionPoliciesSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_ZoneVmExtensionPoliciesStubSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/get/SyncGet.java new file mode 100644 index 000000000000..17ae59d54a3a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/stub/zonevmextensionpoliciesstubsettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.stub.samples; + +// [START compute_v1_generated_ZoneVmExtensionPoliciesStubSettings_Get_sync] +import com.google.cloud.compute.v1.stub.ZoneVmExtensionPoliciesStubSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + ZoneVmExtensionPoliciesStubSettings.Builder zoneVmExtensionPoliciesSettingsBuilder = + ZoneVmExtensionPoliciesStubSettings.newBuilder(); + zoneVmExtensionPoliciesSettingsBuilder + .getSettings() + .setRetrySettings( + zoneVmExtensionPoliciesSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ZoneVmExtensionPoliciesStubSettings zoneVmExtensionPoliciesSettings = + zoneVmExtensionPoliciesSettingsBuilder.build(); + } +} +// [END compute_v1_generated_ZoneVmExtensionPoliciesStubSettings_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetCredentialsProvider.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..6f8bf9bf0564 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesSettings; +import com.google.cloud.compute.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated 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 + ZoneVmExtensionPoliciesSettings zoneVmExtensionPoliciesSettings = + ZoneVmExtensionPoliciesSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create(zoneVmExtensionPoliciesSettings); + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Create_SetCredentialsProvider_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetEndpoint.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..463c966731e6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Create_SetEndpoint_sync] +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesSettings; +import com.google.cloud.compute.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated 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 + ZoneVmExtensionPoliciesSettings zoneVmExtensionPoliciesSettings = + ZoneVmExtensionPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build(); + ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create(zoneVmExtensionPoliciesSettings); + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Create_SetEndpoint_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDelete.java new file mode 100644 index 000000000000..0c82a73875d6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDelete.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Delete_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; +import com.google.longrunning.Operation; + +public class AsyncDelete { + + public static void main(String[] args) throws Exception { + asyncDelete(); + } + + public static void asyncDelete() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + DeleteZoneVmExtensionPolicyRequest request = + DeleteZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setZone("zone3744684") + .build(); + ApiFuture future = + zoneVmExtensionPoliciesClient.deleteCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Delete_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDeleteLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDeleteLRO.java new file mode 100644 index 000000000000..7b8da28b1364 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/AsyncDeleteLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Delete_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class AsyncDeleteLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteLRO(); + } + + public static void asyncDeleteLRO() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + DeleteZoneVmExtensionPolicyRequest request = + DeleteZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setZone("zone3744684") + .build(); + OperationFuture future = + zoneVmExtensionPoliciesClient.deleteOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Delete_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDelete.java new file mode 100644 index 000000000000..02dbfc925737 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDelete.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Delete_sync] +import com.google.cloud.compute.v1.DeleteZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + DeleteZoneVmExtensionPolicyRequest request = + DeleteZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setZone("zone3744684") + .build(); + Operation response = zoneVmExtensionPoliciesClient.deleteAsync(request).get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDeleteStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDeleteStringStringString.java new file mode 100644 index 000000000000..c91241060672 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/delete/SyncDeleteStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Delete_StringStringString_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncDeleteStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteStringStringString(); + } + + public static void syncDeleteStringStringString() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String vmExtensionPolicy = "vmExtensionPolicy1236125338"; + Operation response = + zoneVmExtensionPoliciesClient.deleteAsync(project, zone, vmExtensionPolicy).get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Delete_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/AsyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/AsyncGet.java new file mode 100644 index 000000000000..b96d72dd07aa --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/AsyncGet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Get_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class AsyncGet { + + public static void main(String[] args) throws Exception { + asyncGet(); + } + + public static void asyncGet() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + GetZoneVmExtensionPolicyRequest request = + GetZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setZone("zone3744684") + .build(); + ApiFuture future = + zoneVmExtensionPoliciesClient.getCallable().futureCall(request); + // Do something. + VmExtensionPolicy response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Get_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGet.java new file mode 100644 index 000000000000..cd94d9d939a2 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Get_sync] +import com.google.cloud.compute.v1.GetZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + GetZoneVmExtensionPolicyRequest request = + GetZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setZone("zone3744684") + .build(); + VmExtensionPolicy response = zoneVmExtensionPoliciesClient.get(request); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Get_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGetStringStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGetStringStringString.java new file mode 100644 index 000000000000..26fc3239f105 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/get/SyncGetStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Get_StringStringString_sync] +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncGetStringStringString { + + public static void main(String[] args) throws Exception { + syncGetStringStringString(); + } + + public static void syncGetStringStringString() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String vmExtensionPolicy = "vmExtensionPolicy1236125338"; + VmExtensionPolicy response = + zoneVmExtensionPoliciesClient.get(project, zone, vmExtensionPolicy); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Get_StringStringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsert.java new file mode 100644 index 000000000000..f7e211abbd66 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsert.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Insert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; +import com.google.longrunning.Operation; + +public class AsyncInsert { + + public static void main(String[] args) throws Exception { + asyncInsert(); + } + + public static void asyncInsert() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + InsertZoneVmExtensionPolicyRequest request = + InsertZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build()) + .setZone("zone3744684") + .build(); + ApiFuture future = + zoneVmExtensionPoliciesClient.insertCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Insert_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsertLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsertLRO.java new file mode 100644 index 000000000000..aaa8174c6418 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/AsyncInsertLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Insert_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class AsyncInsertLRO { + + public static void main(String[] args) throws Exception { + asyncInsertLRO(); + } + + public static void asyncInsertLRO() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + InsertZoneVmExtensionPolicyRequest request = + InsertZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build()) + .setZone("zone3744684") + .build(); + OperationFuture future = + zoneVmExtensionPoliciesClient.insertOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Insert_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsert.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsert.java new file mode 100644 index 000000000000..f9a418efaad4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsert.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Insert_sync] +import com.google.cloud.compute.v1.InsertZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncInsert { + + public static void main(String[] args) throws Exception { + syncInsert(); + } + + public static void syncInsert() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + InsertZoneVmExtensionPolicyRequest request = + InsertZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build()) + .setZone("zone3744684") + .build(); + Operation response = zoneVmExtensionPoliciesClient.insertAsync(request).get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Insert_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsertStringStringVmextensionpolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsertStringStringVmextensionpolicy.java new file mode 100644 index 000000000000..dabe6a4c4ea4 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/insert/SyncInsertStringStringVmextensionpolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Insert_StringStringVmextensionpolicy_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncInsertStringStringVmextensionpolicy { + + public static void main(String[] args) throws Exception { + syncInsertStringStringVmextensionpolicy(); + } + + public static void syncInsertStringStringVmextensionpolicy() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build(); + Operation response = + zoneVmExtensionPoliciesClient.insertAsync(project, zone, vmExtensionPolicyResource).get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Insert_StringStringVmextensionpolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncList.java new file mode 100644 index 000000000000..8933a8963a7d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncList.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_List_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class AsyncList { + + public static void main(String[] args) throws Exception { + asyncList(); + } + + public static void asyncList() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + ListZoneVmExtensionPoliciesRequest request = + ListZoneVmExtensionPoliciesRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setZone("zone3744684") + .build(); + ApiFuture future = + zoneVmExtensionPoliciesClient.listPagedCallable().futureCall(request); + // Do something. + for (VmExtensionPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_List_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncListPaged.java new file mode 100644 index 000000000000..c4ed2cc3e9a6 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/AsyncListPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_List_Paged_async] +import com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.VmExtensionPolicyList; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; +import com.google.common.base.Strings; + +public class AsyncListPaged { + + public static void main(String[] args) throws Exception { + asyncListPaged(); + } + + public static void asyncListPaged() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + ListZoneVmExtensionPoliciesRequest request = + ListZoneVmExtensionPoliciesRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setZone("zone3744684") + .build(); + while (true) { + VmExtensionPolicyList response = zoneVmExtensionPoliciesClient.listCallable().call(request); + for (VmExtensionPolicy element : response.getItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_List_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncList.java new file mode 100644 index 000000000000..a262766d75dd --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncList.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_List_sync] +import com.google.cloud.compute.v1.ListZoneVmExtensionPoliciesRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncList { + + public static void main(String[] args) throws Exception { + syncList(); + } + + public static void syncList() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + ListZoneVmExtensionPoliciesRequest request = + ListZoneVmExtensionPoliciesRequest.newBuilder() + .setFilter("filter-1274492040") + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setZone("zone3744684") + .build(); + for (VmExtensionPolicy element : zoneVmExtensionPoliciesClient.list(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_List_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncListStringString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncListStringString.java new file mode 100644 index 000000000000..406e8394bb29 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/list/SyncListStringString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_List_StringString_sync] +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncListStringString { + + public static void main(String[] args) throws Exception { + syncListStringString(); + } + + public static void syncListStringString() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + for (VmExtensionPolicy element : + zoneVmExtensionPoliciesClient.list(project, zone).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_List_StringString_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdate.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdate.java new file mode 100644 index 000000000000..2742627872a0 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdate.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Update_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; +import com.google.longrunning.Operation; + +public class AsyncUpdate { + + public static void main(String[] args) throws Exception { + asyncUpdate(); + } + + public static void asyncUpdate() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + UpdateZoneVmExtensionPolicyRequest request = + UpdateZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build()) + .setZone("zone3744684") + .build(); + ApiFuture future = + zoneVmExtensionPoliciesClient.updateCallable().futureCall(request); + // Do something. + com.google.cloud.compute.v1.Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Update_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdateLRO.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdateLRO.java new file mode 100644 index 000000000000..d40d85b533af --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/AsyncUpdateLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Update_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class AsyncUpdateLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateLRO(); + } + + public static void asyncUpdateLRO() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + UpdateZoneVmExtensionPolicyRequest request = + UpdateZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build()) + .setZone("zone3744684") + .build(); + OperationFuture future = + zoneVmExtensionPoliciesClient.updateOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Update_LRO_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdate.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdate.java new file mode 100644 index 000000000000..ae697548e9aa --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdate.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Update_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.UpdateZoneVmExtensionPolicyRequest; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncUpdate { + + public static void main(String[] args) throws Exception { + syncUpdate(); + } + + public static void syncUpdate() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + UpdateZoneVmExtensionPolicyRequest request = + UpdateZoneVmExtensionPolicyRequest.newBuilder() + .setProject("project-309310695") + .setRequestId("requestId693933066") + .setVmExtensionPolicy("vmExtensionPolicy1236125338") + .setVmExtensionPolicyResource(VmExtensionPolicy.newBuilder().build()) + .setZone("zone3744684") + .build(); + Operation response = zoneVmExtensionPoliciesClient.updateAsync(request).get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Update_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdateStringStringStringVmextensionpolicy.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdateStringStringStringVmextensionpolicy.java new file mode 100644 index 000000000000..f4cf186aa728 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpolicies/update/SyncUpdateStringStringStringVmextensionpolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPolicies_Update_StringStringStringVmextensionpolicy_sync] +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.VmExtensionPolicy; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesClient; + +public class SyncUpdateStringStringStringVmextensionpolicy { + + public static void main(String[] args) throws Exception { + syncUpdateStringStringStringVmextensionpolicy(); + } + + public static void syncUpdateStringStringStringVmextensionpolicy() 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 (ZoneVmExtensionPoliciesClient zoneVmExtensionPoliciesClient = + ZoneVmExtensionPoliciesClient.create()) { + String project = "project-309310695"; + String zone = "zone3744684"; + String vmExtensionPolicy = "vmExtensionPolicy1236125338"; + VmExtensionPolicy vmExtensionPolicyResource = VmExtensionPolicy.newBuilder().build(); + Operation response = + zoneVmExtensionPoliciesClient + .updateAsync(project, zone, vmExtensionPolicy, vmExtensionPolicyResource) + .get(); + } + } +} +// [END compute_v1_generated_ZoneVmExtensionPolicies_Update_StringStringStringVmextensionpolicy_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/delete/SyncDelete.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/delete/SyncDelete.java new file mode 100644 index 000000000000..91080f217ce3 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/delete/SyncDelete.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPoliciesSettings_Delete_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesSettings; +import java.time.Duration; + +public class SyncDelete { + + public static void main(String[] args) throws Exception { + syncDelete(); + } + + public static void syncDelete() 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 + ZoneVmExtensionPoliciesSettings.Builder zoneVmExtensionPoliciesSettingsBuilder = + ZoneVmExtensionPoliciesSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + zoneVmExtensionPoliciesSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END compute_v1_generated_ZoneVmExtensionPoliciesSettings_Delete_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/get/SyncGet.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/get/SyncGet.java new file mode 100644 index 000000000000..17e01193080a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/zonevmextensionpoliciessettings/get/SyncGet.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_ZoneVmExtensionPoliciesSettings_Get_sync] +import com.google.cloud.compute.v1.ZoneVmExtensionPoliciesSettings; +import java.time.Duration; + +public class SyncGet { + + public static void main(String[] args) throws Exception { + syncGet(); + } + + public static void syncGet() 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 + ZoneVmExtensionPoliciesSettings.Builder zoneVmExtensionPoliciesSettingsBuilder = + ZoneVmExtensionPoliciesSettings.newBuilder(); + zoneVmExtensionPoliciesSettingsBuilder + .getSettings() + .setRetrySettings( + zoneVmExtensionPoliciesSettingsBuilder + .getSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + ZoneVmExtensionPoliciesSettings zoneVmExtensionPoliciesSettings = + zoneVmExtensionPoliciesSettingsBuilder.build(); + } +} +// [END compute_v1_generated_ZoneVmExtensionPoliciesSettings_Get_sync] diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java index e77f51058a03..aa2c0a782a8e 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java @@ -720,13 +720,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021AuthorizationMode\022\031\n" + "\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n" + "\022AUTH_MODE_IAM_AUTH\020\001\022\026\n" - + "\022AUTH_MODE_DISABLED\020\002*\217\001\n" + + "\022AUTH_MODE_DISABLED\020\002*\336\001\n" + "\010NodeType\022\031\n" + "\025NODE_TYPE_UNSPECIFIED\020\000\022\032\n" + "\026REDIS_SHARED_CORE_NANO\020\001\022\030\n" + "\024REDIS_HIGHMEM_MEDIUM\020\002\022\030\n" + "\024REDIS_HIGHMEM_XLARGE\020\003\022\030\n" - + "\024REDIS_STANDARD_SMALL\020\004*\231\001\n" + + "\024REDIS_STANDARD_SMALL\020\004\022\030\n" + + "\024REDIS_HIGHCPU_MEDIUM\020\007\022\030\n" + + "\024REDIS_STANDARD_LARGE\020\010\022\031\n" + + "\025REDIS_HIGHMEM_2XLARGE\020\t*\231\001\n" + "\025TransitEncryptionMode\022\'\n" + "#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022$\n" + " TRANSIT_ENCRYPTION_MODE_DISABLED\020\001\0221\n" @@ -742,107 +745,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" + "\026CONNECTION_TYPE_READER\020\0032\242\032\n" + "\021CloudRedisCluster\022\266\001\n" - + "\014ListClusters\0222.google.cloud.redis.cluster.v1.ListClustersRequest\0323.goog" - + "le.cloud.redis.cluster.v1.ListClustersRe" - + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/clusters\022\243\001\n\n" - + "GetCluster\0220.google.cloud.redis.cluster.v1.Get" - + "ClusterRequest\032&.google.cloud.redis.clus" - + "ter.v1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/clusters/*}\022\341\001\n\r" - + "UpdateCluster\0223.google.cloud.redis.clust" - + "er.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"|\312A\036\n" - + "\007Cluster\022\023google." - + "protobuf.Any\332A\023cluster,update_mask\202\323\344\223\002?" - + "24/v1/{cluster.name=projects/*/locations/*/clusters/*}:\007cluster\022\317\001\n\r" - + "DeleteCluster\0223.google.cloud.redis.cluster.v1.Delete" - + "ClusterRequest\032\035.google.longrunning.Operation\"j\312A,\n" - + "\025google.protobuf.Empty\022\023googl" - + "e.protobuf.Any\332A\004name\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/clusters/*}\022\337\001\n\r" - + "CreateCluster\0223.google.cloud.redis.cluster" - + ".v1.CreateClusterRequest\032\035.google.longru", - "nning.Operation\"z\312A\036\n\007Cluster\022\023google.pr" - + "otobuf.Any\332A\031parent,cluster,cluster_id\202\323" - + "\344\223\0027\",/v1/{parent=projects/*/locations/*" - + "}/clusters:\007cluster\022\355\001\n\036GetClusterCertif" - + "icateAuthority\022D.google.cloud.redis.clus" - + "ter.v1.GetClusterCertificateAuthorityReq" - + "uest\0323.google.cloud.redis.cluster.v1.Cer" - + "tificateAuthority\"P\332A\004name\202\323\344\223\002C\022A/v1/{n" - + "ame=projects/*/locations/*/clusters/*/ce" - + "rtificateAuthority}\022\214\002\n%GetSharedRegiona" - + "lCertificateAuthority\022K.google.cloud.red" - + "is.cluster.v1.GetSharedRegionalCertifica" - + "teAuthorityRequest\032A.google.cloud.redis." - + "cluster.v1.SharedRegionalCertificateAuth" - + "ority\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=projects" - + "/*/locations/*/sharedRegionalCertificate" - + "Authority}\022\236\002\n\034RescheduleClusterMaintena" - + "nce\022B.google.cloud.redis.cluster.v1.Resc" - + "heduleClusterMaintenanceRequest\032\035.google" - + ".longrunning.Operation\"\232\001\312A\036\n\007Cluster\022\023g" - + "oogle.protobuf.Any\332A\"name,reschedule_typ" - + "e,schedule_time\202\323\344\223\002N\"I/v1/{name=project" - + "s/*/locations/*/clusters/*}:rescheduleCl" - + "usterMaintenance:\001*\022\332\001\n\025ListBackupCollec" - + "tions\022;.google.cloud.redis.cluster.v1.Li" - + "stBackupCollectionsRequest\032<.google.clou" - + "d.redis.cluster.v1.ListBackupCollections" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=p" - + "rojects/*/locations/*}/backupCollections" - + "\022\307\001\n\023GetBackupCollection\0229.google.cloud." - + "redis.cluster.v1.GetBackupCollectionRequ" - + "est\032/.google.cloud.redis.cluster.v1.Back" - + "upCollection\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=p" - + "rojects/*/locations/*/backupCollections/" - + "*}\022\306\001\n\013ListBackups\0221.google.cloud.redis." - + "cluster.v1.ListBackupsRequest\0322.google.c" - + "loud.redis.cluster.v1.ListBackupsRespons" - + "e\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=projects" - + "/*/locations/*/backupCollections/*}/back" - + "ups\022\263\001\n\tGetBackup\022/.google.cloud.redis.c" - + "luster.v1.GetBackupRequest\032%.google.clou" - + "d.redis.cluster.v1.Backup\"N\332A\004name\202\323\344\223\002A" - + "\022?/v1/{name=projects/*/locations/*/backu" - + "pCollections/*/backups/*}\022\340\001\n\014DeleteBack" - + "up\0222.google.cloud.redis.cluster.v1.Delet" - + "eBackupRequest\032\035.google.longrunning.Oper" - + "ation\"}\312A,\n\025google.protobuf.Empty\022\023googl" - + "e.protobuf.Any\332A\004name\202\323\344\223\002A*?/v1/{name=p" - + "rojects/*/locations/*/backupCollections/" - + "*/backups/*}\022\324\001\n\014ExportBackup\0222.google.c" - + "loud.redis.cluster.v1.ExportBackupReques" - + "t\032\035.google.longrunning.Operation\"q\312A\035\n\006B" - + "ackup\022\023google.protobuf.Any\202\323\344\223\002K\"F/v1/{n" - + "ame=projects/*/locations/*/backupCollect" - + "ions/*/backups/*}:export:\001*\022\313\001\n\rBackupCl" - + "uster\0223.google.cloud.redis.cluster.v1.Ba" - + "ckupClusterRequest\032\035.google.longrunning." - + "Operation\"f\312A\036\n\007Cluster\022\023google.protobuf" - + ".Any\332A\004name\202\323\344\223\0028\"3/v1/{name=projects/*/" - + "locations/*/clusters/*}:backup:\001*\032H\312A\024re" - + "dis.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\336\006\n!com.goog" - + "le.cloud.redis.cluster.v1B\026CloudRedisClu" - + "sterProtoP\001Z;cloud.google.com/go/redis/c" - + "luster/apiv1/clusterpb;clusterpb\352\002!Googl" - + "e::Cloud::Redis::Cluster::V1\352An\n%compute" - + ".googleapis.com/ForwardingRule\022Eprojects" - + "/{project}/regions/{region}/forwardingRu" - + "les/{forwarding_rule}\352AN\n\036compute.google" - + "apis.com/Network\022,projects/{project}/glo" - + "bal/networks/{network}\352Aw\n(compute.googl" - + "eapis.com/ServiceAttachment\022Kprojects/{p" - + "roject}/regions/{region}/serviceAttachme" - + "nts/{service_attachment}\352Ax\n!cloudkms.go" - + "ogleapis.com/CryptoKey\022Sprojects/{projec" - + "t}/locations/{location}/keyRings/{key_ri" - + "ng}/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkm" - + "s.googleapis.com/CryptoKeyVersion\022zproje" - + "cts/{project}/locations/{location}/keyRi" - + "ngs/{key_ring}/cryptoKeys/{crypto_key}/c" - + "ryptoKeyVersions/{crypto_key_version}\352A\\" - + "\n\037privateca.googleapis.com/CaPool\0229proje" - + "cts/{project}/locations/{location}/caPoo" - + "ls/{ca_pool}b\006proto3" + + "\014ListClusters\0222.google.cloud.redis.cluster.v1.ListClustersRequest\0323.googl" + + "e.cloud.redis.cluster.v1.ListClustersRes" + + "ponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/clusters\022\243\001\n\n" + + "GetCluster\0220.google.cloud.redis.cluster.v1.GetC" + + "lusterRequest\032&.google.cloud.redis.clust" + + "er.v1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/clusters/*}\022\341\001\n\r" + + "UpdateCluster\0223.google.cloud.redis.cluste" + + "r.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"|\312A\036\n" + + "\007Cluster\022\023google.p" + + "rotobuf.Any\332A\023cluster,update_mask\202\323\344\223\002?2" + + "4/v1/{cluster.name=projects/*/locations/*/clusters/*}:\007cluster\022\317\001\n\r" + + "DeleteCluster\0223.google.cloud.redis.cluster.v1.DeleteC" + + "lusterRequest\032\035.google.longrunning.Operation\"j\312A,\n" + + "\025google.protobuf.Empty\022\023google" + + ".protobuf.Any\332A\004name\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/clusters/*}\022\337\001\n\r" + + "Cre", + "ateCluster\0223.google.cloud.redis.cluster." + + "v1.CreateClusterRequest\032\035.google.longrun" + + "ning.Operation\"z\312A\036\n\007Cluster\022\023google.pro" + + "tobuf.Any\332A\031parent,cluster,cluster_id\202\323\344" + + "\223\0027\",/v1/{parent=projects/*/locations/*}" + + "/clusters:\007cluster\022\355\001\n\036GetClusterCertifi" + + "cateAuthority\022D.google.cloud.redis.clust" + + "er.v1.GetClusterCertificateAuthorityRequ" + + "est\0323.google.cloud.redis.cluster.v1.Cert" + + "ificateAuthority\"P\332A\004name\202\323\344\223\002C\022A/v1/{na" + + "me=projects/*/locations/*/clusters/*/cer" + + "tificateAuthority}\022\214\002\n%GetSharedRegional" + + "CertificateAuthority\022K.google.cloud.redi" + + "s.cluster.v1.GetSharedRegionalCertificat" + + "eAuthorityRequest\032A.google.cloud.redis.c" + + "luster.v1.SharedRegionalCertificateAutho" + + "rity\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=projects/" + + "*/locations/*/sharedRegionalCertificateA" + + "uthority}\022\236\002\n\034RescheduleClusterMaintenan" + + "ce\022B.google.cloud.redis.cluster.v1.Resch" + + "eduleClusterMaintenanceRequest\032\035.google." + + "longrunning.Operation\"\232\001\312A\036\n\007Cluster\022\023go" + + "ogle.protobuf.Any\332A\"name,reschedule_type" + + ",schedule_time\202\323\344\223\002N\"I/v1/{name=projects" + + "/*/locations/*/clusters/*}:rescheduleClu" + + "sterMaintenance:\001*\022\332\001\n\025ListBackupCollect" + + "ions\022;.google.cloud.redis.cluster.v1.Lis" + + "tBackupCollectionsRequest\032<.google.cloud" + + ".redis.cluster.v1.ListBackupCollectionsR" + + "esponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=pr" + + "ojects/*/locations/*}/backupCollections\022" + + "\307\001\n\023GetBackupCollection\0229.google.cloud.r" + + "edis.cluster.v1.GetBackupCollectionReque" + + "st\032/.google.cloud.redis.cluster.v1.Backu" + + "pCollection\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=pr" + + "ojects/*/locations/*/backupCollections/*" + + "}\022\306\001\n\013ListBackups\0221.google.cloud.redis.c" + + "luster.v1.ListBackupsRequest\0322.google.cl" + + "oud.redis.cluster.v1.ListBackupsResponse" + + "\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=projects/" + + "*/locations/*/backupCollections/*}/backu" + + "ps\022\263\001\n\tGetBackup\022/.google.cloud.redis.cl" + + "uster.v1.GetBackupRequest\032%.google.cloud" + + ".redis.cluster.v1.Backup\"N\332A\004name\202\323\344\223\002A\022" + + "?/v1/{name=projects/*/locations/*/backup" + + "Collections/*/backups/*}\022\340\001\n\014DeleteBacku" + + "p\0222.google.cloud.redis.cluster.v1.Delete" + + "BackupRequest\032\035.google.longrunning.Opera" + + "tion\"}\312A,\n\025google.protobuf.Empty\022\023google" + + ".protobuf.Any\332A\004name\202\323\344\223\002A*?/v1/{name=pr" + + "ojects/*/locations/*/backupCollections/*" + + "/backups/*}\022\324\001\n\014ExportBackup\0222.google.cl" + + "oud.redis.cluster.v1.ExportBackupRequest" + + "\032\035.google.longrunning.Operation\"q\312A\035\n\006Ba" + + "ckup\022\023google.protobuf.Any\202\323\344\223\002K\"F/v1/{na" + + "me=projects/*/locations/*/backupCollecti" + + "ons/*/backups/*}:export:\001*\022\313\001\n\rBackupClu" + + "ster\0223.google.cloud.redis.cluster.v1.Bac" + + "kupClusterRequest\032\035.google.longrunning.O" + + "peration\"f\312A\036\n\007Cluster\022\023google.protobuf." + + "Any\332A\004name\202\323\344\223\0028\"3/v1/{name=projects/*/l" + + "ocations/*/clusters/*}:backup:\001*\032H\312A\024red" + + "is.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\336\006\n!com.googl" + + "e.cloud.redis.cluster.v1B\026CloudRedisClus" + + "terProtoP\001Z;cloud.google.com/go/redis/cl" + + "uster/apiv1/clusterpb;clusterpb\352\002!Google" + + "::Cloud::Redis::Cluster::V1\352An\n%compute." + + "googleapis.com/ForwardingRule\022Eprojects/" + + "{project}/regions/{region}/forwardingRul" + + "es/{forwarding_rule}\352AN\n\036compute.googlea" + + "pis.com/Network\022,projects/{project}/glob" + + "al/networks/{network}\352Aw\n(compute.google" + + "apis.com/ServiceAttachment\022Kprojects/{pr" + + "oject}/regions/{region}/serviceAttachmen" + + "ts/{service_attachment}\352Ax\n!cloudkms.goo" + + "gleapis.com/CryptoKey\022Sprojects/{project" + + "}/locations/{location}/keyRings/{key_rin" + + "g}/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkms" + + ".googleapis.com/CryptoKeyVersion\022zprojec" + + "ts/{project}/locations/{location}/keyRin" + + "gs/{key_ring}/cryptoKeys/{crypto_key}/cr" + + "yptoKeyVersions/{crypto_key_version}\352A\\\n" + + "\037privateca.googleapis.com/CaPool\0229projec" + + "ts/{project}/locations/{location}/caPool" + + "s/{ca_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java index f28904eb3360..b37d67dc8284 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java @@ -81,6 +81,36 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { * REDIS_STANDARD_SMALL = 4; */ REDIS_STANDARD_SMALL(4), + /** + * + * + *
+   * Redis highcpu medium node_type.
+   * 
+ * + * REDIS_HIGHCPU_MEDIUM = 7; + */ + REDIS_HIGHCPU_MEDIUM(7), + /** + * + * + *
+   * Redis standard large node_type.
+   * 
+ * + * REDIS_STANDARD_LARGE = 8; + */ + REDIS_STANDARD_LARGE(8), + /** + * + * + *
+   * Redis highmem 2xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_2XLARGE = 9; + */ + REDIS_HIGHMEM_2XLARGE(9), UNRECOGNIZED(-1), ; @@ -149,6 +179,39 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REDIS_STANDARD_SMALL_VALUE = 4; + /** + * + * + *
+   * Redis highcpu medium node_type.
+   * 
+ * + * REDIS_HIGHCPU_MEDIUM = 7; + */ + public static final int REDIS_HIGHCPU_MEDIUM_VALUE = 7; + + /** + * + * + *
+   * Redis standard large node_type.
+   * 
+ * + * REDIS_STANDARD_LARGE = 8; + */ + public static final int REDIS_STANDARD_LARGE_VALUE = 8; + + /** + * + * + *
+   * Redis highmem 2xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_2XLARGE = 9; + */ + public static final int REDIS_HIGHMEM_2XLARGE_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -183,6 +246,12 @@ public static NodeType forNumber(int value) { return REDIS_HIGHMEM_XLARGE; case 4: return REDIS_STANDARD_SMALL; + case 7: + return REDIS_HIGHCPU_MEDIUM; + case 8: + return REDIS_STANDARD_LARGE; + case 9: + return REDIS_HIGHMEM_2XLARGE; default: return null; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto index a1bfdbb4e124..09afca8e47a9 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto @@ -319,6 +319,15 @@ enum NodeType { // Redis standard small node_type. REDIS_STANDARD_SMALL = 4; + + // Redis highcpu medium node_type. + REDIS_HIGHCPU_MEDIUM = 7; + + // Redis standard large node_type. + REDIS_STANDARD_LARGE = 8; + + // Redis highmem 2xlarge node_type. + REDIS_HIGHMEM_2XLARGE = 9; } // Available mode of in-transit encryption. diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java index 6a2aace86510..6d6effb0b523 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java @@ -720,13 +720,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021AuthorizationMode\022\031\n" + "\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n" + "\022AUTH_MODE_IAM_AUTH\020\001\022\026\n" - + "\022AUTH_MODE_DISABLED\020\002*\217\001\n" + + "\022AUTH_MODE_DISABLED\020\002*\336\001\n" + "\010NodeType\022\031\n" + "\025NODE_TYPE_UNSPECIFIED\020\000\022\032\n" + "\026REDIS_SHARED_CORE_NANO\020\001\022\030\n" + "\024REDIS_HIGHMEM_MEDIUM\020\002\022\030\n" + "\024REDIS_HIGHMEM_XLARGE\020\003\022\030\n" - + "\024REDIS_STANDARD_SMALL\020\004*\231\001\n" + + "\024REDIS_STANDARD_SMALL\020\004\022\030\n" + + "\024REDIS_HIGHCPU_MEDIUM\020\007\022\030\n" + + "\024REDIS_STANDARD_LARGE\020\010\022\031\n" + + "\025REDIS_HIGHMEM_2XLARGE\020\t*\231\001\n" + "\025TransitEncryptionMode\022\'\n" + "#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022$\n" + " TRANSIT_ENCRYPTION_MODE_DISABLED\020\001\0221\n" @@ -742,113 +745,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" + "\026CONNECTION_TYPE_READER\020\0032\342\033\n" + "\021CloudRedisCluster\022\305\001\n" - + "\014ListClusters\0227.google.cloud.redis.cluster.v1beta1.ListClustersR" - + "equest\0328.google.cloud.redis.cluster.v1be" - + "ta1.ListClustersResponse\"B\332A\006parent\202\323\344\223\002" - + "3\0221/v1beta1/{parent=projects/*/locations/*}/clusters\022\262\001\n\n" - + "GetCluster\0225.google.cloud.redis.cluster.v1beta1.GetClusterReque" - + "st\032+.google.cloud.redis.cluster.v1beta1." - + "Cluster\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{name=projects/*/locations/*/clusters/*}\022\354\001\n\r" - + "UpdateCluster\0228.google.cloud.redis.cluster" - + ".v1beta1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\201\001\312A\036\n" - + "\007Cluster\022\023google.protobuf.Any\332A\023cluster,update_mask\202\323", - "\344\223\002D29/v1beta1/{cluster.name=projects/*/" - + "locations/*/clusters/*}:\007cluster\022\331\001\n\rDel" - + "eteCluster\0228.google.cloud.redis.cluster." - + "v1beta1.DeleteClusterRequest\032\035.google.lo" - + "ngrunning.Operation\"o\312A,\n\025google.protobu" + + "\014ListClusters\0227.google.cloud.redis.cluster.v1beta1.ListClustersRe" + + "quest\0328.google.cloud.redis.cluster.v1bet" + + "a1.ListClustersResponse\"B\332A\006parent\202\323\344\223\0023" + + "\0221/v1beta1/{parent=projects/*/locations/*}/clusters\022\262\001\n\n" + + "GetCluster\0225.google.cloud.redis.cluster.v1beta1.GetClusterReques" + + "t\032+.google.cloud.redis.cluster.v1beta1.C" + + "luster\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{name=projects/*/locations/*/clusters/*}\022\354\001\n\r" + + "UpdateCluster\0228.google.cloud.redis.cluster." + + "v1beta1.UpdateClusterRequest\032\035.google.lo", + "ngrunning.Operation\"\201\001\312A\036\n\007Cluster\022\023goog" + + "le.protobuf.Any\332A\023cluster,update_mask\202\323\344" + + "\223\002D29/v1beta1/{cluster.name=projects/*/l" + + "ocations/*/clusters/*}:\007cluster\022\331\001\n\rDele" + + "teCluster\0228.google.cloud.redis.cluster.v" + + "1beta1.DeleteClusterRequest\032\035.google.lon" + + "grunning.Operation\"o\312A,\n\025google.protobuf" + + ".Empty\022\023google.protobuf.Any\332A\004name\202\323\344\223\0023" + + "*1/v1beta1/{name=projects/*/locations/*/" + + "clusters/*}\022\351\001\n\rCreateCluster\0228.google.c" + + "loud.redis.cluster.v1beta1.CreateCluster" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\312A\036\n\007Cluster\022\023google.protobuf.Any\332A\031pare" + + "nt,cluster,cluster_id\202\323\344\223\002<\"1/v1beta1/{p" + + "arent=projects/*/locations/*}/clusters:\007" + + "cluster\022\374\001\n\036GetClusterCertificateAuthori" + + "ty\022I.google.cloud.redis.cluster.v1beta1." + + "GetClusterCertificateAuthorityRequest\0328." + + "google.cloud.redis.cluster.v1beta1.Certi" + + "ficateAuthority\"U\332A\004name\202\323\344\223\002H\022F/v1beta1" + + "/{name=projects/*/locations/*/clusters/*" + + "/certificateAuthority}\022\233\002\n%GetSharedRegi" + + "onalCertificateAuthority\022P.google.cloud." + + "redis.cluster.v1beta1.GetSharedRegionalC" + + "ertificateAuthorityRequest\032F.google.clou" + + "d.redis.cluster.v1beta1.SharedRegionalCe" + + "rtificateAuthority\"X\332A\004name\202\323\344\223\002K\022I/v1be" + + "ta1/{name=projects/*/locations/*/sharedR" + + "egionalCertificateAuthority}\022\250\002\n\034Resched" + + "uleClusterMaintenance\022G.google.cloud.red" + + "is.cluster.v1beta1.RescheduleClusterMain" + + "tenanceRequest\032\035.google.longrunning.Oper" + + "ation\"\237\001\312A\036\n\007Cluster\022\023google.protobuf.An" + + "y\332A\"name,reschedule_type,schedule_time\202\323" + + "\344\223\002S\"N/v1beta1/{name=projects/*/location" + + "s/*/clusters/*}:rescheduleClusterMainten" + + "ance:\001*\022\351\001\n\025ListBackupCollections\022@.goog" + + "le.cloud.redis.cluster.v1beta1.ListBacku" + + "pCollectionsRequest\032A.google.cloud.redis" + + ".cluster.v1beta1.ListBackupCollectionsRe" + + "sponse\"K\332A\006parent\202\323\344\223\002<\022:/v1beta1/{paren" + + "t=projects/*/locations/*}/backupCollecti" + + "ons\022\326\001\n\023GetBackupCollection\022>.google.clo" + + "ud.redis.cluster.v1beta1.GetBackupCollec" + + "tionRequest\0324.google.cloud.redis.cluster" + + ".v1beta1.BackupCollection\"I\332A\004name\202\323\344\223\002<" + + "\022:/v1beta1/{name=projects/*/locations/*/" + + "backupCollections/*}\022\325\001\n\013ListBackups\0226.g" + + "oogle.cloud.redis.cluster.v1beta1.ListBa" + + "ckupsRequest\0327.google.cloud.redis.cluste" + + "r.v1beta1.ListBackupsResponse\"U\332A\006parent" + + "\202\323\344\223\002F\022D/v1beta1/{parent=projects/*/loca" + + "tions/*/backupCollections/*}/backups\022\302\001\n" + + "\tGetBackup\0224.google.cloud.redis.cluster." + + "v1beta1.GetBackupRequest\032*.google.cloud." + + "redis.cluster.v1beta1.Backup\"S\332A\004name\202\323\344" + + "\223\002F\022D/v1beta1/{name=projects/*/locations" + + "/*/backupCollections/*/backups/*}\022\353\001\n\014De" + + "leteBackup\0227.google.cloud.redis.cluster." + + "v1beta1.DeleteBackupRequest\032\035.google.lon" + + "grunning.Operation\"\202\001\312A,\n\025google.protobu" + "f.Empty\022\023google.protobuf.Any\332A\004name\202\323\344\223\002" - + "3*1/v1beta1/{name=projects/*/locations/*" - + "/clusters/*}\022\351\001\n\rCreateCluster\0228.google." - + "cloud.redis.cluster.v1beta1.CreateCluste" - + "rRequest\032\035.google.longrunning.Operation\"" - + "\177\312A\036\n\007Cluster\022\023google.protobuf.Any\332A\031par" - + "ent,cluster,cluster_id\202\323\344\223\002<\"1/v1beta1/{" - + "parent=projects/*/locations/*}/clusters:" - + "\007cluster\022\374\001\n\036GetClusterCertificateAuthor" - + "ity\022I.google.cloud.redis.cluster.v1beta1" - + ".GetClusterCertificateAuthorityRequest\0328" - + ".google.cloud.redis.cluster.v1beta1.Cert" - + "ificateAuthority\"U\332A\004name\202\323\344\223\002H\022F/v1beta" - + "1/{name=projects/*/locations/*/clusters/" - + "*/certificateAuthority}\022\233\002\n%GetSharedReg" - + "ionalCertificateAuthority\022P.google.cloud" - + ".redis.cluster.v1beta1.GetSharedRegional" - + "CertificateAuthorityRequest\032F.google.clo" - + "ud.redis.cluster.v1beta1.SharedRegionalC" - + "ertificateAuthority\"X\332A\004name\202\323\344\223\002K\022I/v1b" - + "eta1/{name=projects/*/locations/*/shared" - + "RegionalCertificateAuthority}\022\250\002\n\034Resche" - + "duleClusterMaintenance\022G.google.cloud.re" - + "dis.cluster.v1beta1.RescheduleClusterMai" - + "ntenanceRequest\032\035.google.longrunning.Ope" - + "ration\"\237\001\312A\036\n\007Cluster\022\023google.protobuf.A" - + "ny\332A\"name,reschedule_type,schedule_time\202" - + "\323\344\223\002S\"N/v1beta1/{name=projects/*/locatio" - + "ns/*/clusters/*}:rescheduleClusterMainte" - + "nance:\001*\022\351\001\n\025ListBackupCollections\022@.goo" - + "gle.cloud.redis.cluster.v1beta1.ListBack" - + "upCollectionsRequest\032A.google.cloud.redi" - + "s.cluster.v1beta1.ListBackupCollectionsR" - + "esponse\"K\332A\006parent\202\323\344\223\002<\022:/v1beta1/{pare" - + "nt=projects/*/locations/*}/backupCollect" - + "ions\022\326\001\n\023GetBackupCollection\022>.google.cl" - + "oud.redis.cluster.v1beta1.GetBackupColle" - + "ctionRequest\0324.google.cloud.redis.cluste" - + "r.v1beta1.BackupCollection\"I\332A\004name\202\323\344\223\002" - + "<\022:/v1beta1/{name=projects/*/locations/*" - + "/backupCollections/*}\022\325\001\n\013ListBackups\0226." - + "google.cloud.redis.cluster.v1beta1.ListB" - + "ackupsRequest\0327.google.cloud.redis.clust" - + "er.v1beta1.ListBackupsResponse\"U\332A\006paren" - + "t\202\323\344\223\002F\022D/v1beta1/{parent=projects/*/loc" - + "ations/*/backupCollections/*}/backups\022\302\001" - + "\n\tGetBackup\0224.google.cloud.redis.cluster" - + ".v1beta1.GetBackupRequest\032*.google.cloud" - + ".redis.cluster.v1beta1.Backup\"S\332A\004name\202\323" - + "\344\223\002F\022D/v1beta1/{name=projects/*/location" - + "s/*/backupCollections/*/backups/*}\022\353\001\n\014D" - + "eleteBackup\0227.google.cloud.redis.cluster" - + ".v1beta1.DeleteBackupRequest\032\035.google.lo" - + "ngrunning.Operation\"\202\001\312A,\n\025google.protob" - + "uf.Empty\022\023google.protobuf.Any\332A\004name\202\323\344\223" - + "\002F*D/v1beta1/{name=projects/*/locations/" - + "*/backupCollections/*/backups/*}\022\336\001\n\014Exp" - + "ortBackup\0227.google.cloud.redis.cluster.v" - + "1beta1.ExportBackupRequest\032\035.google.long" - + "running.Operation\"v\312A\035\n\006Backup\022\023google.p" - + "rotobuf.Any\202\323\344\223\002P\"K/v1beta1/{name=projec" - + "ts/*/locations/*/backupCollections/*/bac" - + "kups/*}:export:\001*\022\325\001\n\rBackupCluster\0228.go" - + "ogle.cloud.redis.cluster.v1beta1.BackupC" - + "lusterRequest\032\035.google.longrunning.Opera" - + "tion\"k\312A\036\n\007Cluster\022\023google.protobuf.Any\332" - + "A\004name\202\323\344\223\002=\"8/v1beta1/{name=projects/*/" - + "locations/*/clusters/*}:backup:\001*\032H\312A\024re" - + "dis.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\355\006\n&com.goog" - + "le.cloud.redis.cluster.v1beta1B\026CloudRed" - + "isClusterProtoP\001Z@cloud.google.com/go/re" - + "dis/cluster/apiv1beta1/clusterpb;cluster" - + "pb\352\002&Google::Cloud::Redis::Cluster::V1be" - + "ta1\352An\n%compute.googleapis.com/Forwardin" - + "gRule\022Eprojects/{project}/regions/{regio" - + "n}/forwardingRules/{forwarding_rule}\352AN\n" - + "\036compute.googleapis.com/Network\022,project" - + "s/{project}/global/networks/{network}\352Aw" - + "\n(compute.googleapis.com/ServiceAttachme" - + "nt\022Kprojects/{project}/regions/{region}/" - + "serviceAttachments/{service_attachment}\352" - + "Ax\n!cloudkms.googleapis.com/CryptoKey\022Sp" - + "rojects/{project}/locations/{location}/k" - + "eyRings/{key_ring}/cryptoKeys/{crypto_ke" - + "y}\352A\246\001\n(cloudkms.googleapis.com/CryptoKe" - + "yVersion\022zprojects/{project}/locations/{" - + "location}/keyRings/{key_ring}/cryptoKeys" - + "/{crypto_key}/cryptoKeyVersions/{crypto_" - + "key_version}\352A\\\n\037privateca.googleapis.co" - + "m/CaPool\0229projects/{project}/locations/{" - + "location}/caPools/{ca_pool}b\006proto3" + + "F*D/v1beta1/{name=projects/*/locations/*" + + "/backupCollections/*/backups/*}\022\336\001\n\014Expo" + + "rtBackup\0227.google.cloud.redis.cluster.v1" + + "beta1.ExportBackupRequest\032\035.google.longr" + + "unning.Operation\"v\312A\035\n\006Backup\022\023google.pr" + + "otobuf.Any\202\323\344\223\002P\"K/v1beta1/{name=project" + + "s/*/locations/*/backupCollections/*/back" + + "ups/*}:export:\001*\022\325\001\n\rBackupCluster\0228.goo" + + "gle.cloud.redis.cluster.v1beta1.BackupCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"k\312A\036\n\007Cluster\022\023google.protobuf.Any\332A" + + "\004name\202\323\344\223\002=\"8/v1beta1/{name=projects/*/l" + + "ocations/*/clusters/*}:backup:\001*\032H\312A\024red" + + "is.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\355\006\n&com.googl" + + "e.cloud.redis.cluster.v1beta1B\026CloudRedi" + + "sClusterProtoP\001Z@cloud.google.com/go/red" + + "is/cluster/apiv1beta1/clusterpb;clusterp" + + "b\352\002&Google::Cloud::Redis::Cluster::V1bet" + + "a1\352An\n%compute.googleapis.com/Forwarding" + + "Rule\022Eprojects/{project}/regions/{region" + + "}/forwardingRules/{forwarding_rule}\352AN\n\036" + + "compute.googleapis.com/Network\022,projects" + + "/{project}/global/networks/{network}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachmen" + + "t\022Kprojects/{project}/regions/{region}/s" + + "erviceAttachments/{service_attachment}\352A" + + "x\n!cloudkms.googleapis.com/CryptoKey\022Spr" + + "ojects/{project}/locations/{location}/ke" + + "yRings/{key_ring}/cryptoKeys/{crypto_key" + + "}\352A\246\001\n(cloudkms.googleapis.com/CryptoKey" + + "Version\022zprojects/{project}/locations/{l" + + "ocation}/keyRings/{key_ring}/cryptoKeys/" + + "{crypto_key}/cryptoKeyVersions/{crypto_k" + + "ey_version}\352A\\\n\037privateca.googleapis.com" + + "/CaPool\0229projects/{project}/locations/{l" + + "ocation}/caPools/{ca_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java index 7d10c64149dc..4079da74341b 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java @@ -81,6 +81,36 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { * REDIS_STANDARD_SMALL = 4; */ REDIS_STANDARD_SMALL(4), + /** + * + * + *
+   * Redis highcpu medium node_type.
+   * 
+ * + * REDIS_HIGHCPU_MEDIUM = 7; + */ + REDIS_HIGHCPU_MEDIUM(7), + /** + * + * + *
+   * Redis standard large node_type.
+   * 
+ * + * REDIS_STANDARD_LARGE = 8; + */ + REDIS_STANDARD_LARGE(8), + /** + * + * + *
+   * Redis highmem 2xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_2XLARGE = 9; + */ + REDIS_HIGHMEM_2XLARGE(9), UNRECOGNIZED(-1), ; @@ -149,6 +179,39 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REDIS_STANDARD_SMALL_VALUE = 4; + /** + * + * + *
+   * Redis highcpu medium node_type.
+   * 
+ * + * REDIS_HIGHCPU_MEDIUM = 7; + */ + public static final int REDIS_HIGHCPU_MEDIUM_VALUE = 7; + + /** + * + * + *
+   * Redis standard large node_type.
+   * 
+ * + * REDIS_STANDARD_LARGE = 8; + */ + public static final int REDIS_STANDARD_LARGE_VALUE = 8; + + /** + * + * + *
+   * Redis highmem 2xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_2XLARGE = 9; + */ + public static final int REDIS_HIGHMEM_2XLARGE_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -183,6 +246,12 @@ public static NodeType forNumber(int value) { return REDIS_HIGHMEM_XLARGE; case 4: return REDIS_STANDARD_SMALL; + case 7: + return REDIS_HIGHCPU_MEDIUM; + case 8: + return REDIS_STANDARD_LARGE; + case 9: + return REDIS_HIGHMEM_2XLARGE; default: return null; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto index 47a6f507fc93..5ace99ed1d79 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto @@ -319,6 +319,15 @@ enum NodeType { // Redis standard small node_type. REDIS_STANDARD_SMALL = 4; + + // Redis highcpu medium node_type. + REDIS_HIGHCPU_MEDIUM = 7; + + // Redis standard large node_type. + REDIS_STANDARD_LARGE = 8; + + // Redis highmem 2xlarge node_type. + REDIS_HIGHMEM_2XLARGE = 9; } // Available mode of in-transit encryption. diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java index 59102c2c7e2d..ccbc5aceae71 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java @@ -723,6 +723,66 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { * STANDARD_SMALL = 4; */ STANDARD_SMALL(4), + /** + * + * + *
+     * Custom micro.
+     * 
+ * + * CUSTOM_MICRO = 5; + */ + CUSTOM_MICRO(5), + /** + * + * + *
+     * Custom mini.
+     * 
+ * + * CUSTOM_MINI = 6; + */ + CUSTOM_MINI(6), + /** + * + * + *
+     * High cpu medium.
+     * 
+ * + * HIGHCPU_MEDIUM = 7; + */ + HIGHCPU_MEDIUM(7), + /** + * + * + *
+     * Standard large.
+     * 
+ * + * STANDARD_LARGE = 8; + */ + STANDARD_LARGE(8), + /** + * + * + *
+     * High memory 2x large.
+     * 
+ * + * HIGHMEM_2XLARGE = 9; + */ + HIGHMEM_2XLARGE(9), + /** + * + * + *
+     * Custom pico.
+     * 
+ * + * CUSTOM_PICO = 10; + */ + CUSTOM_PICO(10), UNRECOGNIZED(-1), ; @@ -791,6 +851,72 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_SMALL_VALUE = 4; + /** + * + * + *
+     * Custom micro.
+     * 
+ * + * CUSTOM_MICRO = 5; + */ + public static final int CUSTOM_MICRO_VALUE = 5; + + /** + * + * + *
+     * Custom mini.
+     * 
+ * + * CUSTOM_MINI = 6; + */ + public static final int CUSTOM_MINI_VALUE = 6; + + /** + * + * + *
+     * High cpu medium.
+     * 
+ * + * HIGHCPU_MEDIUM = 7; + */ + public static final int HIGHCPU_MEDIUM_VALUE = 7; + + /** + * + * + *
+     * Standard large.
+     * 
+ * + * STANDARD_LARGE = 8; + */ + public static final int STANDARD_LARGE_VALUE = 8; + + /** + * + * + *
+     * High memory 2x large.
+     * 
+ * + * HIGHMEM_2XLARGE = 9; + */ + public static final int HIGHMEM_2XLARGE_VALUE = 9; + + /** + * + * + *
+     * Custom pico.
+     * 
+ * + * CUSTOM_PICO = 10; + */ + public static final int CUSTOM_PICO_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -825,6 +951,18 @@ public static NodeType forNumber(int value) { return HIGHMEM_XLARGE; case 4: return STANDARD_SMALL; + case 5: + return CUSTOM_MICRO; + case 6: + return CUSTOM_MINI; + case 7: + return HIGHCPU_MEDIUM; + case 8: + return STANDARD_LARGE; + case 9: + return HIGHMEM_2XLARGE; + case 10: + return CUSTOM_PICO; default: return null; } @@ -8859,7 +8997,7 @@ public boolean getSimulateMaintenanceEvent() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -8880,7 +9018,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return The ondemandMaintenance. */ @java.lang.Override @@ -9723,7 +9861,7 @@ public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes(int i * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=667 + * See google/cloud/memorystore/v1/memorystore.proto;l=685 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -16968,7 +17106,7 @@ public Builder clearSimulateMaintenanceEvent() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -16989,7 +17127,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return The ondemandMaintenance. */ @java.lang.Override @@ -17010,7 +17148,7 @@ public boolean getOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @param value The ondemandMaintenance to set. * @return This builder for chaining. */ @@ -17035,7 +17173,7 @@ public Builder setOndemandMaintenance(boolean value) { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19197,7 +19335,7 @@ public Builder addAvailableMaintenanceVersionsBytes(com.google.protobuf.ByteStri * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=667 + * See google/cloud/memorystore/v1/memorystore.proto;l=685 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -19218,7 +19356,7 @@ public boolean getAllowFewerZonesDeployment() { * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=667 + * See google/cloud/memorystore/v1/memorystore.proto;l=685 * @param value The allowFewerZonesDeployment to set. * @return This builder for chaining. */ @@ -19243,7 +19381,7 @@ public Builder setAllowFewerZonesDeployment(boolean value) { * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=667 + * See google/cloud/memorystore/v1/memorystore.proto;l=685 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java index 7c7f5916e580..014b9350674a 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java @@ -1165,7 +1165,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=586 + * google/cloud/memorystore/v1/memorystore.proto;l=604 * @return The ondemandMaintenance. */ @java.lang.Deprecated @@ -1776,7 +1776,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=667 + * See google/cloud/memorystore/v1/memorystore.proto;l=685 * @return The allowFewerZonesDeployment. */ @java.lang.Deprecated diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java index 9ae5ffc8af78..471e8aae587f 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java @@ -279,7 +279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/operations.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google" + "/protobuf/timestamp.proto\032\033google/type/d" - + "ayofweek.proto\032\033google/type/timeofday.proto\"\351\'\n" + + "ayofweek.proto\032\033google/type/timeofday.proto\"\333(\n" + "\010Instance\022S\n\n" + "gcs_source\030\027 \001(\01325.g" + "oogle.cloud.memorystore.v1.Instance.GcsBackupSourceB\006\340A\001\340A\005H\000\022b\n" @@ -404,13 +404,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025TransitEncryptionMode\022\'\n" + "#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022\037\n" + "\033TRANSIT_ENCRYPTION_DISABLED\020\001\022\031\n" - + "\025SERVER_AUTHENTICATION\020\002\"w\n" + + "\025SERVER_AUTHENTICATION\020\002\"\350\001\n" + "\010NodeType\022\031\n" + "\025NODE_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020SHARED_CORE_NANO\020\001\022\022\n" + "\016HIGHMEM_MEDIUM\020\002\022\022\n" + "\016HIGHMEM_XLARGE\020\003\022\022\n" - + "\016STANDARD_SMALL\020\004\"S\n" + + "\016STANDARD_SMALL\020\004\022\020\n" + + "\014CUSTOM_MICRO\020\005\022\017\n" + + "\013CUSTOM_MINI\020\006\022\022\n" + + "\016HIGHCPU_MEDIUM\020\007\022\022\n" + + "\016STANDARD_LARGE\020\010\022\023\n" + + "\017HIGHMEM_2XLARGE\020\t\022\017\n" + + "\013CUSTOM_PICO\020\n" + + "\"S\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\022\n\n" + "STANDALONE\020\001\032\002\010\001\022\013\n" @@ -424,8 +431,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA\020\001\032\002\010\001\022/\n" + "\'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA\020\002\032\002\010\001\022.\n" + "&SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA\020\003\032\002\010\001\032\002\020\001:{\352Ax\n" - + "#memorystore.googleapi" - + "s.com/Instance\022.google.cloud.me" - + "morystore.v1.PersistenceConfig.PersistenceModeB\003\340A\001\022Q\n\n" - + "rdb_config\030\002 \001(\01328.google" - + ".cloud.memorystore.v1.PersistenceConfig.RDBConfigB\003\340A\001\022Q\n\n" - + "aof_config\030\003 \001(\01328.goo" - + "gle.cloud.memorystore.v1.PersistenceConfig.AOFConfigB\003\340A\001\032\261\002\n" + + "\004mode\030\001 \001(\0162>.google.cloud.memoryst" + + "ore.v1.PersistenceConfig.PersistenceModeB\003\340A\001\022Q\n\n" + + "rdb_config\030\002 \001(\01328.google.cloud" + + ".memorystore.v1.PersistenceConfig.RDBConfigB\003\340A\001\022Q\n\n" + + "aof_config\030\003 \001(\01328.google.cl" + + "oud.memorystore.v1.PersistenceConfig.AOFConfigB\003\340A\001\032\261\002\n" + "\tRDBConfig\022i\n" - + "\023rdb_snapshot_period\030\001 \001(\0162G.google.cloud.memo" - + "rystore.v1.PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + + "\023rdb_snapshot_period\030\001 \001(\0162G.google.cloud.memorystor" + + "e.v1.PersistenceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"w\n" + "\016SnapshotPeriod\022\037\n" @@ -614,8 +620,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\277\001\n" + "\tAOFConfig\022_\n" - + "\014append_fsync\030\001 \001(" - + "\0162D.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"Q\n" + + "\014append_fsync\030\001 \001(\0162D.go" + + "ogle.cloud.memorystore.v1.PersistenceConfig.AOFConfig.AppendFsyncB\003\340A\001\"Q\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\t\n" + "\005NEVER\020\001\022\r\n" @@ -630,17 +636,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007size_gb\030\001 \001(\001B\003\340A\003\"\351\001\n" + "\026ZoneDistributionConfig\022\021\n" + "\004zone\030\002 \001(\tB\003\340A\001\022[\n" - + "\004mode\030\001 \001(\0162H.google.cloud.memo" - + "rystore.v1.ZoneDistributionConfig.ZoneDistributionModeB\003\340A\001\"_\n" + + "\004mode\030\001 \001(\0162H.google.cloud.memorystor" + + "e.v1.ZoneDistributionConfig.ZoneDistributionModeB\003\340A\001\"_\n" + "\024ZoneDistributionMode\022&\n" - + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" + + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n" + + "\n" + "MULTI_ZONE\020\001\022\017\n" + "\013SINGLE_ZONE\020\002\"\316\002\n" + "\034RescheduleMaintenanceRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\022f\n" - + "\017reschedule_type\030\002 \001(\0162H.goog" - + "le.cloud.memorystore.v1.RescheduleMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + + "\017reschedule_type\030\002 \001(\0162H.google.clo" + + "ud.memorystore.v1.RescheduleMaintenanceRequest.RescheduleTypeB\003\340A\002\0226\n\r" + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" @@ -649,7 +656,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ListInstancesRequest\022;\n" + "\006parent\030\001 \001(" + "\tB+\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_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\"\177\n" @@ -661,8 +669,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\315\001\n" + "\025CreateInstanceRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\030\n" + + "\006parent\030\001 \001(\tB+" + + "\340A\002\372A%\022#memorystore.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022<\n" + "\010instance\030\003" + " \001(\0132%.google.cloud.memorystore.v1.InstanceB\003\340A\002\022\037\n\n" @@ -677,13 +685,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#memorystore.googleapis.com/Instance\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\224\001\n" + "\034ListBackupCollectionsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022" - + "+memorystore.googleapis.com/BackupCollection\022\026\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+memor" + + "ystore.googleapis.com/BackupCollection\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\230\001\n" + "\035ListBackupCollectionsResponse\022I\n" - + "\022backup_collections\030\001 \003(\0132-.go" - + "ogle.cloud.memorystore.v1.BackupCollection\022\027\n" + + "\022backup_collections\030\001" + + " \003(\0132-.google.cloud.memorystore.v1.BackupCollection\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"_\n" + "\032GetBackupCollectionRequest\022A\n" @@ -720,31 +728,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\211\004\n" + "\024CertificateAuthority\022j\n" - + "\021managed_server_ca\030\002 \001(\0132M.google.cloud." - + "memorystore.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132M.google.cloud.memory" + + "store.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\253\001\n" + "\033ManagedCertificateAuthority\022i\n" - + "\010ca_certs\030\001 \003(\0132W.google.cloud.memorystor" - + "e.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132W.google.cloud.memorystore.v1.C" + + "ertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\266\001\352A\262\001\n" - + "/memorystore.googleapis.com/CertificateAuthority\022Qproj" - + "ects/{project}/locations/{location}/instances/{instance}/certificateAuthority*\026c" - + "ertificateAuthorities2\024certificateAuthorityB\013\n" + + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects/{" + + "project}/locations/{location}/instances/" + + "{instance}/certificateAuthority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\200\005\n" + "\"SharedRegionalCertificateAuthority\022\200\001\n" - + "\021managed_server_ca\030\002 \001(\0132c.google.cloud.memorystore.v1.Shared" - + "RegionalCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + + "\021managed_server_ca\030\002 \001(\0132c.google.cloud.memorystore.v1.SharedRegion" + + "alCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\032\332\001\n" + "#RegionalManagedCertificateAuthority\022\207\001\n" - + "\010ca_certs\030\001 \003(\0132u.google.cloud.memorystore.v1.SharedRegionalCertificate" - + "Authority.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132u.google.cloud.memory" + + "store.v1.SharedRegionalCertificateAuthor" + + "ity.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\331\001\352A\325\001\n" - + "=memorystore.googleapis.com/SharedRegionalCert" - + "ificateAuthority\022Jprojects/{project}/locations/{location}/sharedRegionalCertific" - + "ateAuthority*$sharedRegionalCertificateA" - + "uthorities2\"sharedRegionalCertificateAuthorityB\013\n" + + "=memorystore.googleapis.com/SharedRegionalCertificat" + + "eAuthority\022Jprojects/{project}/locations/{location}/sharedRegionalCertificateAut" + + "hority*$sharedRegionalCertificateAuthori" + + "ties2\"sharedRegionalCertificateAuthorityB\013\n" + "\tserver_ca\"\203\001\n" + ",GetSharedRegionalCertificateAuthorityRequest\022S\n" + "\004name\030\001 \001(\tBE\340A\002\372A?\n" @@ -762,131 +771,130 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01620.google.cloud.memorystore.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + "\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022[\n" - + "\025kms_key_primary_state\030\003 \001(\01627.google.cloud.memory" - + "store.v1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" - + "\020last_update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\\\n" - + "\004Type\022\024\n" - + "\020TYPE_UNSPECIFIED\020\000\022\035\n" - + "\031GOOGLE_DEFAULT_ENCRYPTION\020\001", - "\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\002\"\321\001\n\013Km" - + "sKeyState\022\035\n\031KMS_KEY_STATE_UNSPECIFIED\020\000" - + "\022\013\n\007ENABLED\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\014\n\010" - + "DISABLED\020\003\022\r\n\tDESTROYED\020\004\022\025\n\021DESTROY_SCH" - + "EDULED\020\005\022 \n\034EKM_KEY_UNREACHABLE_DETECTED" - + "\020\006\022\024\n\020BILLING_DISABLED\020\007\022\023\n\017UNKNOWN_FAIL" - + "URE\020\010*W\n\023PscConnectionStatus\022%\n!PSC_CONN" - + "ECTION_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" - + "\r\n\tNOT_FOUND\020\002*\211\001\n\016ConnectionType\022\037\n\033CON" - + "NECTION_TYPE_UNSPECIFIED\020\000\022\035\n\031CONNECTION" - + "_TYPE_DISCOVERY\020\001\022\033\n\027CONNECTION_TYPE_PRI" - + "MARY\020\002\022\032\n\026CONNECTION_TYPE_READER\020\0032\343\031\n\013M" - + "emorystore\022\266\001\n\rListInstances\0221.google.cl" - + "oud.memorystore.v1.ListInstancesRequest\032" - + "2.google.cloud.memorystore.v1.ListInstan" - + "cesResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{paren" - + "t=projects/*/locations/*}/instances\022\243\001\n\013" - + "GetInstance\022/.google.cloud.memorystore.v" - + "1.GetInstanceRequest\032%.google.cloud.memo" - + "rystore.v1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v1/" - + "{name=projects/*/locations/*/instances/*" - + "}\022\342\001\n\016CreateInstance\0222.google.cloud.memo" - + "rystore.v1.CreateInstanceRequest\032\035.googl" - + "e.longrunning.Operation\"}\312A\035\n\010Instance\022\021" - + "OperationMetadata\332A\033parent,instance,inst" - + "ance_id\202\323\344\223\0029\"-/v1/{parent=projects/*/lo" - + "cations/*}/instances:\010instance\022\344\001\n\016Updat" - + "eInstance\0222.google.cloud.memorystore.v1." - + "UpdateInstanceRequest\032\035.google.longrunni" - + "ng.Operation\"\177\312A\035\n\010Instance\022\021OperationMe" - + "tadata\332A\024instance,update_mask\202\323\344\223\002B26/v1" - + "/{instance.name=projects/*/locations/*/i" - + "nstances/*}:\010instance\022\316\001\n\016DeleteInstance" - + "\0222.google.cloud.memorystore.v1.DeleteIns" - + "tanceRequest\032\035.google.longrunning.Operat" - + "ion\"i\312A*\n\025google.protobuf.Empty\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=proje" - + "cts/*/locations/*/instances/*}\022\334\001\n\027GetCe" - + "rtificateAuthority\022;.google.cloud.memory" - + "store.v1.GetCertificateAuthorityRequest\032" - + "1.google.cloud.memorystore.v1.Certificat" - + "eAuthority\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=pro" - + "jects/*/locations/*/instances/*}/certifi" - + "cateAuthority\022\210\002\n%GetSharedRegionalCerti" - + "ficateAuthority\022I.google.cloud.memorysto" - + "re.v1.GetSharedRegionalCertificateAuthor" - + "ityRequest\032?.google.cloud.memorystore.v1" - + ".SharedRegionalCertificateAuthority\"S\332A\004" - + "name\202\323\344\223\002F\022D/v1/{name=projects/*/locatio" - + "ns/*/sharedRegionalCertificateAuthority}" - + "\022\207\002\n\025RescheduleMaintenance\0229.google.clou" - + "d.memorystore.v1.RescheduleMaintenanceRe" - + "quest\032\035.google.longrunning.Operation\"\223\001\312" - + "A\035\n\010Instance\022\021OperationMetadata\332A\"name,r" - + "eschedule_type,schedule_time\202\323\344\223\002H\"C/v1/" - + "{name=projects/*/locations/*/instances/*" - + "}:rescheduleMaintenance:\001*\022\326\001\n\025ListBacku" - + "pCollections\0229.google.cloud.memorystore." - + "v1.ListBackupCollectionsRequest\032:.google" - + ".cloud.memorystore.v1.ListBackupCollecti" - + "onsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{paren" - + "t=projects/*/locations/*}/backupCollecti" - + "ons\022\303\001\n\023GetBackupCollection\0227.google.clo" - + "ud.memorystore.v1.GetBackupCollectionReq" - + "uest\032-.google.cloud.memorystore.v1.Backu" - + "pCollection\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=pr" - + "ojects/*/locations/*/backupCollections/*" - + "}\022\302\001\n\013ListBackups\022/.google.cloud.memorys" - + "tore.v1.ListBackupsRequest\0320.google.clou" - + "d.memorystore.v1.ListBackupsResponse\"P\332A" - + "\006parent\202\323\344\223\002A\022?/v1/{parent=projects/*/lo" - + "cations/*/backupCollections/*}/backups\022\257" - + "\001\n\tGetBackup\022-.google.cloud.memorystore." - + "v1.GetBackupRequest\032#.google.cloud.memor" - + "ystore.v1.Backup\"N\332A\004name\202\323\344\223\002A\022?/v1/{na" - + "me=projects/*/locations/*/backupCollecti" - + "ons/*/backups/*}\022\334\001\n\014DeleteBackup\0220.goog" - + "le.cloud.memorystore.v1.DeleteBackupRequ" - + "est\032\035.google.longrunning.Operation\"{\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadat" - + "a\332A\004name\202\323\344\223\002A*?/v1/{name=projects/*/loc" - + "ations/*/backupCollections/*/backups/*}\022" - + "\320\001\n\014ExportBackup\0220.google.cloud.memoryst" - + "ore.v1.ExportBackupRequest\032\035.google.long" - + "running.Operation\"o\312A\033\n\006Backup\022\021Operatio" - + "nMetadata\202\323\344\223\002K\"F/v1/{name=projects/*/lo" - + "cations/*/backupCollections/*/backups/*}" - + ":export:\001*\022\313\001\n\016BackupInstance\0222.google.c" - + "loud.memorystore.v1.BackupInstanceReques" - + "t\032\035.google.longrunning.Operation\"f\312A\035\n\010I" - + "nstance\022\021OperationMetadata\332A\004name\202\323\344\223\0029\"" - + "4/v1/{name=projects/*/locations/*/instan" - + "ces/*}:backup:\001*\032N\312A\032memorystore.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\220\007\n\037com.google.cloud.me" - + "morystore.v1B\013V1mainProtoP\001ZAcloud.googl" - + "e.com/go/memorystore/apiv1/memorystorepb" - + ";memorystorepb\252\002\033Google.Cloud.Memorystor" - + "e.V1\312\002\033Google\\Cloud\\Memorystore\\V1\352\002\036Goo" - + "gle::Cloud::Memorystore::V1\352An\n%compute." - + "googleapis.com/ForwardingRule\022Eprojects/" - + "{project}/regions/{region}/forwardingRul" - + "es/{forwarding_rule}\352AN\n\036compute.googlea" - + "pis.com/Network\022,projects/{project}/glob" - + "al/networks/{network}\352Aw\n(compute.google" - + "apis.com/ServiceAttachment\022Kprojects/{pr" - + "oject}/regions/{region}/serviceAttachmen" - + "ts/{service_attachment}\352Ax\n!cloudkms.goo" - + "gleapis.com/CryptoKey\022Sprojects/{project" - + "}/locations/{location}/keyRings/{key_rin" - + "g}/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkms" - + ".googleapis.com/CryptoKeyVersion\022zprojec" - + "ts/{project}/locations/{location}/keyRin" - + "gs/{key_ring}/cryptoKeys/{crypto_key}/cr" - + "yptoKeyVersions/{crypto_key_version}\352A\\\n" - + "\037privateca.googleapis.com/CaPool\0229projec" - + "ts/{project}/locations/{location}/caPool" - + "s/{ca_pool}b\006proto3" + + "\025kms_key_primary_state\030\003" + + " \001(\01627.google.cloud.memorystore.v1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n" + + "\020la", + "st_update_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\"\\\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033CU" + + "STOMER_MANAGED_ENCRYPTION\020\002\"\321\001\n\013KmsKeySt" + + "ate\022\035\n\031KMS_KEY_STATE_UNSPECIFIED\020\000\022\013\n\007EN" + + "ABLED\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\014\n\010DISABL" + + "ED\020\003\022\r\n\tDESTROYED\020\004\022\025\n\021DESTROY_SCHEDULED" + + "\020\005\022 \n\034EKM_KEY_UNREACHABLE_DETECTED\020\006\022\024\n\020" + + "BILLING_DISABLED\020\007\022\023\n\017UNKNOWN_FAILURE\020\010*" + + "W\n\023PscConnectionStatus\022%\n!PSC_CONNECTION" + + "_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tNOT" + + "_FOUND\020\002*\211\001\n\016ConnectionType\022\037\n\033CONNECTIO" + + "N_TYPE_UNSPECIFIED\020\000\022\035\n\031CONNECTION_TYPE_" + + "DISCOVERY\020\001\022\033\n\027CONNECTION_TYPE_PRIMARY\020\002" + + "\022\032\n\026CONNECTION_TYPE_READER\020\0032\343\031\n\013Memorys" + + "tore\022\266\001\n\rListInstances\0221.google.cloud.me" + + "morystore.v1.ListInstancesRequest\0322.goog" + + "le.cloud.memorystore.v1.ListInstancesRes" + + "ponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=proj" + + "ects/*/locations/*}/instances\022\243\001\n\013GetIns" + + "tance\022/.google.cloud.memorystore.v1.GetI" + + "nstanceRequest\032%.google.cloud.memorystor" + + "e.v1.Instance\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=" + + "projects/*/locations/*/instances/*}\022\342\001\n\016" + + "CreateInstance\0222.google.cloud.memorystor" + + "e.v1.CreateInstanceRequest\032\035.google.long" + + "running.Operation\"}\312A\035\n\010Instance\022\021Operat" + + "ionMetadata\332A\033parent,instance,instance_i" + + "d\202\323\344\223\0029\"-/v1/{parent=projects/*/location" + + "s/*}/instances:\010instance\022\344\001\n\016UpdateInsta" + + "nce\0222.google.cloud.memorystore.v1.Update" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"\177\312A\035\n\010Instance\022\021OperationMetadata" + + "\332A\024instance,update_mask\202\323\344\223\002B26/v1/{inst" + + "ance.name=projects/*/locations/*/instanc" + + "es/*}:\010instance\022\316\001\n\016DeleteInstance\0222.goo" + + "gle.cloud.memorystore.v1.DeleteInstanceR" + + "equest\032\035.google.longrunning.Operation\"i\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/" + + "locations/*/instances/*}\022\334\001\n\027GetCertific" + + "ateAuthority\022;.google.cloud.memorystore." + + "v1.GetCertificateAuthorityRequest\0321.goog" + + "le.cloud.memorystore.v1.CertificateAutho" + + "rity\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=projects/" + + "*/locations/*/instances/*}/certificateAu" + + "thority\022\210\002\n%GetSharedRegionalCertificate" + + "Authority\022I.google.cloud.memorystore.v1." + + "GetSharedRegionalCertificateAuthorityReq" + + "uest\032?.google.cloud.memorystore.v1.Share" + + "dRegionalCertificateAuthority\"S\332A\004name\202\323" + + "\344\223\002F\022D/v1/{name=projects/*/locations/*/s" + + "haredRegionalCertificateAuthority}\022\207\002\n\025R" + + "escheduleMaintenance\0229.google.cloud.memo" + + "rystore.v1.RescheduleMaintenanceRequest\032" + + "\035.google.longrunning.Operation\"\223\001\312A\035\n\010In" + + "stance\022\021OperationMetadata\332A\"name,resched" + + "ule_type,schedule_time\202\323\344\223\002H\"C/v1/{name=" + + "projects/*/locations/*/instances/*}:resc" + + "heduleMaintenance:\001*\022\326\001\n\025ListBackupColle" + + "ctions\0229.google.cloud.memorystore.v1.Lis" + + "tBackupCollectionsRequest\032:.google.cloud" + + ".memorystore.v1.ListBackupCollectionsRes" + + "ponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=proj" + + "ects/*/locations/*}/backupCollections\022\303\001" + + "\n\023GetBackupCollection\0227.google.cloud.mem" + + "orystore.v1.GetBackupCollectionRequest\032-" + + ".google.cloud.memorystore.v1.BackupColle" + + "ction\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects" + + "/*/locations/*/backupCollections/*}\022\302\001\n\013" + + "ListBackups\022/.google.cloud.memorystore.v" + + "1.ListBackupsRequest\0320.google.cloud.memo" + + "rystore.v1.ListBackupsResponse\"P\332A\006paren" + + "t\202\323\344\223\002A\022?/v1/{parent=projects/*/location" + + "s/*/backupCollections/*}/backups\022\257\001\n\tGet" + + "Backup\022-.google.cloud.memorystore.v1.Get" + + "BackupRequest\032#.google.cloud.memorystore" + + ".v1.Backup\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=pro" + + "jects/*/locations/*/backupCollections/*/" + + "backups/*}\022\334\001\n\014DeleteBackup\0220.google.clo" + + "ud.memorystore.v1.DeleteBackupRequest\032\035." + + "google.longrunning.Operation\"{\312A*\n\025googl" + + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002A*?/v1/{name=projects/*/locations" + + "/*/backupCollections/*/backups/*}\022\320\001\n\014Ex" + + "portBackup\0220.google.cloud.memorystore.v1" + + ".ExportBackupRequest\032\035.google.longrunnin" + + "g.Operation\"o\312A\033\n\006Backup\022\021OperationMetad" + + "ata\202\323\344\223\002K\"F/v1/{name=projects/*/location" + + "s/*/backupCollections/*/backups/*}:expor" + + "t:\001*\022\313\001\n\016BackupInstance\0222.google.cloud.m" + + "emorystore.v1.BackupInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"f\312A\035\n\010Instanc" + + "e\022\021OperationMetadata\332A\004name\202\323\344\223\0029\"4/v1/{" + + "name=projects/*/locations/*/instances/*}" + + ":backup:\001*\032N\312A\032memorystore.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\220\007\n\037com.google.cloud.memoryst" + + "ore.v1B\013V1mainProtoP\001ZAcloud.google.com/" + + "go/memorystore/apiv1/memorystorepb;memor" + + "ystorepb\252\002\033Google.Cloud.Memorystore.V1\312\002" + + "\033Google\\Cloud\\Memorystore\\V1\352\002\036Google::C" + + "loud::Memorystore::V1\352An\n%compute.google" + + "apis.com/ForwardingRule\022Eprojects/{proje" + + "ct}/regions/{region}/forwardingRules/{fo" + + "rwarding_rule}\352AN\n\036compute.googleapis.co" + + "m/Network\022,projects/{project}/global/net" + + "works/{network}\352Aw\n(compute.googleapis.c" + + "om/ServiceAttachment\022Kprojects/{project}" + + "/regions/{region}/serviceAttachments/{se" + + "rvice_attachment}\352Ax\n!cloudkms.googleapi" + + "s.com/CryptoKey\022Sprojects/{project}/loca" + + "tions/{location}/keyRings/{key_ring}/cry" + + "ptoKeys/{crypto_key}\352A\246\001\n(cloudkms.googl" + + "eapis.com/CryptoKeyVersion\022zprojects/{pr" + + "oject}/locations/{location}/keyRings/{ke" + + "y_ring}/cryptoKeys/{crypto_key}/cryptoKe" + + "yVersions/{crypto_key_version}\352A\\\n\037priva" + + "teca.googleapis.com/CaPool\0229projects/{pr" + + "oject}/locations/{location}/caPools/{ca_" + + "pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto b/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto index 23f4e2218f51..ed4abce57569 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto @@ -413,6 +413,24 @@ message Instance { // Standard small. STANDARD_SMALL = 4; + + // Custom micro. + CUSTOM_MICRO = 5; + + // Custom mini. + CUSTOM_MINI = 6; + + // High cpu medium. + HIGHCPU_MEDIUM = 7; + + // Standard large. + STANDARD_LARGE = 8; + + // High memory 2x large. + HIGHMEM_2XLARGE = 9; + + // Custom pico. + CUSTOM_PICO = 10; } // The mode config, which is used to enable/disable cluster mode. diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java index 4f31587be98e..8ffaa1a5060a 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java @@ -717,6 +717,66 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { * STANDARD_SMALL = 4; */ STANDARD_SMALL(4), + /** + * + * + *
+     * Custom micro.
+     * 
+ * + * CUSTOM_MICRO = 5; + */ + CUSTOM_MICRO(5), + /** + * + * + *
+     * Custom mini.
+     * 
+ * + * CUSTOM_MINI = 6; + */ + CUSTOM_MINI(6), + /** + * + * + *
+     * High cpu medium.
+     * 
+ * + * HIGHCPU_MEDIUM = 7; + */ + HIGHCPU_MEDIUM(7), + /** + * + * + *
+     * Standard large.
+     * 
+ * + * STANDARD_LARGE = 8; + */ + STANDARD_LARGE(8), + /** + * + * + *
+     * High memory 2xlarge.
+     * 
+ * + * HIGHMEM_2XLARGE = 9; + */ + HIGHMEM_2XLARGE(9), + /** + * + * + *
+     * Custom pico.
+     * 
+ * + * CUSTOM_PICO = 10; + */ + CUSTOM_PICO(10), UNRECOGNIZED(-1), ; @@ -785,6 +845,72 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STANDARD_SMALL_VALUE = 4; + /** + * + * + *
+     * Custom micro.
+     * 
+ * + * CUSTOM_MICRO = 5; + */ + public static final int CUSTOM_MICRO_VALUE = 5; + + /** + * + * + *
+     * Custom mini.
+     * 
+ * + * CUSTOM_MINI = 6; + */ + public static final int CUSTOM_MINI_VALUE = 6; + + /** + * + * + *
+     * High cpu medium.
+     * 
+ * + * HIGHCPU_MEDIUM = 7; + */ + public static final int HIGHCPU_MEDIUM_VALUE = 7; + + /** + * + * + *
+     * Standard large.
+     * 
+ * + * STANDARD_LARGE = 8; + */ + public static final int STANDARD_LARGE_VALUE = 8; + + /** + * + * + *
+     * High memory 2xlarge.
+     * 
+ * + * HIGHMEM_2XLARGE = 9; + */ + public static final int HIGHMEM_2XLARGE_VALUE = 9; + + /** + * + * + *
+     * Custom pico.
+     * 
+ * + * CUSTOM_PICO = 10; + */ + public static final int CUSTOM_PICO_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -819,6 +945,18 @@ public static NodeType forNumber(int value) { return HIGHMEM_XLARGE; case 4: return STANDARD_SMALL; + case 5: + return CUSTOM_MICRO; + case 6: + return CUSTOM_MINI; + case 7: + return HIGHCPU_MEDIUM; + case 8: + return STANDARD_LARGE; + case 9: + return HIGHMEM_2XLARGE; + case 10: + return CUSTOM_PICO; default: return null; } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java index 69545e9525bc..fa83957ea733 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java @@ -176,7 +176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "havior.proto\032\033google/api/field_info.prot" + "o\032\031google/api/resource.proto\032#google/lon" + "grunning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\306\032\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\270\033\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -261,13 +261,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025TransitEncryptionMode\022\'\n" + "#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\020\000\022\037\n" + "\033TRANSIT_ENCRYPTION_DISABLED\020\001\022\031\n" - + "\025SERVER_AUTHENTICATION\020\002\"w\n" + + "\025SERVER_AUTHENTICATION\020\002\"\350\001\n" + "\010NodeType\022\031\n" + "\025NODE_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020SHARED_CORE_NANO\020\001\022\022\n" + "\016HIGHMEM_MEDIUM\020\002\022\022\n" + "\016HIGHMEM_XLARGE\020\003\022\022\n" - + "\016STANDARD_SMALL\020\004\"S\n" + + "\016STANDARD_SMALL\020\004\022\020\n" + + "\014CUSTOM_MICRO\020\005\022\017\n" + + "\013CUSTOM_MINI\020\006\022\022\n" + + "\016HIGHCPU_MEDIUM\020\007\022\022\n" + + "\016STANDARD_LARGE\020\010\022\023\n" + + "\017HIGHMEM_2XLARGE\020\t\022\017\n" + + "\013CUSTOM_PICO\020\n" + + "\"S\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\022\n\n" + "STANDALONE\020\001\032\002\010\001\022\013\n" @@ -280,10 +287,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CUSTOMER_MANAGED_CAS_CA\020\003\0225\n" + "-SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA\020\001\032\002\010\001\022/\n" + "\'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA\020\002\032\002\010\001\022.\n" - + "&SERVER_CA" - + "_MODE_CUSTOMER_MANAGED_CAS_CA\020\003\032\002\010\001\032\002\020\001:{\352Ax\n" - + "#memorystore.googleapis.com/Instanc" - + "e\022 Date: Sun, 26 Apr 2026 03:01:19 +0000 Subject: [PATCH 3/4] chore: Update generation configuration at Sun Apr 26 03:01:11 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 0652160eae94..694d88870751 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: df51712c792b35d7536ceec1937f93d053f0adce +googleapis_commitish: 89c3153888201c9e80bc5ec78d6ffca0debe6b52 libraries_bom_version: 26.80.0 is_monorepo: true libraries: From fc4308593f7f80411e8b910b01329a1a7f76ca6a Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sun, 26 Apr 2026 04:34:51 +0000 Subject: [PATCH 4/4] chore: generate libraries at Sun Apr 26 03:04:03 UTC 2026 --- .../reflect-config.json | 45 + .../reports/v1/ProductPerformanceView.java | 807 ++- .../v1/ProductPerformanceViewOrBuilder.java | 54 + .../merchant/reports/v1/ProductView.java | 6183 ++++++++++++----- .../reports/v1/ProductViewOrBuilder.java | 208 +- .../merchant/reports/v1/ReportsProto.java | 236 +- .../merchant/reports/v1/SearchRequest.java | 22 +- .../reports/v1/SearchRequestOrBuilder.java | 6 +- .../merchant/reports/v1/StoreType.java | 567 ++ .../reports/v1/StoreTypeOrBuilder.java | 27 + .../merchant/reports/v1/reports.proto | 121 +- 11 files changed, 6310 insertions(+), 1966 deletions(-) create mode 100644 java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreType.java create mode 100644 java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreTypeOrBuilder.java diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1/reflect-config.json b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1/reflect-config.json index 8e1ed11b865f..fd80e991d778 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1/reflect-config.json +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1/reflect-config.json @@ -1637,6 +1637,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1.ProductView$StatusPerReportingContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1.ProductView$StatusPerReportingContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1.RelativeDemand", "queryAllDeclaredConstructors": true, @@ -1772,6 +1790,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1.StoreType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1.StoreType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1.StoreType$StoreTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1.TrafficSource", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceView.java index 82773c4ad1b5..0b989fc64f9f 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceView.java @@ -65,6 +65,7 @@ private ProductPerformanceView(com.google.protobuf.GeneratedMessage.Builder b private ProductPerformanceView() { marketingMethod_ = 0; customerCountryCode_ = ""; + storeType_ = 0; offerId_ = ""; title_ = ""; brand_ = ""; @@ -352,6 +353,76 @@ public com.google.protobuf.ByteString getCustomerCountryCodeBytes() { } } + public static final int STORE_TYPE_FIELD_NUMBER = 32; + private int storeType_ = 0; + + /** + * + * + *
+   * Store type to which metrics apply. Can be `ONLINE_STORE` or
+   * `LOCAL_STORES`. Segment.
+   *
+   * For `LOCAL_STORES` store type, further segmentation by a specific store
+   * is not available.
+   * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return Whether the storeType field is set. + */ + @java.lang.Override + public boolean hasStoreType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Store type to which metrics apply. Can be `ONLINE_STORE` or
+   * `LOCAL_STORES`. Segment.
+   *
+   * For `LOCAL_STORES` store type, further segmentation by a specific store
+   * is not available.
+   * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override + public int getStoreTypeValue() { + return storeType_; + } + + /** + * + * + *
+   * Store type to which metrics apply. Can be `ONLINE_STORE` or
+   * `LOCAL_STORES`. Segment.
+   *
+   * For `LOCAL_STORES` store type, further segmentation by a specific store
+   * is not available.
+   * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return The storeType. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum getStoreType() { + com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum result = + com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum.forNumber(storeType_); + return result == null + ? com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum.UNRECOGNIZED + : result; + } + public static final int OFFER_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") @@ -370,7 +441,7 @@ public com.google.protobuf.ByteString getCustomerCountryCodeBytes() { */ @java.lang.Override public boolean hasOfferId() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -439,7 +510,7 @@ public com.google.protobuf.ByteString getOfferIdBytes() { */ @java.lang.Override public boolean hasTitle() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -508,7 +579,7 @@ public com.google.protobuf.ByteString getTitleBytes() { */ @java.lang.Override public boolean hasBrand() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -579,7 +650,7 @@ public com.google.protobuf.ByteString getBrandBytes() { */ @java.lang.Override public boolean hasCategoryL1() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -654,7 +725,7 @@ public com.google.protobuf.ByteString getCategoryL1Bytes() { */ @java.lang.Override public boolean hasCategoryL2() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -729,7 +800,7 @@ public com.google.protobuf.ByteString getCategoryL2Bytes() { */ @java.lang.Override public boolean hasCategoryL3() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -804,7 +875,7 @@ public com.google.protobuf.ByteString getCategoryL3Bytes() { */ @java.lang.Override public boolean hasCategoryL4() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -879,7 +950,7 @@ public com.google.protobuf.ByteString getCategoryL4Bytes() { */ @java.lang.Override public boolean hasCategoryL5() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -954,7 +1025,7 @@ public com.google.protobuf.ByteString getCategoryL5Bytes() { */ @java.lang.Override public boolean hasProductTypeL1() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -1029,7 +1100,7 @@ public com.google.protobuf.ByteString getProductTypeL1Bytes() { */ @java.lang.Override public boolean hasProductTypeL2() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -1104,7 +1175,7 @@ public com.google.protobuf.ByteString getProductTypeL2Bytes() { */ @java.lang.Override public boolean hasProductTypeL3() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -1179,7 +1250,7 @@ public com.google.protobuf.ByteString getProductTypeL3Bytes() { */ @java.lang.Override public boolean hasProductTypeL4() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -1254,7 +1325,7 @@ public com.google.protobuf.ByteString getProductTypeL4Bytes() { */ @java.lang.Override public boolean hasProductTypeL5() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -1327,7 +1398,7 @@ public com.google.protobuf.ByteString getProductTypeL5Bytes() { */ @java.lang.Override public boolean hasCustomLabel0() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -1396,7 +1467,7 @@ public com.google.protobuf.ByteString getCustomLabel0Bytes() { */ @java.lang.Override public boolean hasCustomLabel1() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -1465,7 +1536,7 @@ public com.google.protobuf.ByteString getCustomLabel1Bytes() { */ @java.lang.Override public boolean hasCustomLabel2() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -1534,7 +1605,7 @@ public com.google.protobuf.ByteString getCustomLabel2Bytes() { */ @java.lang.Override public boolean hasCustomLabel3() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -1603,7 +1674,7 @@ public com.google.protobuf.ByteString getCustomLabel3Bytes() { */ @java.lang.Override public boolean hasCustomLabel4() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -1670,7 +1741,7 @@ public com.google.protobuf.ByteString getCustomLabel4Bytes() { */ @java.lang.Override public boolean hasClicks() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -1705,7 +1776,7 @@ public long getClicks() { */ @java.lang.Override public boolean hasImpressions() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -1742,7 +1813,7 @@ public long getImpressions() { */ @java.lang.Override public boolean hasClickThroughRate() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -1784,7 +1855,7 @@ public double getClickThroughRate() { */ @java.lang.Override public boolean hasConversions() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -1827,7 +1898,7 @@ public double getConversions() { */ @java.lang.Override public boolean hasConversionValue() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -1889,7 +1960,7 @@ public com.google.shopping.type.PriceOrBuilder getConversionValueOrBuilder() { */ @java.lang.Override public boolean hasConversionRate() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -1937,78 +2008,81 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, customerCountryCode_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, offerId_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, title_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 7, brand_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, categoryL1_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, categoryL2_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 10, categoryL3_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, categoryL4_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, categoryL5_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 13, productTypeL1_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 14, productTypeL2_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 15, productTypeL3_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 16, productTypeL4_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 17, productTypeL5_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 18, customLabel0_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 19, customLabel1_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 20, customLabel2_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 21, customLabel3_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 22, customLabel4_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { output.writeInt64(23, clicks_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { output.writeInt64(24, impressions_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { output.writeDouble(25, clickThroughRate_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { output.writeDouble(26, conversions_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeMessage(27, getConversionValue()); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { output.writeDouble(28, conversionRate_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(32, storeType_); + } getUnknownFields().writeTo(output); } @@ -2030,78 +2104,81 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, customerCountryCode_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, offerId_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, title_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, brand_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, categoryL1_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, categoryL2_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, categoryL3_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, categoryL4_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, categoryL5_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(13, productTypeL1_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, productTypeL2_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(15, productTypeL3_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(16, productTypeL4_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(17, productTypeL5_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(18, customLabel0_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(19, customLabel1_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(20, customLabel2_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(21, customLabel3_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(22, customLabel4_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, clicks_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(24, impressions_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(25, clickThroughRate_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(26, conversions_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getConversionValue()); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(28, conversionRate_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, storeType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2134,6 +2211,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCustomerCountryCode()) { if (!getCustomerCountryCode().equals(other.getCustomerCountryCode())) return false; } + if (hasStoreType() != other.hasStoreType()) return false; + if (hasStoreType()) { + if (storeType_ != other.storeType_) return false; + } if (hasOfferId() != other.hasOfferId()) return false; if (hasOfferId()) { if (!getOfferId().equals(other.getOfferId())) return false; @@ -2260,6 +2341,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOMER_COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCustomerCountryCode().hashCode(); } + if (hasStoreType()) { + hash = (37 * hash) + STORE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + storeType_; + } if (hasOfferId()) { hash = (37 * hash) + OFFER_ID_FIELD_NUMBER; hash = (53 * hash) + getOfferId().hashCode(); @@ -2540,6 +2625,7 @@ public Builder clear() { weekBuilder_ = null; } customerCountryCode_ = ""; + storeType_ = 0; offerId_ = ""; title_ = ""; brand_ = ""; @@ -2624,102 +2710,106 @@ private void buildPartial0( to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.offerId_ = offerId_; + result.storeType_ = storeType_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.title_ = title_; + result.offerId_ = offerId_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.brand_ = brand_; + result.title_ = title_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.categoryL1_ = categoryL1_; + result.brand_ = brand_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.categoryL2_ = categoryL2_; + result.categoryL1_ = categoryL1_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.categoryL3_ = categoryL3_; + result.categoryL2_ = categoryL2_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.categoryL4_ = categoryL4_; + result.categoryL3_ = categoryL3_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.categoryL5_ = categoryL5_; + result.categoryL4_ = categoryL4_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.productTypeL1_ = productTypeL1_; + result.categoryL5_ = categoryL5_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.productTypeL2_ = productTypeL2_; + result.productTypeL1_ = productTypeL1_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.productTypeL3_ = productTypeL3_; + result.productTypeL2_ = productTypeL2_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.productTypeL4_ = productTypeL4_; + result.productTypeL3_ = productTypeL3_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.productTypeL5_ = productTypeL5_; + result.productTypeL4_ = productTypeL4_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.customLabel0_ = customLabel0_; + result.productTypeL5_ = productTypeL5_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.customLabel1_ = customLabel1_; + result.customLabel0_ = customLabel0_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.customLabel2_ = customLabel2_; + result.customLabel1_ = customLabel1_; to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.customLabel3_ = customLabel3_; + result.customLabel2_ = customLabel2_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.customLabel4_ = customLabel4_; + result.customLabel3_ = customLabel3_; to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.clicks_ = clicks_; + result.customLabel4_ = customLabel4_; to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x00800000) != 0)) { - result.impressions_ = impressions_; + result.clicks_ = clicks_; to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.clickThroughRate_ = clickThroughRate_; + result.impressions_ = impressions_; to_bitField0_ |= 0x01000000; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.conversions_ = conversions_; + result.clickThroughRate_ = clickThroughRate_; to_bitField0_ |= 0x02000000; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.conversionValue_ = - conversionValueBuilder_ == null ? conversionValue_ : conversionValueBuilder_.build(); + result.conversions_ = conversions_; to_bitField0_ |= 0x04000000; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.conversionRate_ = conversionRate_; + result.conversionValue_ = + conversionValueBuilder_ == null ? conversionValue_ : conversionValueBuilder_.build(); to_bitField0_ |= 0x08000000; } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.conversionRate_ = conversionRate_; + to_bitField0_ |= 0x10000000; + } result.bitField0_ |= to_bitField0_; } @@ -2751,94 +2841,97 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1.ProductPerforma bitField0_ |= 0x00000008; onChanged(); } + if (other.hasStoreType()) { + setStoreTypeValue(other.getStoreTypeValue()); + } if (other.hasOfferId()) { offerId_ = other.offerId_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasTitle()) { title_ = other.title_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasBrand()) { brand_ = other.brand_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasCategoryL1()) { categoryL1_ = other.categoryL1_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasCategoryL2()) { categoryL2_ = other.categoryL2_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasCategoryL3()) { categoryL3_ = other.categoryL3_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasCategoryL4()) { categoryL4_ = other.categoryL4_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasCategoryL5()) { categoryL5_ = other.categoryL5_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasProductTypeL1()) { productTypeL1_ = other.productTypeL1_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasProductTypeL2()) { productTypeL2_ = other.productTypeL2_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (other.hasProductTypeL3()) { productTypeL3_ = other.productTypeL3_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasProductTypeL4()) { productTypeL4_ = other.productTypeL4_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasProductTypeL5()) { productTypeL5_ = other.productTypeL5_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasCustomLabel0()) { customLabel0_ = other.customLabel0_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasCustomLabel1()) { customLabel1_ = other.customLabel1_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.hasCustomLabel2()) { customLabel2_ = other.customLabel2_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasCustomLabel3()) { customLabel3_ = other.customLabel3_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasCustomLabel4()) { customLabel4_ = other.customLabel4_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (other.hasClicks()) { @@ -2912,148 +3005,154 @@ public Builder mergeFrom( case 42: { offerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: { brand_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { categoryL1_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: { categoryL2_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: { categoryL3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { categoryL4_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { categoryL5_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { productTypeL1_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 114: { productTypeL2_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 122: { productTypeL3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 122 case 130: { productTypeL4_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 130 case 138: { productTypeL5_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 138 case 146: { customLabel0_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 146 case 154: { customLabel1_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 154 case 162: { customLabel2_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 162 case 170: { customLabel3_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 170 case 178: { customLabel4_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 178 case 184: { clicks_ = input.readInt64(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 184 case 192: { impressions_ = input.readInt64(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 192 case 201: { clickThroughRate_ = input.readDouble(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 201 case 209: { conversions_ = input.readDouble(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 209 case 218: { input.readMessage( internalGetConversionValueFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 218 case 225: { conversionRate_ = input.readDouble(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 225 + case 256: + { + storeType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 256 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3648,51 +3747,168 @@ public java.lang.String getCustomerCountryCode() { * * *
-     * Code of the country where the customer is located at the time of the event.
-     * Represented in the ISO 3166 format. Segment.
+     * Code of the country where the customer is located at the time of the event.
+     * Represented in the ISO 3166 format. Segment.
+     *
+     * If the customer country cannot be determined, a special 'ZZ' code is
+     * returned.
+     * 
+ * + * optional string customer_country_code = 4; + * + * @return The bytes for customerCountryCode. + */ + public com.google.protobuf.ByteString getCustomerCountryCodeBytes() { + java.lang.Object ref = customerCountryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerCountryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Code of the country where the customer is located at the time of the event.
+     * Represented in the ISO 3166 format. Segment.
+     *
+     * If the customer country cannot be determined, a special 'ZZ' code is
+     * returned.
+     * 
+ * + * optional string customer_country_code = 4; + * + * @param value The customerCountryCode to set. + * @return This builder for chaining. + */ + public Builder setCustomerCountryCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Code of the country where the customer is located at the time of the event.
+     * Represented in the ISO 3166 format. Segment.
+     *
+     * If the customer country cannot be determined, a special 'ZZ' code is
+     * returned.
+     * 
+ * + * optional string customer_country_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearCustomerCountryCode() { + customerCountryCode_ = getDefaultInstance().getCustomerCountryCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Code of the country where the customer is located at the time of the event.
+     * Represented in the ISO 3166 format. Segment.
+     *
+     * If the customer country cannot be determined, a special 'ZZ' code is
+     * returned.
+     * 
+ * + * optional string customer_country_code = 4; + * + * @param value The bytes for customerCountryCode to set. + * @return This builder for chaining. + */ + public Builder setCustomerCountryCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerCountryCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int storeType_ = 0; + + /** + * + * + *
+     * Store type to which metrics apply. Can be `ONLINE_STORE` or
+     * `LOCAL_STORES`. Segment.
+     *
+     * For `LOCAL_STORES` store type, further segmentation by a specific store
+     * is not available.
+     * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return Whether the storeType field is set. + */ + @java.lang.Override + public boolean hasStoreType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Store type to which metrics apply. Can be `ONLINE_STORE` or
+     * `LOCAL_STORES`. Segment.
      *
-     * If the customer country cannot be determined, a special 'ZZ' code is
-     * returned.
+     * For `LOCAL_STORES` store type, further segmentation by a specific store
+     * is not available.
      * 
* - * optional string customer_country_code = 4; + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * * - * @return The bytes for customerCountryCode. + * @return The enum numeric value on the wire for storeType. */ - public com.google.protobuf.ByteString getCustomerCountryCodeBytes() { - java.lang.Object ref = customerCountryCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - customerCountryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getStoreTypeValue() { + return storeType_; } /** * * *
-     * Code of the country where the customer is located at the time of the event.
-     * Represented in the ISO 3166 format. Segment.
+     * Store type to which metrics apply. Can be `ONLINE_STORE` or
+     * `LOCAL_STORES`. Segment.
      *
-     * If the customer country cannot be determined, a special 'ZZ' code is
-     * returned.
+     * For `LOCAL_STORES` store type, further segmentation by a specific store
+     * is not available.
      * 
* - * optional string customer_country_code = 4; + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * * - * @param value The customerCountryCode to set. + * @param value The enum numeric value on the wire for storeType to set. * @return This builder for chaining. */ - public Builder setCustomerCountryCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - customerCountryCode_ = value; - bitField0_ |= 0x00000008; + public Builder setStoreTypeValue(int value) { + storeType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3701,47 +3917,74 @@ public Builder setCustomerCountryCode(java.lang.String value) { * * *
-     * Code of the country where the customer is located at the time of the event.
-     * Represented in the ISO 3166 format. Segment.
+     * Store type to which metrics apply. Can be `ONLINE_STORE` or
+     * `LOCAL_STORES`. Segment.
      *
-     * If the customer country cannot be determined, a special 'ZZ' code is
-     * returned.
+     * For `LOCAL_STORES` store type, further segmentation by a specific store
+     * is not available.
      * 
* - * optional string customer_country_code = 4; + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * * - * @return This builder for chaining. + * @return The storeType. */ - public Builder clearCustomerCountryCode() { - customerCountryCode_ = getDefaultInstance().getCustomerCountryCode(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + @java.lang.Override + public com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum getStoreType() { + com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum result = + com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum.forNumber(storeType_); + return result == null + ? com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum.UNRECOGNIZED + : result; } /** * * *
-     * Code of the country where the customer is located at the time of the event.
-     * Represented in the ISO 3166 format. Segment.
+     * Store type to which metrics apply. Can be `ONLINE_STORE` or
+     * `LOCAL_STORES`. Segment.
      *
-     * If the customer country cannot be determined, a special 'ZZ' code is
-     * returned.
+     * For `LOCAL_STORES` store type, further segmentation by a specific store
+     * is not available.
      * 
* - * optional string customer_country_code = 4; + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * * - * @param value The bytes for customerCountryCode to set. + * @param value The storeType to set. * @return This builder for chaining. */ - public Builder setCustomerCountryCodeBytes(com.google.protobuf.ByteString value) { + public Builder setStoreType( + com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - customerCountryCode_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; + storeType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Store type to which metrics apply. Can be `ONLINE_STORE` or
+     * `LOCAL_STORES`. Segment.
+     *
+     * For `LOCAL_STORES` store type, further segmentation by a specific store
+     * is not available.
+     * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return This builder for chaining. + */ + public Builder clearStoreType() { + bitField0_ = (bitField0_ & ~0x00000010); + storeType_ = 0; onChanged(); return this; } @@ -3760,7 +4003,7 @@ public Builder setCustomerCountryCodeBytes(com.google.protobuf.ByteString value) * @return Whether the offerId field is set. */ public boolean hasOfferId() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -3826,7 +4069,7 @@ public Builder setOfferId(java.lang.String value) { throw new NullPointerException(); } offerId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3844,7 +4087,7 @@ public Builder setOfferId(java.lang.String value) { */ public Builder clearOfferId() { offerId_ = getDefaultInstance().getOfferId(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3867,7 +4110,7 @@ public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); offerId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3886,7 +4129,7 @@ public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { * @return Whether the title field is set. */ public boolean hasTitle() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3952,7 +4195,7 @@ public Builder setTitle(java.lang.String value) { throw new NullPointerException(); } title_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3970,7 +4213,7 @@ public Builder setTitle(java.lang.String value) { */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3993,7 +4236,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); title_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4012,7 +4255,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { * @return Whether the brand field is set. */ public boolean hasBrand() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -4078,7 +4321,7 @@ public Builder setBrand(java.lang.String value) { throw new NullPointerException(); } brand_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4096,7 +4339,7 @@ public Builder setBrand(java.lang.String value) { */ public Builder clearBrand() { brand_ = getDefaultInstance().getBrand(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4119,7 +4362,7 @@ public Builder setBrandBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); brand_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4140,7 +4383,7 @@ public Builder setBrandBytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL1 field is set. */ public boolean hasCategoryL1() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -4212,7 +4455,7 @@ public Builder setCategoryL1(java.lang.String value) { throw new NullPointerException(); } categoryL1_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4232,7 +4475,7 @@ public Builder setCategoryL1(java.lang.String value) { */ public Builder clearCategoryL1() { categoryL1_ = getDefaultInstance().getCategoryL1(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4257,7 +4500,7 @@ public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL1_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4278,7 +4521,7 @@ public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL2 field is set. */ public boolean hasCategoryL2() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4350,7 +4593,7 @@ public Builder setCategoryL2(java.lang.String value) { throw new NullPointerException(); } categoryL2_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4370,7 +4613,7 @@ public Builder setCategoryL2(java.lang.String value) { */ public Builder clearCategoryL2() { categoryL2_ = getDefaultInstance().getCategoryL2(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4395,7 +4638,7 @@ public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL2_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4416,7 +4659,7 @@ public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL3 field is set. */ public boolean hasCategoryL3() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -4488,7 +4731,7 @@ public Builder setCategoryL3(java.lang.String value) { throw new NullPointerException(); } categoryL3_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4508,7 +4751,7 @@ public Builder setCategoryL3(java.lang.String value) { */ public Builder clearCategoryL3() { categoryL3_ = getDefaultInstance().getCategoryL3(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4533,7 +4776,7 @@ public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL3_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4554,7 +4797,7 @@ public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL4 field is set. */ public boolean hasCategoryL4() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4626,7 +4869,7 @@ public Builder setCategoryL4(java.lang.String value) { throw new NullPointerException(); } categoryL4_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4646,7 +4889,7 @@ public Builder setCategoryL4(java.lang.String value) { */ public Builder clearCategoryL4() { categoryL4_ = getDefaultInstance().getCategoryL4(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4671,7 +4914,7 @@ public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL4_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4692,7 +4935,7 @@ public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { * @return Whether the categoryL5 field is set. */ public boolean hasCategoryL5() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4764,7 +5007,7 @@ public Builder setCategoryL5(java.lang.String value) { throw new NullPointerException(); } categoryL5_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4784,7 +5027,7 @@ public Builder setCategoryL5(java.lang.String value) { */ public Builder clearCategoryL5() { categoryL5_ = getDefaultInstance().getCategoryL5(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4809,7 +5052,7 @@ public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); categoryL5_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4830,7 +5073,7 @@ public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL1 field is set. */ public boolean hasProductTypeL1() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -4902,7 +5145,7 @@ public Builder setProductTypeL1(java.lang.String value) { throw new NullPointerException(); } productTypeL1_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4922,7 +5165,7 @@ public Builder setProductTypeL1(java.lang.String value) { */ public Builder clearProductTypeL1() { productTypeL1_ = getDefaultInstance().getProductTypeL1(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4947,7 +5190,7 @@ public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL1_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4968,7 +5211,7 @@ public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL2 field is set. */ public boolean hasProductTypeL2() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5040,7 +5283,7 @@ public Builder setProductTypeL2(java.lang.String value) { throw new NullPointerException(); } productTypeL2_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5060,7 +5303,7 @@ public Builder setProductTypeL2(java.lang.String value) { */ public Builder clearProductTypeL2() { productTypeL2_ = getDefaultInstance().getProductTypeL2(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -5085,7 +5328,7 @@ public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL2_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5106,7 +5349,7 @@ public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL3 field is set. */ public boolean hasProductTypeL3() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5178,7 +5421,7 @@ public Builder setProductTypeL3(java.lang.String value) { throw new NullPointerException(); } productTypeL3_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5198,7 +5441,7 @@ public Builder setProductTypeL3(java.lang.String value) { */ public Builder clearProductTypeL3() { productTypeL3_ = getDefaultInstance().getProductTypeL3(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -5223,7 +5466,7 @@ public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL3_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5244,7 +5487,7 @@ public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL4 field is set. */ public boolean hasProductTypeL4() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5316,7 +5559,7 @@ public Builder setProductTypeL4(java.lang.String value) { throw new NullPointerException(); } productTypeL4_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5336,7 +5579,7 @@ public Builder setProductTypeL4(java.lang.String value) { */ public Builder clearProductTypeL4() { productTypeL4_ = getDefaultInstance().getProductTypeL4(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -5361,7 +5604,7 @@ public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL4_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5382,7 +5625,7 @@ public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { * @return Whether the productTypeL5 field is set. */ public boolean hasProductTypeL5() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -5454,7 +5697,7 @@ public Builder setProductTypeL5(java.lang.String value) { throw new NullPointerException(); } productTypeL5_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5474,7 +5717,7 @@ public Builder setProductTypeL5(java.lang.String value) { */ public Builder clearProductTypeL5() { productTypeL5_ = getDefaultInstance().getProductTypeL5(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -5499,7 +5742,7 @@ public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); productTypeL5_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5518,7 +5761,7 @@ public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel0 field is set. */ public boolean hasCustomLabel0() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -5584,7 +5827,7 @@ public Builder setCustomLabel0(java.lang.String value) { throw new NullPointerException(); } customLabel0_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5602,7 +5845,7 @@ public Builder setCustomLabel0(java.lang.String value) { */ public Builder clearCustomLabel0() { customLabel0_ = getDefaultInstance().getCustomLabel0(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -5625,7 +5868,7 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel0_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5644,7 +5887,7 @@ public Builder setCustomLabel0Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel1 field is set. */ public boolean hasCustomLabel1() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -5710,7 +5953,7 @@ public Builder setCustomLabel1(java.lang.String value) { throw new NullPointerException(); } customLabel1_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5728,7 +5971,7 @@ public Builder setCustomLabel1(java.lang.String value) { */ public Builder clearCustomLabel1() { customLabel1_ = getDefaultInstance().getCustomLabel1(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -5751,7 +5994,7 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel1_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5770,7 +6013,7 @@ public Builder setCustomLabel1Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel2 field is set. */ public boolean hasCustomLabel2() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -5836,7 +6079,7 @@ public Builder setCustomLabel2(java.lang.String value) { throw new NullPointerException(); } customLabel2_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5854,7 +6097,7 @@ public Builder setCustomLabel2(java.lang.String value) { */ public Builder clearCustomLabel2() { customLabel2_ = getDefaultInstance().getCustomLabel2(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -5877,7 +6120,7 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel2_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5896,7 +6139,7 @@ public Builder setCustomLabel2Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel3 field is set. */ public boolean hasCustomLabel3() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -5962,7 +6205,7 @@ public Builder setCustomLabel3(java.lang.String value) { throw new NullPointerException(); } customLabel3_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -5980,7 +6223,7 @@ public Builder setCustomLabel3(java.lang.String value) { */ public Builder clearCustomLabel3() { customLabel3_ = getDefaultInstance().getCustomLabel3(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -6003,7 +6246,7 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel3_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6022,7 +6265,7 @@ public Builder setCustomLabel3Bytes(com.google.protobuf.ByteString value) { * @return Whether the customLabel4 field is set. */ public boolean hasCustomLabel4() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -6088,7 +6331,7 @@ public Builder setCustomLabel4(java.lang.String value) { throw new NullPointerException(); } customLabel4_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6106,7 +6349,7 @@ public Builder setCustomLabel4(java.lang.String value) { */ public Builder clearCustomLabel4() { customLabel4_ = getDefaultInstance().getCustomLabel4(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -6129,7 +6372,7 @@ public Builder setCustomLabel4Bytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customLabel4_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6149,7 +6392,7 @@ public Builder setCustomLabel4Bytes(com.google.protobuf.ByteString value) { */ @java.lang.Override public boolean hasClicks() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -6183,7 +6426,7 @@ public long getClicks() { public Builder setClicks(long value) { clicks_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6200,7 +6443,7 @@ public Builder setClicks(long value) { * @return This builder for chaining. */ public Builder clearClicks() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); clicks_ = 0L; onChanged(); return this; @@ -6221,7 +6464,7 @@ public Builder clearClicks() { */ @java.lang.Override public boolean hasImpressions() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -6255,7 +6498,7 @@ public long getImpressions() { public Builder setImpressions(long value) { impressions_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -6272,7 +6515,7 @@ public Builder setImpressions(long value) { * @return This builder for chaining. */ public Builder clearImpressions() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); impressions_ = 0L; onChanged(); return this; @@ -6295,7 +6538,7 @@ public Builder clearImpressions() { */ @java.lang.Override public boolean hasClickThroughRate() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -6333,7 +6576,7 @@ public double getClickThroughRate() { public Builder setClickThroughRate(double value) { clickThroughRate_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -6352,7 +6595,7 @@ public Builder setClickThroughRate(double value) { * @return This builder for chaining. */ public Builder clearClickThroughRate() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); clickThroughRate_ = 0D; onChanged(); return this; @@ -6378,7 +6621,7 @@ public Builder clearClickThroughRate() { */ @java.lang.Override public boolean hasConversions() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -6422,7 +6665,7 @@ public double getConversions() { public Builder setConversions(double value) { conversions_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -6444,7 +6687,7 @@ public Builder setConversions(double value) { * @return This builder for chaining. */ public Builder clearConversions() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); conversions_ = 0D; onChanged(); return this; @@ -6472,7 +6715,7 @@ public Builder clearConversions() { * @return Whether the conversionValue field is set. */ public boolean hasConversionValue() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -6520,7 +6763,7 @@ public Builder setConversionValue(com.google.shopping.type.Price value) { } else { conversionValueBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -6543,7 +6786,7 @@ public Builder setConversionValue(com.google.shopping.type.Price.Builder builder } else { conversionValueBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -6562,7 +6805,7 @@ public Builder setConversionValue(com.google.shopping.type.Price.Builder builder */ public Builder mergeConversionValue(com.google.shopping.type.Price value) { if (conversionValueBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x08000000) != 0) && conversionValue_ != null && conversionValue_ != com.google.shopping.type.Price.getDefaultInstance()) { getConversionValueBuilder().mergeFrom(value); @@ -6573,7 +6816,7 @@ public Builder mergeConversionValue(com.google.shopping.type.Price value) { conversionValueBuilder_.mergeFrom(value); } if (conversionValue_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -6592,7 +6835,7 @@ public Builder mergeConversionValue(com.google.shopping.type.Price value) { * .google.shopping.type.Price conversion_value = 27; */ public Builder clearConversionValue() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); conversionValue_ = null; if (conversionValueBuilder_ != null) { conversionValueBuilder_.dispose(); @@ -6615,7 +6858,7 @@ public Builder clearConversionValue() { * .google.shopping.type.Price conversion_value = 27; */ public com.google.shopping.type.Price.Builder getConversionValueBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return internalGetConversionValueFieldBuilder().getBuilder(); } @@ -6689,7 +6932,7 @@ public com.google.shopping.type.PriceOrBuilder getConversionValueOrBuilder() { */ @java.lang.Override public boolean hasConversionRate() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -6729,7 +6972,7 @@ public double getConversionRate() { public Builder setConversionRate(double value) { conversionRate_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -6749,7 +6992,7 @@ public Builder setConversionRate(double value) { * @return This builder for chaining. */ public Builder clearConversionRate() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); conversionRate_ = 0D; onChanged(); return this; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceViewOrBuilder.java index 91dcd6cfea76..36ceb560e422 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductPerformanceViewOrBuilder.java @@ -205,6 +205,60 @@ public interface ProductPerformanceViewOrBuilder */ com.google.protobuf.ByteString getCustomerCountryCodeBytes(); + /** + * + * + *
+   * Store type to which metrics apply. Can be `ONLINE_STORE` or
+   * `LOCAL_STORES`. Segment.
+   *
+   * For `LOCAL_STORES` store type, further segmentation by a specific store
+   * is not available.
+   * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return Whether the storeType field is set. + */ + boolean hasStoreType(); + + /** + * + * + *
+   * Store type to which metrics apply. Can be `ONLINE_STORE` or
+   * `LOCAL_STORES`. Segment.
+   *
+   * For `LOCAL_STORES` store type, further segmentation by a specific store
+   * is not available.
+   * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return The enum numeric value on the wire for storeType. + */ + int getStoreTypeValue(); + + /** + * + * + *
+   * Store type to which metrics apply. Can be `ONLINE_STORE` or
+   * `LOCAL_STORES`. Segment.
+   *
+   * For `LOCAL_STORES` store type, further segmentation by a specific store
+   * is not available.
+   * 
+ * + * optional .google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum store_type = 32; + * + * + * @return The storeType. + */ + com.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum getStoreType(); + /** * * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductView.java index 53c56fe8ab0c..2f260494fc0b 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductView.java @@ -26,12 +26,13 @@ *
  * Fields available for query in `product_view` table.
  *
- * Products in the current inventory. Products in this table are the same as in
- * Products sub-API but not all product attributes from Products sub-API are
- * available for query in this table. In contrast to Products sub-API, this
- * table allows to filter the returned list of products by product attributes.
- * To retrieve a single product by `id` or list all products, Products sub-API
- * should be used.
+ * Products in the current inventory. Products in this table are the
+ * same as a [Product resource in Products
+ * sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products)
+ * but not all product attributes from Products sub-API are available for query
+ * in this table. In contrast to Products sub-API, this table allows to filter
+ * the returned list of products by product attributes. To retrieve a single
+ * product by `id` or list all products, Products sub-API should be used.
  *
  * Values are only set for fields requested explicitly in the request's search
  * query.
@@ -86,6 +87,8 @@ private ProductView() {
     itemGroupId_ = "";
     thumbnailLink_ = "";
     aggregatedReportingContextStatus_ = 0;
+    statusPerReportingContext_ = java.util.Collections.emptyList();
+    reportingContext_ = 0;
     itemIssues_ = java.util.Collections.emptyList();
     clickPotential_ = 0;
   }
@@ -111,6 +114,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
    * Status of the product aggregated for all reporting contexts.
    *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
+   *
    * Here's an example of how the aggregated status is computed:
    *
    * Free listings | Shopping ads | Status
@@ -140,7 +146,8 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot
      *
      *
      * 
-     * Product is not eligible or is disapproved for all reporting contexts.
+     * Product is not eligible or is disapproved for all reporting contexts and
+     * countries.
      * 
* * NOT_ELIGIBLE_OR_DISAPPROVED = 1; @@ -150,7 +157,7 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product's status is pending in all reporting contexts.
+     * Product's status is pending in all reporting contexts and countries.
      * 
* * PENDING = 2; @@ -160,7 +167,8 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product is eligible for some (but not all) reporting contexts.
+     * Product is eligible for some (but not all) reporting contexts and
+     * countries.
      * 
* * ELIGIBLE_LIMITED = 3; @@ -170,7 +178,7 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product is eligible for all reporting contexts.
+     * Product is eligible for all reporting contexts and countries.
      * 
* * ELIGIBLE = 4; @@ -204,7 +212,8 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product is not eligible or is disapproved for all reporting contexts.
+     * Product is not eligible or is disapproved for all reporting contexts and
+     * countries.
      * 
* * NOT_ELIGIBLE_OR_DISAPPROVED = 1; @@ -215,7 +224,7 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product's status is pending in all reporting contexts.
+     * Product's status is pending in all reporting contexts and countries.
      * 
* * PENDING = 2; @@ -226,7 +235,8 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product is eligible for some (but not all) reporting contexts.
+     * Product is eligible for some (but not all) reporting contexts and
+     * countries.
      * 
* * ELIGIBLE_LIMITED = 3; @@ -237,7 +247,7 @@ public enum AggregatedReportingContextStatus implements com.google.protobuf.Prot * * *
-     * Product is eligible for all reporting contexts.
+     * Product is eligible for all reporting contexts and countries.
      * 
* * ELIGIBLE = 4; @@ -1886,6 +1896,9 @@ public interface ItemIssueSeverityOrBuilder * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -1902,6 +1915,9 @@ public interface ItemIssueSeverityOrBuilder * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -1917,6 +1933,9 @@ public interface ItemIssueSeverityOrBuilder * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -1930,6 +1949,9 @@ public interface ItemIssueSeverityOrBuilder * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -1947,6 +1969,9 @@ public interface ItemIssueSeverityOrBuilder * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -1963,6 +1988,10 @@ public interface ItemIssueSeverityOrBuilder *
        * Aggregated severity of the issue for all reporting contexts it affects.
        *
+       * Reporting contexts included in the computation of the aggregated
+       * severity can be restricted using a filter on the `reporting_context`
+       * field.
+       *
        * **This field can be used for filtering the results.**
        * 
* @@ -1980,6 +2009,10 @@ public interface ItemIssueSeverityOrBuilder *
        * Aggregated severity of the issue for all reporting contexts it affects.
        *
+       * Reporting contexts included in the computation of the aggregated
+       * severity can be restricted using a filter on the `reporting_context`
+       * field.
+       *
        * **This field can be used for filtering the results.**
        * 
* @@ -1997,6 +2030,10 @@ public interface ItemIssueSeverityOrBuilder *
        * Aggregated severity of the issue for all reporting contexts it affects.
        *
+       * Reporting contexts included in the computation of the aggregated
+       * severity can be restricted using a filter on the `reporting_context`
+       * field.
+       *
        * **This field can be used for filtering the results.**
        * 
* @@ -3741,6 +3778,9 @@ public com.google.protobuf.Parser getParserFor * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -3760,6 +3800,9 @@ public com.google.protobuf.Parser getParserFor * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -3780,6 +3823,9 @@ public com.google.protobuf.Parser getParserFor * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -3796,6 +3842,9 @@ public int getSeverityPerReportingContextCount() { * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -3814,6 +3863,9 @@ public int getSeverityPerReportingContextCount() { * *
        * Issue severity per reporting context.
+       *
+       * Reporting contexts included in this list can be restricted using a
+       * filter on the `reporting_context` field.
        * 
* * @@ -3836,6 +3888,10 @@ public int getSeverityPerReportingContextCount() { *
        * Aggregated severity of the issue for all reporting contexts it affects.
        *
+       * Reporting contexts included in the computation of the aggregated
+       * severity can be restricted using a filter on the `reporting_context`
+       * field.
+       *
        * **This field can be used for filtering the results.**
        * 
* @@ -3856,6 +3912,10 @@ public boolean hasAggregatedSeverity() { *
        * Aggregated severity of the issue for all reporting contexts it affects.
        *
+       * Reporting contexts included in the computation of the aggregated
+       * severity can be restricted using a filter on the `reporting_context`
+       * field.
+       *
        * **This field can be used for filtering the results.**
        * 
* @@ -3876,6 +3936,10 @@ public int getAggregatedSeverityValue() { *
        * Aggregated severity of the issue for all reporting contexts it affects.
        *
+       * Reporting contexts included in the computation of the aggregated
+       * severity can be restricted using a filter on the `reporting_context`
+       * field.
+       *
        * **This field can be used for filtering the results.**
        * 
* @@ -4359,6 +4423,9 @@ private void ensureSeverityPerReportingContextIsMutable() { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4381,6 +4448,9 @@ private void ensureSeverityPerReportingContextIsMutable() { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4400,6 +4470,9 @@ public int getSeverityPerReportingContextCount() { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4421,6 +4494,9 @@ public int getSeverityPerReportingContextCount() { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4450,6 +4526,9 @@ public Builder setSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4476,6 +4555,9 @@ public Builder setSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4504,6 +4586,9 @@ public Builder addSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4533,6 +4618,9 @@ public Builder addSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4558,6 +4646,9 @@ public Builder addSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4584,6 +4675,9 @@ public Builder addSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4612,6 +4706,9 @@ public Builder addAllSeverityPerReportingContext( * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4634,6 +4731,9 @@ public Builder clearSeverityPerReportingContext() { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4656,6 +4756,9 @@ public Builder removeSeverityPerReportingContext(int index) { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4673,6 +4776,9 @@ public Builder removeSeverityPerReportingContext(int index) { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4694,6 +4800,9 @@ public Builder removeSeverityPerReportingContext(int index) { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4717,6 +4826,9 @@ public Builder removeSeverityPerReportingContext(int index) { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4737,6 +4849,9 @@ public Builder removeSeverityPerReportingContext(int index) { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4758,6 +4873,9 @@ public Builder removeSeverityPerReportingContext(int index) { * *
          * Issue severity per reporting context.
+         *
+         * Reporting contexts included in this list can be restricted using a
+         * filter on the `reporting_context` field.
          * 
* * @@ -4805,6 +4923,10 @@ public Builder removeSeverityPerReportingContext(int index) { *
          * Aggregated severity of the issue for all reporting contexts it affects.
          *
+         * Reporting contexts included in the computation of the aggregated
+         * severity can be restricted using a filter on the `reporting_context`
+         * field.
+         *
          * **This field can be used for filtering the results.**
          * 
* @@ -4825,6 +4947,10 @@ public boolean hasAggregatedSeverity() { *
          * Aggregated severity of the issue for all reporting contexts it affects.
          *
+         * Reporting contexts included in the computation of the aggregated
+         * severity can be restricted using a filter on the `reporting_context`
+         * field.
+         *
          * **This field can be used for filtering the results.**
          * 
* @@ -4845,6 +4971,10 @@ public int getAggregatedSeverityValue() { *
          * Aggregated severity of the issue for all reporting contexts it affects.
          *
+         * Reporting contexts included in the computation of the aggregated
+         * severity can be restricted using a filter on the `reporting_context`
+         * field.
+         *
          * **This field can be used for filtering the results.**
          * 
* @@ -4868,6 +4998,10 @@ public Builder setAggregatedSeverityValue(int value) { *
          * Aggregated severity of the issue for all reporting contexts it affects.
          *
+         * Reporting contexts included in the computation of the aggregated
+         * severity can be restricted using a filter on the `reporting_context`
+         * field.
+         *
          * **This field can be used for filtering the results.**
          * 
* @@ -4898,6 +5032,10 @@ public Builder setAggregatedSeverityValue(int value) { *
          * Aggregated severity of the issue for all reporting contexts it affects.
          *
+         * Reporting contexts included in the computation of the aggregated
+         * severity can be restricted using a filter on the `reporting_context`
+         * field.
+         *
          * **This field can be used for filtering the results.**
          * 
* @@ -4927,6 +5065,10 @@ public Builder setAggregatedSeverity( *
          * Aggregated severity of the issue for all reporting contexts it affects.
          *
+         * Reporting contexts included in the computation of the aggregated
+         * severity can be restricted using a filter on the `reporting_context`
+         * field.
+         *
          * **This field can be used for filtering the results.**
          * 
* @@ -6213,78 +6355,1909 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; + public interface StatusPerReportingContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + /** + * + * + *
+     * Reporting context the status applies to.
+     * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return Whether the reportingContext field is set. + */ + boolean hasReportingContext(); - /** - * - * - *
-   * REST ID of the product, in the form of
-   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-   * on products take this as their `name` parameter.
-   *
-   * Required in the `SELECT` clause.
-   * 
- * - * optional string id = 1; - * - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); + /** + * + * + *
+     * Reporting context the status applies to.
+     * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + int getReportingContextValue(); + + /** + * + * + *
+     * Reporting context the status applies to.
+     * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The reportingContext. + */ + com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext(); + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @return A list containing the approvedCountries. + */ + java.util.List getApprovedCountriesList(); + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @return The count of approvedCountries. + */ + int getApprovedCountriesCount(); + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index of the element to return. + * @return The approvedCountries at the given index. + */ + java.lang.String getApprovedCountries(int index); + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index of the value to return. + * @return The bytes of the approvedCountries at the given index. + */ + com.google.protobuf.ByteString getApprovedCountriesBytes(int index); + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @return A list containing the disapprovedCountries. + */ + java.util.List getDisapprovedCountriesList(); + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @return The count of disapprovedCountries. + */ + int getDisapprovedCountriesCount(); + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index of the element to return. + * @return The disapprovedCountries at the given index. + */ + java.lang.String getDisapprovedCountries(int index); + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the disapprovedCountries at the given index. + */ + com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index); + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @return A list containing the pendingCountries. + */ + java.util.List getPendingCountriesList(); + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @return The count of pendingCountries. + */ + int getPendingCountriesCount(); + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index of the element to return. + * @return The pendingCountries at the given index. + */ + java.lang.String getPendingCountries(int index); + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pendingCountries at the given index. + */ + com.google.protobuf.ByteString getPendingCountriesBytes(int index); } /** * * *
-   * REST ID of the product, in the form of
-   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-   * on products take this as their `name` parameter.
+   * Status of the product for a specific reporting context.
    *
-   * Required in the `SELECT` clause.
+   * Equivalent to
+   * [`DestinationStatus`][google.shopping.merchant.products.v1.ProductStatus.DestinationStatus]
+   * in Products API.
    * 
* - * optional string id = 1; - * - * @return The id. + * Protobuf type {@code google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext} */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - 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(); - id_ = s; - return s; + public static final class StatusPerReportingContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) + StatusPerReportingContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StatusPerReportingContext"); } - } - /** - * - * - *
-   * REST ID of the product, in the form of
-   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-   * on products take this as their `name` parameter.
-   *
-   * Required in the `SELECT` clause.
-   * 
- * - * optional string id = 1; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + // Use StatusPerReportingContext.newBuilder() to construct. + private StatusPerReportingContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StatusPerReportingContext() { + reportingContext_ = 0; + approvedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pendingCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.class, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + .class); + } + + private int bitField0_; + public static final int REPORTING_CONTEXT_FIELD_NUMBER = 1; + private int reportingContext_ = 0; + + /** + * + * + *
+     * Reporting context the status applies to.
+     * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return Whether the reportingContext field is set. + */ + @java.lang.Override + public boolean hasReportingContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Reporting context the status applies to.
+     * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + @java.lang.Override + public int getReportingContextValue() { + return reportingContext_; + } + + /** + * + * + *
+     * Reporting context the status applies to.
+     * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The reportingContext. + */ + @java.lang.Override + public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); + return result == null + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED + : result; + } + + public static final int APPROVED_COUNTRIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList approvedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @return A list containing the approvedCountries. + */ + public com.google.protobuf.ProtocolStringList getApprovedCountriesList() { + return approvedCountries_; + } + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @return The count of approvedCountries. + */ + public int getApprovedCountriesCount() { + return approvedCountries_.size(); + } + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index of the element to return. + * @return The approvedCountries at the given index. + */ + public java.lang.String getApprovedCountries(int index) { + return approvedCountries_.get(index); + } + + /** + * + * + *
+     * List of approved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index of the value to return. + * @return The bytes of the approvedCountries at the given index. + */ + public com.google.protobuf.ByteString getApprovedCountriesBytes(int index) { + return approvedCountries_.getByteString(index); + } + + public static final int DISAPPROVED_COUNTRIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList disapprovedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @return A list containing the disapprovedCountries. + */ + public com.google.protobuf.ProtocolStringList getDisapprovedCountriesList() { + return disapprovedCountries_; + } + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @return The count of disapprovedCountries. + */ + public int getDisapprovedCountriesCount() { + return disapprovedCountries_.size(); + } + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index of the element to return. + * @return The disapprovedCountries at the given index. + */ + public java.lang.String getDisapprovedCountries(int index) { + return disapprovedCountries_.get(index); + } + + /** + * + * + *
+     * List of disapproved countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the disapprovedCountries at the given index. + */ + public com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index) { + return disapprovedCountries_.getByteString(index); + } + + public static final int PENDING_COUNTRIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pendingCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @return A list containing the pendingCountries. + */ + public com.google.protobuf.ProtocolStringList getPendingCountriesList() { + return pendingCountries_; + } + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @return The count of pendingCountries. + */ + public int getPendingCountriesCount() { + return pendingCountries_.size(); + } + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index of the element to return. + * @return The pendingCountries at the given index. + */ + public java.lang.String getPendingCountries(int index) { + return pendingCountries_.get(index); + } + + /** + * + * + *
+     * List of pending countries in the reporting context, represented in
+     * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+     * example, `US`.
+     * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pendingCountries at the given index. + */ + public com.google.protobuf.ByteString getPendingCountriesBytes(int index) { + return pendingCountries_.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 { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, reportingContext_); + } + for (int i = 0; i < approvedCountries_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, approvedCountries_.getRaw(i)); + } + for (int i = 0; i < disapprovedCountries_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 3, disapprovedCountries_.getRaw(i)); + } + for (int i = 0; i < pendingCountries_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pendingCountries_.getRaw(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.computeEnumSize(1, reportingContext_); + } + { + int dataSize = 0; + for (int i = 0; i < approvedCountries_.size(); i++) { + dataSize += computeStringSizeNoTag(approvedCountries_.getRaw(i)); + } + size += dataSize; + size += 1 * getApprovedCountriesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < disapprovedCountries_.size(); i++) { + dataSize += computeStringSizeNoTag(disapprovedCountries_.getRaw(i)); + } + size += dataSize; + size += 1 * getDisapprovedCountriesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < pendingCountries_.size(); i++) { + dataSize += computeStringSizeNoTag(pendingCountries_.getRaw(i)); + } + size += dataSize; + size += 1 * getPendingCountriesList().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.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext other = + (com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) obj; + + if (hasReportingContext() != other.hasReportingContext()) return false; + if (hasReportingContext()) { + if (reportingContext_ != other.reportingContext_) return false; + } + if (!getApprovedCountriesList().equals(other.getApprovedCountriesList())) return false; + if (!getDisapprovedCountriesList().equals(other.getDisapprovedCountriesList())) return false; + if (!getPendingCountriesList().equals(other.getPendingCountriesList())) 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 (hasReportingContext()) { + hash = (37 * hash) + REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + reportingContext_; + } + if (getApprovedCountriesCount() > 0) { + hash = (37 * hash) + APPROVED_COUNTRIES_FIELD_NUMBER; + hash = (53 * hash) + getApprovedCountriesList().hashCode(); + } + if (getDisapprovedCountriesCount() > 0) { + hash = (37 * hash) + DISAPPROVED_COUNTRIES_FIELD_NUMBER; + hash = (53 * hash) + getDisapprovedCountriesList().hashCode(); + } + if (getPendingCountriesCount() > 0) { + hash = (37 * hash) + PENDING_COUNTRIES_FIELD_NUMBER; + hash = (53 * hash) + getPendingCountriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + 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.v1.ProductView.StatusPerReportingContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseFrom( + 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.v1.ProductView.StatusPerReportingContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + 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.v1.ProductView.StatusPerReportingContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.ProductView.StatusPerReportingContext 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Status of the product for a specific reporting context.
+     *
+     * Equivalent to
+     * [`DestinationStatus`][google.shopping.merchant.products.v1.ProductStatus.DestinationStatus]
+     * in Products API.
+     * 
+ * + * Protobuf type {@code + * google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.class, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + .Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportingContext_ = 0; + approvedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pendingCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext build() { + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + buildPartial() { + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext result = + new com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportingContext_ = reportingContext_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + approvedCountries_.makeImmutable(); + result.approvedCountries_ = approvedCountries_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + disapprovedCountries_.makeImmutable(); + result.disapprovedCountries_ = disapprovedCountries_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pendingCountries_.makeImmutable(); + result.pendingCountries_ = pendingCountries_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext other) { + if (other + == com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + .getDefaultInstance()) return this; + if (other.hasReportingContext()) { + setReportingContextValue(other.getReportingContextValue()); + } + if (!other.approvedCountries_.isEmpty()) { + if (approvedCountries_.isEmpty()) { + approvedCountries_ = other.approvedCountries_; + bitField0_ |= 0x00000002; + } else { + ensureApprovedCountriesIsMutable(); + approvedCountries_.addAll(other.approvedCountries_); + } + onChanged(); + } + if (!other.disapprovedCountries_.isEmpty()) { + if (disapprovedCountries_.isEmpty()) { + disapprovedCountries_ = other.disapprovedCountries_; + bitField0_ |= 0x00000004; + } else { + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.addAll(other.disapprovedCountries_); + } + onChanged(); + } + if (!other.pendingCountries_.isEmpty()) { + if (pendingCountries_.isEmpty()) { + pendingCountries_ = other.pendingCountries_; + bitField0_ |= 0x00000008; + } else { + ensurePendingCountriesIsMutable(); + pendingCountries_.addAll(other.pendingCountries_); + } + 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 8: + { + reportingContext_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureApprovedCountriesIsMutable(); + approvedCountries_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePendingCountriesIsMutable(); + pendingCountries_.add(s); + 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 int reportingContext_ = 0; + + /** + * + * + *
+       * Reporting context the status applies to.
+       * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return Whether the reportingContext field is set. + */ + @java.lang.Override + public boolean hasReportingContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Reporting context the status applies to.
+       * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + @java.lang.Override + public int getReportingContextValue() { + return reportingContext_; + } + + /** + * + * + *
+       * Reporting context the status applies to.
+       * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @param value The enum numeric value on the wire for reportingContext to set. + * @return This builder for chaining. + */ + public Builder setReportingContextValue(int value) { + reportingContext_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Reporting context the status applies to.
+       * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return The reportingContext. + */ + @java.lang.Override + public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); + return result == null + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Reporting context the status applies to.
+       * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @param value The reportingContext to set. + * @return This builder for chaining. + */ + public Builder setReportingContext( + com.google.shopping.type.ReportingContext.ReportingContextEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + reportingContext_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Reporting context the status applies to.
+       * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearReportingContext() { + bitField0_ = (bitField0_ & ~0x00000001); + reportingContext_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList approvedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureApprovedCountriesIsMutable() { + if (!approvedCountries_.isModifiable()) { + approvedCountries_ = new com.google.protobuf.LazyStringArrayList(approvedCountries_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @return A list containing the approvedCountries. + */ + public com.google.protobuf.ProtocolStringList getApprovedCountriesList() { + approvedCountries_.makeImmutable(); + return approvedCountries_; + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @return The count of approvedCountries. + */ + public int getApprovedCountriesCount() { + return approvedCountries_.size(); + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index of the element to return. + * @return The approvedCountries at the given index. + */ + public java.lang.String getApprovedCountries(int index) { + return approvedCountries_.get(index); + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index of the value to return. + * @return The bytes of the approvedCountries at the given index. + */ + public com.google.protobuf.ByteString getApprovedCountriesBytes(int index) { + return approvedCountries_.getByteString(index); + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @param index The index to set the value at. + * @param value The approvedCountries to set. + * @return This builder for chaining. + */ + public Builder setApprovedCountries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApprovedCountriesIsMutable(); + approvedCountries_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @param value The approvedCountries to add. + * @return This builder for chaining. + */ + public Builder addApprovedCountries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApprovedCountriesIsMutable(); + approvedCountries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @param values The approvedCountries to add. + * @return This builder for chaining. + */ + public Builder addAllApprovedCountries(java.lang.Iterable values) { + ensureApprovedCountriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, approvedCountries_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @return This builder for chaining. + */ + public Builder clearApprovedCountries() { + approvedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of approved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string approved_countries = 2; + * + * @param value The bytes of the approvedCountries to add. + * @return This builder for chaining. + */ + public Builder addApprovedCountriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApprovedCountriesIsMutable(); + approvedCountries_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList disapprovedCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDisapprovedCountriesIsMutable() { + if (!disapprovedCountries_.isModifiable()) { + disapprovedCountries_ = + new com.google.protobuf.LazyStringArrayList(disapprovedCountries_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @return A list containing the disapprovedCountries. + */ + public com.google.protobuf.ProtocolStringList getDisapprovedCountriesList() { + disapprovedCountries_.makeImmutable(); + return disapprovedCountries_; + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @return The count of disapprovedCountries. + */ + public int getDisapprovedCountriesCount() { + return disapprovedCountries_.size(); + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index of the element to return. + * @return The disapprovedCountries at the given index. + */ + public java.lang.String getDisapprovedCountries(int index) { + return disapprovedCountries_.get(index); + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the disapprovedCountries at the given index. + */ + public com.google.protobuf.ByteString getDisapprovedCountriesBytes(int index) { + return disapprovedCountries_.getByteString(index); + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @param index The index to set the value at. + * @param value The disapprovedCountries to set. + * @return This builder for chaining. + */ + public Builder setDisapprovedCountries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @param value The disapprovedCountries to add. + * @return This builder for chaining. + */ + public Builder addDisapprovedCountries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @param values The disapprovedCountries to add. + * @return This builder for chaining. + */ + public Builder addAllDisapprovedCountries(java.lang.Iterable values) { + ensureDisapprovedCountriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disapprovedCountries_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisapprovedCountries() { + disapprovedCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of disapproved countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string disapproved_countries = 3; + * + * @param value The bytes of the disapprovedCountries to add. + * @return This builder for chaining. + */ + public Builder addDisapprovedCountriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDisapprovedCountriesIsMutable(); + disapprovedCountries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pendingCountries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePendingCountriesIsMutable() { + if (!pendingCountries_.isModifiable()) { + pendingCountries_ = new com.google.protobuf.LazyStringArrayList(pendingCountries_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @return A list containing the pendingCountries. + */ + public com.google.protobuf.ProtocolStringList getPendingCountriesList() { + pendingCountries_.makeImmutable(); + return pendingCountries_; + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @return The count of pendingCountries. + */ + public int getPendingCountriesCount() { + return pendingCountries_.size(); + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index of the element to return. + * @return The pendingCountries at the given index. + */ + public java.lang.String getPendingCountries(int index) { + return pendingCountries_.get(index); + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pendingCountries at the given index. + */ + public com.google.protobuf.ByteString getPendingCountriesBytes(int index) { + return pendingCountries_.getByteString(index); + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @param index The index to set the value at. + * @param value The pendingCountries to set. + * @return This builder for chaining. + */ + public Builder setPendingCountries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingCountriesIsMutable(); + pendingCountries_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @param value The pendingCountries to add. + * @return This builder for chaining. + */ + public Builder addPendingCountries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingCountriesIsMutable(); + pendingCountries_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @param values The pendingCountries to add. + * @return This builder for chaining. + */ + public Builder addAllPendingCountries(java.lang.Iterable values) { + ensurePendingCountriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pendingCountries_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @return This builder for chaining. + */ + public Builder clearPendingCountries() { + pendingCountries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of pending countries in the reporting context, represented in
+       * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for
+       * example, `US`.
+       * 
+ * + * repeated string pending_countries = 4; + * + * @param value The bytes of the pendingCountries to add. + * @return This builder for chaining. + */ + public Builder addPendingCountriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePendingCountriesIsMutable(); + pendingCountries_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext) + private static final com.google.shopping.merchant.reports.v1.ProductView + .StatusPerReportingContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext(); + } + + public static com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusPerReportingContext 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.v1.ProductView.StatusPerReportingContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
+   *
+   * Required in the `SELECT` clause.
+   * 
+ * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
+   *
+   * Required in the `SELECT` clause.
+   * 
+ * + * optional string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * REST ID of the product, in the form of
+   * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+   * on products take this as their `name` parameter.
+   *
+   * Required in the `SELECT` clause.
+   * 
+ * + * optional string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); @@ -7968,94 +9941,325 @@ public boolean hasExpirationDate() { /** * * - *
-   * Expiration date for the product, specified on insertion.
+   * 
+   * Expiration date for the product, specified on insertion.
+   * 
+ * + * .google.type.Date expiration_date = 25; + * + * @return The expirationDate. + */ + @java.lang.Override + public com.google.type.Date getExpirationDate() { + return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; + } + + /** + * + * + *
+   * Expiration date for the product, specified on insertion.
+   * 
+ * + * .google.type.Date expiration_date = 25; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { + return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; + } + + public static final int AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER = 26; + private int aggregatedReportingContextStatus_ = 0; + + /** + * + * + *
+   * Aggregated status across all reporting contexts.
+   *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
+   * 
+ * + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return Whether the aggregatedReportingContextStatus field is set. + */ + @java.lang.Override + public boolean hasAggregatedReportingContextStatus() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
+   * Aggregated status across all reporting contexts.
+   *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
+   * 
+ * + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. + */ + @java.lang.Override + public int getAggregatedReportingContextStatusValue() { + return aggregatedReportingContextStatus_; + } + + /** + * + * + *
+   * Aggregated status across all reporting contexts.
+   *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
+   * 
+ * + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * + * + * @return The aggregatedReportingContextStatus. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus() { + com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus result = + com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + .forNumber(aggregatedReportingContextStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + .UNRECOGNIZED + : result; + } + + public static final int STATUS_PER_REPORTING_CONTEXT_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private java.util.List< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext> + statusPerReportingContext_; + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + @java.lang.Override + public java.util.List< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext> + getStatusPerReportingContextList() { + return statusPerReportingContext_; + } + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.shopping.merchant.reports.v1.ProductView + .StatusPerReportingContextOrBuilder> + getStatusPerReportingContextOrBuilderList() { + return statusPerReportingContext_; + } + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + @java.lang.Override + public int getStatusPerReportingContextCount() { + return statusPerReportingContext_.size(); + } + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
    * 
* - * .google.type.Date expiration_date = 25; - * - * @return The expirationDate. + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ @java.lang.Override - public com.google.type.Date getExpirationDate() { - return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + getStatusPerReportingContext(int index) { + return statusPerReportingContext_.get(index); } /** * * *
-   * Expiration date for the product, specified on insertion.
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
    * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ @java.lang.Override - public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { - return expirationDate_ == null ? com.google.type.Date.getDefaultInstance() : expirationDate_; + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContextOrBuilder + getStatusPerReportingContextOrBuilder(int index) { + return statusPerReportingContext_.get(index); } - public static final int AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER = 26; - private int aggregatedReportingContextStatus_ = 0; + public static final int REPORTING_CONTEXT_FIELD_NUMBER = 33; + private int reportingContext_ = 0; /** * * *
-   * Aggregated status.
+   * Reporting context to restrict the query to.
+   *
+   * Restricts the reporting contexts returned in `status_per_reporting_context`
+   * and `item_issues`, and used to compute
+   * `aggregated_reporting_context_status`.
+   *
+   * **This field can only be used in the `WHERE` clause and cannot be selected
+   * in the `SELECT` clause.**
    * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @return Whether the aggregatedReportingContextStatus field is set. + * @return Whether the reportingContext field is set. */ @java.lang.Override - public boolean hasAggregatedReportingContextStatus() { - return ((bitField0_ & 0x02000000) != 0); + public boolean hasReportingContext() { + return ((bitField0_ & 0x04000000) != 0); } /** * * *
-   * Aggregated status.
+   * Reporting context to restrict the query to.
+   *
+   * Restricts the reporting contexts returned in `status_per_reporting_context`
+   * and `item_issues`, and used to compute
+   * `aggregated_reporting_context_status`.
+   *
+   * **This field can only be used in the `WHERE` clause and cannot be selected
+   * in the `SELECT` clause.**
    * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @return The enum numeric value on the wire for aggregatedReportingContextStatus. + * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override - public int getAggregatedReportingContextStatusValue() { - return aggregatedReportingContextStatus_; + public int getReportingContextValue() { + return reportingContext_; } /** * * *
-   * Aggregated status.
+   * Reporting context to restrict the query to.
+   *
+   * Restricts the reporting contexts returned in `status_per_reporting_context`
+   * and `item_issues`, and used to compute
+   * `aggregated_reporting_context_status`.
+   *
+   * **This field can only be used in the `WHERE` clause and cannot be selected
+   * in the `SELECT` clause.**
    * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @return The aggregatedReportingContextStatus. + * @return The reportingContext. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - getAggregatedReportingContextStatus() { - com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus result = - com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - .forNumber(aggregatedReportingContextStatus_); + public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber(reportingContext_); return result == null - ? com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - .UNRECOGNIZED + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED : result; } @@ -8224,9 +10428,8 @@ public com.google.shopping.merchant.reports.v1.ProductView.ClickPotential getCli * * *
-   * Rank of the product based on its click potential. A product with
-   * `click_potential_rank` 1 has the highest click potential among the
-   * merchant's products that fulfill the search query conditions.
+   * Normalized click potential of the product. Values range from 1 to 1000,
+   * where 1 is the highest click potential and 1000 is the theoretical lowest.
    * 
* * optional int64 click_potential_rank = 30; @@ -8235,16 +10438,15 @@ public com.google.shopping.merchant.reports.v1.ProductView.ClickPotential getCli */ @java.lang.Override public boolean hasClickPotentialRank() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** * * *
-   * Rank of the product based on its click potential. A product with
-   * `click_potential_rank` 1 has the highest click potential among the
-   * merchant's products that fulfill the search query conditions.
+   * Normalized click potential of the product. Values range from 1 to 1000,
+   * where 1 is the highest click potential and 1000 is the theoretical lowest.
    * 
* * optional int64 click_potential_rank = 30; @@ -8360,9 +10562,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(29, clickPotential_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { output.writeInt64(30, clickPotentialRank_); } + for (int i = 0; i < statusPerReportingContext_.size(); i++) { + output.writeMessage(32, statusPerReportingContext_.get(i)); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeEnum(33, reportingContext_); + } getUnknownFields().writeTo(output); } @@ -8469,9 +10677,17 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(29, clickPotential_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(30, clickPotentialRank_); } + for (int i = 0; i < statusPerReportingContext_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 32, statusPerReportingContext_.get(i)); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(33, reportingContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8595,6 +10811,12 @@ public boolean equals(final java.lang.Object obj) { if (aggregatedReportingContextStatus_ != other.aggregatedReportingContextStatus_) return false; } + if (!getStatusPerReportingContextList().equals(other.getStatusPerReportingContextList())) + return false; + if (hasReportingContext() != other.hasReportingContext()) return false; + if (hasReportingContext()) { + if (reportingContext_ != other.reportingContext_) return false; + } if (!getItemIssuesList().equals(other.getItemIssuesList())) return false; if (clickPotential_ != other.clickPotential_) return false; if (hasClickPotentialRank() != other.hasClickPotentialRank()) return false; @@ -8720,6 +10942,14 @@ public int hashCode() { hash = (37 * hash) + AGGREGATED_REPORTING_CONTEXT_STATUS_FIELD_NUMBER; hash = (53 * hash) + aggregatedReportingContextStatus_; } + if (getStatusPerReportingContextCount() > 0) { + hash = (37 * hash) + STATUS_PER_REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getStatusPerReportingContextList().hashCode(); + } + if (hasReportingContext()) { + hash = (37 * hash) + REPORTING_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + reportingContext_; + } if (getItemIssuesCount() > 0) { hash = (37 * hash) + ITEM_ISSUES_FIELD_NUMBER; hash = (53 * hash) + getItemIssuesList().hashCode(); @@ -8837,12 +11067,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
    * Fields available for query in `product_view` table.
    *
-   * Products in the current inventory. Products in this table are the same as in
-   * Products sub-API but not all product attributes from Products sub-API are
-   * available for query in this table. In contrast to Products sub-API, this
-   * table allows to filter the returned list of products by product attributes.
-   * To retrieve a single product by `id` or list all products, Products sub-API
-   * should be used.
+   * Products in the current inventory. Products in this table are the
+   * same as a [Product resource in Products
+   * sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products)
+   * but not all product attributes from Products sub-API are available for query
+   * in this table. In contrast to Products sub-API, this table allows to filter
+   * the returned list of products by product attributes. To retrieve a single
+   * product by `id` or list all products, Products sub-API should be used.
    *
    * Values are only set for fields requested explicitly in the request's search
    * query.
@@ -8884,6 +11115,7 @@ private void maybeForceBuilderInitialization() {
         internalGetPriceFieldBuilder();
         internalGetCreationTimeFieldBuilder();
         internalGetExpirationDateFieldBuilder();
+        internalGetStatusPerReportingContextFieldBuilder();
         internalGetItemIssuesFieldBuilder();
       }
     }
@@ -8931,13 +11163,21 @@ public Builder clear() {
         expirationDateBuilder_ = null;
       }
       aggregatedReportingContextStatus_ = 0;
+      if (statusPerReportingContextBuilder_ == null) {
+        statusPerReportingContext_ = java.util.Collections.emptyList();
+      } else {
+        statusPerReportingContext_ = null;
+        statusPerReportingContextBuilder_.clear();
+      }
+      bitField0_ = (bitField0_ & ~0x08000000);
+      reportingContext_ = 0;
       if (itemIssuesBuilder_ == null) {
         itemIssues_ = java.util.Collections.emptyList();
       } else {
         itemIssues_ = null;
         itemIssuesBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x08000000);
+      bitField0_ = (bitField0_ & ~0x20000000);
       clickPotential_ = 0;
       clickPotentialRank_ = 0L;
       return this;
@@ -8977,11 +11217,21 @@ public com.google.shopping.merchant.reports.v1.ProductView buildPartial() {
 
     private void buildPartialRepeatedFields(
         com.google.shopping.merchant.reports.v1.ProductView result) {
-      if (itemIssuesBuilder_ == null) {
+      if (statusPerReportingContextBuilder_ == null) {
         if (((bitField0_ & 0x08000000) != 0)) {
-          itemIssues_ = java.util.Collections.unmodifiableList(itemIssues_);
+          statusPerReportingContext_ =
+              java.util.Collections.unmodifiableList(statusPerReportingContext_);
           bitField0_ = (bitField0_ & ~0x08000000);
         }
+        result.statusPerReportingContext_ = statusPerReportingContext_;
+      } else {
+        result.statusPerReportingContext_ = statusPerReportingContextBuilder_.build();
+      }
+      if (itemIssuesBuilder_ == null) {
+        if (((bitField0_ & 0x20000000) != 0)) {
+          itemIssues_ = java.util.Collections.unmodifiableList(itemIssues_);
+          bitField0_ = (bitField0_ & ~0x20000000);
+        }
         result.itemIssues_ = itemIssues_;
       } else {
         result.itemIssues_ = itemIssuesBuilder_.build();
@@ -9102,11 +11352,15 @@ private void buildPartial0(com.google.shopping.merchant.reports.v1.ProductView r
         to_bitField0_ |= 0x02000000;
       }
       if (((from_bitField0_ & 0x10000000) != 0)) {
+        result.reportingContext_ = reportingContext_;
+        to_bitField0_ |= 0x04000000;
+      }
+      if (((from_bitField0_ & 0x40000000) != 0)) {
         result.clickPotential_ = clickPotential_;
       }
-      if (((from_bitField0_ & 0x20000000) != 0)) {
+      if (((from_bitField0_ & 0x80000000) != 0)) {
         result.clickPotentialRank_ = clickPotentialRank_;
-        to_bitField0_ |= 0x04000000;
+        to_bitField0_ |= 0x08000000;
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -9254,11 +11508,41 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1.ProductView oth
       if (other.hasAggregatedReportingContextStatus()) {
         setAggregatedReportingContextStatusValue(other.getAggregatedReportingContextStatusValue());
       }
+      if (statusPerReportingContextBuilder_ == null) {
+        if (!other.statusPerReportingContext_.isEmpty()) {
+          if (statusPerReportingContext_.isEmpty()) {
+            statusPerReportingContext_ = other.statusPerReportingContext_;
+            bitField0_ = (bitField0_ & ~0x08000000);
+          } else {
+            ensureStatusPerReportingContextIsMutable();
+            statusPerReportingContext_.addAll(other.statusPerReportingContext_);
+          }
+          onChanged();
+        }
+      } else {
+        if (!other.statusPerReportingContext_.isEmpty()) {
+          if (statusPerReportingContextBuilder_.isEmpty()) {
+            statusPerReportingContextBuilder_.dispose();
+            statusPerReportingContextBuilder_ = null;
+            statusPerReportingContext_ = other.statusPerReportingContext_;
+            bitField0_ = (bitField0_ & ~0x08000000);
+            statusPerReportingContextBuilder_ =
+                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+                    ? internalGetStatusPerReportingContextFieldBuilder()
+                    : null;
+          } else {
+            statusPerReportingContextBuilder_.addAllMessages(other.statusPerReportingContext_);
+          }
+        }
+      }
+      if (other.hasReportingContext()) {
+        setReportingContextValue(other.getReportingContextValue());
+      }
       if (itemIssuesBuilder_ == null) {
         if (!other.itemIssues_.isEmpty()) {
           if (itemIssues_.isEmpty()) {
             itemIssues_ = other.itemIssues_;
-            bitField0_ = (bitField0_ & ~0x08000000);
+            bitField0_ = (bitField0_ & ~0x20000000);
           } else {
             ensureItemIssuesIsMutable();
             itemIssues_.addAll(other.itemIssues_);
@@ -9271,7 +11555,7 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1.ProductView oth
             itemIssuesBuilder_.dispose();
             itemIssuesBuilder_ = null;
             itemIssues_ = other.itemIssues_;
-            bitField0_ = (bitField0_ & ~0x08000000);
+            bitField0_ = (bitField0_ & ~0x20000000);
             itemIssuesBuilder_ =
                 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
                     ? internalGetItemIssuesFieldBuilder()
@@ -9495,15 +11779,36 @@ public Builder mergeFrom(
             case 232:
               {
                 clickPotential_ = input.readEnum();
-                bitField0_ |= 0x10000000;
+                bitField0_ |= 0x40000000;
                 break;
               } // case 232
             case 240:
               {
                 clickPotentialRank_ = input.readInt64();
-                bitField0_ |= 0x20000000;
+                bitField0_ |= 0x80000000;
                 break;
               } // case 240
+            case 258:
+              {
+                com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext m =
+                    input.readMessage(
+                        com.google.shopping.merchant.reports.v1.ProductView
+                            .StatusPerReportingContext.parser(),
+                        extensionRegistry);
+                if (statusPerReportingContextBuilder_ == null) {
+                  ensureStatusPerReportingContextIsMutable();
+                  statusPerReportingContext_.add(m);
+                } else {
+                  statusPerReportingContextBuilder_.addMessage(m);
+                }
+                break;
+              } // case 258
+            case 264:
+              {
+                reportingContext_ = input.readEnum();
+                bitField0_ |= 0x10000000;
+                break;
+              } // case 264
             default:
               {
                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -9521,50 +11826,429 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int bitField0_;
+    private int bitField0_;
+
+    private java.lang.Object id_ = "";
+
+    /**
+     *
+     *
+     * 
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
+     *
+     * Required in the `SELECT` clause.
+     * 
+ * + * optional string id = 1; + * + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
+     *
+     * Required in the `SELECT` clause.
+     * 
+ * + * optional string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
+     *
+     * Required in the `SELECT` clause.
+     * 
+ * + * optional string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
+     *
+     * Required in the `SELECT` clause.
+     * 
+ * + * optional string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
+     *
+     * Required in the `SELECT` clause.
+     * 
+ * + * optional string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * REST ID of the product, in the form of
+     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
+     * on products take this as their `name` parameter.
+     *
+     * Required in the `SELECT` clause.
+     * 
+ * + * optional string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int channel_ = 0; + + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return Whether the channel field is set. + */ + @java.lang.Override + public boolean hasChannel() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + channel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return The channel. + */ + @java.lang.Override + public com.google.shopping.type.Channel.ChannelEnum getChannel() { + com.google.shopping.type.Channel.ChannelEnum result = + com.google.shopping.type.Channel.ChannelEnum.forNumber(channel_); + return result == null ? com.google.shopping.type.Channel.ChannelEnum.UNRECOGNIZED : result; + } - private java.lang.Object id_ = ""; + /** + * + * + *
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
+ * + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.shopping.type.Channel.ChannelEnum value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + channel_ = value.getNumber(); + onChanged(); + return this; + } /** * * *
-     * REST ID of the product, in the form of
-     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-     * on products take this as their `name` parameter.
+     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * 
* - * Required in the `SELECT` clause. + * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000002); + channel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
+     * Language code of the product in BCP 47 format.
      * 
* - * optional string id = 1; + * optional string language_code = 2; * - * @return Whether the id field is set. + * @return Whether the languageCode field is set. */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000004) != 0); } /** * * *
-     * REST ID of the product, in the form of
-     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-     * on products take this as their `name` parameter.
+     * Language code of the product in BCP 47 format.
+     * 
* - * Required in the `SELECT` clause. + * optional string language_code = 2; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Language code of the product in BCP 47 format.
      * 
* - * optional string id = 1; + * optional string language_code = 2; * - * @return The id. + * @return The bytes for languageCode. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Language code of the product in BCP 47 format.
+     * 
+ * + * optional string language_code = 2; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Language code of the product in BCP 47 format.
+     * 
+ * + * optional string language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Language code of the product in BCP 47 format.
+     * 
+ * + * optional string language_code = 2; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object feedLabel_ = ""; + + /** + * + * + *
+     * Feed label of the product.
+     * 
+ * + * optional string feed_label = 3; + * + * @return Whether the feedLabel field is set. + */ + public boolean hasFeedLabel() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Feed label of the product.
+     * 
+ * + * optional string feed_label = 3; + * + * @return The feedLabel. + */ + public java.lang.String getFeedLabel() { + java.lang.Object ref = feedLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + feedLabel_ = s; return s; } else { return (java.lang.String) ref; @@ -9575,23 +12259,19 @@ public java.lang.String getId() { * * *
-     * REST ID of the product, in the form of
-     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-     * on products take this as their `name` parameter.
-     *
-     * Required in the `SELECT` clause.
+     * Feed label of the product.
      * 
* - * optional string id = 1; + * optional string feed_label = 3; * - * @return The bytes for id. + * @return The bytes for feedLabel. */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + public com.google.protobuf.ByteString getFeedLabelBytes() { + java.lang.Object ref = feedLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; + feedLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -9602,24 +12282,20 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * REST ID of the product, in the form of
-     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-     * on products take this as their `name` parameter.
-     *
-     * Required in the `SELECT` clause.
+     * Feed label of the product.
      * 
* - * optional string id = 1; + * optional string feed_label = 3; * - * @param value The id to set. + * @param value The feedLabel to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setFeedLabel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; + feedLabel_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9628,20 +12304,16 @@ public Builder setId(java.lang.String value) { * * *
-     * REST ID of the product, in the form of
-     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-     * on products take this as their `name` parameter.
-     *
-     * Required in the `SELECT` clause.
+     * Feed label of the product.
      * 
* - * optional string id = 1; + * optional string feed_label = 3; * * @return This builder for chaining. */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearFeedLabel() { + feedLabel_ = getDefaultInstance().getFeedLabel(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -9650,118 +12322,124 @@ public Builder clearId() { * * *
-     * REST ID of the product, in the form of
-     * `channel~languageCode~feedLabel~offerId`. Merchant API methods that operate
-     * on products take this as their `name` parameter.
-     *
-     * Required in the `SELECT` clause.
+     * Feed label of the product.
      * 
* - * optional string id = 1; + * optional string feed_label = 3; * - * @param value The bytes for id to set. + * @param value The bytes for feedLabel to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; + feedLabel_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private int channel_ = 0; + private java.lang.Object offerId_ = ""; /** * * *
-     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * Merchant-provided id of the product.
      * 
* - * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * optional string offer_id = 4; * - * @return Whether the channel field is set. + * @return Whether the offerId field is set. */ - @java.lang.Override - public boolean hasChannel() { - return ((bitField0_ & 0x00000002) != 0); + public boolean hasOfferId() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * Merchant-provided id of the product.
      * 
* - * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * optional string offer_id = 4; * - * @return The enum numeric value on the wire for channel. + * @return The offerId. */ - @java.lang.Override - public int getChannelValue() { - return channel_; + public java.lang.String getOfferId() { + java.lang.Object ref = offerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * Merchant-provided id of the product.
      * 
* - * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * optional string offer_id = 4; * - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. + * @return The bytes for offerId. */ - public Builder setChannelValue(int value) { - channel_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.protobuf.ByteString getOfferIdBytes() { + java.lang.Object ref = offerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * Merchant-provided id of the product.
      * 
* - * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * optional string offer_id = 4; * - * @return The channel. + * @param value The offerId to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.shopping.type.Channel.ChannelEnum getChannel() { - com.google.shopping.type.Channel.ChannelEnum result = - com.google.shopping.type.Channel.ChannelEnum.forNumber(channel_); - return result == null ? com.google.shopping.type.Channel.ChannelEnum.UNRECOGNIZED : result; + public Builder setOfferId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offerId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
-     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * Merchant-provided id of the product.
      * 
* - * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * optional string offer_id = 4; * - * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel(com.google.shopping.type.Channel.ChannelEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - channel_ = value.getNumber(); + public Builder clearOfferId() { + offerId_ = getDefaultInstance().getOfferId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -9770,54 +12448,59 @@ public Builder setChannel(com.google.shopping.type.Channel.ChannelEnum value) { * * *
-     * Channel of the product. Can be `ONLINE` or `LOCAL`.
+     * Merchant-provided id of the product.
      * 
* - * optional .google.shopping.type.Channel.ChannelEnum channel = 28; + * optional string offer_id = 4; * + * @param value The bytes for offerId to set. * @return This builder for chaining. */ - public Builder clearChannel() { - bitField0_ = (bitField0_ & ~0x00000002); - channel_ = 0; + public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offerId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private java.lang.Object languageCode_ = ""; + private java.lang.Object title_ = ""; /** * * *
-     * Language code of the product in BCP 47 format.
+     * Title of the product.
      * 
* - * optional string language_code = 2; + * optional string title = 5; * - * @return Whether the languageCode field is set. + * @return Whether the title field is set. */ - public boolean hasLanguageCode() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasTitle() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Language code of the product in BCP 47 format.
+     * Title of the product.
      * 
* - * optional string language_code = 2; + * optional string title = 5; * - * @return The languageCode. + * @return The title. */ - public java.lang.String getLanguageCode() { - java.lang.Object ref = languageCode_; + public java.lang.String getTitle() { + java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - languageCode_ = s; + title_ = s; return s; } else { return (java.lang.String) ref; @@ -9828,19 +12511,19 @@ public java.lang.String getLanguageCode() { * * *
-     * Language code of the product in BCP 47 format.
+     * Title of the product.
      * 
* - * optional string language_code = 2; + * optional string title = 5; * - * @return The bytes for languageCode. + * @return The bytes for title. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { - java.lang.Object ref = languageCode_; + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - languageCode_ = b; + title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -9851,20 +12534,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * Language code of the product in BCP 47 format.
+     * Title of the product.
      * 
* - * optional string language_code = 2; + * optional string title = 5; * - * @param value The languageCode to set. + * @param value The title to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; - bitField0_ |= 0x00000004; + title_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -9873,16 +12556,16 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * Language code of the product in BCP 47 format.
+     * Title of the product.
      * 
* - * optional string language_code = 2; + * optional string title = 5; * * @return This builder for chaining. */ - public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -9891,59 +12574,59 @@ public Builder clearLanguageCode() { * * *
-     * Language code of the product in BCP 47 format.
+     * Title of the product.
      * 
* - * optional string language_code = 2; + * optional string title = 5; * - * @param value The bytes for languageCode to set. + * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; - bitField0_ |= 0x00000004; + title_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private java.lang.Object feedLabel_ = ""; + private java.lang.Object brand_ = ""; /** * * *
-     * Feed label of the product.
+     * Brand of the product.
      * 
* - * optional string feed_label = 3; + * optional string brand = 6; * - * @return Whether the feedLabel field is set. + * @return Whether the brand field is set. */ - public boolean hasFeedLabel() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasBrand() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-     * Feed label of the product.
+     * Brand of the product.
      * 
* - * optional string feed_label = 3; + * optional string brand = 6; * - * @return The feedLabel. + * @return The brand. */ - public java.lang.String getFeedLabel() { - java.lang.Object ref = feedLabel_; + public java.lang.String getBrand() { + java.lang.Object ref = brand_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - feedLabel_ = s; + brand_ = s; return s; } else { return (java.lang.String) ref; @@ -9954,19 +12637,19 @@ public java.lang.String getFeedLabel() { * * *
-     * Feed label of the product.
+     * Brand of the product.
      * 
* - * optional string feed_label = 3; + * optional string brand = 6; * - * @return The bytes for feedLabel. + * @return The bytes for brand. */ - public com.google.protobuf.ByteString getFeedLabelBytes() { - java.lang.Object ref = feedLabel_; + public com.google.protobuf.ByteString getBrandBytes() { + java.lang.Object ref = brand_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - feedLabel_ = b; + brand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -9977,20 +12660,20 @@ public com.google.protobuf.ByteString getFeedLabelBytes() { * * *
-     * Feed label of the product.
+     * Brand of the product.
      * 
* - * optional string feed_label = 3; + * optional string brand = 6; * - * @param value The feedLabel to set. + * @param value The brand to set. * @return This builder for chaining. */ - public Builder setFeedLabel(java.lang.String value) { + public Builder setBrand(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - feedLabel_ = value; - bitField0_ |= 0x00000008; + brand_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9999,16 +12682,16 @@ public Builder setFeedLabel(java.lang.String value) { * * *
-     * Feed label of the product.
+     * Brand of the product.
      * 
* - * optional string feed_label = 3; + * optional string brand = 6; * * @return This builder for chaining. */ - public Builder clearFeedLabel() { - feedLabel_ = getDefaultInstance().getFeedLabel(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearBrand() { + brand_ = getDefaultInstance().getBrand(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -10017,59 +12700,61 @@ public Builder clearFeedLabel() { * * *
-     * Feed label of the product.
+     * Brand of the product.
      * 
* - * optional string feed_label = 3; + * optional string brand = 6; * - * @param value The bytes for feedLabel to set. + * @param value The bytes for brand to set. * @return This builder for chaining. */ - public Builder setFeedLabelBytes(com.google.protobuf.ByteString value) { + public Builder setBrandBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - feedLabel_ = value; - bitField0_ |= 0x00000008; + brand_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } - private java.lang.Object offerId_ = ""; + private java.lang.Object categoryL1_ = ""; /** * * *
-     * Merchant-provided id of the product.
+     * Product category (1st level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string offer_id = 4; + * optional string category_l1 = 7; * - * @return Whether the offerId field is set. + * @return Whether the categoryL1 field is set. */ - public boolean hasOfferId() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasCategoryL1() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * Merchant-provided id of the product.
+     * Product category (1st level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string offer_id = 4; + * optional string category_l1 = 7; * - * @return The offerId. + * @return The categoryL1. */ - public java.lang.String getOfferId() { - java.lang.Object ref = offerId_; + public java.lang.String getCategoryL1() { + java.lang.Object ref = categoryL1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - offerId_ = s; + categoryL1_ = s; return s; } else { return (java.lang.String) ref; @@ -10080,19 +12765,20 @@ public java.lang.String getOfferId() { * * *
-     * Merchant-provided id of the product.
+     * Product category (1st level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string offer_id = 4; + * optional string category_l1 = 7; * - * @return The bytes for offerId. + * @return The bytes for categoryL1. */ - public com.google.protobuf.ByteString getOfferIdBytes() { - java.lang.Object ref = offerId_; + public com.google.protobuf.ByteString getCategoryL1Bytes() { + java.lang.Object ref = categoryL1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - offerId_ = b; + categoryL1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10103,20 +12789,21 @@ public com.google.protobuf.ByteString getOfferIdBytes() { * * *
-     * Merchant-provided id of the product.
+     * Product category (1st level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string offer_id = 4; + * optional string category_l1 = 7; * - * @param value The offerId to set. + * @param value The categoryL1 to set. * @return This builder for chaining. */ - public Builder setOfferId(java.lang.String value) { + public Builder setCategoryL1(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - offerId_ = value; - bitField0_ |= 0x00000010; + categoryL1_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -10125,16 +12812,17 @@ public Builder setOfferId(java.lang.String value) { * * *
-     * Merchant-provided id of the product.
+     * Product category (1st level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string offer_id = 4; + * optional string category_l1 = 7; * * @return This builder for chaining. */ - public Builder clearOfferId() { - offerId_ = getDefaultInstance().getOfferId(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearCategoryL1() { + categoryL1_ = getDefaultInstance().getCategoryL1(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -10143,59 +12831,62 @@ public Builder clearOfferId() { * * *
-     * Merchant-provided id of the product.
+     * Product category (1st level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string offer_id = 4; + * optional string category_l1 = 7; * - * @param value The bytes for offerId to set. + * @param value The bytes for categoryL1 to set. * @return This builder for chaining. */ - public Builder setOfferIdBytes(com.google.protobuf.ByteString value) { + public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - offerId_ = value; - bitField0_ |= 0x00000010; + categoryL1_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } - private java.lang.Object title_ = ""; + private java.lang.Object categoryL2_ = ""; /** * * *
-     * Title of the product.
+     * Product category (2nd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string title = 5; + * optional string category_l2 = 8; * - * @return Whether the title field is set. + * @return Whether the categoryL2 field is set. */ - public boolean hasTitle() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasCategoryL2() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
-     * Title of the product.
+     * Product category (2nd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string title = 5; + * optional string category_l2 = 8; * - * @return The title. + * @return The categoryL2. */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; + public java.lang.String getCategoryL2() { + java.lang.Object ref = categoryL2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - title_ = s; + categoryL2_ = s; return s; } else { return (java.lang.String) ref; @@ -10206,19 +12897,20 @@ public java.lang.String getTitle() { * * *
-     * Title of the product.
+     * Product category (2nd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string title = 5; + * optional string category_l2 = 8; * - * @return The bytes for title. + * @return The bytes for categoryL2. */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; + public com.google.protobuf.ByteString getCategoryL2Bytes() { + java.lang.Object ref = categoryL2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; + categoryL2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10229,20 +12921,21 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-     * Title of the product.
+     * Product category (2nd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string title = 5; + * optional string category_l2 = 8; * - * @param value The title to set. + * @param value The categoryL2 to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { + public Builder setCategoryL2(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - title_ = value; - bitField0_ |= 0x00000020; + categoryL2_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10251,16 +12944,17 @@ public Builder setTitle(java.lang.String value) { * * *
-     * Title of the product.
+     * Product category (2nd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string title = 5; + * optional string category_l2 = 8; * * @return This builder for chaining. */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearCategoryL2() { + categoryL2_ = getDefaultInstance().getCategoryL2(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -10269,59 +12963,62 @@ public Builder clearTitle() { * * *
-     * Title of the product.
+     * Product category (2nd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string title = 5; + * optional string category_l2 = 8; * - * @param value The bytes for title to set. + * @param value The bytes for categoryL2 to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { + public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000020; + categoryL2_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } - private java.lang.Object brand_ = ""; + private java.lang.Object categoryL3_ = ""; /** * * *
-     * Brand of the product.
+     * Product category (3rd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string brand = 6; + * optional string category_l3 = 9; * - * @return Whether the brand field is set. + * @return Whether the categoryL3 field is set. */ - public boolean hasBrand() { - return ((bitField0_ & 0x00000040) != 0); + public boolean hasCategoryL3() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
-     * Brand of the product.
+     * Product category (3rd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string brand = 6; + * optional string category_l3 = 9; * - * @return The brand. + * @return The categoryL3. */ - public java.lang.String getBrand() { - java.lang.Object ref = brand_; + public java.lang.String getCategoryL3() { + java.lang.Object ref = categoryL3_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - brand_ = s; + categoryL3_ = s; return s; } else { return (java.lang.String) ref; @@ -10332,19 +13029,20 @@ public java.lang.String getBrand() { * * *
-     * Brand of the product.
+     * Product category (3rd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string brand = 6; + * optional string category_l3 = 9; * - * @return The bytes for brand. + * @return The bytes for categoryL3. */ - public com.google.protobuf.ByteString getBrandBytes() { - java.lang.Object ref = brand_; + public com.google.protobuf.ByteString getCategoryL3Bytes() { + java.lang.Object ref = categoryL3_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - brand_ = b; + categoryL3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10355,20 +13053,21 @@ public com.google.protobuf.ByteString getBrandBytes() { * * *
-     * Brand of the product.
+     * Product category (3rd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string brand = 6; + * optional string category_l3 = 9; * - * @param value The brand to set. + * @param value The categoryL3 to set. * @return This builder for chaining. */ - public Builder setBrand(java.lang.String value) { + public Builder setCategoryL3(java.lang.String value) { if (value == null) { throw new NullPointerException(); - } - brand_ = value; - bitField0_ |= 0x00000040; + } + categoryL3_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -10377,16 +13076,17 @@ public Builder setBrand(java.lang.String value) { * * *
-     * Brand of the product.
+     * Product category (3rd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string brand = 6; + * optional string category_l3 = 9; * * @return This builder for chaining. */ - public Builder clearBrand() { - brand_ = getDefaultInstance().getBrand(); - bitField0_ = (bitField0_ & ~0x00000040); + public Builder clearCategoryL3() { + categoryL3_ = getDefaultInstance().getCategoryL3(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -10395,61 +13095,62 @@ public Builder clearBrand() { * * *
-     * Brand of the product.
+     * Product category (3rd level) in [Google's product
+     * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string brand = 6; + * optional string category_l3 = 9; * - * @param value The bytes for brand to set. + * @param value The bytes for categoryL3 to set. * @return This builder for chaining. */ - public Builder setBrandBytes(com.google.protobuf.ByteString value) { + public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - brand_ = value; - bitField0_ |= 0x00000040; + categoryL3_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private java.lang.Object categoryL1_ = ""; + private java.lang.Object categoryL4_ = ""; /** * * *
-     * Product category (1st level) in [Google's product
+     * Product category (4th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l1 = 7; + * optional string category_l4 = 10; * - * @return Whether the categoryL1 field is set. + * @return Whether the categoryL4 field is set. */ - public boolean hasCategoryL1() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasCategoryL4() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-     * Product category (1st level) in [Google's product
+     * Product category (4th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l1 = 7; + * optional string category_l4 = 10; * - * @return The categoryL1. + * @return The categoryL4. */ - public java.lang.String getCategoryL1() { - java.lang.Object ref = categoryL1_; + public java.lang.String getCategoryL4() { + java.lang.Object ref = categoryL4_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - categoryL1_ = s; + categoryL4_ = s; return s; } else { return (java.lang.String) ref; @@ -10460,20 +13161,20 @@ public java.lang.String getCategoryL1() { * * *
-     * Product category (1st level) in [Google's product
+     * Product category (4th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l1 = 7; + * optional string category_l4 = 10; * - * @return The bytes for categoryL1. + * @return The bytes for categoryL4. */ - public com.google.protobuf.ByteString getCategoryL1Bytes() { - java.lang.Object ref = categoryL1_; + public com.google.protobuf.ByteString getCategoryL4Bytes() { + java.lang.Object ref = categoryL4_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - categoryL1_ = b; + categoryL4_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10484,21 +13185,21 @@ public com.google.protobuf.ByteString getCategoryL1Bytes() { * * *
-     * Product category (1st level) in [Google's product
+     * Product category (4th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l1 = 7; + * optional string category_l4 = 10; * - * @param value The categoryL1 to set. + * @param value The categoryL4 to set. * @return This builder for chaining. */ - public Builder setCategoryL1(java.lang.String value) { + public Builder setCategoryL4(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryL1_ = value; - bitField0_ |= 0x00000080; + categoryL4_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -10507,17 +13208,17 @@ public Builder setCategoryL1(java.lang.String value) { * * *
-     * Product category (1st level) in [Google's product
+     * Product category (4th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l1 = 7; + * optional string category_l4 = 10; * * @return This builder for chaining. */ - public Builder clearCategoryL1() { - categoryL1_ = getDefaultInstance().getCategoryL1(); - bitField0_ = (bitField0_ & ~0x00000080); + public Builder clearCategoryL4() { + categoryL4_ = getDefaultInstance().getCategoryL4(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -10526,62 +13227,62 @@ public Builder clearCategoryL1() { * * *
-     * Product category (1st level) in [Google's product
+     * Product category (4th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l1 = 7; + * optional string category_l4 = 10; * - * @param value The bytes for categoryL1 to set. + * @param value The bytes for categoryL4 to set. * @return This builder for chaining. */ - public Builder setCategoryL1Bytes(com.google.protobuf.ByteString value) { + public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryL1_ = value; - bitField0_ |= 0x00000080; + categoryL4_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } - private java.lang.Object categoryL2_ = ""; + private java.lang.Object categoryL5_ = ""; /** * * *
-     * Product category (2nd level) in [Google's product
+     * Product category (5th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l2 = 8; + * optional string category_l5 = 11; * - * @return Whether the categoryL2 field is set. + * @return Whether the categoryL5 field is set. */ - public boolean hasCategoryL2() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasCategoryL5() { + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-     * Product category (2nd level) in [Google's product
+     * Product category (5th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l2 = 8; + * optional string category_l5 = 11; * - * @return The categoryL2. + * @return The categoryL5. */ - public java.lang.String getCategoryL2() { - java.lang.Object ref = categoryL2_; + public java.lang.String getCategoryL5() { + java.lang.Object ref = categoryL5_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - categoryL2_ = s; + categoryL5_ = s; return s; } else { return (java.lang.String) ref; @@ -10592,20 +13293,20 @@ public java.lang.String getCategoryL2() { * * *
-     * Product category (2nd level) in [Google's product
+     * Product category (5th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l2 = 8; + * optional string category_l5 = 11; * - * @return The bytes for categoryL2. + * @return The bytes for categoryL5. */ - public com.google.protobuf.ByteString getCategoryL2Bytes() { - java.lang.Object ref = categoryL2_; + public com.google.protobuf.ByteString getCategoryL5Bytes() { + java.lang.Object ref = categoryL5_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - categoryL2_ = b; + categoryL5_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10616,21 +13317,21 @@ public com.google.protobuf.ByteString getCategoryL2Bytes() { * * *
-     * Product category (2nd level) in [Google's product
+     * Product category (5th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l2 = 8; + * optional string category_l5 = 11; * - * @param value The categoryL2 to set. + * @param value The categoryL5 to set. * @return This builder for chaining. */ - public Builder setCategoryL2(java.lang.String value) { + public Builder setCategoryL5(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryL2_ = value; - bitField0_ |= 0x00000100; + categoryL5_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10639,17 +13340,17 @@ public Builder setCategoryL2(java.lang.String value) { * * *
-     * Product category (2nd level) in [Google's product
+     * Product category (5th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l2 = 8; + * optional string category_l5 = 11; * * @return This builder for chaining. */ - public Builder clearCategoryL2() { - categoryL2_ = getDefaultInstance().getCategoryL2(); - bitField0_ = (bitField0_ & ~0x00000100); + public Builder clearCategoryL5() { + categoryL5_ = getDefaultInstance().getCategoryL5(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -10658,62 +13359,62 @@ public Builder clearCategoryL2() { * * *
-     * Product category (2nd level) in [Google's product
+     * Product category (5th level) in [Google's product
      * taxonomy](https://support.google.com/merchants/answer/6324436).
      * 
* - * optional string category_l2 = 8; + * optional string category_l5 = 11; * - * @param value The bytes for categoryL2 to set. + * @param value The bytes for categoryL5 to set. * @return This builder for chaining. */ - public Builder setCategoryL2Bytes(com.google.protobuf.ByteString value) { + public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryL2_ = value; - bitField0_ |= 0x00000100; + categoryL5_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } - private java.lang.Object categoryL3_ = ""; + private java.lang.Object productTypeL1_ = ""; /** * * *
-     * Product category (3rd level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (1st level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l3 = 9; + * optional string product_type_l1 = 12; * - * @return Whether the categoryL3 field is set. + * @return Whether the productTypeL1 field is set. */ - public boolean hasCategoryL3() { - return ((bitField0_ & 0x00000200) != 0); + public boolean hasProductTypeL1() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
-     * Product category (3rd level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (1st level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l3 = 9; + * optional string product_type_l1 = 12; * - * @return The categoryL3. + * @return The productTypeL1. */ - public java.lang.String getCategoryL3() { - java.lang.Object ref = categoryL3_; + public java.lang.String getProductTypeL1() { + java.lang.Object ref = productTypeL1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - categoryL3_ = s; + productTypeL1_ = s; return s; } else { return (java.lang.String) ref; @@ -10724,20 +13425,20 @@ public java.lang.String getCategoryL3() { * * *
-     * Product category (3rd level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (1st level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l3 = 9; + * optional string product_type_l1 = 12; * - * @return The bytes for categoryL3. + * @return The bytes for productTypeL1. */ - public com.google.protobuf.ByteString getCategoryL3Bytes() { - java.lang.Object ref = categoryL3_; + public com.google.protobuf.ByteString getProductTypeL1Bytes() { + java.lang.Object ref = productTypeL1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - categoryL3_ = b; + productTypeL1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10748,21 +13449,21 @@ public com.google.protobuf.ByteString getCategoryL3Bytes() { * * *
-     * Product category (3rd level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (1st level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l3 = 9; + * optional string product_type_l1 = 12; * - * @param value The categoryL3 to set. + * @param value The productTypeL1 to set. * @return This builder for chaining. */ - public Builder setCategoryL3(java.lang.String value) { + public Builder setProductTypeL1(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryL3_ = value; - bitField0_ |= 0x00000200; + productTypeL1_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -10771,17 +13472,17 @@ public Builder setCategoryL3(java.lang.String value) { * * *
-     * Product category (3rd level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (1st level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l3 = 9; + * optional string product_type_l1 = 12; * * @return This builder for chaining. */ - public Builder clearCategoryL3() { - categoryL3_ = getDefaultInstance().getCategoryL3(); - bitField0_ = (bitField0_ & ~0x00000200); + public Builder clearProductTypeL1() { + productTypeL1_ = getDefaultInstance().getProductTypeL1(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -10790,62 +13491,62 @@ public Builder clearCategoryL3() { * * *
-     * Product category (3rd level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (1st level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l3 = 9; + * optional string product_type_l1 = 12; * - * @param value The bytes for categoryL3 to set. + * @param value The bytes for productTypeL1 to set. * @return This builder for chaining. */ - public Builder setCategoryL3Bytes(com.google.protobuf.ByteString value) { + public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryL3_ = value; - bitField0_ |= 0x00000200; + productTypeL1_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } - private java.lang.Object categoryL4_ = ""; + private java.lang.Object productTypeL2_ = ""; /** * * *
-     * Product category (4th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (2nd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l4 = 10; + * optional string product_type_l2 = 13; * - * @return Whether the categoryL4 field is set. + * @return Whether the productTypeL2 field is set. */ - public boolean hasCategoryL4() { - return ((bitField0_ & 0x00000400) != 0); + public boolean hasProductTypeL2() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
-     * Product category (4th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (2nd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l4 = 10; + * optional string product_type_l2 = 13; * - * @return The categoryL4. + * @return The productTypeL2. */ - public java.lang.String getCategoryL4() { - java.lang.Object ref = categoryL4_; + public java.lang.String getProductTypeL2() { + java.lang.Object ref = productTypeL2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - categoryL4_ = s; + productTypeL2_ = s; return s; } else { return (java.lang.String) ref; @@ -10856,20 +13557,20 @@ public java.lang.String getCategoryL4() { * * *
-     * Product category (4th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (2nd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l4 = 10; + * optional string product_type_l2 = 13; * - * @return The bytes for categoryL4. + * @return The bytes for productTypeL2. */ - public com.google.protobuf.ByteString getCategoryL4Bytes() { - java.lang.Object ref = categoryL4_; + public com.google.protobuf.ByteString getProductTypeL2Bytes() { + java.lang.Object ref = productTypeL2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - categoryL4_ = b; + productTypeL2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10880,21 +13581,21 @@ public com.google.protobuf.ByteString getCategoryL4Bytes() { * * *
-     * Product category (4th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (2nd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l4 = 10; + * optional string product_type_l2 = 13; * - * @param value The categoryL4 to set. + * @param value The productTypeL2 to set. * @return This builder for chaining. */ - public Builder setCategoryL4(java.lang.String value) { + public Builder setProductTypeL2(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryL4_ = value; - bitField0_ |= 0x00000400; + productTypeL2_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -10903,17 +13604,17 @@ public Builder setCategoryL4(java.lang.String value) { * * *
-     * Product category (4th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (2nd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l4 = 10; + * optional string product_type_l2 = 13; * * @return This builder for chaining. */ - public Builder clearCategoryL4() { - categoryL4_ = getDefaultInstance().getCategoryL4(); - bitField0_ = (bitField0_ & ~0x00000400); + public Builder clearProductTypeL2() { + productTypeL2_ = getDefaultInstance().getProductTypeL2(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -10922,62 +13623,62 @@ public Builder clearCategoryL4() { * * *
-     * Product category (4th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (2nd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l4 = 10; + * optional string product_type_l2 = 13; * - * @param value The bytes for categoryL4 to set. + * @param value The bytes for productTypeL2 to set. * @return This builder for chaining. */ - public Builder setCategoryL4Bytes(com.google.protobuf.ByteString value) { + public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryL4_ = value; - bitField0_ |= 0x00000400; + productTypeL2_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } - private java.lang.Object categoryL5_ = ""; + private java.lang.Object productTypeL3_ = ""; /** * * *
-     * Product category (5th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (3rd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l5 = 11; + * optional string product_type_l3 = 14; * - * @return Whether the categoryL5 field is set. + * @return Whether the productTypeL3 field is set. */ - public boolean hasCategoryL5() { - return ((bitField0_ & 0x00000800) != 0); + public boolean hasProductTypeL3() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
-     * Product category (5th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (3rd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l5 = 11; + * optional string product_type_l3 = 14; * - * @return The categoryL5. + * @return The productTypeL3. */ - public java.lang.String getCategoryL5() { - java.lang.Object ref = categoryL5_; + public java.lang.String getProductTypeL3() { + java.lang.Object ref = productTypeL3_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - categoryL5_ = s; + productTypeL3_ = s; return s; } else { return (java.lang.String) ref; @@ -10988,20 +13689,20 @@ public java.lang.String getCategoryL5() { * * *
-     * Product category (5th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (3rd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l5 = 11; + * optional string product_type_l3 = 14; * - * @return The bytes for categoryL5. + * @return The bytes for productTypeL3. */ - public com.google.protobuf.ByteString getCategoryL5Bytes() { - java.lang.Object ref = categoryL5_; + public com.google.protobuf.ByteString getProductTypeL3Bytes() { + java.lang.Object ref = productTypeL3_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - categoryL5_ = b; + productTypeL3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11012,21 +13713,21 @@ public com.google.protobuf.ByteString getCategoryL5Bytes() { * * *
-     * Product category (5th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (3rd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l5 = 11; + * optional string product_type_l3 = 14; * - * @param value The categoryL5 to set. + * @param value The productTypeL3 to set. * @return This builder for chaining. */ - public Builder setCategoryL5(java.lang.String value) { + public Builder setProductTypeL3(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryL5_ = value; - bitField0_ |= 0x00000800; + productTypeL3_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -11035,17 +13736,17 @@ public Builder setCategoryL5(java.lang.String value) { * * *
-     * Product category (5th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (3rd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l5 = 11; + * optional string product_type_l3 = 14; * * @return This builder for chaining. */ - public Builder clearCategoryL5() { - categoryL5_ = getDefaultInstance().getCategoryL5(); - bitField0_ = (bitField0_ & ~0x00000800); + public Builder clearProductTypeL3() { + productTypeL3_ = getDefaultInstance().getProductTypeL3(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -11054,62 +13755,62 @@ public Builder clearCategoryL5() { * * *
-     * Product category (5th level) in [Google's product
-     * taxonomy](https://support.google.com/merchants/answer/6324436).
+     * Product type (3rd level) in merchant's own [product
+     * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string category_l5 = 11; + * optional string product_type_l3 = 14; * - * @param value The bytes for categoryL5 to set. + * @param value The bytes for productTypeL3 to set. * @return This builder for chaining. */ - public Builder setCategoryL5Bytes(com.google.protobuf.ByteString value) { + public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryL5_ = value; - bitField0_ |= 0x00000800; + productTypeL3_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } - private java.lang.Object productTypeL1_ = ""; + private java.lang.Object productTypeL4_ = ""; /** * * *
-     * Product type (1st level) in merchant's own [product
+     * Product type (4th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l1 = 12; + * optional string product_type_l4 = 15; * - * @return Whether the productTypeL1 field is set. + * @return Whether the productTypeL4 field is set. */ - public boolean hasProductTypeL1() { - return ((bitField0_ & 0x00001000) != 0); + public boolean hasProductTypeL4() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
-     * Product type (1st level) in merchant's own [product
+     * Product type (4th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l1 = 12; + * optional string product_type_l4 = 15; * - * @return The productTypeL1. + * @return The productTypeL4. */ - public java.lang.String getProductTypeL1() { - java.lang.Object ref = productTypeL1_; + public java.lang.String getProductTypeL4() { + java.lang.Object ref = productTypeL4_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - productTypeL1_ = s; + productTypeL4_ = s; return s; } else { return (java.lang.String) ref; @@ -11120,20 +13821,20 @@ public java.lang.String getProductTypeL1() { * * *
-     * Product type (1st level) in merchant's own [product
+     * Product type (4th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l1 = 12; + * optional string product_type_l4 = 15; * - * @return The bytes for productTypeL1. + * @return The bytes for productTypeL4. */ - public com.google.protobuf.ByteString getProductTypeL1Bytes() { - java.lang.Object ref = productTypeL1_; + public com.google.protobuf.ByteString getProductTypeL4Bytes() { + java.lang.Object ref = productTypeL4_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - productTypeL1_ = b; + productTypeL4_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11144,21 +13845,21 @@ public com.google.protobuf.ByteString getProductTypeL1Bytes() { * * *
-     * Product type (1st level) in merchant's own [product
+     * Product type (4th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l1 = 12; + * optional string product_type_l4 = 15; * - * @param value The productTypeL1 to set. + * @param value The productTypeL4 to set. * @return This builder for chaining. */ - public Builder setProductTypeL1(java.lang.String value) { + public Builder setProductTypeL4(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - productTypeL1_ = value; - bitField0_ |= 0x00001000; + productTypeL4_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11167,17 +13868,17 @@ public Builder setProductTypeL1(java.lang.String value) { * * *
-     * Product type (1st level) in merchant's own [product
+     * Product type (4th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l1 = 12; + * optional string product_type_l4 = 15; * * @return This builder for chaining. */ - public Builder clearProductTypeL1() { - productTypeL1_ = getDefaultInstance().getProductTypeL1(); - bitField0_ = (bitField0_ & ~0x00001000); + public Builder clearProductTypeL4() { + productTypeL4_ = getDefaultInstance().getProductTypeL4(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -11186,62 +13887,62 @@ public Builder clearProductTypeL1() { * * *
-     * Product type (1st level) in merchant's own [product
+     * Product type (4th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l1 = 12; + * optional string product_type_l4 = 15; * - * @param value The bytes for productTypeL1 to set. + * @param value The bytes for productTypeL4 to set. * @return This builder for chaining. */ - public Builder setProductTypeL1Bytes(com.google.protobuf.ByteString value) { + public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - productTypeL1_ = value; - bitField0_ |= 0x00001000; + productTypeL4_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } - private java.lang.Object productTypeL2_ = ""; + private java.lang.Object productTypeL5_ = ""; /** * * *
-     * Product type (2nd level) in merchant's own [product
+     * Product type (5th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l2 = 13; + * optional string product_type_l5 = 16; * - * @return Whether the productTypeL2 field is set. + * @return Whether the productTypeL5 field is set. */ - public boolean hasProductTypeL2() { - return ((bitField0_ & 0x00002000) != 0); + public boolean hasProductTypeL5() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * Product type (2nd level) in merchant's own [product
+     * Product type (5th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l2 = 13; + * optional string product_type_l5 = 16; * - * @return The productTypeL2. + * @return The productTypeL5. */ - public java.lang.String getProductTypeL2() { - java.lang.Object ref = productTypeL2_; + public java.lang.String getProductTypeL5() { + java.lang.Object ref = productTypeL5_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - productTypeL2_ = s; + productTypeL5_ = s; return s; } else { return (java.lang.String) ref; @@ -11252,20 +13953,20 @@ public java.lang.String getProductTypeL2() { * * *
-     * Product type (2nd level) in merchant's own [product
+     * Product type (5th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l2 = 13; + * optional string product_type_l5 = 16; * - * @return The bytes for productTypeL2. + * @return The bytes for productTypeL5. */ - public com.google.protobuf.ByteString getProductTypeL2Bytes() { - java.lang.Object ref = productTypeL2_; + public com.google.protobuf.ByteString getProductTypeL5Bytes() { + java.lang.Object ref = productTypeL5_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - productTypeL2_ = b; + productTypeL5_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11276,21 +13977,21 @@ public com.google.protobuf.ByteString getProductTypeL2Bytes() { * * *
-     * Product type (2nd level) in merchant's own [product
+     * Product type (5th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l2 = 13; + * optional string product_type_l5 = 16; * - * @param value The productTypeL2 to set. + * @param value The productTypeL5 to set. * @return This builder for chaining. */ - public Builder setProductTypeL2(java.lang.String value) { + public Builder setProductTypeL5(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - productTypeL2_ = value; - bitField0_ |= 0x00002000; + productTypeL5_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11299,17 +14000,17 @@ public Builder setProductTypeL2(java.lang.String value) { * * *
-     * Product type (2nd level) in merchant's own [product
+     * Product type (5th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l2 = 13; + * optional string product_type_l5 = 16; * * @return This builder for chaining. */ - public Builder clearProductTypeL2() { - productTypeL2_ = getDefaultInstance().getProductTypeL2(); - bitField0_ = (bitField0_ & ~0x00002000); + public Builder clearProductTypeL5() { + productTypeL5_ = getDefaultInstance().getProductTypeL5(); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -11318,65 +14019,66 @@ public Builder clearProductTypeL2() { * * *
-     * Product type (2nd level) in merchant's own [product
+     * Product type (5th level) in merchant's own [product
      * taxonomy](https://support.google.com/merchants/answer/6324406).
      * 
* - * optional string product_type_l2 = 13; + * optional string product_type_l5 = 16; * - * @param value The bytes for productTypeL2 to set. + * @param value The bytes for productTypeL5 to set. * @return This builder for chaining. */ - public Builder setProductTypeL2Bytes(com.google.protobuf.ByteString value) { + public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - productTypeL2_ = value; - bitField0_ |= 0x00002000; + productTypeL5_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } - private java.lang.Object productTypeL3_ = ""; + private com.google.shopping.type.Price price_; + private com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + priceBuilder_; /** * * *
-     * Product type (3rd level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * Product price. Absent if the information about the price of the product is
+     * not available.
      * 
* - * optional string product_type_l3 = 14; + * .google.shopping.type.Price price = 17; * - * @return Whether the productTypeL3 field is set. + * @return Whether the price field is set. */ - public boolean hasProductTypeL3() { - return ((bitField0_ & 0x00004000) != 0); + public boolean hasPrice() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Product type (3rd level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * Product price. Absent if the information about the price of the product is
+     * not available.
      * 
* - * optional string product_type_l3 = 14; + * .google.shopping.type.Price price = 17; * - * @return The productTypeL3. + * @return The price. */ - public java.lang.String getProductTypeL3() { - java.lang.Object ref = productTypeL3_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - productTypeL3_ = s; - return s; + public com.google.shopping.type.Price getPrice() { + if (priceBuilder_ == null) { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } else { - return (java.lang.String) ref; + return priceBuilder_.getMessage(); } } @@ -11384,45 +14086,43 @@ public java.lang.String getProductTypeL3() { * * *
-     * Product type (3rd level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * Product price. Absent if the information about the price of the product is
+     * not available.
      * 
* - * optional string product_type_l3 = 14; - * - * @return The bytes for productTypeL3. + * .google.shopping.type.Price price = 17; */ - public com.google.protobuf.ByteString getProductTypeL3Bytes() { - java.lang.Object ref = productTypeL3_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - productTypeL3_ = b; - return b; + public Builder setPrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + price_ = value; } else { - return (com.google.protobuf.ByteString) ref; + priceBuilder_.setMessage(value); } + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Product type (3rd level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * Product price. Absent if the information about the price of the product is
+     * not available.
      * 
* - * optional string product_type_l3 = 14; - * - * @param value The productTypeL3 to set. - * @return This builder for chaining. + * .google.shopping.type.Price price = 17; */ - public Builder setProductTypeL3(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { + if (priceBuilder_ == null) { + price_ = builderForValue.build(); + } else { + priceBuilder_.setMessage(builderForValue.build()); } - productTypeL3_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11431,17 +14131,48 @@ public Builder setProductTypeL3(java.lang.String value) { * * *
-     * Product type (3rd level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * Product price. Absent if the information about the price of the product is
+     * not available.
      * 
* - * optional string product_type_l3 = 14; + * .google.shopping.type.Price price = 17; + */ + public Builder mergePrice(com.google.shopping.type.Price value) { + if (priceBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && price_ != null + && price_ != com.google.shopping.type.Price.getDefaultInstance()) { + getPriceBuilder().mergeFrom(value); + } else { + price_ = value; + } + } else { + priceBuilder_.mergeFrom(value); + } + if (price_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** * - * @return This builder for chaining. + * + *
+     * Product price. Absent if the information about the price of the product is
+     * not available.
+     * 
+ * + * .google.shopping.type.Price price = 17; */ - public Builder clearProductTypeL3() { - productTypeL3_ = getDefaultInstance().getProductTypeL3(); - bitField0_ = (bitField0_ & ~0x00004000); + public Builder clearPrice() { + bitField0_ = (bitField0_ & ~0x00020000); + price_ = null; + if (priceBuilder_ != null) { + priceBuilder_.dispose(); + priceBuilder_ = null; + } onChanged(); return this; } @@ -11450,62 +14181,99 @@ public Builder clearProductTypeL3() { * * *
-     * Product type (3rd level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * Product price. Absent if the information about the price of the product is
+     * not available.
      * 
* - * optional string product_type_l3 = 14; + * .google.shopping.type.Price price = 17; + */ + public com.google.shopping.type.Price.Builder getPriceBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetPriceFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes for productTypeL3 to set. - * @return This builder for chaining. + * + *
+     * Product price. Absent if the information about the price of the product is
+     * not available.
+     * 
+ * + * .google.shopping.type.Price price = 17; */ - public Builder setProductTypeL3Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { + if (priceBuilder_ != null) { + return priceBuilder_.getMessageOrBuilder(); + } else { + return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; } - checkByteStringIsUtf8(value); - productTypeL3_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; } - private java.lang.Object productTypeL4_ = ""; + /** + * + * + *
+     * Product price. Absent if the information about the price of the product is
+     * not available.
+     * 
+ * + * .google.shopping.type.Price price = 17; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder> + internalGetPriceFieldBuilder() { + if (priceBuilder_ == null) { + priceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.shopping.type.Price, + com.google.shopping.type.Price.Builder, + com.google.shopping.type.PriceOrBuilder>( + getPrice(), getParentForChildren(), isClean()); + price_ = null; + } + return priceBuilder_; + } + + private java.lang.Object condition_ = ""; /** * * *
-     * Product type (4th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Condition](https://support.google.com/merchants/answer/6324469) of the
+     * product.
      * 
* - * optional string product_type_l4 = 15; + * optional string condition = 18; * - * @return Whether the productTypeL4 field is set. + * @return Whether the condition field is set. */ - public boolean hasProductTypeL4() { - return ((bitField0_ & 0x00008000) != 0); + public boolean hasCondition() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
-     * Product type (4th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Condition](https://support.google.com/merchants/answer/6324469) of the
+     * product.
      * 
* - * optional string product_type_l4 = 15; + * optional string condition = 18; * - * @return The productTypeL4. + * @return The condition. */ - public java.lang.String getProductTypeL4() { - java.lang.Object ref = productTypeL4_; + public java.lang.String getCondition() { + java.lang.Object ref = condition_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - productTypeL4_ = s; + condition_ = s; return s; } else { return (java.lang.String) ref; @@ -11516,20 +14284,20 @@ public java.lang.String getProductTypeL4() { * * *
-     * Product type (4th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Condition](https://support.google.com/merchants/answer/6324469) of the
+     * product.
      * 
* - * optional string product_type_l4 = 15; + * optional string condition = 18; * - * @return The bytes for productTypeL4. + * @return The bytes for condition. */ - public com.google.protobuf.ByteString getProductTypeL4Bytes() { - java.lang.Object ref = productTypeL4_; + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - productTypeL4_ = b; + condition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11540,21 +14308,21 @@ public com.google.protobuf.ByteString getProductTypeL4Bytes() { * * *
-     * Product type (4th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Condition](https://support.google.com/merchants/answer/6324469) of the
+     * product.
      * 
* - * optional string product_type_l4 = 15; + * optional string condition = 18; * - * @param value The productTypeL4 to set. + * @param value The condition to set. * @return This builder for chaining. */ - public Builder setProductTypeL4(java.lang.String value) { + public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - productTypeL4_ = value; - bitField0_ |= 0x00008000; + condition_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -11563,17 +14331,17 @@ public Builder setProductTypeL4(java.lang.String value) { * * *
-     * Product type (4th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Condition](https://support.google.com/merchants/answer/6324469) of the
+     * product.
      * 
* - * optional string product_type_l4 = 15; + * optional string condition = 18; * * @return This builder for chaining. */ - public Builder clearProductTypeL4() { - productTypeL4_ = getDefaultInstance().getProductTypeL4(); - bitField0_ = (bitField0_ & ~0x00008000); + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -11582,62 +14350,62 @@ public Builder clearProductTypeL4() { * * *
-     * Product type (4th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Condition](https://support.google.com/merchants/answer/6324469) of the
+     * product.
      * 
* - * optional string product_type_l4 = 15; + * optional string condition = 18; * - * @param value The bytes for productTypeL4 to set. + * @param value The bytes for condition to set. * @return This builder for chaining. */ - public Builder setProductTypeL4Bytes(com.google.protobuf.ByteString value) { + public Builder setConditionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - productTypeL4_ = value; - bitField0_ |= 0x00008000; + condition_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } - private java.lang.Object productTypeL5_ = ""; + private java.lang.Object availability_ = ""; /** * * *
-     * Product type (5th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Availability](https://support.google.com/merchants/answer/6324448) of the
+     * product.
      * 
* - * optional string product_type_l5 = 16; + * optional string availability = 19; * - * @return Whether the productTypeL5 field is set. + * @return Whether the availability field is set. */ - public boolean hasProductTypeL5() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasAvailability() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
-     * Product type (5th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Availability](https://support.google.com/merchants/answer/6324448) of the
+     * product.
      * 
* - * optional string product_type_l5 = 16; + * optional string availability = 19; * - * @return The productTypeL5. + * @return The availability. */ - public java.lang.String getProductTypeL5() { - java.lang.Object ref = productTypeL5_; + public java.lang.String getAvailability() { + java.lang.Object ref = availability_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - productTypeL5_ = s; + availability_ = s; return s; } else { return (java.lang.String) ref; @@ -11648,20 +14416,20 @@ public java.lang.String getProductTypeL5() { * * *
-     * Product type (5th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Availability](https://support.google.com/merchants/answer/6324448) of the
+     * product.
      * 
* - * optional string product_type_l5 = 16; + * optional string availability = 19; * - * @return The bytes for productTypeL5. + * @return The bytes for availability. */ - public com.google.protobuf.ByteString getProductTypeL5Bytes() { - java.lang.Object ref = productTypeL5_; + public com.google.protobuf.ByteString getAvailabilityBytes() { + java.lang.Object ref = availability_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - productTypeL5_ = b; + availability_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11672,21 +14440,21 @@ public com.google.protobuf.ByteString getProductTypeL5Bytes() { * * *
-     * Product type (5th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Availability](https://support.google.com/merchants/answer/6324448) of the
+     * product.
      * 
* - * optional string product_type_l5 = 16; + * optional string availability = 19; * - * @param value The productTypeL5 to set. + * @param value The availability to set. * @return This builder for chaining. */ - public Builder setProductTypeL5(java.lang.String value) { + public Builder setAvailability(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - productTypeL5_ = value; - bitField0_ |= 0x00010000; + availability_ = value; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -11695,17 +14463,17 @@ public Builder setProductTypeL5(java.lang.String value) { * * *
-     * Product type (5th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Availability](https://support.google.com/merchants/answer/6324448) of the
+     * product.
      * 
* - * optional string product_type_l5 = 16; + * optional string availability = 19; * * @return This builder for chaining. */ - public Builder clearProductTypeL5() { - productTypeL5_ = getDefaultInstance().getProductTypeL5(); - bitField0_ = (bitField0_ & ~0x00010000); + public Builder clearAvailability() { + availability_ = getDefaultInstance().getAvailability(); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -11714,66 +14482,67 @@ public Builder clearProductTypeL5() { * * *
-     * Product type (5th level) in merchant's own [product
-     * taxonomy](https://support.google.com/merchants/answer/6324406).
+     * [Availability](https://support.google.com/merchants/answer/6324448) of the
+     * product.
      * 
* - * optional string product_type_l5 = 16; + * optional string availability = 19; * - * @param value The bytes for productTypeL5 to set. + * @param value The bytes for availability to set. * @return This builder for chaining. */ - public Builder setProductTypeL5Bytes(com.google.protobuf.ByteString value) { + public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - productTypeL5_ = value; - bitField0_ |= 0x00010000; + availability_ = value; + bitField0_ |= 0x00080000; onChanged(); return this; } - private com.google.shopping.type.Price price_; - private com.google.protobuf.SingleFieldBuilder< - com.google.shopping.type.Price, - com.google.shopping.type.Price.Builder, - com.google.shopping.type.PriceOrBuilder> - priceBuilder_; + private java.lang.Object shippingLabel_ = ""; /** * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * Normalized [shipping
+     * label](https://support.google.com/merchants/answer/6324504) specified in
+     * the data source.
      * 
* - * .google.shopping.type.Price price = 17; + * optional string shipping_label = 20; * - * @return Whether the price field is set. + * @return Whether the shippingLabel field is set. */ - public boolean hasPrice() { - return ((bitField0_ & 0x00020000) != 0); + public boolean hasShippingLabel() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * Normalized [shipping
+     * label](https://support.google.com/merchants/answer/6324504) specified in
+     * the data source.
      * 
* - * .google.shopping.type.Price price = 17; + * optional string shipping_label = 20; * - * @return The price. + * @return The shippingLabel. */ - public com.google.shopping.type.Price getPrice() { - if (priceBuilder_ == null) { - return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; + public java.lang.String getShippingLabel() { + java.lang.Object ref = shippingLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shippingLabel_ = s; + return s; } else { - return priceBuilder_.getMessage(); + return (java.lang.String) ref; } } @@ -11781,43 +14550,47 @@ public com.google.shopping.type.Price getPrice() { * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * Normalized [shipping
+     * label](https://support.google.com/merchants/answer/6324504) specified in
+     * the data source.
      * 
* - * .google.shopping.type.Price price = 17; + * optional string shipping_label = 20; + * + * @return The bytes for shippingLabel. */ - public Builder setPrice(com.google.shopping.type.Price value) { - if (priceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - price_ = value; + public com.google.protobuf.ByteString getShippingLabelBytes() { + java.lang.Object ref = shippingLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shippingLabel_ = b; + return b; } else { - priceBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00020000; - onChanged(); - return this; } /** * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * Normalized [shipping
+     * label](https://support.google.com/merchants/answer/6324504) specified in
+     * the data source.
      * 
* - * .google.shopping.type.Price price = 17; + * optional string shipping_label = 20; + * + * @param value The shippingLabel to set. + * @return This builder for chaining. */ - public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) { - if (priceBuilder_ == null) { - price_ = builderForValue.build(); - } else { - priceBuilder_.setMessage(builderForValue.build()); + public Builder setShippingLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00020000; + shippingLabel_ = value; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -11826,28 +14599,19 @@ public Builder setPrice(com.google.shopping.type.Price.Builder builderForValue) * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * Normalized [shipping
+     * label](https://support.google.com/merchants/answer/6324504) specified in
+     * the data source.
      * 
* - * .google.shopping.type.Price price = 17; - */ - public Builder mergePrice(com.google.shopping.type.Price value) { - if (priceBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && price_ != null - && price_ != com.google.shopping.type.Price.getDefaultInstance()) { - getPriceBuilder().mergeFrom(value); - } else { - price_ = value; - } - } else { - priceBuilder_.mergeFrom(value); - } - if (price_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } + * optional string shipping_label = 20; + * + * @return This builder for chaining. + */ + public Builder clearShippingLabel() { + shippingLabel_ = getDefaultInstance().getShippingLabel(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); return this; } @@ -11855,169 +14619,163 @@ public Builder mergePrice(com.google.shopping.type.Price value) { * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * Normalized [shipping
+     * label](https://support.google.com/merchants/answer/6324504) specified in
+     * the data source.
      * 
* - * .google.shopping.type.Price price = 17; + * optional string shipping_label = 20; + * + * @param value The bytes for shippingLabel to set. + * @return This builder for chaining. */ - public Builder clearPrice() { - bitField0_ = (bitField0_ & ~0x00020000); - price_ = null; - if (priceBuilder_ != null) { - priceBuilder_.dispose(); - priceBuilder_ = null; + public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + shippingLabel_ = value; + bitField0_ |= 0x00100000; onChanged(); return this; } + private com.google.protobuf.LazyStringArrayList gtin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGtinIsMutable() { + if (!gtin_.isModifiable()) { + gtin_ = new com.google.protobuf.LazyStringArrayList(gtin_); + } + bitField0_ |= 0x00200000; + } + /** * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * .google.shopping.type.Price price = 17; + * repeated string gtin = 21; + * + * @return A list containing the gtin. */ - public com.google.shopping.type.Price.Builder getPriceBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return internalGetPriceFieldBuilder().getBuilder(); + public com.google.protobuf.ProtocolStringList getGtinList() { + gtin_.makeImmutable(); + return gtin_; } /** * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * .google.shopping.type.Price price = 17; + * repeated string gtin = 21; + * + * @return The count of gtin. */ - public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { - if (priceBuilder_ != null) { - return priceBuilder_.getMessageOrBuilder(); - } else { - return price_ == null ? com.google.shopping.type.Price.getDefaultInstance() : price_; - } + public int getGtinCount() { + return gtin_.size(); } /** * * *
-     * Product price. Absent if the information about the price of the product is
-     * not available.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * .google.shopping.type.Price price = 17; + * repeated string gtin = 21; + * + * @param index The index of the element to return. + * @return The gtin at the given index. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.shopping.type.Price, - com.google.shopping.type.Price.Builder, - com.google.shopping.type.PriceOrBuilder> - internalGetPriceFieldBuilder() { - if (priceBuilder_ == null) { - priceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.shopping.type.Price, - com.google.shopping.type.Price.Builder, - com.google.shopping.type.PriceOrBuilder>( - getPrice(), getParentForChildren(), isClean()); - price_ = null; - } - return priceBuilder_; + public java.lang.String getGtin(int index) { + return gtin_.get(index); } - private java.lang.Object condition_ = ""; - /** * * *
-     * [Condition](https://support.google.com/merchants/answer/6324469) of the
-     * product.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * optional string condition = 18; + * repeated string gtin = 21; * - * @return Whether the condition field is set. + * @param index The index of the value to return. + * @return The bytes of the gtin at the given index. */ - public boolean hasCondition() { - return ((bitField0_ & 0x00040000) != 0); + public com.google.protobuf.ByteString getGtinBytes(int index) { + return gtin_.getByteString(index); } /** * * *
-     * [Condition](https://support.google.com/merchants/answer/6324469) of the
-     * product.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * optional string condition = 18; + * repeated string gtin = 21; * - * @return The condition. + * @param index The index to set the value at. + * @param value The gtin to set. + * @return This builder for chaining. */ - public java.lang.String getCondition() { - java.lang.Object ref = condition_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - condition_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder setGtin(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureGtinIsMutable(); + gtin_.set(index, value); + bitField0_ |= 0x00200000; + onChanged(); + return this; } /** * * *
-     * [Condition](https://support.google.com/merchants/answer/6324469) of the
-     * product.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * optional string condition = 18; + * repeated string gtin = 21; * - * @return The bytes for condition. + * @param value The gtin to add. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getConditionBytes() { - java.lang.Object ref = condition_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - condition_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder addGtin(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureGtinIsMutable(); + gtin_.add(value); + bitField0_ |= 0x00200000; + onChanged(); + return this; } /** * * *
-     * [Condition](https://support.google.com/merchants/answer/6324469) of the
-     * product.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * optional string condition = 18; + * repeated string gtin = 21; * - * @param value The condition to set. + * @param values The gtin to add. * @return This builder for chaining. */ - public Builder setCondition(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - bitField0_ |= 0x00040000; + public Builder addAllGtin(java.lang.Iterable values) { + ensureGtinIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtin_); + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12026,17 +14784,17 @@ public Builder setCondition(java.lang.String value) { * * *
-     * [Condition](https://support.google.com/merchants/answer/6324469) of the
-     * product.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * optional string condition = 18; + * repeated string gtin = 21; * * @return This builder for chaining. */ - public Builder clearCondition() { - condition_ = getDefaultInstance().getCondition(); - bitField0_ = (bitField0_ & ~0x00040000); + public Builder clearGtin() { + gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + ; onChanged(); return this; } @@ -12045,62 +14803,60 @@ public Builder clearCondition() { * * *
-     * [Condition](https://support.google.com/merchants/answer/6324469) of the
-     * product.
+     * List of Global Trade Item Numbers (GTINs) of the product.
      * 
* - * optional string condition = 18; + * repeated string gtin = 21; * - * @param value The bytes for condition to set. + * @param value The bytes of the gtin to add. * @return This builder for chaining. */ - public Builder setConditionBytes(com.google.protobuf.ByteString value) { + public Builder addGtinBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - condition_ = value; - bitField0_ |= 0x00040000; + ensureGtinIsMutable(); + gtin_.add(value); + bitField0_ |= 0x00200000; onChanged(); return this; } - private java.lang.Object availability_ = ""; + private java.lang.Object itemGroupId_ = ""; /** * * *
-     * [Availability](https://support.google.com/merchants/answer/6324448) of the
-     * product.
+     * Item group id provided by the merchant for grouping variants together.
      * 
* - * optional string availability = 19; + * optional string item_group_id = 22; * - * @return Whether the availability field is set. + * @return Whether the itemGroupId field is set. */ - public boolean hasAvailability() { - return ((bitField0_ & 0x00080000) != 0); + public boolean hasItemGroupId() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
-     * [Availability](https://support.google.com/merchants/answer/6324448) of the
-     * product.
+     * Item group id provided by the merchant for grouping variants together.
      * 
* - * optional string availability = 19; + * optional string item_group_id = 22; * - * @return The availability. + * @return The itemGroupId. */ - public java.lang.String getAvailability() { - java.lang.Object ref = availability_; + public java.lang.String getItemGroupId() { + java.lang.Object ref = itemGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - availability_ = s; + itemGroupId_ = s; return s; } else { return (java.lang.String) ref; @@ -12111,20 +14867,19 @@ public java.lang.String getAvailability() { * * *
-     * [Availability](https://support.google.com/merchants/answer/6324448) of the
-     * product.
+     * Item group id provided by the merchant for grouping variants together.
      * 
* - * optional string availability = 19; + * optional string item_group_id = 22; * - * @return The bytes for availability. + * @return The bytes for itemGroupId. */ - public com.google.protobuf.ByteString getAvailabilityBytes() { - java.lang.Object ref = availability_; + public com.google.protobuf.ByteString getItemGroupIdBytes() { + java.lang.Object ref = itemGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - availability_ = b; + itemGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -12135,21 +14890,20 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { * * *
-     * [Availability](https://support.google.com/merchants/answer/6324448) of the
-     * product.
+     * Item group id provided by the merchant for grouping variants together.
      * 
* - * optional string availability = 19; + * optional string item_group_id = 22; * - * @param value The availability to set. + * @param value The itemGroupId to set. * @return This builder for chaining. */ - public Builder setAvailability(java.lang.String value) { + public Builder setItemGroupId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - availability_ = value; - bitField0_ |= 0x00080000; + itemGroupId_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -12158,17 +14912,16 @@ public Builder setAvailability(java.lang.String value) { * * *
-     * [Availability](https://support.google.com/merchants/answer/6324448) of the
-     * product.
+     * Item group id provided by the merchant for grouping variants together.
      * 
* - * optional string availability = 19; + * optional string item_group_id = 22; * * @return This builder for chaining. */ - public Builder clearAvailability() { - availability_ = getDefaultInstance().getAvailability(); - bitField0_ = (bitField0_ & ~0x00080000); + public Builder clearItemGroupId() { + itemGroupId_ = getDefaultInstance().getItemGroupId(); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -12177,64 +14930,61 @@ public Builder clearAvailability() { * * *
-     * [Availability](https://support.google.com/merchants/answer/6324448) of the
-     * product.
+     * Item group id provided by the merchant for grouping variants together.
      * 
* - * optional string availability = 19; + * optional string item_group_id = 22; * - * @param value The bytes for availability to set. + * @param value The bytes for itemGroupId to set. * @return This builder for chaining. */ - public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { + public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - availability_ = value; - bitField0_ |= 0x00080000; + itemGroupId_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } - private java.lang.Object shippingLabel_ = ""; + private java.lang.Object thumbnailLink_ = ""; /** * * *
-     * Normalized [shipping
-     * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the data source.
+     * Link to the processed image of the product, hosted on the Google
+     * infrastructure.
      * 
* - * optional string shipping_label = 20; + * optional string thumbnail_link = 23; * - * @return Whether the shippingLabel field is set. + * @return Whether the thumbnailLink field is set. */ - public boolean hasShippingLabel() { - return ((bitField0_ & 0x00100000) != 0); + public boolean hasThumbnailLink() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
-     * Normalized [shipping
-     * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the data source.
+     * Link to the processed image of the product, hosted on the Google
+     * infrastructure.
      * 
* - * optional string shipping_label = 20; + * optional string thumbnail_link = 23; * - * @return The shippingLabel. + * @return The thumbnailLink. */ - public java.lang.String getShippingLabel() { - java.lang.Object ref = shippingLabel_; + public java.lang.String getThumbnailLink() { + java.lang.Object ref = thumbnailLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - shippingLabel_ = s; + thumbnailLink_ = s; return s; } else { return (java.lang.String) ref; @@ -12245,21 +14995,20 @@ public java.lang.String getShippingLabel() { * * *
-     * Normalized [shipping
-     * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the data source.
+     * Link to the processed image of the product, hosted on the Google
+     * infrastructure.
      * 
* - * optional string shipping_label = 20; + * optional string thumbnail_link = 23; * - * @return The bytes for shippingLabel. + * @return The bytes for thumbnailLink. */ - public com.google.protobuf.ByteString getShippingLabelBytes() { - java.lang.Object ref = shippingLabel_; + public com.google.protobuf.ByteString getThumbnailLinkBytes() { + java.lang.Object ref = thumbnailLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - shippingLabel_ = b; + thumbnailLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -12270,22 +15019,21 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { * * *
-     * Normalized [shipping
-     * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the data source.
+     * Link to the processed image of the product, hosted on the Google
+     * infrastructure.
      * 
* - * optional string shipping_label = 20; + * optional string thumbnail_link = 23; * - * @param value The shippingLabel to set. + * @param value The thumbnailLink to set. * @return This builder for chaining. */ - public Builder setShippingLabel(java.lang.String value) { + public Builder setThumbnailLink(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - shippingLabel_ = value; - bitField0_ |= 0x00100000; + thumbnailLink_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -12294,18 +15042,17 @@ public Builder setShippingLabel(java.lang.String value) { * * *
-     * Normalized [shipping
-     * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the data source.
+     * Link to the processed image of the product, hosted on the Google
+     * infrastructure.
      * 
* - * optional string shipping_label = 20; + * optional string thumbnail_link = 23; * * @return This builder for chaining. */ - public Builder clearShippingLabel() { - shippingLabel_ = getDefaultInstance().getShippingLabel(); - bitField0_ = (bitField0_ & ~0x00100000); + public Builder clearThumbnailLink() { + thumbnailLink_ = getDefaultInstance().getThumbnailLink(); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -12314,182 +15061,280 @@ public Builder clearShippingLabel() { * * *
-     * Normalized [shipping
-     * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the data source.
+     * Link to the processed image of the product, hosted on the Google
+     * infrastructure.
      * 
* - * optional string shipping_label = 20; + * optional string thumbnail_link = 23; * - * @param value The bytes for shippingLabel to set. + * @param value The bytes for thumbnailLink to set. * @return This builder for chaining. */ - public Builder setShippingLabelBytes(com.google.protobuf.ByteString value) { + public Builder setThumbnailLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - shippingLabel_ = value; - bitField0_ |= 0x00100000; + thumbnailLink_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList gtin_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + creationTimeBuilder_; - private void ensureGtinIsMutable() { - if (!gtin_.isModifiable()) { - gtin_ = new com.google.protobuf.LazyStringArrayList(gtin_); - } - bitField0_ |= 0x00200000; + /** + * + * + *
+     * The time the merchant created the product in timestamp seconds.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 24; + * + * @return Whether the creationTime field is set. + */ + public boolean hasCreationTime() { + return ((bitField0_ & 0x01000000) != 0); } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * The time the merchant created the product in timestamp seconds.
      * 
* - * repeated string gtin = 21; + * .google.protobuf.Timestamp creation_time = 24; * - * @return A list containing the gtin. + * @return The creationTime. */ - public com.google.protobuf.ProtocolStringList getGtinList() { - gtin_.makeImmutable(); - return gtin_; + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); + } } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * The time the merchant created the product in timestamp seconds.
      * 
* - * repeated string gtin = 21; - * - * @return The count of gtin. + * .google.protobuf.Timestamp creation_time = 24; */ - public int getGtinCount() { - return gtin_.size(); + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + creationTime_ = value; + } else { + creationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * The time the merchant created the product in timestamp seconds.
      * 
* - * repeated string gtin = 21; + * .google.protobuf.Timestamp creation_time = 24; + */ + public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** * - * @param index The index of the element to return. - * @return The gtin at the given index. + * + *
+     * The time the merchant created the product in timestamp seconds.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 24; */ - public java.lang.String getGtin(int index) { - return gtin_.get(index); + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && creationTime_ != null + && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; + } + } else { + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * The time the merchant created the product in timestamp seconds.
      * 
* - * repeated string gtin = 21; + * .google.protobuf.Timestamp creation_time = 24; + */ + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x01000000); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** * - * @param index The index of the value to return. - * @return The bytes of the gtin at the given index. + * + *
+     * The time the merchant created the product in timestamp seconds.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 24; */ - public com.google.protobuf.ByteString getGtinBytes(int index) { - return gtin_.getByteString(index); + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return internalGetCreationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The time the merchant created the product in timestamp seconds.
+     * 
+ * + * .google.protobuf.Timestamp creation_time = 24; + */ + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * The time the merchant created the product in timestamp seconds.
      * 
* - * repeated string gtin = 21; - * - * @param index The index to set the value at. - * @param value The gtin to set. - * @return This builder for chaining. + * .google.protobuf.Timestamp creation_time = 24; */ - public Builder setGtin(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), getParentForChildren(), isClean()); + creationTime_ = null; } - ensureGtinIsMutable(); - gtin_.set(index, value); - bitField0_ |= 0x00200000; - onChanged(); - return this; + return creationTimeBuilder_; } + private com.google.type.Date expirationDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + expirationDateBuilder_; + /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * Expiration date for the product, specified on insertion.
      * 
* - * repeated string gtin = 21; + * .google.type.Date expiration_date = 25; * - * @param value The gtin to add. - * @return This builder for chaining. + * @return Whether the expirationDate field is set. */ - public Builder addGtin(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGtinIsMutable(); - gtin_.add(value); - bitField0_ |= 0x00200000; - onChanged(); - return this; + public boolean hasExpirationDate() { + return ((bitField0_ & 0x02000000) != 0); } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * Expiration date for the product, specified on insertion.
      * 
* - * repeated string gtin = 21; + * .google.type.Date expiration_date = 25; * - * @param values The gtin to add. - * @return This builder for chaining. + * @return The expirationDate. */ - public Builder addAllGtin(java.lang.Iterable values) { - ensureGtinIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gtin_); - bitField0_ |= 0x00200000; - onChanged(); - return this; + public com.google.type.Date getExpirationDate() { + if (expirationDateBuilder_ == null) { + return expirationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expirationDate_; + } else { + return expirationDateBuilder_.getMessage(); + } } /** * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * Expiration date for the product, specified on insertion.
      * 
* - * repeated string gtin = 21; - * - * @return This builder for chaining. + * .google.type.Date expiration_date = 25; */ - public Builder clearGtin() { - gtin_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); - ; + public Builder setExpirationDate(com.google.type.Date value) { + if (expirationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expirationDate_ = value; + } else { + expirationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -12498,237 +15343,247 @@ public Builder clearGtin() { * * *
-     * List of Global Trade Item Numbers (GTINs) of the product.
+     * Expiration date for the product, specified on insertion.
      * 
* - * repeated string gtin = 21; - * - * @param value The bytes of the gtin to add. - * @return This builder for chaining. + * .google.type.Date expiration_date = 25; */ - public Builder addGtinBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setExpirationDate(com.google.type.Date.Builder builderForValue) { + if (expirationDateBuilder_ == null) { + expirationDate_ = builderForValue.build(); + } else { + expirationDateBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureGtinIsMutable(); - gtin_.add(value); - bitField0_ |= 0x00200000; + bitField0_ |= 0x02000000; onChanged(); return this; } - private java.lang.Object itemGroupId_ = ""; - /** * * *
-     * Item group id provided by the merchant for grouping variants together.
+     * Expiration date for the product, specified on insertion.
      * 
* - * optional string item_group_id = 22; - * - * @return Whether the itemGroupId field is set. + * .google.type.Date expiration_date = 25; */ - public boolean hasItemGroupId() { - return ((bitField0_ & 0x00400000) != 0); + public Builder mergeExpirationDate(com.google.type.Date value) { + if (expirationDateBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && expirationDate_ != null + && expirationDate_ != com.google.type.Date.getDefaultInstance()) { + getExpirationDateBuilder().mergeFrom(value); + } else { + expirationDate_ = value; + } + } else { + expirationDateBuilder_.mergeFrom(value); + } + if (expirationDate_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; } /** * * *
-     * Item group id provided by the merchant for grouping variants together.
+     * Expiration date for the product, specified on insertion.
      * 
* - * optional string item_group_id = 22; - * - * @return The itemGroupId. + * .google.type.Date expiration_date = 25; */ - public java.lang.String getItemGroupId() { - java.lang.Object ref = itemGroupId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - itemGroupId_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder clearExpirationDate() { + bitField0_ = (bitField0_ & ~0x02000000); + expirationDate_ = null; + if (expirationDateBuilder_ != null) { + expirationDateBuilder_.dispose(); + expirationDateBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Item group id provided by the merchant for grouping variants together.
+     * Expiration date for the product, specified on insertion.
      * 
* - * optional string item_group_id = 22; - * - * @return The bytes for itemGroupId. + * .google.type.Date expiration_date = 25; */ - public com.google.protobuf.ByteString getItemGroupIdBytes() { - java.lang.Object ref = itemGroupId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - itemGroupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.type.Date.Builder getExpirationDateBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return internalGetExpirationDateFieldBuilder().getBuilder(); } /** * * *
-     * Item group id provided by the merchant for grouping variants together.
+     * Expiration date for the product, specified on insertion.
      * 
* - * optional string item_group_id = 22; - * - * @param value The itemGroupId to set. - * @return This builder for chaining. + * .google.type.Date expiration_date = 25; */ - public Builder setItemGroupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { + if (expirationDateBuilder_ != null) { + return expirationDateBuilder_.getMessageOrBuilder(); + } else { + return expirationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : expirationDate_; } - itemGroupId_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; } /** * * *
-     * Item group id provided by the merchant for grouping variants together.
+     * Expiration date for the product, specified on insertion.
      * 
* - * optional string item_group_id = 22; - * - * @return This builder for chaining. + * .google.type.Date expiration_date = 25; */ - public Builder clearItemGroupId() { - itemGroupId_ = getDefaultInstance().getItemGroupId(); - bitField0_ = (bitField0_ & ~0x00400000); - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetExpirationDateFieldBuilder() { + if (expirationDateBuilder_ == null) { + expirationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getExpirationDate(), getParentForChildren(), isClean()); + expirationDate_ = null; + } + return expirationDateBuilder_; } + private int aggregatedReportingContextStatus_ = 0; + /** * * *
-     * Item group id provided by the merchant for grouping variants together.
+     * Aggregated status across all reporting contexts.
+     *
+     * Reporting contexts included in the computation of the aggregated status can
+     * be restricted using a filter on the `reporting_context` field.
      * 
* - * optional string item_group_id = 22; + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * * - * @param value The bytes for itemGroupId to set. - * @return This builder for chaining. - */ - public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - itemGroupId_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; + * @return Whether the aggregatedReportingContextStatus field is set. + */ + @java.lang.Override + public boolean hasAggregatedReportingContextStatus() { + return ((bitField0_ & 0x04000000) != 0); } - private java.lang.Object thumbnailLink_ = ""; - /** * * *
-     * Link to the processed image of the product, hosted on the Google
-     * infrastructure.
+     * Aggregated status across all reporting contexts.
+     *
+     * Reporting contexts included in the computation of the aggregated status can
+     * be restricted using a filter on the `reporting_context` field.
      * 
* - * optional string thumbnail_link = 23; + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * * - * @return Whether the thumbnailLink field is set. + * @return The enum numeric value on the wire for aggregatedReportingContextStatus. */ - public boolean hasThumbnailLink() { - return ((bitField0_ & 0x00800000) != 0); + @java.lang.Override + public int getAggregatedReportingContextStatusValue() { + return aggregatedReportingContextStatus_; } /** * * *
-     * Link to the processed image of the product, hosted on the Google
-     * infrastructure.
+     * Aggregated status across all reporting contexts.
+     *
+     * Reporting contexts included in the computation of the aggregated status can
+     * be restricted using a filter on the `reporting_context` field.
      * 
* - * optional string thumbnail_link = 23; + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * * - * @return The thumbnailLink. + * @param value The enum numeric value on the wire for aggregatedReportingContextStatus to set. + * @return This builder for chaining. */ - public java.lang.String getThumbnailLink() { - java.lang.Object ref = thumbnailLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - thumbnailLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder setAggregatedReportingContextStatusValue(int value) { + aggregatedReportingContextStatus_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; } /** * * *
-     * Link to the processed image of the product, hosted on the Google
-     * infrastructure.
+     * Aggregated status across all reporting contexts.
+     *
+     * Reporting contexts included in the computation of the aggregated status can
+     * be restricted using a filter on the `reporting_context` field.
      * 
* - * optional string thumbnail_link = 23; + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * * - * @return The bytes for thumbnailLink. + * @return The aggregatedReportingContextStatus. */ - public com.google.protobuf.ByteString getThumbnailLinkBytes() { - java.lang.Object ref = thumbnailLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - thumbnailLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + getAggregatedReportingContextStatus() { + com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus result = + com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + .forNumber(aggregatedReportingContextStatus_); + return result == null + ? com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + .UNRECOGNIZED + : result; } /** * * *
-     * Link to the processed image of the product, hosted on the Google
-     * infrastructure.
+     * Aggregated status across all reporting contexts.
+     *
+     * Reporting contexts included in the computation of the aggregated status can
+     * be restricted using a filter on the `reporting_context` field.
      * 
* - * optional string thumbnail_link = 23; + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * * - * @param value The thumbnailLink to set. + * @param value The aggregatedReportingContextStatus to set. * @return This builder for chaining. */ - public Builder setThumbnailLink(java.lang.String value) { + public Builder setAggregatedReportingContextStatus( + com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus + value) { if (value == null) { throw new NullPointerException(); } - thumbnailLink_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x04000000; + aggregatedReportingContextStatus_ = value.getNumber(); onChanged(); return this; } @@ -12737,85 +15592,129 @@ public Builder setThumbnailLink(java.lang.String value) { * * *
-     * Link to the processed image of the product, hosted on the Google
-     * infrastructure.
+     * Aggregated status across all reporting contexts.
+     *
+     * Reporting contexts included in the computation of the aggregated status can
+     * be restricted using a filter on the `reporting_context` field.
      * 
* - * optional string thumbnail_link = 23; + * + * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * * * @return This builder for chaining. */ - public Builder clearThumbnailLink() { - thumbnailLink_ = getDefaultInstance().getThumbnailLink(); - bitField0_ = (bitField0_ & ~0x00800000); + public Builder clearAggregatedReportingContextStatus() { + bitField0_ = (bitField0_ & ~0x04000000); + aggregatedReportingContextStatus_ = 0; onChanged(); return this; } + private java.util.List< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext> + statusPerReportingContext_ = java.util.Collections.emptyList(); + + private void ensureStatusPerReportingContextIsMutable() { + if (!((bitField0_ & 0x08000000) != 0)) { + statusPerReportingContext_ = + new java.util.ArrayList< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext>( + statusPerReportingContext_); + bitField0_ |= 0x08000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContextOrBuilder> + statusPerReportingContextBuilder_; + /** * * *
-     * Link to the processed image of the product, hosted on the Google
-     * infrastructure.
-     * 
+ * Detailed product status per reporting context. * - * optional string thumbnail_link = 23; + * Reporting contexts included in this list can be restricted using a filter + * on the `reporting_context` field. * - * @param value The bytes for thumbnailLink to set. - * @return This builder for chaining. + * Equivalent to + * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus] + * in Products API. + * + * **This field cannot be used for sorting or filtering the results.** + *
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder setThumbnailLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext> + getStatusPerReportingContextList() { + if (statusPerReportingContextBuilder_ == null) { + return java.util.Collections.unmodifiableList(statusPerReportingContext_); + } else { + return statusPerReportingContextBuilder_.getMessageList(); } - checkByteStringIsUtf8(value); - thumbnailLink_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; } - private com.google.protobuf.Timestamp creationTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - creationTimeBuilder_; - /** * * *
-     * The time the merchant created the product in timestamp seconds.
-     * 
+ * Detailed product status per reporting context. * - * .google.protobuf.Timestamp creation_time = 24; + * Reporting contexts included in this list can be restricted using a filter + * on the `reporting_context` field. * - * @return Whether the creationTime field is set. + * Equivalent to + * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus] + * in Products API. + * + * **This field cannot be used for sorting or filtering the results.** + *
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public boolean hasCreationTime() { - return ((bitField0_ & 0x01000000) != 0); + public int getStatusPerReportingContextCount() { + if (statusPerReportingContextBuilder_ == null) { + return statusPerReportingContext_.size(); + } else { + return statusPerReportingContextBuilder_.getCount(); + } } /** * * *
-     * The time the merchant created the product in timestamp seconds.
-     * 
+ * Detailed product status per reporting context. * - * .google.protobuf.Timestamp creation_time = 24; + * Reporting contexts included in this list can be restricted using a filter + * on the `reporting_context` field. * - * @return The creationTime. + * Equivalent to + * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus] + * in Products API. + * + * **This field cannot be used for sorting or filtering the results.** + *
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public com.google.protobuf.Timestamp getCreationTime() { - if (creationTimeBuilder_ == null) { - return creationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : creationTime_; + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + getStatusPerReportingContext(int index) { + if (statusPerReportingContextBuilder_ == null) { + return statusPerReportingContext_.get(index); } else { - return creationTimeBuilder_.getMessage(); + return statusPerReportingContextBuilder_.getMessage(index); } } @@ -12823,22 +15722,35 @@ public com.google.protobuf.Timestamp getCreationTime() { * * *
-     * The time the merchant created the product in timestamp seconds.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.protobuf.Timestamp creation_time = 24; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder setCreationTime(com.google.protobuf.Timestamp value) { - if (creationTimeBuilder_ == null) { + public Builder setStatusPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext value) { + if (statusPerReportingContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - creationTime_ = value; + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.set(index, value); + onChanged(); } else { - creationTimeBuilder_.setMessage(value); + statusPerReportingContextBuilder_.setMessage(index, value); } - bitField0_ |= 0x01000000; - onChanged(); return this; } @@ -12846,19 +15758,33 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) { * * *
-     * The time the merchant created the product in timestamp seconds.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.protobuf.Timestamp creation_time = 24; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (creationTimeBuilder_ == null) { - creationTime_ = builderForValue.build(); + public Builder setStatusPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + builderForValue) { + if (statusPerReportingContextBuilder_ == null) { + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.set(index, builderForValue.build()); + onChanged(); } else { - creationTimeBuilder_.setMessage(builderForValue.build()); + statusPerReportingContextBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x01000000; - onChanged(); return this; } @@ -12866,26 +15792,33 @@ public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForV * * *
-     * The time the merchant created the product in timestamp seconds.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.protobuf.Timestamp creation_time = 24; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { - if (creationTimeBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && creationTime_ != null - && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreationTimeBuilder().mergeFrom(value); - } else { - creationTime_ = value; + public Builder addStatusPerReportingContext( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext value) { + if (statusPerReportingContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - } else { - creationTimeBuilder_.mergeFrom(value); - } - if (creationTime_ != null) { - bitField0_ |= 0x01000000; + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.add(value); onChanged(); + } else { + statusPerReportingContextBuilder_.addMessage(value); } return this; } @@ -12894,19 +15827,35 @@ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { * * *
-     * The time the merchant created the product in timestamp seconds.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.protobuf.Timestamp creation_time = 24; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder clearCreationTime() { - bitField0_ = (bitField0_ & ~0x01000000); - creationTime_ = null; - if (creationTimeBuilder_ != null) { - creationTimeBuilder_.dispose(); - creationTimeBuilder_ = null; + public Builder addStatusPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext value) { + if (statusPerReportingContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.add(index, value); + onChanged(); + } else { + statusPerReportingContextBuilder_.addMessage(index, value); } - onChanged(); return this; } @@ -12914,123 +15863,163 @@ public Builder clearCreationTime() { * * *
-     * The time the merchant created the product in timestamp seconds.
-     * 
- * - * .google.protobuf.Timestamp creation_time = 24; - */ - public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return internalGetCreationTimeFieldBuilder().getBuilder(); - } - - /** + * Detailed product status per reporting context. * + * Reporting contexts included in this list can be restricted using a filter + * on the `reporting_context` field. * - *
-     * The time the merchant created the product in timestamp seconds.
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.protobuf.Timestamp creation_time = 24; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { - if (creationTimeBuilder_ != null) { - return creationTimeBuilder_.getMessageOrBuilder(); + public Builder addStatusPerReportingContext( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + builderForValue) { + if (statusPerReportingContextBuilder_ == null) { + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.add(builderForValue.build()); + onChanged(); } else { - return creationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : creationTime_; + statusPerReportingContextBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * The time the merchant created the product in timestamp seconds.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.protobuf.Timestamp creation_time = 24; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreationTimeFieldBuilder() { - if (creationTimeBuilder_ == null) { - creationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreationTime(), getParentForChildren(), isClean()); - creationTime_ = null; + public Builder addStatusPerReportingContext( + int index, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + builderForValue) { + if (statusPerReportingContextBuilder_ == null) { + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.add(index, builderForValue.build()); + onChanged(); + } else { + statusPerReportingContextBuilder_.addMessage(index, builderForValue.build()); } - return creationTimeBuilder_; + return this; } - private com.google.type.Date expirationDate_; - private com.google.protobuf.SingleFieldBuilder< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - expirationDateBuilder_; - /** * * *
-     * Expiration date for the product, specified on insertion.
-     * 
+ * Detailed product status per reporting context. * - * .google.type.Date expiration_date = 25; + * Reporting contexts included in this list can be restricted using a filter + * on the `reporting_context` field. * - * @return Whether the expirationDate field is set. + * Equivalent to + * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus] + * in Products API. + * + * **This field cannot be used for sorting or filtering the results.** + *
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public boolean hasExpirationDate() { - return ((bitField0_ & 0x02000000) != 0); + public Builder addAllStatusPerReportingContext( + java.lang.Iterable< + ? extends + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext> + values) { + if (statusPerReportingContextBuilder_ == null) { + ensureStatusPerReportingContextIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusPerReportingContext_); + onChanged(); + } else { + statusPerReportingContextBuilder_.addAllMessages(values); + } + return this; } /** * * *
-     * Expiration date for the product, specified on insertion.
-     * 
+ * Detailed product status per reporting context. * - * .google.type.Date expiration_date = 25; + * Reporting contexts included in this list can be restricted using a filter + * on the `reporting_context` field. * - * @return The expirationDate. + * Equivalent to + * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus] + * in Products API. + * + * **This field cannot be used for sorting or filtering the results.** + *
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public com.google.type.Date getExpirationDate() { - if (expirationDateBuilder_ == null) { - return expirationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : expirationDate_; + public Builder clearStatusPerReportingContext() { + if (statusPerReportingContextBuilder_ == null) { + statusPerReportingContext_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); } else { - return expirationDateBuilder_.getMessage(); + statusPerReportingContextBuilder_.clear(); } + return this; } /** * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder setExpirationDate(com.google.type.Date value) { - if (expirationDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expirationDate_ = value; + public Builder removeStatusPerReportingContext(int index) { + if (statusPerReportingContextBuilder_ == null) { + ensureStatusPerReportingContextIsMutable(); + statusPerReportingContext_.remove(index); + onChanged(); } else { - expirationDateBuilder_.setMessage(value); + statusPerReportingContextBuilder_.remove(index); } - bitField0_ |= 0x02000000; - onChanged(); return this; } @@ -13038,181 +16027,269 @@ public Builder setExpirationDate(com.google.type.Date value) { * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder setExpirationDate(com.google.type.Date.Builder builderForValue) { - if (expirationDateBuilder_ == null) { - expirationDate_ = builderForValue.build(); - } else { - expirationDateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + getStatusPerReportingContextBuilder(int index) { + return internalGetStatusPerReportingContextFieldBuilder().getBuilder(index); } /** * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder mergeExpirationDate(com.google.type.Date value) { - if (expirationDateBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) - && expirationDate_ != null - && expirationDate_ != com.google.type.Date.getDefaultInstance()) { - getExpirationDateBuilder().mergeFrom(value); - } else { - expirationDate_ = value; - } + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContextOrBuilder + getStatusPerReportingContextOrBuilder(int index) { + if (statusPerReportingContextBuilder_ == null) { + return statusPerReportingContext_.get(index); } else { - expirationDateBuilder_.mergeFrom(value); - } - if (expirationDate_ != null) { - bitField0_ |= 0x02000000; - onChanged(); + return statusPerReportingContextBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public Builder clearExpirationDate() { - bitField0_ = (bitField0_ & ~0x02000000); - expirationDate_ = null; - if (expirationDateBuilder_ != null) { - expirationDateBuilder_.dispose(); - expirationDateBuilder_ = null; + public java.util.List< + ? extends + com.google.shopping.merchant.reports.v1.ProductView + .StatusPerReportingContextOrBuilder> + getStatusPerReportingContextOrBuilderList() { + if (statusPerReportingContextBuilder_ != null) { + return statusPerReportingContextBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(statusPerReportingContext_); } - onChanged(); - return this; } /** * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public com.google.type.Date.Builder getExpirationDateBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return internalGetExpirationDateFieldBuilder().getBuilder(); + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + addStatusPerReportingContextBuilder() { + return internalGetStatusPerReportingContextFieldBuilder() + .addBuilder( + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + .getDefaultInstance()); } /** * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - public com.google.type.DateOrBuilder getExpirationDateOrBuilder() { - if (expirationDateBuilder_ != null) { - return expirationDateBuilder_.getMessageOrBuilder(); - } else { - return expirationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : expirationDate_; - } + public com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder + addStatusPerReportingContextBuilder(int index) { + return internalGetStatusPerReportingContextFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + .getDefaultInstance()); } /** * * *
-     * Expiration date for the product, specified on insertion.
+     * Detailed product status per reporting context.
+     *
+     * Reporting contexts included in this list can be restricted using a filter
+     * on the `reporting_context` field.
+     *
+     * Equivalent to
+     * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+     * in Products API.
+     *
+     * **This field cannot be used for sorting or filtering the results.**
      * 
* - * .google.type.Date expiration_date = 25; + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - internalGetExpirationDateFieldBuilder() { - if (expirationDateBuilder_ == null) { - expirationDateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getExpirationDate(), getParentForChildren(), isClean()); - expirationDate_ = null; + public java.util.List< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder> + getStatusPerReportingContextBuilderList() { + return internalGetStatusPerReportingContextFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext.Builder, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContextOrBuilder> + internalGetStatusPerReportingContextFieldBuilder() { + if (statusPerReportingContextBuilder_ == null) { + statusPerReportingContextBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext, + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + .Builder, + com.google.shopping.merchant.reports.v1.ProductView + .StatusPerReportingContextOrBuilder>( + statusPerReportingContext_, + ((bitField0_ & 0x08000000) != 0), + getParentForChildren(), + isClean()); + statusPerReportingContext_ = null; } - return expirationDateBuilder_; + return statusPerReportingContextBuilder_; } - private int aggregatedReportingContextStatus_ = 0; + private int reportingContext_ = 0; /** * * *
-     * Aggregated status.
+     * Reporting context to restrict the query to.
+     *
+     * Restricts the reporting contexts returned in `status_per_reporting_context`
+     * and `item_issues`, and used to compute
+     * `aggregated_reporting_context_status`.
+     *
+     * **This field can only be used in the `WHERE` clause and cannot be selected
+     * in the `SELECT` clause.**
      * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @return Whether the aggregatedReportingContextStatus field is set. + * @return Whether the reportingContext field is set. */ @java.lang.Override - public boolean hasAggregatedReportingContextStatus() { - return ((bitField0_ & 0x04000000) != 0); + public boolean hasReportingContext() { + return ((bitField0_ & 0x10000000) != 0); } /** * * *
-     * Aggregated status.
+     * Reporting context to restrict the query to.
+     *
+     * Restricts the reporting contexts returned in `status_per_reporting_context`
+     * and `item_issues`, and used to compute
+     * `aggregated_reporting_context_status`.
+     *
+     * **This field can only be used in the `WHERE` clause and cannot be selected
+     * in the `SELECT` clause.**
      * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @return The enum numeric value on the wire for aggregatedReportingContextStatus. + * @return The enum numeric value on the wire for reportingContext. */ @java.lang.Override - public int getAggregatedReportingContextStatusValue() { - return aggregatedReportingContextStatus_; + public int getReportingContextValue() { + return reportingContext_; } /** * * *
-     * Aggregated status.
+     * Reporting context to restrict the query to.
+     *
+     * Restricts the reporting contexts returned in `status_per_reporting_context`
+     * and `item_issues`, and used to compute
+     * `aggregated_reporting_context_status`.
+     *
+     * **This field can only be used in the `WHERE` clause and cannot be selected
+     * in the `SELECT` clause.**
      * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @param value The enum numeric value on the wire for aggregatedReportingContextStatus to set. + * @param value The enum numeric value on the wire for reportingContext to set. * @return This builder for chaining. */ - public Builder setAggregatedReportingContextStatusValue(int value) { - aggregatedReportingContextStatus_ = value; - bitField0_ |= 0x04000000; + public Builder setReportingContextValue(int value) { + reportingContext_ = value; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -13221,24 +16298,29 @@ public Builder setAggregatedReportingContextStatusValue(int value) { * * *
-     * Aggregated status.
+     * Reporting context to restrict the query to.
+     *
+     * Restricts the reporting contexts returned in `status_per_reporting_context`
+     * and `item_issues`, and used to compute
+     * `aggregated_reporting_context_status`.
+     *
+     * **This field can only be used in the `WHERE` clause and cannot be selected
+     * in the `SELECT` clause.**
      * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @return The aggregatedReportingContextStatus. + * @return The reportingContext. */ @java.lang.Override - public com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - getAggregatedReportingContextStatus() { - com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus result = - com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - .forNumber(aggregatedReportingContextStatus_); + public com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext() { + com.google.shopping.type.ReportingContext.ReportingContextEnum result = + com.google.shopping.type.ReportingContext.ReportingContextEnum.forNumber( + reportingContext_); return result == null - ? com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - .UNRECOGNIZED + ? com.google.shopping.type.ReportingContext.ReportingContextEnum.UNRECOGNIZED : result; } @@ -13246,24 +16328,30 @@ public Builder setAggregatedReportingContextStatusValue(int value) { * * *
-     * Aggregated status.
+     * Reporting context to restrict the query to.
+     *
+     * Restricts the reporting contexts returned in `status_per_reporting_context`
+     * and `item_issues`, and used to compute
+     * `aggregated_reporting_context_status`.
+     *
+     * **This field can only be used in the `WHERE` clause and cannot be selected
+     * in the `SELECT` clause.**
      * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * - * @param value The aggregatedReportingContextStatus to set. + * @param value The reportingContext to set. * @return This builder for chaining. */ - public Builder setAggregatedReportingContextStatus( - com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus - value) { + public Builder setReportingContext( + com.google.shopping.type.ReportingContext.ReportingContextEnum value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x04000000; - aggregatedReportingContextStatus_ = value.getNumber(); + bitField0_ |= 0x10000000; + reportingContext_ = value.getNumber(); onChanged(); return this; } @@ -13272,18 +16360,25 @@ public Builder setAggregatedReportingContextStatus( * * *
-     * Aggregated status.
+     * Reporting context to restrict the query to.
+     *
+     * Restricts the reporting contexts returned in `status_per_reporting_context`
+     * and `item_issues`, and used to compute
+     * `aggregated_reporting_context_status`.
+     *
+     * **This field can only be used in the `WHERE` clause and cannot be selected
+     * in the `SELECT` clause.**
      * 
* * - * optional .google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; * * * @return This builder for chaining. */ - public Builder clearAggregatedReportingContextStatus() { - bitField0_ = (bitField0_ & ~0x04000000); - aggregatedReportingContextStatus_ = 0; + public Builder clearReportingContext() { + bitField0_ = (bitField0_ & ~0x10000000); + reportingContext_ = 0; onChanged(); return this; } @@ -13292,11 +16387,11 @@ public Builder clearAggregatedReportingContextStatus() { itemIssues_ = java.util.Collections.emptyList(); private void ensureItemIssuesIsMutable() { - if (!((bitField0_ & 0x08000000) != 0)) { + if (!((bitField0_ & 0x20000000) != 0)) { itemIssues_ = new java.util.ArrayList( itemIssues_); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; } } @@ -13606,7 +16701,7 @@ public Builder addAllItemIssues( public Builder clearItemIssues() { if (itemIssuesBuilder_ == null) { itemIssues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); } else { itemIssuesBuilder_.clear(); @@ -13792,7 +16887,7 @@ public Builder removeItemIssues(int index) { com.google.shopping.merchant.reports.v1.ProductView.ItemIssue, com.google.shopping.merchant.reports.v1.ProductView.ItemIssue.Builder, com.google.shopping.merchant.reports.v1.ProductView.ItemIssueOrBuilder>( - itemIssues_, ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); + itemIssues_, ((bitField0_ & 0x20000000) != 0), getParentForChildren(), isClean()); itemIssues_ = null; } return itemIssuesBuilder_; @@ -13834,7 +16929,7 @@ public int getClickPotentialValue() { */ public Builder setClickPotentialValue(int value) { clickPotential_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -13881,7 +16976,7 @@ public Builder setClickPotential( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; clickPotential_ = value.getNumber(); onChanged(); return this; @@ -13901,7 +16996,7 @@ public Builder setClickPotential( * @return This builder for chaining. */ public Builder clearClickPotential() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); clickPotential_ = 0; onChanged(); return this; @@ -13913,9 +17008,8 @@ public Builder clearClickPotential() { * * *
-     * Rank of the product based on its click potential. A product with
-     * `click_potential_rank` 1 has the highest click potential among the
-     * merchant's products that fulfill the search query conditions.
+     * Normalized click potential of the product. Values range from 1 to 1000,
+     * where 1 is the highest click potential and 1000 is the theoretical lowest.
      * 
* * optional int64 click_potential_rank = 30; @@ -13924,16 +17018,15 @@ public Builder clearClickPotential() { */ @java.lang.Override public boolean hasClickPotentialRank() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** * * *
-     * Rank of the product based on its click potential. A product with
-     * `click_potential_rank` 1 has the highest click potential among the
-     * merchant's products that fulfill the search query conditions.
+     * Normalized click potential of the product. Values range from 1 to 1000,
+     * where 1 is the highest click potential and 1000 is the theoretical lowest.
      * 
* * optional int64 click_potential_rank = 30; @@ -13949,9 +17042,8 @@ public long getClickPotentialRank() { * * *
-     * Rank of the product based on its click potential. A product with
-     * `click_potential_rank` 1 has the highest click potential among the
-     * merchant's products that fulfill the search query conditions.
+     * Normalized click potential of the product. Values range from 1 to 1000,
+     * where 1 is the highest click potential and 1000 is the theoretical lowest.
      * 
* * optional int64 click_potential_rank = 30; @@ -13962,7 +17054,7 @@ public long getClickPotentialRank() { public Builder setClickPotentialRank(long value) { clickPotentialRank_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -13971,9 +17063,8 @@ public Builder setClickPotentialRank(long value) { * * *
-     * Rank of the product based on its click potential. A product with
-     * `click_potential_rank` 1 has the highest click potential among the
-     * merchant's products that fulfill the search query conditions.
+     * Normalized click potential of the product. Values range from 1 to 1000,
+     * where 1 is the highest click potential and 1000 is the theoretical lowest.
      * 
* * optional int64 click_potential_rank = 30; @@ -13981,7 +17072,7 @@ public Builder setClickPotentialRank(long value) { * @return This builder for chaining. */ public Builder clearClickPotentialRank() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); clickPotentialRank_ = 0L; onChanged(); return this; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductViewOrBuilder.java index 34d6953bf050..b68f2fdc594b 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ProductViewOrBuilder.java @@ -1113,7 +1113,10 @@ public interface ProductViewOrBuilder * * *
-   * Aggregated status.
+   * Aggregated status across all reporting contexts.
+   *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
    * 
* * @@ -1128,7 +1131,10 @@ public interface ProductViewOrBuilder * * *
-   * Aggregated status.
+   * Aggregated status across all reporting contexts.
+   *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
    * 
* * @@ -1143,7 +1149,10 @@ public interface ProductViewOrBuilder * * *
-   * Aggregated status.
+   * Aggregated status across all reporting contexts.
+   *
+   * Reporting contexts included in the computation of the aggregated status can
+   * be restricted using a filter on the `reporting_context` field.
    * 
* * @@ -1155,6 +1164,189 @@ public interface ProductViewOrBuilder com.google.shopping.merchant.reports.v1.ProductView.AggregatedReportingContextStatus getAggregatedReportingContextStatus(); + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + java.util.List + getStatusPerReportingContextList(); + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext + getStatusPerReportingContext(int index); + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + int getStatusPerReportingContextCount(); + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + java.util.List< + ? extends + com.google.shopping.merchant.reports.v1.ProductView + .StatusPerReportingContextOrBuilder> + getStatusPerReportingContextOrBuilderList(); + + /** + * + * + *
+   * Detailed product status per reporting context.
+   *
+   * Reporting contexts included in this list can be restricted using a filter
+   * on the `reporting_context` field.
+   *
+   * Equivalent to
+   * [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus]
+   * in Products API.
+   *
+   * **This field cannot be used for sorting or filtering the results.**
+   * 
+ * + * + * repeated .google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContext status_per_reporting_context = 32; + * + */ + com.google.shopping.merchant.reports.v1.ProductView.StatusPerReportingContextOrBuilder + getStatusPerReportingContextOrBuilder(int index); + + /** + * + * + *
+   * Reporting context to restrict the query to.
+   *
+   * Restricts the reporting contexts returned in `status_per_reporting_context`
+   * and `item_issues`, and used to compute
+   * `aggregated_reporting_context_status`.
+   *
+   * **This field can only be used in the `WHERE` clause and cannot be selected
+   * in the `SELECT` clause.**
+   * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; + * + * + * @return Whether the reportingContext field is set. + */ + boolean hasReportingContext(); + + /** + * + * + *
+   * Reporting context to restrict the query to.
+   *
+   * Restricts the reporting contexts returned in `status_per_reporting_context`
+   * and `item_issues`, and used to compute
+   * `aggregated_reporting_context_status`.
+   *
+   * **This field can only be used in the `WHERE` clause and cannot be selected
+   * in the `SELECT` clause.**
+   * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; + * + * + * @return The enum numeric value on the wire for reportingContext. + */ + int getReportingContextValue(); + + /** + * + * + *
+   * Reporting context to restrict the query to.
+   *
+   * Restricts the reporting contexts returned in `status_per_reporting_context`
+   * and `item_issues`, and used to compute
+   * `aggregated_reporting_context_status`.
+   *
+   * **This field can only be used in the `WHERE` clause and cannot be selected
+   * in the `SELECT` clause.**
+   * 
+ * + * + * optional .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 33; + * + * + * @return The reportingContext. + */ + com.google.shopping.type.ReportingContext.ReportingContextEnum getReportingContext(); + /** * * @@ -1281,9 +1473,8 @@ com.google.shopping.merchant.reports.v1.ProductView.ItemIssueOrBuilder getItemIs * * *
-   * Rank of the product based on its click potential. A product with
-   * `click_potential_rank` 1 has the highest click potential among the
-   * merchant's products that fulfill the search query conditions.
+   * Normalized click potential of the product. Values range from 1 to 1000,
+   * where 1 is the highest click potential and 1000 is the theoretical lowest.
    * 
* * optional int64 click_potential_rank = 30; @@ -1296,9 +1487,8 @@ com.google.shopping.merchant.reports.v1.ProductView.ItemIssueOrBuilder getItemIs * * *
-   * Rank of the product based on its click potential. A product with
-   * `click_potential_rank` 1 has the highest click potential among the
-   * merchant's products that fulfill the search query conditions.
+   * Normalized click potential of the product. Values range from 1 to 1000,
+   * where 1 is the highest click potential and 1000 is the theoretical lowest.
    * 
* * optional int64 click_potential_rank = 30; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportsProto.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportsProto.java index b58cd06bcc7b..736f60670597 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportsProto.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/ReportsProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_merchant_reports_v1_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_shopping_merchant_reports_v1_ProductView_ItemIssue_ItemIssueSeverity_IssueSeverityPerReportingContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_reports_v1_PriceCompetitivenessProductView_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -112,6 +116,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_merchant_reports_v1_MarketingMethod_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_shopping_merchant_reports_v1_MarketingMethod_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1_StoreType_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1_StoreType_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_reports_v1_ReportGranularity_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -173,43 +181,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.shopping.merchant.reports.v1.CompetitiveVisibilityTopMerchantView\022v\n" + "%competitive_visibility_benchmark_view\030\n" + " \001(\0132G.g" - + "oogle.shopping.merchant.reports.v1.CompetitiveVisibilityBenchmarkView\"\275\n\n" + + "oogle.shopping.merchant.reports.v1.CompetitiveVisibilityBenchmarkView\"\243\013\n" + "\026ProductPerformanceView\022g\n" + "\020marketing_method\030\001 \001(\0162H.google.shopping.merchant.reports.v1" + ".MarketingMethod.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_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" + + "\025customer_country_code\030\004 \001(\tH\001\210\001\001\022U\n\n" + + "store_type\030 " + + "\001(\0162<.google.shopping.merchant.reports.v1.StoreType.StoreTypeEnumH\002\210\001\001\022\025\n" + + "\010offer_id\030\005 \001(\tH\003\210\001\001\022\022\n" + + "\005title\030\006 \001(\tH\004\210\001\001\022\022\n" + + "\005brand\030\007 \001(\tH\005\210\001\001\022\030\n" + + "\013category_l1\030\010 \001(\tH\006\210\001\001\022\030\n" + + "\013category_l2\030\t \001(\tH\007\210\001\001\022\030\n" + "\013category_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" - + "\017product_type_l1\030\r" - + " \001(\tH\n" + + " \001(\tH\010\210\001\001\022\030\n" + + "\013category_l4\030\013 \001(\tH\t\210\001\001\022\030\n" + + "\013category_l5\030\014 \001(\tH\n" + "\210\001\001\022\034\n" - + "\017product_type_l2\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" + + "\017product_type_l1\030\r" + + " \001(\tH\013\210\001\001\022\034\n" + + "\017product_type_l2\030\016 \001(\tH\014\210\001\001\022\034\n" + + "\017product_type_l3\030\017 \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\r" - + "custom_label1\030\023 \001(\tH\020\210\001\001\022\032\n\r" - + "custom_label2\030\024 \001(\tH\021\210\001\001\022\032\n\r" - + "custom_label3\030\025 \001(\tH\022\210\001\001\022\032\n\r" - + "custom_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" + + "\017product_type_l4\030\020 \001(\tH\016\210\001\001\022\034\n" + + "\017product_type_l5\030\021 \001(\tH\017\210\001\001\022\032\n\r" + + "custom_label0\030\022 \001(\tH\020\210\001\001\022\032\n\r" + + "custom_label1\030\023 \001(\tH\021\210\001\001\022\032\n\r" + + "custom_label2\030\024 \001(\tH\022\210\001\001\022\032\n\r" + + "custom_label3\030\025 \001(\tH\023\210\001\001\022\032\n\r" + + "custom_label4\030\026 \001(\tH\024\210\001\001\022\023\n" + + "\006clicks\030\027 \001(\003H\025\210\001\001\022\030\n" + + "\013impressions\030\030 \001(\003H\026\210\001\001\022\037\n" + + "\022click_through_rate\030\031 \001(\001H\027\210\001\001\022\030\n" + + "\013conversions\030\032 \001(\001H\030\210\001\001\0225\n" + "\020conversion_value\030\033 \001(\0132\033.google.shopping.type.Price\022\034\n" - + "\017conversion_rate\030\034 \001(\001H\030\210\001\001B\023\n" + + "\017conversion_rate\030\034 \001(\001H\031\210\001\001B\023\n" + "\021_marketing_methodB\030\n" - + "\026_customer_country_codeB\013\n" + + "\026_customer_country_codeB\r\n" + + "\013_store_typeB\013\n" + "\t_offer_idB\010\n" + "\006_titleB\010\n" + "\006_brandB\016\n" @@ -232,7 +243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_impressionsB\025\n" + "\023_click_through_rateB\016\n" + "\014_conversionsB\022\n" - + "\020_conversion_rate\"\242\027\n" + + "\020_conversion_rate\"\356\032\n" + "\013ProductView\022\017\n" + "\002id\030\001 \001(\tH\000\210\001\001\022?\n" + "\007channel\030\034" @@ -265,36 +276,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016thumbnail_link\030\027 \001(\tH\025\210\001\001\0221\n\r" + "creation_time\030\030 \001(\0132\032.google.protobuf.Timestamp\022*\n" + "\017expiration_date\030\031 \001(\0132\021.google.type.Date\022\203\001\n" - + "#aggregated_reporting_context_status\030\032 " - + "\001(\0162Q.google.shopping.merchant.reports.v" - + "1.ProductView.AggregatedReportingContextStatusH\026\210\001\001\022O\n" - + "\013item_issues\030\033 \003(\0132:.googl" - + "e.shopping.merchant.reports.v1.ProductView.ItemIssue\022X\n" - + "\017click_potential\030\035 \001(\0162?." - + "google.shopping.merchant.reports.v1.ProductView.ClickPotential\022!\n" - + "\024click_potential_rank\030\036 \001(\003H\027\210\001\001\032\237\t\n" + + "#aggregated_reporting_context_status\030\032 \001(\0162Q.google.shopp" + + "ing.merchant.reports.v1.ProductView.AggregatedReportingContextStatusH\026\210\001\001\022p\n" + + "\034status_per_reporting_context\030 \003(\0132J.google" + + ".shopping.merchant.reports.v1.ProductView.StatusPerReportingContext\022[\n" + + "\021reporting_context\030! \001(\0162;.google.shopping.type.Re" + + "portingContext.ReportingContextEnumH\027\210\001\001\022O\n" + + "\013item_issues\030\033 \003(\0132:.google.shopping." + + "merchant.reports.v1.ProductView.ItemIssue\022X\n" + + "\017click_potential\030\035 \001(\0162?.google.shop" + + "ping.merchant.reports.v1.ProductView.ClickPotential\022!\n" + + "\024click_potential_rank\030\036 \001(\003H\030\210\001\001\032\237\t\n" + "\tItemIssue\022V\n" - + "\004type\030\001 \001(\0132H.google.shopping.merchant.reports" - + ".v1.ProductView.ItemIssue.ItemIssueType\022^\n" - + "\010severity\030\002 \001(\0132L.google.shopping.merc" - + "hant.reports.v1.ProductView.ItemIssue.ItemIssueSeverity\022g\n\n" - + "resolution\030\003 \001(\0162N.google.shopping.merchant.reports.v1.Produc" - + "tView.ItemIssue.ItemIssueResolutionH\000\210\001\001\032e\n\r" + + "\004type\030\001 \001(\0132H.goo" + + "gle.shopping.merchant.reports.v1.ProductView.ItemIssue.ItemIssueType\022^\n" + + "\010severity\030\002 \001(\0132L.google.shopping.merchant.report" + + "s.v1.ProductView.ItemIssue.ItemIssueSeverity\022g\n\n" + + "resolution\030\003 \001(\0162N.google.shoppi" + + "ng.merchant.reports.v1.ProductView.ItemIssue.ItemIssueResolutionH\000\210\001\001\032e\n\r" + "ItemIssueType\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\217\005\n" + "\021ItemIssueSeverity\022\225\001\n" - + "\036severity_per_reporting_context\030\001 \003(\0132m.google.shopping.merchant.report" - + "s.v1.ProductView.ItemIssue.ItemIssueSeve" - + "rity.IssueSeverityPerReportingContext\022\206\001\n" - + "\023aggregated_severity\030\002 \001(\0162d.google.sho" - + "pping.merchant.reports.v1.ProductView.It" - + "emIssue.ItemIssueSeverity.AggregatedIssueSeverityH\000\210\001\001\032\317\001\n" + + "\036severity_per_reporting_context\030\001 \003(\0132m.go" + + "ogle.shopping.merchant.reports.v1.Produc" + + "tView.ItemIssue.ItemIssueSeverity.IssueSeverityPerReportingContext\022\206\001\n" + + "\023aggregated_severity\030\002 \001(\0162d.google.shopping.merch" + + "ant.reports.v1.ProductView.ItemIssue.Ite" + + "mIssueSeverity.AggregatedIssueSeverityH\000\210\001\001\032\317\001\n" + " IssueSeverityPerReportingContext\022[\n" - + "\021reporting_context\030\001 \001(\0162;" - + ".google.shopping.type.ReportingContext.ReportingContextEnumH\000\210\001\001\022\035\n" + + "\021reporting_context\030\001 \001(\0162;.google.sho" + + "pping.type.ReportingContext.ReportingContextEnumH\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_context\"o\n" @@ -308,7 +322,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!ITEM_ISSUE_RESOLUTION_UNSPECIFIED\020\000\022\023\n" + "\017MERCHANT_ACTION\020\001\022\026\n" + "\022PENDING_PROCESSING\020\002B\r\n" - + "\013_resolution\"\251\001\n" + + "\013_resolution\032\344\001\n" + + "\031StatusPerReportingContext\022[\n" + + "\021reporting_context\030\001" + + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnumH\000\210\001\001\022\032\n" + + "\022approved_countries\030\002 \003(\t\022\035\n" + + "\025disapproved_countries\030\003 \003(\t\022\031\n" + + "\021pending_countries\030\004 \003(\tB\024\n" + + "\022_reporting_context\"\251\001\n" + " AggregatedReportingContextStatus\0223\n" + "/AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED\020\000\022\037\n" + "\033NOT_ELIGIBLE_OR_DISAPPROVED\020\001\022\013\n" @@ -342,7 +363,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_shipping_labelB\020\n" + "\016_item_group_idB\021\n" + "\017_thumbnail_linkB&\n" - + "$_aggregated_reporting_context_statusB\027\n" + + "$_aggregated_reporting_context_statusB\024\n" + + "\022_reporting_contextB\027\n" + "\025_click_potential_rank\"\201\006\n" + "\037PriceCompetitivenessProductView\022 \n" + "\023report_country_code\030\001 \001(\tH\000\210\001\001\022\017\n" @@ -405,8 +427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%predicted_impressions_change_fraction\030\021 \001(\001H\016\210\001\001\022-\n" + " predicted_clicks_change_fraction\030\022 \001(\001H\017\210\001\001\0222\n" + "%predicted_conversions_change_fraction\030\023 \001(\001H\020\210\001\001\022b\n\r" - + "effectiveness\030\026 \001(\0162K.google.sho" - + "pping.merchant.reports.v1.PriceInsightsProductView.Effectiveness\"M\n\r" + + "effectiveness\030\026 \001(\0162K.google.s" + + "hopping.merchant.reports.v1.PriceInsightsProductView.Effectiveness\"M\n\r" + "Effectiveness\022\035\n" + "\031EFFECTIVENESS_UNSPECIFIED\020\000\022\007\n" + "\003LOW\020\001\022\n\n" @@ -431,8 +453,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&_predicted_conversions_change_fraction\"\327\013\n" + "\035BestSellersProductClusterView\022&\n" + "\013report_date\030\001 \001(\0132\021.google.type.Date\022m\n" - + "\022report_granularity\030\002 \001(\0162L.google.shop" - + "ping.merchant.reports.v1.ReportGranularity.ReportGranularityEnumH\000\210\001\001\022" + + "\022report_granularity\030\002 \001(\0162L.google.sh" + + "opping.merchant.reports.v1.ReportGranularity.ReportGranularityEnumH\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" @@ -446,21 +468,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013category_l5\030\014 \001(\tH\t\210\001\001\022\025\n\r" + "variant_gtins\030\r" + " \003(\t\022q\n" - + "\020inventory_status\030\016 \001(\0162R.google.shopping.merchant.reports.v1.BestSe" - + "llersProductClusterView.InventoryStatusH\n" + + "\020inventory_status\030\016 \001(\0162R.google.shopping.merchant.reports.v1.Best" + + "SellersProductClusterView.InventoryStatusH\n" + "\210\001\001\022w\n" - + "\026brand_inventory_status\030\017 \001(\0162R.g" - + "oogle.shopping.merchant.reports.v1.BestS" - + "ellersProductClusterView.InventoryStatusH\013\210\001\001\022\021\n" + + "\026brand_inventory_status\030\017 \001(\0162R.google.shopping.merchant.reports.v1.Bes" + + "tSellersProductClusterView.InventoryStatusH\013\210\001\001\022\021\n" + "\004rank\030\020 \001(\003H\014\210\001\001\022\032\n\r" + "previous_rank\030\021 \001(\003H\r" + "\210\001\001\022d\n" - + "\017relative_demand\030\022 \001(\0162F." - + "google.shopping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\016\210\001\001\022m\n" - + "\030previous_relative_demand\030\023 \001(\0162F.google.sh" - + "opping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\017\210\001\001\022\177\n" - + "\026relative_demand_change\030\024 \001(\0162Z.google.shopping.merc" - + "hant.reports.v1.RelativeDemandChangeType.RelativeDemandChangeTypeEnumH\020\210\001\001\"i\n" + + "\017relative_demand\030\022 \001(\0162" + + "F.google.shopping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\016\210\001\001\022m\n" + + "\030previous_relative_demand\030\023 \001(\0162F.google." + + "shopping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\017\210\001\001\022\177\n" + + "\026relative_demand_change\030\024 \001(\0162Z.google.shopping.me" + + "rchant.reports.v1.RelativeDemandChangeType.RelativeDemandChangeTypeEnumH\020\210\001\001\"i\n" + "\017InventoryStatus\022 \n" + "\034INVENTORY_STATUS_UNSPECIFIED\020\000\022\014\n" + "\010IN_STOCK\020\001\022\020\n" @@ -485,21 +506,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_relative_demand_change\"\300\006\n" + "\024BestSellersBrandView\022&\n" + "\013report_date\030\001 \001(\0132\021.google.type.Date\022m\n" - + "\022report_granularity\030\002 \001(\0162L.go" - + "ogle.shopping.merchant.reports.v1.ReportGranularity.ReportGranularityEnumH\000\210\001\001\022" - + " \n" + + "\022report_granularity\030\002 \001(\0162L.google.shopping.merchant.reports.v1.Repo" + + "rtGranularity.ReportGranularityEnumH\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" + "\005brand\030\006 \001(\tH\003\210\001\001\022\021\n" + "\004rank\030\007 \001(\003H\004\210\001\001\022\032\n\r" + "previous_rank\030\010 \001(\003H\005\210\001\001\022d\n" - + "\017relative_demand\030\t \001(\0162F." - + "google.shopping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\006\210\001\001\022m\n" + + "\017relative_demand\030\t \001(\0162" + + "F.google.shopping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\006\210\001\001\022m\n" + "\030previous_relative_demand\030\n" - + " \001(\0162F.google.sh" - + "opping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\007\210\001\001\022\177\n" - + "\026relative_demand_change\030\013 \001(\0162Z.google.shopping.merc" - + "hant.reports.v1.RelativeDemandChangeType.RelativeDemandChangeTypeEnumH\010\210\001\001B\025\n" + + " \001(\0162F.google." + + "shopping.merchant.reports.v1.RelativeDemand.RelativeDemandEnumH\007\210\001\001\022\177\n" + + "\026relative_demand_change\030\013 \001(\0162Z.google.shopping.me" + + "rchant.reports.v1.RelativeDemandChangeType.RelativeDemandChangeTypeEnumH\010\210\001\001B\025\n" + "\023_report_granularityB\026\n" + "\024_report_country_codeB\025\n" + "\023_report_category_idB\010\n" @@ -524,8 +544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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_category_id\030\005 \001(\003H\003\210\001\001\022a\n" - + "\016traffic_source\030\006 \001(\0162D.google.shopping.merc" - + "hant.reports.v1.TrafficSource.TrafficSourceEnumH\004\210\001\001\022\021\n" + + "\016traffic_source\030\006 \001(\0162D.google.shopping.me" + + "rchant.reports.v1.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" @@ -548,8 +568,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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_category_id\030\005 \001(\003H\003\210\001\001\022a\n" - + "\016traffic_source\030\006 \001(\0162D.google.shopping.merc" - + "hant.reports.v1.TrafficSource.TrafficSourceEnumH\004\210\001\001\022\021\n" + + "\016traffic_source\030\006 \001(\0162D.google.shopping.me" + + "rchant.reports.v1.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" @@ -568,8 +588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + "\022report_category_id\030\003 \001(\003H\001\210\001\001\022a\n" - + "\016traffic_source\030\004 \001(\0162D.google.sho" - + "pping.merchant.reports.v1.TrafficSource.TrafficSourceEnumH\002\210\001\001\022)\n" + + "\016traffic_source\030\004 \001(\0162D.google.s" + + "hopping.merchant.reports.v1.TrafficSource.TrafficSourceEnumH\002\210\001\001\022)\n" + "\034your_domain_visibility_trend\030\005 \001(\001H\003\210\001\001\0220\n" + "#category_benchmark_visibility_trend\030\006 \001(\001H\004\210\001\001B\026\n" + "\024_report_country_codeB\025\n" @@ -581,7 +601,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023MarketingMethodEnum\022%\n" + "!MARKETING_METHOD_ENUM_UNSPECIFIED\020\000\022\013\n" + "\007ORGANIC\020\001\022\007\n" - + "\003ADS\020\002\"n\n" + + "\003ADS\020\002\"a\n" + + "\tStoreType\"T\n\r" + + "StoreTypeEnum\022\037\n" + + "\033STORE_TYPE_ENUM_UNSPECIFIED\020\000\022\020\n" + + "\014ONLINE_STORE\020\001\022\020\n" + + "\014LOCAL_STORES\020\002\"n\n" + "\021ReportGranularity\"Y\n" + "\025ReportGranularityEnum\022\'\n" + "#REPORT_GRANULARITY_ENUM_UNSPECIFIED\020\000\022\n\n" @@ -609,16 +634,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ADS\020\002\022\007\n" + "\003ALL\020\0032\220\002\n\r" + "ReportService\022\265\001\n" - + "\006Search\0222.google.shopping.merchant.repor" - + "ts.v1.SearchRequest\0323.google.shopping.me" - + "rchant.reports.v1.SearchResponse\"B\332A\006par" - + "ent\202\323\344\223\0023\"./reports/v1/{parent=accounts/" - + "*}/reports:search:\001*\032G\312A\032merchantapi.goo" - + "gleapis.com\322A\'https://www.googleapis.com/auth/contentB\370\001\n" - + "\'com.google.shopping.merchant.reports.v1B\014ReportsProtoP\001ZGcloud" - + ".google.com/go/shopping/merchant/reports/apiv1/reportspb;reportspb\252\002#Google.Shop" - + "ping.Merchant.Reports.V1\312\002#Google\\Shoppi" - + "ng\\Merchant\\Reports\\V1\352\002\'Google::Shopping::Merchant::Reports::V1b\006proto3" + + "\006Search\0222.google.shopping.merchant.reports.v1.SearchRequest" + + "\0323.google.shopping.merchant.reports.v1.S" + + "earchResponse\"B\332A\006parent\202\323\344\223\0023\"./reports" + + "/v1/{parent=accounts/*}/reports:search:\001" + + "*\032G\312A\032merchantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\370\001\n" + + "\'com.google.shopping.merchant.reports.v1B\014" + + "ReportsProtoP\001ZGcloud.google.com/go/shopping/merchant/reports/apiv1/reportspb;re" + + "portspb\252\002#Google.Shopping.Merchant.Repor" + + "ts.V1\312\002#Google\\Shopping\\Merchant\\Reports" + + "\\V1\352\002\'Google::Shopping::Merchant::Reports::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -674,6 +699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Date", "Week", "CustomerCountryCode", + "StoreType", "OfferId", "Title", "Brand", @@ -732,6 +758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreationTime", "ExpirationDate", "AggregatedReportingContextStatus", + "StatusPerReportingContext", + "ReportingContext", "ItemIssues", "ClickPotential", "ClickPotentialRank", @@ -771,6 +799,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ReportingContext", "DisapprovedCountries", "DemotedCountries", }); + internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_descriptor = + internal_static_google_shopping_merchant_reports_v1_ProductView_descriptor.getNestedType(1); + internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1_ProductView_StatusPerReportingContext_descriptor, + new java.lang.String[] { + "ReportingContext", "ApprovedCountries", "DisapprovedCountries", "PendingCountries", + }); internal_static_google_shopping_merchant_reports_v1_PriceCompetitivenessProductView_descriptor = getDescriptor().getMessageType(5); internal_static_google_shopping_merchant_reports_v1_PriceCompetitivenessProductView_fieldAccessorTable = @@ -927,26 +963,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1_MarketingMethod_descriptor, new java.lang.String[] {}); - internal_static_google_shopping_merchant_reports_v1_ReportGranularity_descriptor = + internal_static_google_shopping_merchant_reports_v1_StoreType_descriptor = getDescriptor().getMessageType(14); + internal_static_google_shopping_merchant_reports_v1_StoreType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1_StoreType_descriptor, + new java.lang.String[] {}); + internal_static_google_shopping_merchant_reports_v1_ReportGranularity_descriptor = + getDescriptor().getMessageType(15); internal_static_google_shopping_merchant_reports_v1_ReportGranularity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1_ReportGranularity_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1_RelativeDemand_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_shopping_merchant_reports_v1_RelativeDemand_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1_RelativeDemand_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1_RelativeDemandChangeType_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_shopping_merchant_reports_v1_RelativeDemandChangeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1_RelativeDemandChangeType_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1_TrafficSource_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_shopping_merchant_reports_v1_TrafficSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1_TrafficSource_descriptor, diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequest.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequest.java index e95166644076..8df4f71d22c1 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequest.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getParentBytes() { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -170,7 +170,7 @@ public java.lang.String getQuery() { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -198,7 +198,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * *
    * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
-   * 1000. Values above 5000 are coerced to 5000.
+   * 1000. Values above 100,000 are coerced to 100,000.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -777,7 +777,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -805,7 +805,7 @@ public java.lang.String getQuery() { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -833,7 +833,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -860,7 +860,7 @@ public Builder setQuery(java.lang.String value) { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -883,7 +883,7 @@ public Builder clearQuery() { * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -909,7 +909,7 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * *
      * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
-     * 1000. Values above 5000 are coerced to 5000.
+     * 1000. Values above 100,000 are coerced to 100,000.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -926,7 +926,7 @@ public int getPageSize() { * *
      * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
-     * 1000. Values above 5000 are coerced to 5000.
+     * 1000. Values above 100,000 are coerced to 100,000.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -947,7 +947,7 @@ public Builder setPageSize(int value) { * *
      * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
-     * 1000. Values above 5000 are coerced to 5000.
+     * 1000. Values above 100,000 are coerced to 100,000.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequestOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequestOrBuilder.java index 3df3e53af7f4..80d24ec1cfa1 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequestOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/SearchRequestOrBuilder.java @@ -63,7 +63,7 @@ public interface SearchRequestOrBuilder * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -81,7 +81,7 @@ public interface SearchRequestOrBuilder * For details on how to construct your query, see the [Query Language * guide](/merchant/api/guides/reports/query-language). For the full list of * available tables and fields, see the [Available - * fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + * fields][google.shopping.merchant.reports.v1.ReportRow]. *
* * string query = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -95,7 +95,7 @@ public interface SearchRequestOrBuilder * *
    * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to
-   * 1000. Values above 5000 are coerced to 5000.
+   * 1000. Values above 100,000 are coerced to 100,000.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreType.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreType.java new file mode 100644 index 000000000000..c0371734f681 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreType.java @@ -0,0 +1,567 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/shopping/merchant/reports/v1/reports.proto +// Protobuf Java Version: 4.33.2 + +package com.google.shopping.merchant.reports.v1; + +/** + * + * + *
+ * Store where the product is sold (online versus local stores).
+ * 
+ * + * Protobuf type {@code google.shopping.merchant.reports.v1.StoreType} + */ +@com.google.protobuf.Generated +public final class StoreType extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1.StoreType) + StoreTypeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StoreType"); + } + + // Use StoreType.newBuilder() to construct. + private StoreType(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StoreType() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_StoreType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_StoreType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1.StoreType.class, + com.google.shopping.merchant.reports.v1.StoreType.Builder.class); + } + + /** + * + * + *
+   * Store types.
+   * 
+ * + * Protobuf enum {@code google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum} + */ + public enum StoreTypeEnum implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * STORE_TYPE_ENUM_UNSPECIFIED = 0; + */ + STORE_TYPE_ENUM_UNSPECIFIED(0), + /** + * + * + *
+     * Online store.
+     * 
+ * + * ONLINE_STORE = 1; + */ + ONLINE_STORE(1), + /** + * + * + *
+     * Local (physical) stores.
+     * 
+ * + * LOCAL_STORES = 2; + */ + LOCAL_STORES(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StoreTypeEnum"); + } + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * STORE_TYPE_ENUM_UNSPECIFIED = 0; + */ + public static final int STORE_TYPE_ENUM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Online store.
+     * 
+ * + * ONLINE_STORE = 1; + */ + public static final int ONLINE_STORE_VALUE = 1; + + /** + * + * + *
+     * Local (physical) stores.
+     * 
+ * + * LOCAL_STORES = 2; + */ + public static final int LOCAL_STORES_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 StoreTypeEnum 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 StoreTypeEnum forNumber(int value) { + switch (value) { + case 0: + return STORE_TYPE_ENUM_UNSPECIFIED; + case 1: + return ONLINE_STORE; + case 2: + return LOCAL_STORES; + 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 StoreTypeEnum findValueByNumber(int number) { + return StoreTypeEnum.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1.StoreType.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StoreTypeEnum[] VALUES = values(); + + public static StoreTypeEnum 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 StoreTypeEnum(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1.StoreType.StoreTypeEnum) + } + + 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.shopping.merchant.reports.v1.StoreType)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1.StoreType other = + (com.google.shopping.merchant.reports.v1.StoreType) 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.shopping.merchant.reports.v1.StoreType parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1.StoreType 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.v1.StoreType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1.StoreType parseFrom( + 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.v1.StoreType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1.StoreType 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.v1.StoreType parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1.StoreType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1.StoreType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1.StoreType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1.StoreType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1.StoreType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.v1.StoreType 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Store where the product is sold (online versus local stores).
+   * 
+ * + * Protobuf type {@code google.shopping.merchant.reports.v1.StoreType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1.StoreType) + com.google.shopping.merchant.reports.v1.StoreTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_StoreType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_StoreType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1.StoreType.class, + com.google.shopping.merchant.reports.v1.StoreType.Builder.class); + } + + // Construct using com.google.shopping.merchant.reports.v1.StoreType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.shopping.merchant.reports.v1.ReportsProto + .internal_static_google_shopping_merchant_reports_v1_StoreType_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1.StoreType getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1.StoreType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1.StoreType build() { + com.google.shopping.merchant.reports.v1.StoreType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1.StoreType buildPartial() { + com.google.shopping.merchant.reports.v1.StoreType result = + new com.google.shopping.merchant.reports.v1.StoreType(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1.StoreType) { + return mergeFrom((com.google.shopping.merchant.reports.v1.StoreType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.shopping.merchant.reports.v1.StoreType other) { + if (other == com.google.shopping.merchant.reports.v1.StoreType.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; + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1.StoreType) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1.StoreType) + private static final com.google.shopping.merchant.reports.v1.StoreType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1.StoreType(); + } + + public static com.google.shopping.merchant.reports.v1.StoreType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StoreType 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.v1.StoreType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreTypeOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreTypeOrBuilder.java new file mode 100644 index 000000000000..191da06e226f --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/java/com/google/shopping/merchant/reports/v1/StoreTypeOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/shopping/merchant/reports/v1/reports.proto +// Protobuf Java Version: 4.33.2 + +package com.google.shopping.merchant.reports.v1; + +@com.google.protobuf.Generated +public interface StoreTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1.StoreType) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/proto/google/shopping/merchant/reports/v1/reports.proto b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/proto/google/shopping/merchant/reports/v1/reports.proto index 5d992b770db8..1e4393292905 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/proto/google/shopping/merchant/reports/v1/reports.proto +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/src/main/proto/google/shopping/merchant/reports/v1/reports.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -60,11 +60,11 @@ message SearchRequest { // For details on how to construct your query, see the [Query Language // guide](/merchant/api/guides/reports/query-language). For the full list of // available tables and fields, see the [Available - // fields](/merchant/api/reference/rest/reports_v1/accounts.reports). + // fields][google.shopping.merchant.reports.v1.ReportRow]. string query = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. Number of `ReportRows` to retrieve in a single page. Defaults to - // 1000. Values above 5000 are coerced to 5000. + // 1000. Values above 100,000 are coerced to 100,000. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Token of the page to retrieve. If not specified, the first page @@ -158,6 +158,13 @@ message ProductPerformanceView { // returned. optional string customer_country_code = 4; + // Store type to which metrics apply. Can be `ONLINE_STORE` or + // `LOCAL_STORES`. Segment. + // + // For `LOCAL_STORES` store type, further segmentation by a specific store + // is not available. + optional StoreType.StoreTypeEnum store_type = 32; + // Merchant-provided id of the product. Segment. optional string offer_id = 5; @@ -266,16 +273,16 @@ message ProductPerformanceView { // Fields available for query in `product_view` table. // -// Products in the current inventory. Products in this table are the same as in -// Products sub-API but not all product attributes from Products sub-API are -// available for query in this table. In contrast to Products sub-API, this -// table allows to filter the returned list of products by product attributes. -// To retrieve a single product by `id` or list all products, Products sub-API -// should be used. +// Products in the current inventory. Products in this table are the +// same as a [Product resource in Products +// sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products) +// but not all product attributes from Products sub-API are available for query +// in this table. In contrast to Products sub-API, this table allows to filter +// the returned list of products by product attributes. To retrieve a single +// product by `id` or list all products, Products sub-API should be used. // // Values are only set for fields requested explicitly in the request's search // query. -// message ProductView { // Item issue associated with the product. message ItemIssue { @@ -322,11 +329,18 @@ message ProductView { } // Issue severity per reporting context. + // + // Reporting contexts included in this list can be restricted using a + // filter on the `reporting_context` field. repeated IssueSeverityPerReportingContext severity_per_reporting_context = 1; // Aggregated severity of the issue for all reporting contexts it affects. // + // Reporting contexts included in the computation of the aggregated + // severity can be restricted using a filter on the `reporting_context` + // field. + // // **This field can be used for filtering the results.** optional AggregatedIssueSeverity aggregated_severity = 2; } @@ -355,8 +369,37 @@ message ProductView { optional ItemIssueResolution resolution = 3; } + // Status of the product for a specific reporting context. + // + // Equivalent to + // [`DestinationStatus`][google.shopping.merchant.products.v1.ProductStatus.DestinationStatus] + // in Products API. + message StatusPerReportingContext { + // Reporting context the status applies to. + optional google.shopping.type.ReportingContext.ReportingContextEnum + reporting_context = 1; + + // List of approved countries in the reporting context, represented in + // [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for + // example, `US`. + repeated string approved_countries = 2; + + // List of disapproved countries in the reporting context, represented in + // [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for + // example, `US`. + repeated string disapproved_countries = 3; + + // List of pending countries in the reporting context, represented in + // [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for + // example, `US`. + repeated string pending_countries = 4; + } + // Status of the product aggregated for all reporting contexts. // + // Reporting contexts included in the computation of the aggregated status can + // be restricted using a filter on the `reporting_context` field. + // // Here's an example of how the aggregated status is computed: // // Free listings | Shopping ads | Status @@ -372,16 +415,18 @@ message ProductView { // Not specified. AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED = 0; - // Product is not eligible or is disapproved for all reporting contexts. + // Product is not eligible or is disapproved for all reporting contexts and + // countries. NOT_ELIGIBLE_OR_DISAPPROVED = 1; - // Product's status is pending in all reporting contexts. + // Product's status is pending in all reporting contexts and countries. PENDING = 2; - // Product is eligible for some (but not all) reporting contexts. + // Product is eligible for some (but not all) reporting contexts and + // countries. ELIGIBLE_LIMITED = 3; - // Product is eligible for all reporting contexts. + // Product is eligible for all reporting contexts and countries. ELIGIBLE = 4; } @@ -506,10 +551,36 @@ message ProductView { // Expiration date for the product, specified on insertion. google.type.Date expiration_date = 25; - // Aggregated status. + // Aggregated status across all reporting contexts. + // + // Reporting contexts included in the computation of the aggregated status can + // be restricted using a filter on the `reporting_context` field. optional AggregatedReportingContextStatus aggregated_reporting_context_status = 26; + // Detailed product status per reporting context. + // + // Reporting contexts included in this list can be restricted using a filter + // on the `reporting_context` field. + // + // Equivalent to + // [`ProductStatus.destination_statuses`][google.shopping.merchant.products.v1.ProductStatus] + // in Products API. + // + // **This field cannot be used for sorting or filtering the results.** + repeated StatusPerReportingContext status_per_reporting_context = 32; + + // Reporting context to restrict the query to. + // + // Restricts the reporting contexts returned in `status_per_reporting_context` + // and `item_issues`, and used to compute + // `aggregated_reporting_context_status`. + // + // **This field can only be used in the `WHERE` clause and cannot be selected + // in the `SELECT` clause.** + optional google.shopping.type.ReportingContext.ReportingContextEnum + reporting_context = 33; + // List of item issues for the product. // // **This field cannot be used for sorting the results.** @@ -523,9 +594,8 @@ message ProductView { // the merchant. ClickPotential click_potential = 29; - // Rank of the product based on its click potential. A product with - // `click_potential_rank` 1 has the highest click potential among the - // merchant's products that fulfill the search query conditions. + // Normalized click potential of the product. Values range from 1 to 1000, + // where 1 is the highest click potential and 1000 is the theoretical lowest. optional int64 click_potential_rank = 30; } @@ -1175,6 +1245,21 @@ message MarketingMethod { } } +// Store where the product is sold (online versus local stores). +message StoreType { + // Store types. + enum StoreTypeEnum { + // Not specified. + STORE_TYPE_ENUM_UNSPECIFIED = 0; + + // Online store. + ONLINE_STORE = 1; + + // Local (physical) stores. + LOCAL_STORES = 2; + } +} + // Granularity of the Best sellers report. Best sellers reports are computed // over a week and a month timeframe. message ReportGranularity {